Professional Documents
Culture Documents
Chapter8 - È Å Æ Æ
Chapter8 - È Å Æ Æ
Relations
Section 8.2
Relations
Definition: A linear homogeneous recurrence relation of degree
k with constant coefficients is a recurrence relation of the form
an = c1an−1 + c2an−2 + ….. + ck an−k , where c1, c2, ….,ck are real
numbers, and ck ≠ 0
• it is linear because the right-hand side is a sum of the previous terms of
the sequence each multiplied by a function of n.
an an 1 a 2 n 2 not linear
H n 2 H n 1 1 not homogeneous
Recurrence Relations
The basic approach is to look for solutions of the form
an = rn, where r is a constant.
Note that an = rn is a solution to the recurrence relation
an c1an 1 c2 an 2 ck an k if and only if
r n c1r n 1 c2 r n 2 ck rn k .
Algebraic manipulation yields the characteristic equation:
r𝑟k 𝑘−c1r𝑐1k 𝑟1 𝑘−1
c2 r−k 𝑐22𝑟 𝑘−2 −
ck ⋯ 𝑟 − 𝑐𝑘 = 0
−ck𝑐𝑘−1
1r ?
The sequence {an} with an = rn is a solution if and only if r is a
solution to the characteristic equation.
The solutions to the characteristic equation are called the
characteristic roots of the recurrence relation. The roots are used
to give an explicit formula for all the solutions of the recurrence
relation.
© 2019 McGraw-Hill Education
Solving Linear Homogeneous Th.1, p.542
an r r
1
n
2 2
n
Using Theorem 1
Example: What is the solution to the recurrence relation
an = an−1 + 2an−2 with a0 = 2 and a1 = 7?
Solution: The characteristic equation is r2 − r − 2 = 0.
Its roots are r = 2 and r = −1 . Therefore, {an} is a solution to
the recurrence relation if and
only if an = α12n + α2(−1)n, for some constants α1 and α2.
To find the constants α1 and α2, note that
a0 = 2 = α1 + α2 and a1 = 7 = α12 + α2(−1).
Solving these equations, we find that α1 = 3 and α2 = −1.
Hence, the solution is the sequence {an} with an = 3∙2n − (−1)n.
© 2019 McGraw-Hill Education
An Explicit Formula for the Fibonacci Ex.4, p.543
Numbers 1
Therefore by Theorem 1
n n
1 5 1 5
f n 1 2
2
2
Root
Theorem 2: Let c1 and c2 be real numbers with
c2 ≠ 0. Suppose that r2 – c1r – c2 = 0 has one
repeated root r0. Then the sequence {an} is a
solution to the recurrence relation an = c1an−1 +
c2an−2 if and only if
an r 2 nr
0
n
0
n
Using Theorem 2
Example: What is the solution to the recurrence relation
an = 6an−1 − 9an−2 with a0 = 1 and a1 = 6?
Solution: The characteristic equation is r2 − 6r + 9 = 0.
The only root is r = 3. Therefore, {an} is a solution to the
recurrence relation if and only if
an = α13n + α2n(3)n
where α1 and α2 are constants.
To find the constants α1 and α2, note that
a0 = 1 = α1 and a1 = 6 = α1 ∙ 3 + α2 ∙3.
Solving, we find that α1 = 1 and α2 = 1 .
Hence,
an = 3n + n3n .
© 2019 McGraw-Hill Education
Multiplicity Greater than Two
Example: What is the solution to the recurrence relation
an = 6an−1 - 12an−2 + 8an−3 with a0 = a1 = a2 = 4?
Solution: The characteristic equation is 𝑟 − 2 3 = 0.
Let 𝑎𝑛 = 𝛼1 2𝑛 + 𝛼2 𝑛2𝑛 + 𝛼3 𝑛2 2𝑛 = 2𝑛 𝛼1 + 𝛼2 𝑛 + 𝛼3 𝑛2 .
𝑛 = 0: 4 = 𝛼1 + 0 + 0 𝛼1 = 4
൞ 𝑛 = 1: 4 = 2𝛼1 + 2𝛼2 + 2𝛼3 ⇒ ቐ −2 = 𝛼2 + 𝛼3
𝑛 = 2: 4 = 4𝛼1 + 8𝛼2 + 16𝛼3 −3 = 2𝛼2 + 4𝛼3
𝛼1 = 4
𝑎3 = 6 ⋅ 4 − 12 ⋅ 4 + 8 ⋅ 4 = 8
5 5 1
𝛼2 = − 23 4 − ⋅ 3 ⋅ + ⋅ 32 = 8 ⋅ 1 = 8
⇒ 2 2 2
1
𝛼3 =
2
© 2019 McGraw-Hill Education
Multiplicity Greater than Two
Example: What is the solution to the recurrence relation
an = 3an−1 - 3an−2 + an−3 with a0 = 0, a1 = 3, a2 = 10?
Solution: The characteristic equation is 𝑟 − 1 3 = 0.
Let 𝑎𝑛 = 𝛼1 ⋅ 1𝑛 + 𝛼2 𝑛 ⋅ 1𝑛 + 𝛼3 𝑛2 ⋅ 1𝑛 = 𝛼1 + 𝛼2 𝑛 + 𝛼3 𝑛2 .
𝑛 = 0: 0 = 𝛼1 + 0 + 0 𝛼1 = 0 𝛼1 = 0
൞ 𝑛 = 1: 3 = 𝛼1 + 𝛼2 + 𝛼3 ⇒ ቐ 3 = 𝛼2 + 𝛼3 ⇒ ቐ𝛼2 = 1
𝑛 = 2: 10 = 𝛼1 + 2𝛼2 + 4𝛼3 10 = 2𝛼2 + 4𝛼3 𝛼3 = 2
𝑎3 = 3 ⋅ 10 − 3 ⋅ 3 + 0 = 21
3 + 2 ⋅ 32 = 21
Corollary:
cos 𝑥 − 𝑖 sin 𝑥 𝑛 = cos −𝑛𝑥 + 𝑖 sin −𝑛𝑥 = cos 𝑛𝑥 − 𝑖 sin 𝑛𝑥
𝑝
Case 2: 𝐹 𝑛 = 𝑝 ⋅ 𝑏 𝑛 ⇒ 𝑎𝑛 = 𝑑 ⋅ 𝑏 𝑛
If the characteristic roots contain 𝑠 𝑏’s, then
𝑝
𝑎𝑛 = 𝑏 𝑛 ⋅ 𝑛 𝑠
𝑝
Case 3: 𝐹 𝑛 = sin / cos functions ⇒ 𝑎𝑛 = 𝑑0 sin 𝑛𝜃 + 𝑑1 cos 𝑛𝜃
0 11 0 16 𝑎1 = −2 ⋅ 3 + 1 + 3 = −2
𝛼 ⋅ −2 + + =3⇒𝛼= 16 11 1
9 3 9 1
⋅ −2 + + = −2
9 9 3
19 100
𝑎2 = 4 ⋅ − 4 ⋅ 1 + 1 + 2 22 =
3 3
2 2 23 100
2 ⋅ 1+2+2 + =
6 3
𝐻𝑛 = 𝛼2𝑛 − 1, 𝐻1 = 𝛼21 − 1 = 1 ⇒ 𝛼 = 1