Consider the equation
\begin{equation*}
x^{\prime \prime} (t) + x^\prime (t) + x(t) = \cos \left(t \right).
\end{equation*}
with initial conditions
\(x (0) = x^\prime (0) = 0\) from
Exercise 5.4.2.4. We solve this by applying the Laplace transforms to both sides and using the properties from
Theorem 5.6.3. The left hand side gives
\begin{align*}
\mathcal{L} \left\{x^{\prime \prime} (t) + x^\prime (t) + x(t) \right\}(s) \amp = \mathcal{L} \left\{x^{\prime \prime} (t)\right\}(s) + \mathcal{L} \left\{x^\prime (t)\right\}(s) + \mathcal{L} \left\{x(t) \right\}(s), \\
\amp = \mathcal{L} \left\{x^{\prime \prime} (t)\right\}(s) + \mathcal{L} \left\{x^\prime (t)\right\}(s) + \mathcal{L} \left\{x(t) \right\}(s), \\
\amp = s^2 F(s) - s x(0) - x^\prime (0) + sF(s) - x(0) + F(s), \\
\amp = (s^2 + s + 1) F(s),
\end{align*}
Applying it on the right and using the formulas from our table, we obtain
\begin{align*}
\mathcal{L} \left\{ \cos \left(t \right)\right\} (s) \amp = \frac{s}{s^2 + 1}
\end{align*}
Thus we obtain the formula
\begin{align*}
F(s) \amp = \frac{s}{(s^2 + 1) (s^2 + s + 1)}
\end{align*}
Now, employ the partial fractions techniques to separate this into a sum of more elementaty rational functions.
\begin{align*}
F(s) \amp = \frac{1}{s^2 + 1} - \frac{1}{s^2 + s + 1} \\
\amp = \frac{1}{s^2 + 1} - \frac{1}{\left(s + \frac{1}{2}\right)^2 + \left(\frac{\sqrt{3}}{2} \right)^2}
\end{align*}
Applying the inverse Laplace transform to both sides gives
\begin{equation*}
x(t) = \sin (t) - \frac{2}{\sqrt{3}} e^{-t/2} \sin \left( \frac{\sqrt{3}}{2} t \right)
\end{equation*}