Section 4.3 Linear Recurrence Relations
Subsection 4.3.1 Linear Recurrence Realtions
Consider a sequence where a few initial terms are given, and then each successive term is defined using the terms that preceded it. For instance, we might begin a sequence with \(\set{a_1,a_2,\ldots}=\set{1,2,\ldots}\) and then require \(a_n=3a_{n-1}-a_{n-2}\text{.}\) This establishes all of the terms that follow. For instance,
and in this way the sequence elements will all be determined: \(\set{1,2,5,13,34,\ldots}\text{.}\) Sequences such as this are of special interest, and motivate us to introduce vocabulary for referring to them.
Definition 4.3.1. Linear Recurrence Relation.
When the terms of a sequence \(\set{a_n}\) admit a relation of the form \(a_n=L(a_{n-1},\ldots,a_{n-k})\text{,}\) where \(k\) is fixed, and \(L\) is a linear function on \(k\) variables, we refer to the relation as a linear recurrence of depth \(k\text{.}\) The first several terms of the sequence may or may not respect the recurrence relation; but it is required that once \(n\) is large enough, the recurrence relation holds.
Subsection 4.3.2 Examples
Example 4.3.2. Honeybee Ancestors.
Male honeybees (also known as drones) hatch from unfertilized eggs, and so they have a mother but no father. Female honeybees (both queens and workers) hatch from fertilized eggs, and so each female honeybee has two parents (one of each sex). This leads to an interesting family tree for any single honeybee. If we consider a male, he only has one parent. That parent must have been female, so our male had two grandparents. As we continue to count, we will ignore any possibility for tangled family trees, which is admittedly unrealistic. Figure Figure 4.3.3 displays the bees family tree going back several generations.
If we define \(a_n\) to be the number of ancestors at level \(n\text{,}\) where level 1 has our drone's parent, level 2 has his grandparents, and so on, then we see in Figure Figure 4.3.3 the sequence \(\set{a_1,a_2,\ldots}=\set{1,2,3,5,8,\ldots}\text{.}\) Note that every bee, regardless of sex, has precisely one mother and precisely one grandfather. The bees at level \(n-1\) have their mother at level \(n\text{,}\) and the bees at level \(n-2\) have their grandfather at level \(n\text{.}\) Since this accounts for all of the bees at level \(n\text{,}\) partitioned according to sex, it tells us that
giving us a recurrence relation. The linear function \(L\) referred to in Definition Definition 4.3.1 is defined simply by \(L(x,y)=x+y\text{,}\) and we have \(a_n=L(a_{n-1},a_{n-2})\text{.}\)
Example 4.3.4. Elderberries.
A certain subspecies of elderberry tree produces its fruit in berry clusters. A branch that is “new wood” (that just sprouted the previous season) will produce one fruit cluster, and it will sprout one new branch. The following year, any “new wood” branches become “seasoned wood”, and produce three berry clusters and sprout two more branches. Finally, in the year that follows, any “seasoned wood” branches become “old wood”, and produce neither berry clusters nor sprout new branches.
If we start at year 1 with just a single branch of “new wood”, then on year \(n\text{,}\) how many berry clusters will we have? Some notation will help. In year \(n\text{,}\) let \(b_n\) represent the number of berry clusters, \(w_n\) be the number of “new wood” branches, and \(s_n\) be the number of “seasoned wood” branches. The description of how branches and berry clusters are formed tells us
and this in turn tells us that
Thus the number of berry clusters in year \(n\) satisfies the recurrence relation \(b_n=b_{n-1}+2b_{n-2}\text{.}\) The linear function \(L\) referred to in Definition Definition 4.3.1 is defined by \(L(x,y)=x+2y\text{,}\) and we have \(b_n=L(b_{n-1},b_{n-2})\text{.}\) The initial terms are \(\set{b_1,b_2,\ldots}=\set{1,4,\ldots}\text{.}\)
Well, we've seen a few examples of linear recurrence relations, but what does any of this have to do with linear algebra? Consider what would happen if you needed to know the hundredth term of a recursive sequence, knowing only the values of the first few terms and a recurrence relation. You could tediously compute away, calculating each term in the sequence until you reached the hundredth term. Fortunately, matrix diagonalization will provide us with a much more efficient technique.
Example 4.3.5. The Fibonacci Sequence.
The Fibonacci Sequence is a famous sequence with a simple linear recurrence relation. The sequence begins \(\set{f_1,f_2,\ldots}=\set{1,1,\ldots}\) and has the recurrence relation
(This is the same recurrence relation as with the bees in Example Example 4.3.2, but for the bees the initial terms of the sequence were \(\set{1,2,\ldots}\text{.}\)) This gives us the Fibonacci Sequence
which arises several places in nature and mathematics. For example, we can see these same values arising in the ancestor count of honeybees from Example Example 4.3.2.
We are setting out to find a simple formula for \(f_n\text{,}\) so that if needed, we could compute something like the hundredth Fibonacci number quickly and avoid calculating each value along the way. We casually make the observation that
Experience with linear algebra makes us realize that these two equations can be viewed as a single matrix equation:
So a pair of adjacent Fibonacci numbers \(\colvector{f_n\\f_{n-1}}\) can be obtained from multiplying the matrix \(A=\begin{bmatrix}1&1\\1&0\end{bmatrix}\) with the previous pair of adjacent Fibonacci numbers. This implies that
If we can diagonalize the matrix \(A\text{,}\) we will be able to take a great shortcut for evaluating the right hand side.
Diagonalizing \(A\text{,}\) we find
where \(G\) is the larger (positive) golden ratio \(\frac{1+\sqrt{5}}{2}\text{,}\) and \(g\) is the smaller (negative) golden ratio \(\frac{1-\sqrt{5}}{2}\text{,}\) and \(G\) and \(g\) are the eigenvalues of \(A\text{.}\)
Now let's return to the issue of finding the \(n\)th Fibonacci number. In the following, we will make use of the fact that \(1-g=G\text{.}\) We have
Thus we have found a fairly simple formula for the \(n\)th Fibonacci number:
We could stop here, but with this formula we can make one nice simplification. Since \(\left\vert g\right\vert<1\text{,}\) for large \(n\text{,}\) the term \(\frac{1}{\sqrt{5}}g^n\) in this formula is very small, and can be neglected if we round the other term to the nearest whole number. In fact we are so fortunate in this regard that we can make that simplification for all \(n\geq1\text{.}\) So we have an even simpler formula for the \(n\)th Fibonacci number:
Subsection 4.3.3 The general approach
Can we generalize what happened with the Fibonacci numbers in Example Example 4.3.5? We began with a recurrence relation
We considered a trivial additional equation
In general, we may need to consider more such trivial equations, and we can obtain the system of equations
which we interpret as a matrix equation
If we know the first \(k\) terms of the sequence, then we know the vector \(\vect{a}_{k}\text{,}\) and we can recursively apply equation (4.3.3) to get that
Generally, raising a matrix \(A\) to high powers would be difficult or time-consuming. But if we can diagonalize \(A\) first (or at least find its Jordan canonical form discussed in Section Section 3.3) it becomes fast and easy. For now let's assume that \(A\) is diagonalizable. If \(D\) is a diagonal matrix similar to \(A\text{,}\) having the eigenvalues of \(A\) for its entries, and \(A=PD\inverse{P}\text{,}\) then
There are two ways to proceed to find a formula for \(a_{n}\text{.}\) If we have an explicit diagonalization of \(A\) (meaning we explicitly know \(P\text{,}\) \(D\text{,}\) and \(\inverse{P}\)) then we can simply multiply the right hand side through, and the first element of the resulting vector gives a formula for \(a_{n}\text{.}\)
It may be difficult to explicitly diagonalize \(A\) though, since finding \(\inverse{P}\) can take time. If that's the case, we don't actually need to explicitly work out the right side of (4.3.4). We can just acknowledge that when all is said and done on the right side, the result will be a linear combination of the eigenvalues of \(A\) raised to the \(n\)th power. To find the coefficients of this linear combination, we can consider them as variables, and use the known initial values of the sequence to set up a system of equations that will determine the coefficients.
These considerations lead us to:
Theorem 4.3.6. Solutions to Linear Recurrence Relations.
If \(a_n=c_{n-1}a_{n-1}+\cdots+c_{n-k}a_{n-k}\) is a linear recurrence relation of depth \(k\text{,}\) let \(A\) be the matrix defined as
- If \(A=PJ\inverse{P}\text{,}\) then\begin{equation*} a_n=\begin{bmatrix}1&0&\cdots&0\end{bmatrix}PJ^{n-k}\inverse{P}\colvector{a_k\\a_{k-1}\\\vdots\\a_1}\text{.} \end{equation*}This is helpful if \(J\) is diagonal or in Jordan canonical form. Note that multiplication by \(\begin{bmatrix}1&0&\cdots&0\end{bmatrix}\) is just a way to extract the first element of the vector that follows.
- If \(A\) is diagonalizable with distinct eigenvalues \(\lambda_1,\ldots,\lambda_n\text{,}\) then \(A=PD\inverse{P}\) where \(D\) is the diagonal matrix \(\Delta(\lambda_1,\ldots,\lambda_n)\) and \(P\) is the row-permuted Vandermonde matrix\begin{equation*} P=\begin{bmatrix}\lambda_1^{n-1}&\lambda_2^{n-1}&\cdots&\lambda_n^{n-1}\\\lambda_1^{n-2}&\lambda_2^{n-2}&\cdots&\lambda_n^{n-2}\\\vdots&\vdots&\ddots&\vdots\\1&1&\cdots&1\end{bmatrix}\text{.} \end{equation*}Note that an explicit formula for the inverse of a Vandermonde matrix is known (see Section Section 5.1).
- If \(A\) is diagonalizable with distinct eigenvalues \(\lambda_1,\ldots,\lambda_n\text{,}\) then for some coefficients \(x_i\text{,}\)\begin{equation*} a_n=\sum_{i=1}^{n}x_i\lambda_i^n\text{.} \end{equation*}
Proof.
The first item has been proved already in the discussion leading to this theorem.
For the second item, we know from the general diagonalization technique that the \(j\)th column of \(P\) needs to be an eignevector for \(A\) with eigenvalue \(\lambda_j\text{.}\) To find such an eigenvector, we examine the equation
We already know this matrix has rank \(n-1\) since \(\lambda_j\) is an eigenvalue, and the bottom \(n-1\) rows are clearly linearly independent. So we can ignore the top row. Row reducing the remaining rows is then rather easy, and reveals that \(\vect{x}_j=\transpose{\begin{bmatrix}\lambda_j^{n-1}&\lambda_j^{n-2}&\cdots&1\end{bmatrix}}\text{.}\) This establishes the form of \(P\) specified in the claim.
Lastly, if \(J\) from the first item was diagonal with distinct eignenvalues as in the second item, and we were to multiply out the matrix product from the first item, we would have a linear combination of the powers of the eigenvalues. So \(a_n=\sum_{i=1}^{n}x_i\lambda_i^n\text{.}\)
Example 4.3.7. A Linear Recursion of Depth 3.
Suppose \(a_1=1\text{,}\) \(a_2=4\text{,}\) \(a_3=6\text{,}\) and \(a_n=5a_{n-1}-2a_{n-2}-8a_{n-3}\text{.}\) Let's find a formula for the general term of the sequence \(a_n\text{.}\)
We need to consider the matrix
While we could explicitly diagonalize this matrix, it might turn out to be a bit tedious since the matrix is \(3\times3\text{.}\) Instead we just find its eigenvalues: \(4,2,-1\text{.}\) The three distinct eigenvalues tell us that \(A\) is indeed diagonalizable, and then it follows from Theorem Theorem 4.3.6 that \(a_n=x_1(4^n)+x_2(2)^n+x_3(-1)^n\) for some as-yet unknown constants \(x_1,x_2,x_3\text{.}\) Considering \(n=1\text{,}\) \(n=2\text{,}\) and \(n=3\text{,}\) we have the system of equations
This system can be solved using row reduction, and yields \(x_1=0\text{,}\) \(x_2=\frac{5}{6}\text{,}\) and \(x_3=\frac{2}{3}\text{.}\) Therefore \(a_n=\frac{5}{6}2^{n}+\frac{2}{3}(-1)^{n}\text{.}\) (We should compute several terms of the sequence with this formula and compare to terms of the sequence that come from using its recurrence relation as a check that we made no mistakes.)
Exercises 4.3.4 Exercises
1.
Solve the recurrence relation \(b_n=2b_{n-1}+3b_{n-2}\) where \(b_1=1\) and \(b_2=2\text{.}\) Use your solution to find \(b_{20}\text{.}\)
We need to diagonalize the matrix \(\begin{bmatrix}2&3\\1&0\end{bmatrix}\text{.}\) One possible diagonalization is
This tells us that
So \(b_{20}=\frac{1}{4}\left(3^{20}-1\right)=3486784400\text{.}\)
2.
Solve the recurrence relation \(c_n=3c_{n-1}+c_{n-2}\) where \(c_1=0\) and \(c_2=2\text{.}\) Use your solution to find \(c_{20}\text{.}\)
We need to diagonalize the matrix \(\begin{bmatrix}3&1\\1&0\end{bmatrix}\text{.}\) Its eigenvalues are \(\lambda=\frac{3+\sqrt{13}}{2}\) and \(\mu=\frac{3-\sqrt{13}}{2}\text{,}\) and one possible diagonalization is
This tells us that
So \(c_{20}=\frac{2}{\sqrt{13}}\left(\left(\frac{3+\sqrt{13}}{2}\right)^{19}-\left(\frac{3-\sqrt{13}}{2}\right)^{19}\right)=4006458938\text{.}\)
3.
Solve the recurrence relation \(d_n=2d_{n-1}-5d_{n-2}\) where \(d_1=1\) and \(d_2=8\text{.}\) Use your solution to find \(d_{20}\text{.}\)
We need to diagonalize the matrix \(\begin{bmatrix}2&-5\\1&0\end{bmatrix}\text{.}\) Its eigenvalues are \(\lambda=1+2i\) and \(\mu=1-2i\text{,}\) and one possible diagonalization is
This tells us that
In the following, we use a trigonometric method to evaluate powers of complex numbers. There are other ways to evaluate such powers, but this way works well:
These exercises use the same recurrence relation that the Fibonacci numbers have. You can use the work from Example 4.3.5 to assist with your calculations.
4.
Solve the recurrence relation from Example Example 4.3.2 that gives the number of ancestors of level \(n\) for a male honeybee. How many great\(^{20}\) grandparents does a male honeybee have?
Since the recurrence relation is the same as for the Fibonacci numbers, but now we have a series with initial terms \(\set{a_1,a_2,\ldots}=\set{1,2,\ldots}\text{,}\) we can write
And so we have found:
We can use this to compute how many great\(^{20}\) grandparents a male honeybee has. Note that a great\(^{0}\) grandparent is already a level 2 ancestor, so we are looking for \(a_{22}\text{.}\)
So a male honeybee has 28657 ancestors at the 22nd level. That is, he has 28657 great\(^{20}\) grandparents.
5.
The Lucas numbers arise in nature for similar reasons to the Fibonacci numbers. They have the same recurrence relation \(\ell_n=\ell_{n-1}+\ell_{n-2}\text{,}\) but the initial terms are \(\set{\ell_1,\ell_2,\ldots}=\set{2,1,\ldots}\text{.}\) Find a formula for the \(n\)th Lucas number similar to the formula for the Fibonacci numbers given in (4.3.1).
Since the recurrence relation is the same as for the Fibonacci numbers, but now we have a series with initial terms \(\set{\ell_1,\ell_2,\ldots}=\set{2,1,\ldots}\text{,}\) we can write
And so we have found:
6.
Solve the recurrence relation from Example Example 4.3.4 that gives the number of fruit clusters on an elderberry branch after \(n\) years. How many berry clusters will a branch and its children be producing when the branch is \(6\) years old?
We have to solve the recurrence relation \(b_n=b_{n-1}+2b_{n-2}\) with \(\set{b_1,b_2,\ldots}=\set{1,4,\ldots}\text{.}\) We need to diagonalize the matrix \(\begin{bmatrix}1&2\\1&0\end{bmatrix}\text{.}\) One possible diagonalization is
This tells us that
So \(b_{6}=\frac{1}{3}\left(5(2)^{5}+2\right)=54\text{.}\) If the recurrence holds, there will be \(54\) berry clusters in the \(6\)th year.
7.
Solve the recurrence relation \(b_n=6b_{n-1}+b_{n-2}-30b_{n-3}\) where \(b_1=0\text{,}\) \(b_2=1\text{,}\) and \(b_3=2\text{.}\)
The associated matrix to this system is \(3\times3\text{,}\) and so an explicit diagonalization may be tedious. Instead, we use the last part of Theorem Theorem 4.3.6. We consider the matrix \(A=\begin{bmatrix}6&1&-30\\1&0&0\\0&1&0\end{bmatrix}\) and calculate its eigenvalues: \(5,3,-2\text{.}\) Since these are distinct, \(A\) is diagonalizable, and the second part of Theorem Theorem 4.3.6 tells us that \(b_n=x_1(5)^n+x_2(3)^n+x_3(-2)^n\text{.}\) The initial terms of the sequence \(\set{b_n}\) provide us with the system of equations:
This system can be solved using row reduction, yielding \(x_1=\frac{1}{70}\text{,}\) \(x_2=\frac{1}{30}\text{,}\) and \(x_3=\frac{3}{35}\text{.}\) So
8.
Solve the recurrence relation \(c_n=c_{n-1}+3c_{n-2}+c_{n-3}\) where \(c_1=1\text{,}\) \(c_2=1\text{,}\) and \(c_3=1\text{.}\)
The associated matrix to this system is \(3\times3\text{,}\) and so an explicit diagonalization may be tedious. Instead, we use the last part of Theorem Theorem 4.3.6. We consider the matrix \(A=\begin{bmatrix}1&3&1\\1&0&0\\0&1&0\end{bmatrix}\) and calculate its eigenvalues: \(1+\sqrt{2},1-\sqrt{2},-1\text{.}\) Since these are distinct, \(A\) is diagonalizable, and the second part of Theorem Theorem 4.3.6 tells us that \(c_n=x_1\left(1+\sqrt{2}\right)^n+x_2\left(1-\sqrt{2}\right)^n+x_3(-1)^n\text{.}\) The initial terms of the sequence \(\set{c_n}\) provide us with the system of equations:
This system can be solved using row reduction, yielding \(x_1=-2+\frac{3\sqrt{2}}{2}\text{,}\) \(x_2=-2-\frac{3\sqrt{2}}{2}\text{,}\) and \(x_3=1\text{.}\) So
9.
Solve the recurrence relation \(d_n=2d_{n-1}+d_{n-2}-d_{n-3}\) where \(d_1=2\text{,}\) \(d_2=1\text{,}\) and \(d_3=4\text{.}\) Warning: the characteristic polynomial for the matrix in this exercise does not have rational roots. Either find approximate roots, or use the Cardano/Tartaglia/del Ferro solution to cubic equations to find exact roots.
The associated matrix to this system is \(3\times3\text{.}\) We will use the explicit diagonalization provided by Theorem Theorem 4.3.6 and use a formula for inverting a Vandermonde matrix. (Alternatively, you could give up on finding an exact solution and work entirely with decimal approximations.) We consider the matrix \(A=\begin{bmatrix}2&1&-1\\1&0&0\\0&1&0\end{bmatrix}\) and calculate its eigenvalues using the Cardano/Tartaglia/del Ferro solution to cubic equations:
Since these are distinct, \(A\) is diagonalizable. Theorem Theorem 4.3.6 tells us that
Note that since the latter two eigenvalues have absolute value smaller than \(1\text{,}\) the corresponding terms in the formula for \(d_n\) are negligible when \(n\) is large. So for large \(n\text{,}\)
We can verify by inspection that this holds for \(n\geq4\text{.}\)
10.
The Tribonacci numbers have the first few terms \(\set{t_1,t_2,t_3,\ldots}=\set{1,1,2,\ldots}\) and satisfy the recursion \(t_n=t_{n-1}+t_{n-2}+t_{n-3}\text{.}\) Find a formula for the \(n\)th Tribonacci number.
The associated matrix to this system is \(3\times3\text{.}\) We will use the explicit diagonalization provided by Theorem Theorem 4.3.6 and use a formula for inverting a Vandermonde matrix. (Alternatively, you could give up on finding an exact solution and work entirely with decimal approximations.) We consider the matrix \(A=\begin{bmatrix}1&1&1\\1&0&0\\0&1&0\end{bmatrix}\) and calculate its eigenvalues using the Cardano/Tartaglia/del Ferro solution to cubic equations:
Since these are distinct, \(A\) is diagonalizable. Theorem Theorem 4.3.6 tells us that
Note that since the latter two eigenvalues have absolute value smaller than \(1\text{,}\) the corresponding terms in the formula for \(t_n\) are negligible when \(n\) is large. So for large \(n\text{,}\)
We can verify by inspection that this holds for \(n\geq1\text{.}\)
11.
A certain species of rat typically has a life span of just over one year, and females can birth a litter every three months. When a female is born, three months later her first litter will have four pups (two female and two male). Her three subsequent litters will each have six pups (three female and three male), and then she will have no more litters. When a ship laid anchor off the shore of a remote tropical island, eight very young rats of this type (four female and four male) jumped ship and swam to colonize the island. From that point on, every three months, more litters were born. This island has no predators, and for several years the rat population grew and had no constraints from food or space limitations.
- Use this information to formulate a linear recurrence relation for \(r_n\text{,}\) the number of female pups born in the \(n\)th litter. To be clear, \(r_1=8\text{,}\) corresponding to the \(8\) female pups born to the original four females three months after the colonization.
- If you have the right tools, solve the recurrence and find a formula for \(r_n\text{.}\) The associated matrix is \(4\times4\text{,}\) so it's not likely that you will solve this recurrence by hand. Only two of the four eigenvalues are real. You will probably need to use approximate eigenvalues and eigenvectors.
In year \(n\text{,}\) the previous litter's female rats will birth a litter that has two females. Each of the three previous generations will give birth to litters with three females. This tells us that
The associated matrix has characteristic polynomial \(t^4-2t^3-3t^2-3t-3\text{,}\) and its eigenvalues are
Since these are distinct, \(A\) is diagonalizable. Inverting the matrix \(P\) from Theorem Theorem 4.3.6 will be rather difficult here. The formula for the inverse of a Vandermonde matrix of dimension \(4\) or greater is difficult to apply. Instead, we relax the search for an exact solution to a search for an approximate solution, using decimal approximations. We'll do this with the last part of Theorem Theorem 4.3.6. The theorem tells us that
Using the first terms of the sequence \(\set{r_1,r_2,r_3,r_4,\ldots}=\set{8,28,92,304,\ldots}\text{,}\) and using decimal approximations, we have the system of equations
which can be solved using row reduction. Be careful when row reducing with approximate values. If at some stage, you find a value close to zero, it could be that the value should be zero, but the approximation has thrown it off by a small bit. The solution is approximately
Not all matrices are diagonalizable. This block of exercises addresses recurrence relations that lead to non-diagonalizable \(2\times2\) matrices.
12.
Solve the recurrence relation \(u_n=6u_{n-1}-9u_{n-2}\) with \(u_1=2\) and \(u_2=5\text{.}\) You will not be able to diagonalize the associated matrix to this recursion. However with the right change of basis matrix, you can express the matrix in Jordan canonical form (see Section Section 3.3). This will show the matrix is similar to a matrix of the form \(\begin{bmatrix}\lambda&1\\0&\lambda\end{bmatrix}\text{.}\) Although this is not diagonal, it is still easy to raise matrices like this to large powers.
We need to investigate the matrix \(A=\begin{bmatrix}6&-9\\1&0\end{bmatrix}\text{.}\) We find its characteristic polynomial to be \(x^2-6x+9\text{,}\) with \(3\) as a repeated eigenvalue. \(A\) can't be diagonalizable, or else it would be similar to \(3I\text{,}\) in which case it would have to equal \(3I\text{.}\) So \(A\) is similar to a matrix of the form \(\begin{bmatrix}3&1\\0&3\end{bmatrix}\text{.}\) There are many ways to explicitly realize this relationship, but one way is
Now we can apply Theorem Theorem 4.3.6:
13.
Since \(2\times2\) matrices are either diagonalizable over \(\complexes\) or similar to a matrix of the form \(\begin{bmatrix}\lambda&1\\0&\lambda\end{bmatrix}\text{,}\) we can explicitly solve a generic linear recursion of depth \(2\text{.}\) Let \(c_1, c_2, a_1, a_2\) be four real numbers.
- If \(\set{a_1,a_2,\ldots}\) are the first two terms to a sequence that satisfies the recursion \(a_n=c_1a_{n-1}+c_2a_{n-2}\text{,}\) and \(c_1^2+4c_2\neq0\text{,}\) solve the recursion. (Find a formula for \(a_n\) in terms of \(c_1, c_2, a_1, a_2\text{.}\))
- If \(\set{a_1,a_2,\ldots}\) are the first two terms to a sequence that satisfies the recursion \(a_n=c_1a_{n-1}+c_2a_{n-2}\text{,}\) and \(c_1^2+4c_2=0\text{,}\) solve the recursion. (Find a formula for \(a_n\) in terms of \(c_1, c_2, a_1, a_2\text{.}\))
-
The matrix \(\begin{bmatrix}c_1&c_2\\1&0\end{bmatrix}\) has eigenvalues \(\lambda=\frac{c_1+\sqrt{c_1^2+4c_2}}{2}\) and \(\mu=\frac{c_1-\sqrt{c_1^2+4c_2}}{2}\text{.}\) Since \(c_1^2+4c_2\neq0\text{,}\) the eigenvalues are distinct, and so \(A\) is diagonalizable. It will be convenient to let \(\sigma=\frac{1}{\sqrt{c_1^2+4c_2}}\text{.}\) Theorem Theorem 4.3.6 tells us that
\begin{align*} a_n&=\begin{bmatrix}1&0\end{bmatrix}\begin{bmatrix}\lambda&\mu\\1&1\end{bmatrix}\begin{bmatrix}\lambda&0\\0&\mu\end{bmatrix}^{n-2}\frac{1}{\sigma}\begin{bmatrix}1&-\mu\\-1&\lambda\end{bmatrix}\colvector{a_2\\a_1}\\ &=\frac{1}{\sigma}\begin{bmatrix}\lambda&\mu\end{bmatrix}\begin{bmatrix}\lambda^{n-2}&0\\0&\mu^{n-2}\end{bmatrix}\colvector{a_2-\mu a_1\\-a_2+\lambda a_1}\\ &=\frac{1}{\sigma}\begin{bmatrix}\lambda^{n-1}&\mu^{n-1}\end{bmatrix}\colvector{a_2-\mu a_1\\-a_2+\lambda a_1}\\ &=\frac{1}{\sigma}\left(\left(a_2-\mu a_1\right)\lambda^{n-1}+\left(-a_2+\lambda a_1\right)\mu^{n-1}\right)\text{.}\\ &=\frac{1}{\sqrt{c_1^2+4c_2}}\left(\left(a_2-\frac{c_1-\sqrt{c_1^2+4c_2}}{2}a_1\right)\left(\frac{c_1+\sqrt{c_1^2+4c_2}}{2}\right)^{n-1}\right.\\ &\phantom{{}={}}+\left.\left(-a_2+\frac{c_1+\sqrt{c_1^2+4c_2}}{2}a_1\right)\left(\frac{c_1-\sqrt{c_1^2+4c_2}}{2}\right)^{n-1}\right)\text{.} \end{align*} -
The matrix \(\begin{bmatrix}c_1&c_2\\1&0\end{bmatrix}\) has only one eigenvalue, \(\lambda=\frac{c_1}{2}\text{,}\) since \(c_1^2+4c_2=0\text{.}\) \(A\) cannot be diagonalizable, since if it were, it would be similar to a scalar matrix and therefore would have to be a scalar matrix. So \(A\) is similar to the matrix \(\begin{bmatrix}\lambda&1\\0&\lambda\end{bmatrix}\text{.}\) One explicit realization of this similarity is given by
\begin{equation*} \begin{bmatrix}c_1&c_2\\1&0\end{bmatrix}=\begin{bmatrix}\lambda&1+\lambda\\1&1\end{bmatrix}\begin{bmatrix}\lambda&1\\0&\lambda\end{bmatrix}\begin{bmatrix}-1&1+\lambda\\1&\lambda\end{bmatrix}\text{.} \end{equation*}Theorem Theorem 4.3.6 tells us that
\begin{align*} u_n&=\begin{bmatrix}1&0\end{bmatrix}\begin{bmatrix}\lambda&1+\lambda\\1&1\end{bmatrix}\begin{bmatrix}\lambda&1\\0&\lambda\end{bmatrix}^{n-2}\begin{bmatrix}-1&1+\lambda\\1&\lambda\end{bmatrix}\colvector{a_2\\a_1}\\ &=\begin{bmatrix}\lambda&1+\lambda\end{bmatrix}\begin{bmatrix}\lambda^{n-2}&(n-2)\lambda^{n-3}\\0&\lambda^{n-2}\end{bmatrix}\colvector{-a_2+\left(1+\lambda\right)a_1\\a_2+\lambda a_1}\\ &=\begin{bmatrix}\lambda^{n-1}&(n-2)\lambda^{n-2}+\left(1+\lambda\right)\lambda^{n-2}\end{bmatrix}\colvector{-a_2+\left(1+\lambda\right)a_1\\a_2+\lambda a_1}\\ &=\left(-a_2+\left(1+\lambda\right)a_1\right)\lambda^{n-1}+\left(a_2+\lambda a_1\right)\left(n-1+\lambda\right)\lambda^{n-2}\text{.}\\ &=\left(-a_2+a_1+\frac{c_1}{2}a_1\right)\left(\frac{c_1}{2}\right)^{n-1}+\left(a_2+\frac{c_1}{2}a_1\right)\left(n-1+\frac{c_1}{2}\right)\left(\frac{c_1}{2}\right)^{n-2}\text{.} \end{align*}
These exercises make use of the formula in Equation (4.3.1). They don't necessarily require linear algebra, but since we found that formula, we might as well have some fun with it. These exercises may require knowledge of geometric sums and series.
14.
Encode the Fibonacci numbers into decimals and add them in the following way:
What is the sum? (The answer can be expressed as a certain rational number.)
We have been asked to find the value of \(\sum_{n=1}^{\infty}\frac{f_n}{10^n}\text{.}\)
15.
Find the limit of the ratio of two consecutive Fibonacci numbers:
16.
Show that for the Fibonacci numbers \(\set{f_n}\text{,}\)