Professional Documents
Culture Documents
MATH236
Semester 1, 2013
Introduction
Definition
A linear homogeneous recurrence relation of degree k with constant
coefficients is a recurrence relation of the form
Introduction
r k − c1 r k−1 − c2 r k−2 − · · · − ck = 0.
Theorem (Theorem 1)
Let c1 and c2 be real numbers. Suppose that r 2 − c1 r − c2 = 0 has 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
for n = 0, 1, · · · , where α1 and α2 are constants.
Example
Example
What is the solution of the recurrence relation an = an−1 + 2an−2 with
a0 = 2 and a1 = 7.
Proof.
The characteristic equation of the recurrence relation is r 2 − r − 2 = 0
Its roots are r1 = 2 and r2 = −1
Hence the sequence {an } is a solution to the recurrence relation if
and only if an = α1 2n + α2 (−1)n for some constants α1 and α2 .
From the initial conditions, it follows that a0 = 2 = α1 + α2 and
a1 = 7 = α1 · 2 + α2 · (−1)
Solving these equations, we have α1 = 3 and α2 = −1
So the solution is an = 3 · 2n − (−1)n .
Proof of Theorem 1
Proof of Theorem 1
C1 − C0 r 2 C0 r 1 − C1
α2 = C0 − α1 = C0 − =
r1 − r2 r1 − r2
Proof of Theorem 1
Example
Example
Find the explicit formula for the Fibonacci sequence
Proof.
Recall the the sequence of Fibonacci numbers satisfies the recurrence
relation fn = fn−1 + fn−2 with initial conditions f0 = 0 and f1 = 1.
The roots √
of the characteristic equation
√ r 2 − r − 1 = 0 are
r1 = (1 + 5)/2 and r2 = (1 − 5)/2
Theorem, the Fibonacci numbers are given by
√ √
fn = α1 (1 + 5)/2)n + α2 (1 − 5)/2)n ,
Example
Proof.
We have f0 = α1 √+ α2 = 0 and √
f1 = 1 = α1 (1 + 5)/2) + α2 (1 − 5)/2)
√ √
Solving these equations, we have α1 = 1/ 5 and α2 = −1/ 5
So the Fibonacci numbers are given by
√ √
1 1+ 5 n 1 1+ 5 n
fn = √ ( ) −√ ( )
5 2 5 2
Theorem (Theorem 2)
Let c1 and c2 be real numbers with c2 6= 0. Suppose that
r 2 − c1 r − c2 = 0 has only one root r0 . A sequence {an } is a solution of
the recurrence relation an = c1 an−1 + c2 an−2 if and only if
an = α1 r0n + α2 nr0n for n = 0, 1, · · · , where αi , i = 1, 2 are constants.
Example
Example
What is the solution of the recurrence relation
an = 6an−1 − 9an−2
Example
Proof.
The only root of r 2 − 6r + 9 = 0 is r0 = 3.
Hence, the solution to this recurrence relation is
an = α1 3n + α2 · n · 3n
an = 3n + n · 3n
Theorem (Theorem 3)
(p)
If {an } is a particular solution of the nonhomogeneous linear recurrence
relation with constant coefficients
Proof.
(p)
Because {an } is a particular solution of the nonhomogeneous linear
recurrence relation, we know that
(p) (p) (p) (p)
an = c1 an−1 + c2 an−2 + · · · + ck an−k + F (n).
Proof.
Subtracting the first of these two equations from the second shows
that
(p) (p) (p) (p)
bn − an = c1 (bn−1 − an−1 ) + c2 (bn−2 − an−2 ) + · · · + ck (bn−k − an−k ).
(p)
It follows that {bn − an } is a solution of the associated
(h)
homogeneous linear recurrence, say, {an }.
(p) (h)
Thus bn = an + an .
Example
Example
Find all solutions of the recurrence relation an = 3an−1 + 2n with a1 = 3.
Example
(p) (h) 3
an = an + an = −n − + α · 3n
2
where α is a constant
To find a solution with a1 = 3, let n = 1 in the formula we obtained
for the general solution
We find that 3 = −1 − 3/2 + 3α
Example
11
So α = 6 and
the solution is
3
an = −n − + α · 3n .
2
Example
Example
Find all solutions of the recurrence relation an = 5an−1 − 6an−2 + 7n .
an = α1 · 3n + α2 · 2n + (49/20)7n .
Theorem
Suppose that {an } satisfies the linear nonhomogeneous recurrence relation
Theorem (Cont.)
1 If s is not a root of the characteristic equation of the associated linear
homogeneous recurrence relation, then there is a particular solution of
the form
(pt nt + pt−1 nt−1 + · · · + p1 n + p0 )s n
2 If s is a root of the characteristic equation of the associated linear
homogeneous recurrence relation and its multiplicity is m, then there
is a particular solution of the form