Recurrence Relations
Recurrence Relations
Recurrence Relations
by
Introduction
an+2 = an+1 + an .
We get relation
an = 3an−1 , a0 = 1.
2an + 3an−1 = 2n ,
Theorem 1.
Let c1 and c2 be real numbers. Suppose that r 2 − c1 r − c2 = 0 have
two distinct roots r1 and r2 . Then the sequence {an } is a solution of the
recurrence relation an = c1 an−1 + c2 an−2 if and only if
an = α1 r1n + α2 r2n , n = 0, 1, 2, .., where α1 and α2 are constants.
Example 2.
What is the solution of the recurrence
relation an = an−1 + 2an−2 with a0 = 2 and a1 = 7?
a0 = 2 = α1 + α2 ,
and
a1 = 7 = 2α1 − α2 .
Solving these equations, we get α1 = 3 and α2 = −1. Therefore, the
solution of the given recurrence solution is
an = 3 × 2n − (−1)n .
Theorem 3.
Let c1 and c2 be real numbers with c2 6= 0. Suppose that r 2 − c1 r − c2 = 0
has only one root r0 which is repeated. Then the sequence {an } is a
solution of the recurrence relation an = c1 an−1 + c2 an−2 if and only if
an = α1 r0 n + α2 nr0 n , n = 0, 1, 2, .., where α1 and α2 are constants.
r 2 − 6r + 9 = 0.
an = 3n + n3n .
Example 5.
Solve the recurrence relation
an = an−1 + an−2
a0 = 0 = α1 + α2 ,
and √ ! √ !
1+ 5 1− 5
a1 = 1 = α1 + α2 .
2 2
Exercise.
Solve the following recurrence relations.
1. an + 5an−1 + 6an−2 = 0, a0 = 1, a1 = 2
2. an − 7an−1 + 10an−2 = 0, a0 = 0, a1 = 3
3. an − 13an−1 + 36an−2 = 0, a0 = 2, a1 = 1
Mixed Roots
12
Example 7.
Suppose that the roots of the characteristic equation of a
linear homogeneous recurrence relation are 2, 2, 2, 5, 5, and 9
. What is the form of the general solution?
Solution:
Exercise.
Solve the following recurrence relations
1. ar − 4ar −1 + 4ar −2 = 0, a0 = 1, a1 = 6
2. ar − 10ar −1 + 25ar −2 = 0, a0 = 2, a1 = 3
3. an − 8an−1 + 21an−2 − 18an−3 = 0
| Recurrence RelationsDr. Meera H. Chudasama
Linear Non-homogeneous Recurrence Relations
with Constant Coefficients 13
For example,
an = 3an−1 + 3n2 .
Theorem 8.
If {anp } is a particular solution of (3.1), then every solution of the form
{anp +anh }, where anh is solution of the associated homogeneous recurrence
relation
an = c1 an−1 + c2 an−2 + ... + ck an−k
is a general solution of (3.1).
Example 9.
Solve the recurrence relation an = 3an−1 + 2n, a1 = 3.
r − 3 = 0.
cn + d = 3(c(n − 1) + d) + 2n,
from which
(2c + 2)n + (2d − 3c) = 0n + 0.
We get
3
c = −1, d = − .
2
Hence
3
anp = −n − .
2
So
3
an = anh + anp = α × 3n − n − .
2
11 n 3
an = 3 −n− .
6 2
Example 10.
Solve the recurrence relation
an = 5an−1 − 6an−2 + 7n .
r 2 − 5r + 6 = 0.
anh = α1 3n + α2 2n ,
form which
c72 = 5c7 − 6c + 72 .
49
We obtain c = 20 . Hence
49 n
anp = 7
20
Finally, the general solution of the given recurrence relation is
49 n
an = anh + anp = α1 3n + α2 2n + 7 .
20
Exercise.
Solve the following recurrence relations
1. ar − 7ar −1 + 10ar −2 = 3r , a0 = 0, a1 = 1
2. ar + 6ar −1 + qar −2 = 3, a0 = 0, a1 = 1
3. ar + 5ar −1 + 6r −2 = 3r 2 − 2r + 1
Definition 12.
The generating function for the sequence a0 , a1 , a2 , ... of real numbers is
the infinite series
∞
X
G(x) = a0 + a1 x + a2 x 2 + ... = ak x k (4.1)
k =0
Note 4.1.
∞ 1
rk =
P
1. , |r | < 1
k =0 1−r
∞ 1
(−1)k r k =
P
2. , |r | < 1
k =0 1+r
Solution: Let
∞
X
G(x) = a0 + a1 x + a2 x 2 + ... = ak x k
k =0
We obtain
G(x) − a0 = 3xG(x).
Since a0 = 2,
G(x) − 3xG(x) = 2,
which yield
∞ ∞
2 X X
G(x) = =2 (3x)k = 2 3k x k .
1 − 3x
k =0 k =0
Hence a = 2 × 3n .
Example 14.
Solve the recurrence relation an = 8an−1 + 10n−1 , 23
n = 1, 2, 3, ... and a0 = 1, a1 = 9.
Solution: Let
∞
X
G(x) = a0 + a1 x + a2 x 2 + ... = ak x k
k =0
Exercise.
Solve the following recurrence relations.
1. an = 3an−1 + 2, a0 = 1
2. an = an−1 + an−2 , a1 = 2, a2 = 3
25
Thank you