Use NDSolve:
sol = NDSolve[{y''[t] + Sin[y[t]] == Sin[t], y[0] == 0, y'[0] == 0},
y, {t, 0, 5}]
Plot[Evaluate[y[t] /. sol], {t, 0, 5}]
I've got a lot of problems plotting this one
y'' + sin(y) = sin(x)
initial conditions: y(0)=0 y'(0)=0
This is equation of some pendulum.
I'm looking for Mathemacia form to plot the solution.
I tried this:
DSolve[y''[x] + Sin[y[x]] == Sin[x], y[x], x]
and it doesn't work.
ty