Second-order linear discrete equations with constant coefficients
Consider the equation $$ ay_{n+2} + by_{n+1} + cy_n = f_n. $$
The complementary function has the form $y_n^{(c)} = k^n$ where the characteristic equation is $$ ak^2 + bk + c = 0. $$
-
If the roots $k_1 \neq k_2$, then $$ y_n^{(c)} = Ak_1^n + Bk_2^n. $$
-
If the roots $k_1 = k_2 = k$, then $$ y_n^{(c)} = (A + Bn) k^n. $$
For particular integral, guess the following:
$f_n$ |
$y_n^{(p)}$ |
|---|---|
$k^n$ |
$Ak^n$ if not complementary |
$k^n$ |
$Ank^n$ if complementary |
$n^p$ |
degree $p$ polynomial in $n$ |