slides5_8
slides5_8
ak = Aak−1 + Bak−2
for all integers k greater than some fixed integer, where A and B are fixed
real numbers with B 6= 0.
ak = Aak−1 + Bak−2
for all integers k greater than some fixed integer, where A and B are fixed
real numbers with B 6= 0.
Examples
Which of the following examples are second-order linear homogeneous
recurrence relations?
1 ak = 3ak−1 + 4ak−2 .
2 ak = 3ak−1 + 4ak−3 .
3 ak = 4ak−2 . (What about ak = 3ak−1 ?)
4 2
ak = 3ak−1 + 4ak−2 .
5.8 Second-Order Linear Homogeneous Recurrence Relations with Constant Coefficients
2/5
Finding explicit formulas for second-order relations
Fact
We are looking for an explicit formula of the form an = t n for some
number t.
Fact
We are looking for an explicit formula of the form an = t n for some
number t.
Theorem
A sequence an = t n satisfies the second-order linear homogeneous
recurrence relation ak = Aak−1 + Bak−2 iff
t 2 − At − B = 0.
Fact
If the equation t 2 − At − B = 0 has two distinct roots r and s, then an
explicit formula for an is given by
an = Cr n + Ds n ,
where C and D are the numbers whose values are determined by the
values a0 and a1 .
Example
Find all sequences that satisfy relation ak = ak−1 + 2ak−2 for all integers
k ≥ 2 and have the form 1, t, t 2 , . . . , where t is nonzero. Then, find a
sequence that also satisfies the initial conditions a0 = 1 and a1 = 8.
Example
Find all the sequences that satisfy an = an−1 + an−2 and have the form
1, t, t 2 , . . . . Then, find an explicit solution for the Fibonacci sequence that
satisfies a0 = a1 = 1.
Fact
If the equation t 2 − At − B = 0 has only one root r , then an explicit
formula for an is given by
an = Cr n + Dnr n ,
where C and D are the numbers whose values are determined by the
values a0 and a1 .
Example
Find all sequences that satisfy relation ak = 4ak−1 − 4ak−2 for all integers
k ≥ 2 and have the form 1, t, t 2 , . . . , where t is nonzero. Then, find a
sequence that also satisfies the initial conditions a0 = 1 and a1 = 8.