I am new to using Mathematica and have a problem at hand: I need to solve $y''(x)+ a \sin(y(x)) = 0$ and plot the output, I need a "manipulate" thingy for the two initial conditions. Help needed.
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
closed as too localized by acl, belisarius, cormullion, Leonid Shifrin, rm -rf♦ Oct 10 '12 at 14:55
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
|
The function you are looking for is For one-off execution, you can use this kind of expression:
And for a
|
|||||||||
|


![Manipulate[] interface](http://i.stack.imgur.com/ngSDc.png)

NDSolvein the documentation. – b.gatessucks Oct 10 '12 at 8:52y[x]as an independent variable, which reduces it to a first-order equation. By callingy'[x] == f[y], you gety''[x] == 1/2 (d/dy)(f[y]^2),so this becomes a first order inyequation. Once you solve it, you recall whatfis and solve forx = x(y), then invert. – Leonid Shifrin Oct 10 '12 at 13:17