I am numerically solving this ODE, and I do get a solution. I then need to use this solution to find derivatives and integrals of it, so I define functions using this solution. But when I try to obtain a parametric plot, I do not get a result. I am sure that the problem is with the part that I am Nintegrating but I do not understand the reason because I am able to plot that separately.
sol2 = NDSolve[{1 - Derivative[1][r][t]^2 - r[t]*Derivative[2][r][t] - r[t]*(1 - Derivative[1][r][t]^2)^(1/2) == 0, Derivative[1][r][0] == 1, Derivative[1][r][1] == 0}, r, {t, 0, 1}]
func[t_] := r[t] /. First[sol2]
func1[u_] := (D[r[t] /. sol2, t] /. t -> u)^2
ParametricPlot[{func[t] /. t -> u, NIntegrate[(1 - func1[y])^(1/2), {y, 0, u}]}, {u, 0, 1}]
Here's the result that I get when I plot that part separately:
Plot[NIntegrate[(1 - func1[y])^(1/2), {y, 0, u}], {u, 0, 1}]


sol2. – codebpr Sep 11 '22 at 06:29r[t]. Is functionr[t]positive or negative? – Alex Trounev Sep 14 '22 at 07:44