Hi(adsbygoogle = window.adsbygoogle || []).push({});

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]?Code (Text):

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]

Best regards,

Niles.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# NDSolve in Mathematica

**Physics Forums | Science Articles, Homework Help, Discussion**