Question 2 of 8: General Solution of a Doubly-Forced Oscillator (Resonant + Non-Resonant)
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — December 2018 — 04-BS-1 Mathematics. Three-hour, closed-book exam (one double-sided aid sheet permitted, approved calculator allowed). Format: eight questions offered; any five constitute a complete paper and only the first five appearing in the answer book are marked. All eight are solved below for completeness.
Approach. The homogeneous natural frequency is $\omega_0=2$. The $3\cos2t$ term forces exactly at $\omega_0$ (resonance, needs a $t\sin\omega_0t$-type trial); the $4\cos3t$ term forces off-resonance and takes a plain $\cos3t$ trial. Superpose both particular solutions onto the homogeneous solution.
Homogeneous solution. $r^2+4=0\Rightarrow r=\pm2i$, so $x_h(t)=C_1\cos2t+C_2\sin2t$.
Resonant particular solution for $3\cos2t$. Since $\omega=2=\omega_0$, try $x_{p1}=t(A\cos2t+B\sin2t)$. Substituting and cancelling the (automatically vanishing) $t\cos2t,\,t\sin2t$ terms leaves $-4A\sin2t+4B\cos2t=3\cos2t$, giving $A=0,\ B=\tfrac34$:
$$x_{p1}(t)=\tfrac34t\sin2t.$$
Non-resonant particular solution for $4\cos3t$. Try $x_{p2}=D\cos3t$: $-9D+4D=-5D=4\Rightarrow D=-\tfrac45$, so
$$x_{p2}(t)=-\tfrac45\cos3t.$$