Example 1 an−2an−1+2an−2=0 for n≥2 with a0=1,a1=2
characteristic equation: r2−2r+2=0
the solution is r=1±j (where j=−1) r=2ej4π or 2e−j4π(τjθ=cosθ+jsinθ)
The general solution is
an=α1(2ej4π)+α2(2e−j4π)n
In general, if the roots of the characteristic equation are λejθ and λe−jθ, then the general solution to the HRR can be written as
an=β1λncosnθ+β2λnsinnθ
Nonhomogeneous Recurrence Relations
an−c1an−1−c2an−2−…−ckan−k=fn
fn is forcing sequence
k-th-order linear nonhomogeneous recurrence relation(NRR) with constant coefficients
or k-th-order linear nonhomogeneous difference equation(NDE) with constant coefficients.