2.4. Homogeneous Linear Difference Equations with Constant Coefficients#
Here we focus on homogeneous linear difference equations with constant coefficients,
where \(a_p~(p=0,1,2,\ldots,k)\) are a given set of \(k+1\) constants, with \(a_0 \neq 0\) and \(a_k=1\).
Using the shift operator \(\E\), Eq. (2.12) can be written as
where \(\L (\E)\) is the operator function
Definition 2.10 (Characteristic Equation)
The characteristic equation associated with Eq. (2.12) or (2.13) is
The characteristic equation is also called auxiliary equation.
Note
Note: We can replace the shift operator \(\E\) with \(z\) in Eq. (2.14) to obtain the characteristic equation. \(\L (z)\) is a \(k\)th-degree polynomial and thus has \(k\) roots \(z_p~ (p=1,2,3,\ldots,k)\).
Theorem 2.2
Let \(z_p~(p=1,2,3,\ldots,k)\) be any solution to the characteristic equation (2.15), then
is a solution to the homogeneous equation (2.12).
Proof (click to show)
Substituting \(\phi_n=z_p^n\) for \(y_n\) into Eq. (2.13), we get
Theorem 2.3
Assume the \(k\) roots of the characteristic equation (2.15) are distinct, then a fundamental set of solutions is
An immediate consequence of this theorem, for this particular case, is that the general solution to the homogeneous equation (2.12) is
where the constants \(c_p~(p=1,2,\ldots,k)\) are arbitrary.
Note: There will be a coursework question asking you to prove this theorem.
2.4.1. First-order Difference Equations#
Find the solution to
Solution:
From the equation, we get
so
Using the shift operator \(\E\), write the equation into
we get the characteristic equation
and it has only one root \(z=a\). So the general solution is
Using the initial condition, we get
2.4.2. Second-order Difference Equations#
Find the solution to
Solution
Substituting \(y_n = z^n\) into the equation, we get
so
obviously the characteristic equation is
Note
To obtain the characteristic equation, we can also firstly write the difference equation into the \(\E\) operator form
replacing \(\E\) with \(z\) gives the characteristic equation
and we get
Case 1: Two distinct real solutions;
Case 2: Two identical real solutions;
Case 3: Two complex conjugate solutions.
Case (1) Two different real solutions: \(z_1 \neq z_2\) and \(z_{1,2}\in \mathbb{R}\):
The general solution is
Example 2.4
Find the general solution to
Solution
The characteristic equation is
using factorisation, we get
and we get two different real solutions
So the general solution is
Case (2) Two repeated real solutions: \(z_1 = z_2 = z \in \mathbb{R}\):
The general solution is
Example 2.5
Find the general solution to
Solution
The characteristic equation is
so
and the general solution is
Case (3) Two conjugate complex solutions: \(z_{1,2}=\alpha\pm \i \beta \in \mathbb{C}\), \(\i=\sqrt{-1}\):
The general solution is
where \(r=\sqrt{\alpha^2+\beta^2}\), \(\theta=\tan^{-1}\left(\dfrac{\beta}{\alpha}\right)\).
Example 2.6
Solution
The characteristic equation is
so
and
therefore the general solution is
2.4.3. Higher-order Difference Equations#
For a \(k\)-th order difference equation
its characteristic equation
has \(k\) roots \(z_p~(p=1,2,3,\ldots,k)\).
Case (1) \(k\) distinct real roots: \(z_1 \neq z_2 \neq \ldots \neq z_k \in \mathbb{R}\)
The general solution to the difference equation is
Case (2) \(k\) repeated real roots: \(z_1 = z_2 = \ldots = z_k = z \in \mathbb{R}\)
The general solution to the difference equation is
Case (3) \(m\)-pair (\(k=2m\)) distinct complex conjugate roots:
The general solution to the difference equation is
Case (4) \(m\)-pair (\(k=2m\)) repeated complex conjugate roots
The general solution to the difference equation is
Example 2.7
If the roots of a characteristic equation are
find the general solution to the corresponding difference equation.
Solution
so the general solution is
Note
If a difference equation with constant coefficients is NOT homogeneous
then we need to do a bit extra work to find the general solution to the equation. This is beyond the scope of our ODEs unit, so we will not cover it. Student interested in solving non-homogeneous difference equations can read
Aliakbar Montazer Haghighi and Dimitar P. Mishev, 2013, Difference and differential equations with applications in queueing theory (Chapter 4, Be careful of errors in model solutions).