Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Exams — May 2016 — 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.
Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — ODEs, systems of ODEs, line/surface integrals, Stokes'/divergence theorems; Stewart, Calculus: Early Transcendentals (9th ed., Cengage) — Lagrange multipliers, planes and surfaces in space, surface/flux integrals, volumes.
Given. A constant-coefficient linear ODE with complex characteristic roots, forced at $\cos(3t)$, and zero initial conditions.
Find. $y(t)$ satisfying the IVP.
Approach. Solve the homogeneous equation (complex roots), find a particular solution by undetermined coefficients (no resonance, since the homogeneous modes carry an exponentially growing envelope rather than a bounded oscillation at frequency 3), then fix the two constants from the initial conditions.
Homogeneous solution. $r^2-12r+45=0\Rightarrow r=\dfrac{12\pm\sqrt{144-180}}{2}=6\pm3i$, so
$$y_h(t)=e^{6t}(C_1\cos3t+C_2\sin3t).$$
Particular solution. Try $y_p=A\cos3t+B\sin3t$. Then $y_p'=-3A\sin3t+3B\cos3t$ and $y_p''=-9A\cos3t-9B\sin3t$. Substituting into $y_p''-12y_p'+45y_p$ and collecting $\cos3t,\sin3t$ terms:
$$(36A-36B)\cos3t+(36A+36B)\sin3t=18\cos3t.$$
Matching coefficients: $36A-36B=18$ and $36A+36B=0$. The second gives $B=-A$; substituting into the first, $72A=18\Rightarrow A=\tfrac14,\ B=-\tfrac14$. So $y_p=\tfrac14\cos3t-\tfrac14\sin3t$.
General solution and first initial condition.
$$y(t)=e^{6t}(C_1\cos3t+C_2\sin3t)+\tfrac14\cos3t-\tfrac14\sin3t.$$
$y(0)=C_1+\tfrac14=0\Rightarrow C_1=-\tfrac14$.
Second initial condition. Differentiating (product rule on the $e^{6t}$ term),
$$y'(t)=e^{6t}\big[(6C_1+3C_2)\cos3t+(6C_2-3C_1)\sin3t\big]-\tfrac34\sin3t-\tfrac34\cos3t,$$
so $y'(0)=6C_1+3C_2-\tfrac34=0\Rightarrow 3C_2=\tfrac34-6(-\tfrac14)=\tfrac34+\tfrac32=\tfrac94\Rightarrow C_2=\tfrac34$.