The source paper's note says "$'$ denotes differentiation with respect to $x$" for this question, but the problem is a time-domain mass-spring equation of motion driven by $\cos(t)$ with $t$ as the only variable appearing — this is treated here as $'=d/dt$ (consistent with every other mass-spring/vibration problem of this type, and evidently a copy-paste artifact from a neighbouring question in the original).
Given. Linear, constant-coefficient, nonhomogeneous ODE $y''+2y'+2y=\cos t$ with $y(0)=1.2,\ y'(0)=1.4$.
Find. $y(t)$, the equation of motion.
Approach. Solve the homogeneous (underdamped) equation via its complex characteristic roots, find a particular solution by undetermined coefficients (no resonance, since the homogeneous modes are damped-oscillatory, not pure $\cos t$), then fix the two constants from the ICs.
Homogeneous solution. $r^2+2r+2=0\Rightarrow r=\dfrac{-2\pm\sqrt{4-8}}{2}=-1\pm i$, so
$$y_h(t)=e^{-t}(C_1\cos t+C_2\sin t).$$
Particular solution. Try $y_p=A\cos t+B\sin t$. Substituting into the ODE:
$$y_p''+2y_p'+2y_p=(A+2B)\cos t+(B-2A)\sin t.$$
Matching to $\cos t+0\sin t$: $A+2B=1,\ B-2A=0\Rightarrow B=2A$. Then $A+4A=1\Rightarrow A=0.2,\ B=0.4$, so $y_p=0.2\cos t+0.4\sin t$.