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 - The Fusion of Science and Community**

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

# NDSolve in Mathematica

Loading...

Similar Threads - NDSolve Mathematica | Date |
---|---|

Mathematica Rescaling equations in Mathematica | May 5, 2017 |

Mathematica NDSolve different solutions same eq's | Jul 23, 2015 |

Solving ODE numerically in Mathematica - I get 'ndnum' error | Mar 17, 2015 |

Mathematica NDSolve initial condition | Mar 5, 2015 |

Mathematica Ndsolve periodic boundary conditions | Feb 12, 2015 |

**Physics Forums - The Fusion of Science and Community**