My equation is as follows:
sol =
ParametricNDSolve[{(f'[r]^2 - 1) f'[r] r == 6.2 (f'[1])^2/1000, f[1] == a},
{f}, {r, 1, 3}, {a}]
where the function f[r]
needs to satisfies a constraint 6.2 (f'[1])^2/1000 = 6 (f'[3])^2/1000
Then I plot f[r]
Plot[Evaluate[{(f'[a])^2[1],6(f'[a])^2[3]/6.2} /. sol], {a, 0, 2}]
I am getting the message
ParametricNDSolve::litarg: To avoid possible ambiguity, the arguments of the dependent variable in {r (NDSolve
f$1$1^\[Prime])[r] (-1+(NDSolve
f$1$1^[Prime])[r]^2)==0.0062 NDSolvef$1$1[1]^2,2 r (NDSolve
f$1$1^[Prime])[r]^2 (NDSolvef$1$2^\[Prime])[r]+r (-1+ (NDSolve
f$1$1^[Prime])[r]^2) (NDSolvef$1$2^\[Prime])[r]==0.0124 NDSolve
f$1$1[1] NDSolve`f$1$2[1]} should literally match the independent variables. >>
I do not know how to avoid the error message and solve the function f[r]