Section 4 promised that diagonalization is a tool for
computation, and the Fibonacci numbers gave a first
taste. This section collects three situations in which a
quantity evolves in discrete steps by a fixed linear
rule: a vector recurrence , a scalar recurrence such as , and a system that moves at random between
finitely many states. In each case the state after steps is a matrix power
applied to the starting state, and the eigenvalues
decide what happens in the long run. We use only the
explicit formula and limits of sequences of numbers,
one entry at a time.
Vector
recurrences
A linear recurrence of first order
is a rule for , with fixed and a starting vector . By
induction on , the
unique sequence obeying the rule is . The question is how to see this
power, and diagonalization answers it by changing to
coordinates in which acts coordinate by
coordinate.
Theorem
9.11.1 (Solving a Diagonalizable
Recurrence)
Let be diagonalizable, with , , and let be the columns of . Let , and
let , so that . Then the sequence defined by
is
Proof. By induction on , : this holds for since , and . By
Theorem 9.4.3, with
. Now , and by Theorem 0.9.3, times this vector is
. Finally,
says , by the same result.
In words: expand the starting vector in a basis of
eigenvectors; each coordinate is then multiplied by its
own eigenvalue at every step, independently of the
others. Over or
, where absolute
values are available, the long-run behavior is visible
at once. Terms with die
out, terms with grow, and the largest with wins. The
worked Fibonacci example (Example (A Closed Formula for the Fibonacci Numbers))
is the case .
Scalar
recurrences and companion matrices
A recurrence such as involves one number sequence but several
previous terms. The trick of Example (A Closed Formula for the Fibonacci Numbers)
turns it into a vector recurrence: remember the last few
terms as one vector.
Let and
, and consider sequences in
with Such a sequence is determined by its
initial values ,
because
computes each later term from the before it. The
polynomial is called the characteristic
polynomial of the recurrence; the name is
justified below. Put . Then says exactly , where the first rows shift the window by one, and the last
row is
solved for .
For , is the transpose of
the companion matrix of Exercise (C1: Companion matrices),
so by Exercise (B2: Transpose)
and Exercise (C1: Companion matrices)
(for , and ).
The eigenvalues of are the roots of .
Theorem
9.11.2 (Scalar Recurrences with Distinct
Roots)
Let ,
, and suppose has
distinct roots . Then a sequence in
satisfies if and only if
there are with In that case are uniquely determined by the
initial values .
Idea. Why powers of the roots? A
geometric sequence satisfies exactly when ,
so the roots of
give solutions.
To see that there are no others, use the matrix : its eigenvector for
is the
window of the geometric sequence,
these eigenvectors form an invertible Vandermonde
matrix, and Theorem 9.11.1 does
the rest.
Proof. For each
and , . If , then the left side of is ,
after regrouping the finite sums.
Let satisfy
, and let
and
be as above, so
. For each , let . Then
: for , entry of is entry
of , which is
; and the last entry is
.
Let be the
matrix with columns . Its -entry is , so in the notation of Theorem 7.8.1, and
is invertible,
since the
are distinct: by Theorem 7.4.5 and Theorem 7.8.1, and Theorem 7.5.2
applies. The columns of are ,
which are the columns of , so .
By Theorem 9.11.1, with
, The first entry of is , and the first entry
of each
is , so .
For uniqueness, suppose for all . Taking gives
, so is determined by the initial
values.
So solving a recurrence with distinct roots comes
down to three steps: find the roots of , write the general form
, and fit to the
initial values by solving a Vandermonde system.
Example
(A Third-Order Recurrence)
Find a formula for the sequence with , , and
Solution. In the form , , so . Grouping, , with the distinct roots . The window
matrix is with eigenvectors , , ; for instance
.
By Theorem 9.11.2, . The initial values give the Vandermonde
system Subtracting the first equation from the third
gives , so
. Then and , so . Hence
Check. The recurrence gives and ; the formula gives and . For
large , : the root
of largest absolute value dominates.
Repeated roots. When has a repeated root,
is not
diagonalizable: for a root , every
eigenvector of
satisfies , so it is a multiple of , and
whatever is. The
general answer involves terms , and it follows from the Jordan canonical
form of Chapter 10. The case can be done by hand.
Example
(A Repeated Root)
Over , find
all sequences with for every .
Solution. Here , and the window matrix is . It is not
diagonalizable, since has rank , so .
But
satisfies Claim:
for all .
For both
sides are . If it
holds for , then,
since
and ,
Now with ,
and is the
first entry. Row
of is , so So the solutions are exactly the sequences
with : every solution has this form with
, , and
every such sequence is the solution with , . For
example, ,
gives , and
indeed . The new term is the footprint of
the missing eigenvector, just as the entry was for in Section 4.
Stochastic
matrices
Now a system that moves at random. A shared bicycle
is parked each night at one of a few stations; a machine
is either working or under repair. We do not know the
state for sure, but we know the probability of each
state, and a fixed table of probabilities for moving
from one state to another in one step.
Take states . Record the probabilities of the states at
step as a column
, and let be the probability
of moving to state in one step, given that
the system is in state . The probability of
being in state at
step is the
sum over the previous state of “was in ” times “moved from
to ”, that is, . So : a linear recurrence. The matrix
has two
features: its entries are probabilities, and from each
state the system
must go somewhere, so column adds up to .
A stochastic matrix is a table of transition
probabilities, one column for each starting
state.
Definition
9.11.1 (Stochastic Matrix, Probability
Vector)
Let .
- (a) A vector is a
probability vector if for every and .
- (b) A matrix is
stochastic if every column of is a probability
vector: for all , and
for every .
In words: the entries are nonnegative and each
column sums to . With , the column condition reads , and
says that the entries of add up to .
Examples.
- :
columns and are probability vectors.
- Degenerate cases. is stochastic: every
state stays put. The matrix is the only stochastic
matrix. Every permutation matrix is
stochastic, since each column is a standard basis
vector; it moves the system deterministically.
- : the columns sum to , and all entries
are nonnegative.
Nonexample by minimal change.
Transpose the first example: still has
nonnegative entries, and its rows sum
to , but its first
column sums to . It fails the
column condition. Likewise has columns summing
to but a negative
entry.
Why this convention. Many books
write probability vectors as rows and
multiply on the left, ; their “stochastic” matrices have rows
summing to , and
they are the transposes of ours. We keep column vectors
and , in line with the rest of the
book, so our stochastic matrices are
column-stochastic. Translating between
the conventions is a transpose, which changes neither
eigenvalues nor their algebraic multiplicities (Proposition 9.10.5).
The first properties follow from .
Proposition
9.11.3 (Basic Properties of Stochastic
Matrices)
Let be stochastic and a
probability vector. Then:
- (a) is a
probability vector;
- (b) is stochastic, and
so is for
every ;
- (c) is a left eigenvector
of for the
eigenvalue ; in
particular .
Proof.
(a) Each entry
is a sum of products of nonnegative
numbers, so it is nonnegative. By associativity, .
(b) By Theorem 0.9.2, column
of is , where is column
of , a probability vector.
By (a), is a
probability vector, so is stochastic. By induction on , is stochastic: is, and .
(c) with
is
Definition 9.10.1 with
, and Proposition 9.10.5
gives .
Warning. The all-ones
vector is a left eigenvector, not a right one.
For ,
. The right eigenvectors for are the multiples of
, and they
carry the interesting information: the long-run
probabilities. Only when the rows also
sum to is a right
eigenvector.
Markov
chains
Definition
9.11.2 (Markov Chain, Steady State)
Let be stochastic. The Markov
chain with transition matrix
and initial
probability vector is the
sequence of probability vectors , that is, . A steady state
of is a
probability vector with .
Each
is a probability vector by Proposition 9.11.3. A
steady state is a right eigenvector for the eigenvalue
, scaled so that
its entries add up to and required to have
nonnegative entries; if the chain starts there, it stays
there.
To talk about the long run we need limits, and we use
the simplest kind. A sequence of complex matrices converges entrywise to
if, for every
position ,
the number sequence converges to
. We use
four facts about sequences of complex numbers from
calculus: sums and constant multiples of convergent
sequences converge to the sums and multiples of the
limits;
if and only if ; for real ; and a convergent sequence of real
numbers has a
real limit .
In particular, if , then (Theorem 0.6.2), so
.
Example
(A Two-State Chain)
A machine is either working (state ) or under repair (state
) each day. A
working machine is still working the next day with
probability ; a
machine under repair is back to work the next day with
probability . So
the transition matrix is Find , its entrywise
limit, and the long-run probability that the machine is
working, if it is working on day .
Solution. Eigenvalues.
and
, so, by the formula (the examples after Definition 7.10.1),
. The eigenvalue was guaranteed by Proposition 9.11.3.
Eigenvectors. gives , eigenvector . gives , eigenvector . The eigenvalues
are distinct, so using Theorem 0.9.8 with
.
Powers. By Theorem 9.4.3, writing
, Check: for , and ;
each column of
sums to , as Proposition 9.11.3
requires.
The limit. Since , , so entrywise
Starting from ,
. In the long run the
machine works on two days out of three. The limit does
not depend on the start: for any probability vector
, . The vector is the steady state, the eigenvector
scaled to
sum .
The example shows the general mechanism. The
eigenvalue
survives in ,
all others fade, and the surviving rank-one piece is
(right eigenvector for ) times (left
eigenvector for ),
which for a stochastic matrix is the steady state times
.
Theorem
9.11.4 (Long-Run Behavior of a Diagonalizable
Markov Chain)
Let , , be stochastic. Suppose that is diagonalizable over
, that , and that
every other eigenvalue of has .
Then:
- (a) has exactly one steady
state ;
- (b)
entrywise as ;
- (c) for every
probability vector , the Markov
chain converges entrywise to .
Idea. Use the expansion of Section
10. The terms with tend
to , which leaves
the single term for . Its left
eigenvector must be a
multiple of ,
because the left eigenvectors for form a line and is one of them.
Rescaling turns
into ,
and the nonnegativity of comes for free
as a limit of nonnegative entries.
Proof. Since is diagonalizable over
, there are an
invertible and with . A
diagonal matrix is upper triangular, so each eigenvalue
occurs on the diagonal of as often as its
algebraic multiplicity (Theorem 9.7.4 (b)); in
particular occurs
exactly once, because . Permuting
the columns of
and the diagonal entries of together leaves
intact, so we may assume , and then
for by
hypothesis. Let be the columns
of and the rows of
. By Proposition 9.10.7,
for every , Each entry of the sum is for fixed complex numbers
, and for
. Hence
entrywise.
The shape of . By Proposition 9.10.7,
is a
left eigenvector for , and so is (Proposition 9.11.3).
Both lie in (Proposition 9.10.5
(a)), which has dimension by Proposition 9.10.5 (b)
and Theorem 9.3.1. Since
,
for some .
Put . Then , , and by Proposition 9.10.7
(b).
is
a steady state. Column of is
. It is the
limit of column
of , and is stochastic (Proposition 9.11.3),
so every entry of is a limit of
real numbers ,
hence real and . With , is a probability
vector, and .
Uniqueness. If is a steady
state, then , a subspace of of dimension that
contains . So for
some , and
. Hence . This
proves (a) and (b).
- (c) Entry of is , which by (b)
converges to .
In practice: find the eigenvalues, check the
hypotheses, and compute by solving and scaling. Then (c) gives the long
run without computing at all.
Example
(Bicycles at Three Stations)
A shared bicycle is parked each night at station
, , or . The transition matrix
is for instance a bicycle at station stays there with
probability and
never goes to station in one night. Find
, its limit,
and the long-run distribution of the bicycle.
Solution. Eigenvectors. We
check three candidates: So are eigenvalues, with eigenvectors
, , .
A matrix
has at most three eigenvalues (Corollary 9.2.3), so
these are all; they are distinct, so is diagonalizable (Corollary 9.4.2) and
. As a
check, . The hypotheses of Theorem 9.11.4
hold.
The expansion. With , whose determinant is , as multiplying out confirms.
The first row is , a multiple
of as the
proof of the theorem predicts. By Proposition 9.10.7,
For example, the -entry of is , which is for and for , matching .
The limit. As , and , so Wherever the bicycle starts, in the long run
it is at station ,
, with probabilities
. Directly, and .
The slowest-fading term is the one with : each entry’s gap
to its limit roughly halves every night.
Warning. A stochastic
matrix need not have convergent powers. The
swap is
stochastic, and is for even and for odd , so does not converge.
Starting from , the chain alternates forever, although has the steady state
.
The theorem does not apply: has the eigenvalue
, with . At the other
extreme, has
convergent powers, but , every probability vector is a steady
state, and the limit of depends on
.
Chapter 19 proves the Perron–Frobenius theorem, which
gives the conclusions of Theorem 9.11.4 for
every stochastic matrix with some power having all
entries positive, without assuming diagonalizability and
without computing eigenvalues. The exercises prove the
first ingredient: no eigenvalue of a stochastic matrix
has .
Quick check. Is stochastic? If
so, find its steady state.
Solution. Yes: the entries are
nonnegative and the columns sum to . From , the first row gives , so . Scaling to sum :
gives . (The eigenvalues are and ;
they are distinct, so is diagonalizable with
, and
is the
only steady state and the long-run distribution, by Theorem 9.11.4.)
A
population model
Not every matrix of this kind is stochastic. In a
population divided into age classes, individuals are
born, age, and die, and the total need not be preserved.
A Leslie matrix records, in its first
row, the average number of offspring per individual of
each age class, and just below the diagonal, the
fraction surviving into the next class. The population
vector evolves by , and Theorem 9.11.1
describes the long run.
Example
(Three Age Classes)
A species is counted once a year in three age
classes: young, juvenile, and adult. Half of the young
survive to become juveniles, and half of the juveniles
survive to become adults; no adult survives another
year. Each juvenile has on average offspring and each
adult . The Leslie
matrix is Starting from
(in hundreds of animals), find and describe
the long-run growth and age distribution.
Solution. Characteristic
polynomial. Expanding along the
first column, Trying simple values, , and dividing, . The eigenvalues are
distinct, so is
diagonalizable.
Eigenvectors. forces
and , so taking gives , . Hence, after scaling, For instance .
The initial vector. Solving gives , , : indeed . By Theorem 9.11.1, Check. For : , and directly .
The long run. Divide by : since and . So
the population eventually grows by the factor each year, and
the age classes approach the proportions , the entries of
the eigenvector for the largest eigenvalue. The
eigenvalue makes
the population oscillate from year to year, but its
effect is bounded while the dominant term grows, so its
share fades.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define a
stochastic matrix, and say which convention (rows or
columns) this book uses.
- (b) True or false:
for every stochastic , the powers converge entrywise.
Justify your answer.
- (c) True or false:
is a right
eigenvector of every stochastic matrix. Justify your
answer.
- (d) True or false:
every stochastic matrix is invertible. Justify your
answer.
- (e) Write down the
general solution of over .
- (f) In Theorem 9.11.1, what
are the numbers ?
Solution.
(a) is
stochastic if all entries are nonnegative and every
column sums to (Definition 9.11.1).
This book uses columns, with .
(b) False. The
swap has alternating between
and .
(c) False. is stochastic, and
is not a multiple of . It is a
left eigenvector (Proposition 9.11.3).
(d) False. is stochastic with
determinant .
(e) , so by Theorem 9.11.2 the
solutions are with .
(f) The
coordinates of in the basis
of eigenvectors : .
B. Practice
Exercise
(B1: Two recurrences)
- (a) Solve
with , .
- (b) Solve
with , , by the method of
Example (A Repeated Root).
Solution.
(a) has distinct roots, so by Theorem 9.11.2, .
From and , , so , . Hence . Check: ,
.
(b) The window
matrix is , with . Put ; then . As in the example, by induction : the step is . Row of is , so Check: , .
Exercise
(B2: A three-state chain)
Let
- (a) Verify that
is stochastic,
and find its steady state.
- (b) Verify that
and
are
eigenvectors of ,
and find their eigenvalues.
- (c) Hence find the
entrywise limit of , and the limit of
the chain started at .
Solution.
(a) All entries
are nonnegative; the columns sum to , , and . For the steady state, solve : Multiplying the rows by : ,
, . Subtracting the second from the third
gives , so ; then the second gives ,
and the first holds: . So , and scaling to sum , the steady state is
.
(b) ,
eigenvalue .
, eigenvalue .
(c) The
eigenvalues are distinct, so they are all the
eigenvalues of ,
is
diagonalizable (Corollary 9.4.2),
, and
the other two have absolute value . By Theorem 9.11.4, and every chain, in particular the one started
at ,
converges to .
Exercise
(B3: The limit of a matrix power)
Let .
- (a) Diagonalize
, and find a
formula for .
- (b) Find the
entrywise limit of .
- (c) Hence find
for the sequence with , in terms of and .
Solution.
(a) and
,
so . gives the
eigenvector ;
gives . So , ,
(, Theorem 0.9.8). By Theorem 9.4.3, with
, For , gives .
(b) Since ,
entrywise.
(c) is the window matrix
of this recurrence, so and . Hence . (For instance , gives .)
C. Going deeper
Exercise
(C1: Eigenvalues of a stochastic matrix)
Let be stochastic, regarded as a complex
matrix, and let be an eigenvalue of .
- (a) Prove that .
- (b) Refine the
argument: prove that for some index .
- (c) Deduce that if
every diagonal entry of is positive, then
is not an
eigenvalue of .
- (d) Show by an
example that (c) fails if a diagonal entry is .
Hint: take a left eigenvector for and an index
with as large as
possible.
Solution.
(a) By Proposition 9.10.5
(over ), there
is , , with . Choose with for all
; then , since .
Entry of reads , because row of is column of . By Theorem 0.6.2 (d) and
Theorem 0.6.4, applied
to the -term sum
by induction on ,
and since and column sums to , Dividing by gives .
(b) With the same
, move the
diagonal term across: . Hence, as in (a), and dividing by gives .
(c) Suppose . By (b),
some has . Since , , so and . This
contradicts .
(d) The swap
is stochastic with
zero diagonal, and , so is an
eigenvalue.
Exercise
(C2: Two-state chains)
Let and .
- (a) Show that is stochastic, with
eigenvalues and
.
- (b) Suppose .
Prove that
converges entrywise, and find the limit and the steady
state.
- (c) In particular,
if has no zero
entry, then
converges. What happens when and when ?
Solution.
(a) The entries
lie in , and
the columns sum to and . Since and , , as multiplying out
confirms.
(b) Put . Since
, , so and . The eigenvalues are distinct, so
is
diagonalizable (Corollary 9.4.2). From
, is an eigenvector
for , nonzero
because ; from , is one for . So with . By Theorem 9.4.3, Since , , and The limit is , and is the steady
state, in agreement with Theorem 9.11.4.
(c) If no entry
is zero, then and , so , and likewise ; hence and
(b) applies. If , then and : the powers converge (to ), but every
probability vector is a steady state. If , then and is the swap, whose
powers do not converge.