I have a differential equation that I can't solve analytically, so I use NDSolve
to get a solution.
Suppose that I can't solve the next equation
sol = NDSolve[{D[p[x]/(1 + x)^3, x] == 0, p[0] == 1}, p, {x, 0, 1000}]
And know that I have the numerical solution, I want to find a solution of the equation $p[x]=100$ using NSolve
:
NSolve[(p[x] /. sol) == 100, x, Reals]
However, it doesn't work.
If I have the analytical solution of the differential equation this is easy, I just have to do the next,
Solve[(1 + x)^3 == 100, x, Reals]
Any recommendations?