One of the most famous recurrence relations occuring in all of mathematics is the sequence of numbers satisfying
A newly born pair of rabbits of opposite sexes is placed in an enclosure at the beginning of a year. Beginning with the second month, the female gives birth to a pair of rabbits of opposite sexes each month. Each new pair also gives birth to a pair of rabbits each month starting with their second month. Find the number of pairs of rabbits in the enclosure after one year.
If we define
to be the number of rabbits in the enclosure at the
beginning of month
, with a litttle thought we see that the terms
of the sequence
satisfy the Fibonacci recurrence relation.
This sequence appears in a most fantastic variety of applications,
perhaps the most familiar being patterns in nature, such as ratios of
leaves to turns around a stem or ratios of seed patterns. We pose the
problem of determining the
Fibonacci number. Obviously, one
could start with
and
and derive each
number in the sequence one at a time until the
number is
reached. Our goal will be to find the
number in the sequence
in a single step. We will solve the recurrence relation
using techniques from linear algebra.
We start with a standard trick for solving a difference equation that has order
. That is we group our initial equation with a system of
trivial
equations to form a system of
equations. In our case, the
difference equation is of order 2 so we add the single trivial
equation
. We now have the following system of
difference equations.
Notice that this system of equations can be transformed into the
matrix vector equation,
, where
Unfortunately, this equation still requires knowledge of the
term in the sequence to determine the
term in the
sequence. This is unless you notice that
. The
following computations should convince you of this fact.
So computing the
Fibonnaci number breaks down to computing
powers of
. Fortunately, the matrix
is diagonalizeable. To see this
we compute the eigenvalues of
by solving the characteristic equation.
![]() |
|||
The characteristic polynomial has two roots
For any value of
we would get
![]() |
![]() |
But since both
and
are roots of
, this would be
So a basis for the
-eigenspace is
.
And a basis for the
-eigenspace is
.
It follows that
![]() |
![]() |
||
![]() |
and so when computing
we get
If we define the fixed vector
and the following formula for
.
![]() |
|||
![]() |
|||
![]() |
Now recall that the
Fibonacci number is the second entry in
the vector
. It now follows from the product above that the
Fibonacci number is
What is surprising here is that the
number in the Fibonacci sequence
must be an integer. Fortunately, this formula does produce integer
values for each
. If we are clever, we can actual simplify the
computations in the formula a bit more.
See that
for any
, and
so the
Fibonacci number must actually be the integer that is
closest to
. Furthermore, now there is no
need to worry about round-off error in the computer computations.
Lets consider a few examples. The
Fibonacci number is the
closest integer to
It is worth noting that as
gets large, the terms
approach zero, and so as
gets very
large the ratio
must approach
. This number was known to the greeks as
the ``golden mean,'' or the ``golden ratio,'' and appears as a ratio
of lengths of the sides of many greek buildings, as a rectangle with
this ratio was believed to be the most aesthetically pleasing to the
eye. There are entire books dedicated to this subject for anybody
interested in further research.
Now that we have solved the problem, lets take a slightly different approach. The Fibonacci recurrence relation is actually a homogeneous linear recurrence relation as it can be arranged as
One method of solving linear homogeneous recurrence relations is to
look for a solution of the form
where
is some non-zero
number. So
satisfies the recurrence relation if and only if
satisfies the homogeneous equation
Thus,
and
What might seem disturbing at first is that neither of these values
for
produce a sequence that satisfies the familiar Fibonacci
sequence. In fact, neither choice for
appears to produce an
integer for any value of
. However, we simply need to notice that the
original homogeneous recurrence relation is linear, and so
any linear combination of these solutions will also satisfy the Fibonacci
recurrence relation. That is,
We now ask if there are values for
so that we satisfy the
initial conditions
and
. We have the following system
of linear equations in
and
:
| 0 | |||
![]() |
Row reduction gives us
It follows that
In fact, we can use this technique to give a formula for any sequence
satisfying the Fibonacci recurrence relation and having initial
conditions
and
. This follows since
Put differently, there is a unique solution set
for any
system of equations
![]() |
For example, the sequence
with terms satisfying the
Fibonacci recurrence relation
with initial
conditions
and
has the following formula for its terms:
We conclude these notes with a general theorem about solutions to linear
homogeneous recurrence relations.
| (1) |
| 0 | (2) |
| (3) |
Since
, none of the roots of (2) will be zero. So there
are exactly
, not necessarily distinct, roots
to (2).
Suppose that these roots are distinct. Then
Next suppose that we have the initial conditions
To choose appropriate constants
we solve the
following system of linear equations in
.
Since this is a system of
equations in
unknowns, there will be
a (unique) solution for all values
if and only if the
following matrix is invertible.
Fortunately, this matrix is an important matrix called a Vandermonde matrix, and it is well known (we shall not prove it here) that the determinant of this matrix is
Expanded, this determinant looks like
We have assumed that we have
distinct roots. Therefore, since
whenever
, this determinant is non-zero and
there is a unique solution set
for each set of
initial values as claimed. This completes the proof.
The solutions of homogeneous linear recurrence relations using this
technique obviously depends on finding distinct roots of polynomial
equations, which can be a difficult problem in its own right. Many
times when we can find
non-distinct roots we can employ techniques
similar to those used in solving differential equations. However, it
should be clear that this technique is not a fail safe. Many
recurrence relations must be solved using more sophisticated
techinques, such as creating generating functions, that we do not
discuss here.