# Find the general solution of the nonhomogeneous differential equation

I have the differential equation \begin{align} y'' + 9y = t^2e^{3t} + 6 \end{align} I found the complementary equation which is \begin{align} c_1\cos(3t) + c_2\sin(3t). \end{align} I have no idea how to go about getting the particular solution. Do I split the equations up? Can someone point me in the right direction? Thanks in advance

$\newcommand{\bbx}[1]{\,\bbox[8px,border:1px groove navy]{{#1}}\,} \newcommand{\braces}[1]{\left\lbrace\,{#1}\,\right\rbrace} \newcommand{\bracks}[1]{\left\lbrack\,{#1}\,\right\rbrack} \newcommand{\dd}{\mathrm{d}} \newcommand{\ds}[1]{\displaystyle{#1}} \newcommand{\expo}[1]{\,\mathrm{e}^{#1}\,} \newcommand{\ic}{\mathrm{i}} \newcommand{\mc}[1]{\mathcal{#1}} \newcommand{\mrm}[1]{\mathrm{#1}} \newcommand{\pars}[1]{\left(\,{#1}\,\right)} \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\root}[2][]{\,\sqrt[#1]{\,{#2}\,}\,} \newcommand{\totald}[3][]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}} \newcommand{\verts}[1]{\left\vert\,{#1}\,\right\vert}$
Define $\ds{z \equiv y' + 3y\ic \implies z' \equiv y'' + 3y'\ic = y'' + 3\ic\pars{z - 3y\ic} = y'' + 3\ic z + 9y}$. So, I'll have
$$\bbx{\ds{% y\pars{t} = {1 \over 6} + \expo{3t}\,{1 - 6t + 9t^{2} \over 162} + {1 \over 3}\Im\pars{C\expo{3\ic t}}}}$$
Note that $\ds{{1 \over 3}\Im\pars{C\expo{3\ic t}} = A\sin\pars{3t} + B\cos\pars{3t}}$ with $\ds{A,B \in \mathbb{R}}$.