2. The displacement \(x\) metres of a particle at time \(t\) seconds is given by the differential equation
$$\frac { \mathrm { d } ^ { 2 } x } { \mathrm {~d} t ^ { 2 } } + x + \cos x = 0$$
When \(t = 0 , x = 0\) and \(\frac { \mathrm { d } x } { \mathrm {~d} t } = \frac { 1 } { 2 }\).
Find a Taylor series solution for \(x\) in ascending powers of \(t\), up to and including the term in \(t ^ { 3 }\).