Convert x''+ sin(x) = 0 into a first order system of equations. (x'' refers to the second derivative of x).

I tried:

y1 = sin(x)
y2 = x'

{y1' = cosx
{y2' = -sinx

Not sure if I did it right.

Nevermind, I got the answer.