NDSolve::ntdvdae
NDSolveValue::ntdvdae
ParametricNDSolve::ntdvdae
ParametricNDSolveValue::ntdvdae
An error occurs due to the square root:
NDSolve[{Sqrt[f'[x]] == -1, f[1] == 1}, f, {x, 1, 2}]Squaring both sides of the equation involving the square root resolves the issue:
NDSolve[{f'[x] == 1, f[1] == 1}, f, {x, 1, 2}]This calculation fails because an explicit formula for
cannot be found:
NDSolve[{f'[x] == Cos[f'[x]], f[1] == 1}, f, {x, 1, 2}]This example can be handled by solving numerically for the derivative and using that solution in the input to NDSolve:
NDSolve[{f'[x] == (f'[x] /. FindRoot[f'[x] == Cos[f'[x]], {f'[x], 1, 2}]), f[1] == 1}, f, {x, 1, 2}]