- #1
Niles
- 1,866
- 0
Hi
Say I solve the following differential equation in Mathematica:
The last line plots the solutions vs. x, but how can I plot e.g. y''[x] vs. y[x]?
Niles.
Say I solve the following differential equation in Mathematica:
Code:
s = NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, y, {x, 0, 30}]
Plot[Evaluate[{y[x], y'[x], y''[x]} /. s], {x, 0, 30}, PlotStyle -> Automatic]
Niles.