Here's an excerpt from my lecture notes:
Choosing a Particular Solution
$$ ay_{t+2}+by_{t+1}+cy_t=f(t)\,,\qquad t = 0, 1,2,\ldots $$ $$ \begin{array}{|c|c|}\hline f(t)&\text{First choice for Particular Solution}\\ \hline \hline 0&0\\ \hline \text{(Non-Zero constant) }-5&D\\\hline \text{(Linear) }-6t&Dt+E\\\hline\text{(Quadratic) }5t^2-8&Dt^2+Et+F\\\hline -3(5)^t&D(5)^t\\\hline t(6)^t&(Dt+E)(6)^t\\t^2(-3)^t&(Dt^2+Et+F)(-3)^t\\\hline 3\cos(5t)&D\cos(5t)+E\sin(5t)\\4\sin(2t)&D\cos(2t)+E\sin(2t)\\\hline (4)^t\cos(3t)&(4)^t[D\cos(3t)+E\sin(3t)]\\\hline(4)^t\sin(3t)&(4)^t[D\cos(3t)+E\sin(3t)]\\\hline\end{array} $$
I would like to know how the choice of particular solution was deduced (I tried asking my lecturer but she won't tell as it is not in my syllabus).
I know the following:
The general solution of a non-homogeneous equation = Particular solution + General Solution of that homogeneous equation.
In the case of a homogeneous equation, a constant multiple of its solution is a solution too. Also, the sum of two of its solution is also a solution.
Knowing the above, I still don't know how to deduce the choice of a particular solution. I would appreciate it if someone could explain this to me or direct me to some online reading specifically address this point i.e. second order linear difference equation.
$\newcommand{\+}{^{\dagger}}% \newcommand{\angles}[1]{\left\langle #1 \right\rangle}% \newcommand{\braces}[1]{\left\lbrace #1 \right\rbrace}% \newcommand{\bracks}[1]{\left\lbrack #1 \right\rbrack}% \newcommand{\ceil}[1]{\,\left\lceil #1 \right\rceil\,}% \newcommand{\dd}{{\rm d}}% \newcommand{\ds}[1]{\displaystyle{#1}}% \newcommand{\equalby}[1]{{#1 \atop {= \atop \vphantom{\huge A}}}}% \newcommand{\expo}[1]{\,{\rm e}^{#1}\,}% \newcommand{\fermi}{\,{\rm f}}% \newcommand{\floor}[1]{\,\left\lfloor #1 \right\rfloor\,}% \newcommand{\half}{{1 \over 2}}% \newcommand{\ic}{{\rm i}}% \newcommand{\iff}{\Longleftrightarrow} \newcommand{\imp}{\Longrightarrow}% \newcommand{\isdiv}{\,\left.\right\vert\,}% \newcommand{\ket}[1]{\left\vert #1\right\rangle}% \newcommand{\ol}[1]{\overline{#1}}% \newcommand{\pars}[1]{\left( #1 \right)}% \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\pp}{{\cal P}}% \newcommand{\root}[2][]{\,\sqrt[#1]{\,#2\,}\,}% \newcommand{\sech}{\,{\rm sech}}% \newcommand{\sgn}{\,{\rm sgn}}% \newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}} \newcommand{\ul}[1]{\underline{#1}}% \newcommand{\verts}[1]{\left\vert\, #1 \,\right\vert}$ $\ds{ay_{t + 2} + by_{t + 1} + cy_{t} = \fermi\pars{t}\,,\qquad t = 0, 1,2,\ldots}$
$$ {\cal Y}\pars{z} = {{\cal G}\pars{z}\over cz^{2} + bz + a}\quad\mbox{where}\quad {\cal G}\pars{z} \equiv z^{2}{\cal F}\pars{z} + ay_{0} + \pars{by_{0} + ay_{1}}z $$ Now, we can expand both members of $\ds{{\cal Y}\pars{z} = {{\cal G}\pars{z}\over cz^{2} + bz + a}}$ in powers of $z$. By comparing 'term a term' we can find $y_{t}\,,\ \forall\ t = 0,1,2,\ldots$. Also $$ {\cal Y}\pars{z} = {1 \over c}\,{{\cal G}\pars{z} \over \pars{z - z_{-}}\pars{z - z_{+}}} \quad\mbox{where}\quad z_{\pm} = {-b \pm \root{b^{2} - 4ca} \over 2c} $$ $$ {\cal Y}\pars{z} = {{\cal G}\pars{z} \over c}\,{1 \over z_{+} - z_{-}} \pars{{1 \over z - z_{+}} - {1 \over z - z_{-}}} = {1 \over \root{b^{2} - 4ca}}\bracks{% {1 \over z_{-}}\,{{\cal G}\pars{z} \over 1 - z/z_{-}} - {1 \over z_{+}}\,{{\cal G}\pars{z} \over 1 - z/z_{+}}} $$ In order to proceed further, in general terms, we need additional information of the parameters $\braces{a,b,c}$.
The solution becomes: \begin{align} &y_{0} = 0\,,\quad y_{1} = 1\,,\quad y_{2} = 2\,;\qquad\qquad y_{t} = d_{t - 1} -2d_{t - 2} - 5d_{t - 3}\,,\quad t \geq 3 \\[3mm]&\mbox{where}\ d_{t} \equiv {1 \over 6}\pars{t + 1}\pars{t + 2}\pars{t + 3} \end{align}