First, you need to remember that the force, and thus acceleration, is in the opposite direction of the displacement x, so we have and .

From here, we need calculus:

Remember that

so we have

Solving this differential equation gives us the sinusoidial solution.

(Hint: define )

--Kevin C.