The general solution

x = A sin wnt + B cos wnt ---eq1

May be expressed in terms of simple sinusoidal motion. Let

and 

where C and (phi) are constants to be determined in lieu of A and B. Substituting new values of A and B into eq1, we obtain:

---eq2

By using trigonometric identity

We can rewrite eq2 in the required form: