Let us consider the differential equation
\begin{equation}
x'' + 2x' + 2x = 3 \cos 4t.\tag{4.4.12}
\end{equation}
The corresponding homogeneous equation is
\begin{equation*}
x'' + 2x' + 2x = 0,
\end{equation*}
which has solution
\begin{equation*}
x_h(t) = c_1 e^{-t} \cos t + c_2 e^{-t} \sin t.
\end{equation*}
To find a particular solution for the equation
(4.4.12), we will look for a solution of the form
\(x_c = a e^{4 i t}\) to the equation
\begin{equation}
x'' + 2x' + 2x = 3e^{4 it}\tag{4.4.13}
\end{equation}
and then set
\(x_p(t)\) to the real part of the solution. Substituting
\(x_c\) into the lefthand side of
(4.4.13), we obtain
\begin{equation*}
x_c'' + 2x_c' + 2 x_c = (-14 + 8i) a e^{4it} = P(4i)a e^{4it} = 3e^{4 it},
\end{equation*}
where \(P(\lambda) = \lambda^2 + 2 \lambda + 2\) is the characteristic polynomial of \(x'' + 2x' + 2x = 0\text{.}\) Therefore,
\begin{equation*}
a = \frac{3}{P(4i)} = \frac{3}{-14 + 8i} = - \frac{3}{130}(7 + 4i),
\end{equation*}
and the solution to the complex equation is
\begin{align*}
x_c \amp = - \frac{3}{130}(7 + 4i)e^{4 i t}\\
\amp = - \frac{3}{130}(7 + 4i)(\cos 4t + i \sin 4t)\\
\amp = \frac{3}{130}[(- 7 \cos 4t + 4 \sin 4t) + i(- 4 \cos 4t - 7 \sin 4t)].
\end{align*}
Thus, we can determine a particular solution by taking the real part of \(x_c\text{,}\)
\begin{equation*}
x_p(t) = \frac{3}{130}(- 7 \cos 4t + 4 \sin 4t).
\end{equation*}
\begin{equation*}
x(t) = x_h(t) + x_p(t) = c_1 e^{-t} \cos t + c_2 e^{-t} \sin t + \frac{3}{130}(- 7 \cos 4t + 4 \sin 4t).
\end{equation*}
It is easy to see that all solutions approach \(x_p(t)\) as \(t \to \infty\) no matter what the initial conditions may be. However, it would be much more useful if we would write the particular solution in the form
\begin{equation*}
x_p(t) = K \cos(4 t - \phi )
\end{equation*}
for some constants \(K\) and \(\phi\) rather than a linear combination of \(\cos 4t\) and \(\sin 4t\text{.}\)