9.11  Powers, Recurrences and Markov Chains

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 xk+1=Axk, a scalar recurrence such as ak+3=2ak+2+ak+1−2ak, and a system that moves at random between finitely many states. In each case the state after k 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 Ak=PDkP−1 and limits of sequences of numbers, one entry at a time.

9.11.1. Vector recurrences

A linear recurrence of first order is a rule xk+1=Axk for k∈N, with A∈Mn(F) fixed and a starting vector x0∈Fn. By induction on k, the unique sequence obeying the rule is xk=Akx0. The question is how to see this power, and diagonalization answers it by changing to coordinates in which A acts coordinate by coordinate.

Theorem 9.11.1 (Solving a Diagonalizable Recurrence)

Let A∈Mn(F) be diagonalizable, with A=PDP−1, D=diag(λ1,…,λn), and let v1,…,vn be the columns of P. Let x0∈Fn, and let (c1,…,cn)=P−1x0, so that x0=c1v1+⋯+cnvn. Then the sequence defined by xk+1=Axk is xk=Akx0=c1λ1kv1+c2λ2kv2+⋯+cnλnkvn(k∈N).

Proof. By induction on k, xk=Akx0: this holds for k=0 since A0=I, and xk+1=Axk=A⋅Akx0=Ak+1x0. By Theorem 9.4.3, Akx0=PDkP−1x0=PDkc with c=(c1,…,cn). Now Dkc=(λ1kc1,…,λnkcn), and by Theorem 0.9.3, P times this vector is ∑iλikcivi. Finally, Pc=x0 says x0=∑icivi, 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 R or C, where absolute values are available, the long-run behavior is visible at once. Terms with |λi|<1 die out, terms with |λi|>1 grow, and the largest |λi| with ci≠0 wins. The worked Fibonacci example (Example (A Closed Formula for the Fibonacci Numbers)) is the case n=2.

9.11.2. Scalar recurrences and companion matrices

A recurrence such as ak+3=2ak+2+ak+1−2ak 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 n≥1 and c0,…,cn−1∈F, and consider sequences (ak)k∈N in F with (∗)ak+n+cn−1ak+n−1+⋯+c1ak+1+c0ak=0for every k∈N. Such a sequence is determined by its initial values a0,…,an−1, because (∗) computes each later term from the n before it. The polynomial p(x)=xn+cn−1xn−1+⋯+c1x+c0 is called the characteristic polynomial of the recurrence; the name is justified below. Put xk=(ak,ak+1,…,ak+n−1)∈Fn. Then (∗) says exactly xk+1=Cxk, where C=(010⋯0001⋯0⋮⋱⋮000⋯1−c0−c1−c2⋯−cn−1): the first n−1 rows shift the window by one, and the last row is (∗) solved for ak+n. For n≥2, C is the transpose of the companion matrix C(p) of Exercise (C1: Companion matrices), so pC=pC(p)=p by Exercise (B2: Transpose) and Exercise (C1: Companion matrices) (for n=1, C=(−c0) and pC=x+c0=p). The eigenvalues of C are the roots of p.

Theorem 9.11.2 (Scalar Recurrences with Distinct Roots)

Let n≥1, c0,…,cn−1∈F, and suppose p=xn+cn−1xn−1+⋯+c0 has n distinct roots λ1,…,λn∈F. Then a sequence (ak)k∈N in F satisfies (∗) if and only if there are b1,…,bn∈F with ak=b1λ1k+b2λ2k+⋯+bnλnkfor every k∈N. In that case b1,…,bn are uniquely determined by the initial values a0,…,an−1.

Idea. Why powers of the roots? A geometric sequence ak=λk satisfies (∗) exactly when λkp(λ)=0, so the roots of p give n solutions. To see that there are no others, use the matrix C: its eigenvector for λi is the window (1,λi,…,λin−1) of the geometric sequence, these eigenvectors form an invertible Vandermonde matrix, and Theorem 9.11.1 does the rest.

Proof. (⇐) For each i and k, λik+n+cn−1λik+n−1+⋯+c0λik=λikp(λi)=0. If ak=∑ibiλik, then the left side of (∗) is ∑ibi⋅0=0, after regrouping the finite sums.

(⇒) Let (ak) satisfy (∗), and let xk and C be as above, so xk+1=Cxk. For each i, let wi=(1,λi,λi2,…,λin−1). Then Cwi=λiwi: for r≤n−1, entry r of Cwi is entry r+1 of wi, which is λir=λi⋅λir−1; and the last entry is −(c0+c1λi+⋯+cn−1λin−1)=λin−p(λi)=λin=λi⋅λin−1. Let W be the matrix with columns w1,…,wn. Its (r,i)-entry is λir−1, so W=V(λ1,…,λn)⊤ in the notation of Theorem 7.8.1, and W is invertible, since the λi are distinct: detW=detV(λ1,…,λn)≠0 by Theorem 7.4.5 and Theorem 7.8.1, and Theorem 7.5.2 applies. The columns of CW are λiwi, which are the columns of Wdiag(λ1,…,λn), so C=Wdiag(λ1,…,λn)W−1.

By Theorem 9.11.1, with (b1,…,bn)=W−1x0, xk=b1λ1kw1+⋯+bnλnkwn. The first entry of xk is ak, and the first entry of each wi is 1, so ak=∑ibiλik.

For uniqueness, suppose ak=∑ibiλik for all k. Taking k=0,…,n−1 gives Wb=(a0,…,an−1)=x0, so b=W−1x0 is determined by the initial values.

So solving a recurrence with distinct roots comes down to three steps: find the roots of p, write the general form ∑biλik, and fit b1,…,bn to the initial values by solving a Vandermonde system.

Example (A Third-Order Recurrence)

Find a formula for the sequence with a0=3, a1=2, a2=6 and ak+3=2ak+2+ak+1−2ak(k∈N).

Solution. In the form (∗), ak+3−2ak+2−ak+1+2ak=0, so p(x)=x3−2x2−x+2. Grouping, p=x2(x−2)−(x−2)=(x−2)(x−1)(x+1), with the distinct roots 1,−1,2. The window matrix is C=(010001−212), with eigenvectors (1,1,1), (1,−1,1), (1,2,4); for instance C(1,2,4)=(2,4,−2+2+8)=2(1,2,4).

By Theorem 9.11.2, ak=b1+b2(−1)k+b32k. The initial values give the Vandermonde system b1+b2+b3=3,b1−b2+2b3=2,b1+b2+4b3=6. Subtracting the first equation from the third gives 3b3=3, so b3=1. Then b1+b2=2 and b1−b2=0, so b1=b2=1. Hence ak=1+(−1)k+2k. Check. The recurrence gives a3=2⋅6+2−2⋅3=8 and a4=2⋅8+6−2⋅2=18; the formula gives 1−1+8=8 and 1+1+16=18. For large k, ak≈2k: the root of largest absolute value dominates.

Repeated roots. When p has a repeated root, C is not diagonalizable: for a root λ, every eigenvector (w1,…,wn) of C satisfies wr+1=λwr, so it is a multiple of (1,λ,…,λn−1), and gC(λ)=1 whatever aC(λ) is. The general answer involves terms kλk,k2λk,…, and it follows from the Jordan canonical form of Chapter 10. The 2×2 case can be done by hand.

Example (A Repeated Root)

Over R, find all sequences with ak+2=4ak+1−4ak for every k∈N.

Solution. Here p=x2−4x+4=(x−2)2, and the window matrix is C=(01−44). It is not diagonalizable, since C−2I=(−21−42) has rank 1, so g(2)=1<2=a(2). But N=C−2I satisfies N2=(4−4−2+28−8−4+4)=0. Claim: Ck=2kI+k2k−1N for all k∈N. For k=0 both sides are I. If it holds for k, then, since C=2I+N and N2=0, Ck+1=(2kI+k2k−1N)(2I+N)=2k+1I+2kN+k2kN+k2k−1N2=2k+1I+(k+1)2kN. Now xk=Ckx0 with x0=(a0,a1), and ak is the first entry. Row 1 of Ck is (2k−2k2k−1, k2k−1)=((1−k)2k, k2k−1), so ak=(1−k)2ka0+k2k−1a1=(a0+(a12−a0)k)2k. So the solutions are exactly the sequences ak=(b1+b2k)2k with b1,b2∈R: every solution has this form with b1=a0, b2=a1/2−a0, and every such sequence is the solution with a0=b1, a1=2b1+2b2. For example, a0=1, a1=4 gives ak=(1+k)2k, and indeed a2=4⋅4−4⋅1=12=3⋅4. The new term k2k is the footprint of the missing eigenvector, just as the entry k was for (1101)k in Section 4.

9.11.3. 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 1,…,n. Record the probabilities of the states at step k as a column xk∈Rn, and let aij be the probability of moving to state i in one step, given that the system is in state j. The probability of being in state i at step k+1 is the sum over the previous state j of “was in j” times “moved from j to i”, that is, ∑jaij(xk)j. So xk+1=Axk: a linear recurrence. The matrix A has two features: its entries are probabilities, and from each state j the system must go somewhere, so column j adds up to 1.

A stochastic matrix is a table of transition probabilities, one column for each starting state.

Definition 9.11.1 (Stochastic Matrix, Probability Vector)

Let n≥1.

  • (a) A vector x∈Rn is a probability vector if xi≥0 for every i and x1+⋯+xn=1.
  • (b) A matrix A∈Mn(R) is stochastic if every column of A is a probability vector: aij≥0 for all i,j, and ∑i=1naij=1 for every j.

In words: the entries are non-negative and each column sums to 1. With 1=(1,…,1)∈Rn, the column condition reads 1⊤A=1⊤, and 1⊤x=1 says that the entries of x add up to 1.

Examples.

  • (9/101/51/104/5): columns (9/10,1/10) and (1/5,4/5) are probability vectors.
  • Degenerate cases. In is stochastic: every state stays put. The 1×1 matrix (1) is the only 1×1 stochastic matrix. Every permutation matrix is stochastic, since each column is a standard basis vector; it moves the system deterministically.
  • 14(210121113): the columns sum to 44, and all entries are non-negative.

Non-example by minimal change. Transpose the first example: (9/101/101/54/5) still has non-negative entries, and its rows sum to 1, but its first column sums to 11/10. It fails the column condition. Likewise (3/20−1/21) has columns summing to 1 but a negative entry.

Why this convention. Many books write probability vectors as rows and multiply on the left, xk+1⊤=xk⊤M; their “stochastic” matrices have rows summing to 1, and they are the transposes of ours. We keep column vectors and xk+1=Axk, 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 1⊤A=1⊤.

Proposition 9.11.3 (Basic Properties of Stochastic Matrices)

Let A,B∈Mn(R) be stochastic and x∈Rn a probability vector. Then:

  • (a) Ax is a probability vector;
  • (b) AB is stochastic, and so is Ak for every k∈N;
  • (c) 1 is a left eigenvector of A for the eigenvalue 1; in particular 1∈spec(A).

Proof.

  • (a) Each entry (Ax)i=∑jaijxj is a sum of products of non-negative numbers, so it is non-negative. By associativity, 1⊤(Ax)=(1⊤A)x=1⊤x=1.

  • (b) By Theorem 0.9.2, column j of AB is Abj, where bj is column j of B, a probability vector. By (a), Abj is a probability vector, so AB is stochastic. By induction on k, Ak is stochastic: A0=I is, and Ak+1=AkA.

  • (c) 1⊤A=1⊤ with 1≠0 is Definition 9.10.1 with λ=1, and Proposition 9.10.5 gives 1∈spec(A).

Warning. The all-ones vector is a left eigenvector, not a right one. For A=(9/101/51/104/5), A1=(11/10,9/10)≠1. The right eigenvectors for 1 are the multiples of (2,1), and they carry the interesting information: the long-run probabilities. Only when the rows also sum to 1 is 1 a right eigenvector.

9.11.4. Markov chains

Definition 9.11.2 (Markov Chain, Steady State)

Let A∈Mn(R) be stochastic. The Markov chain with transition matrix A and initial probability vector x0 is the sequence of probability vectors xk+1=Axk, that is, xk=Akx0. A steady state of A is a probability vector v with Av=v.

Each xk is a probability vector by Proposition 9.11.3. A steady state is a right eigenvector for the eigenvalue 1, scaled so that its entries add up to 1 and required to have non-negative 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 Mk∈Mm×n(C) converges entrywise to M if, for every position (r,s), the number sequence (Mk)rs converges to Mrs. 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; zk→0 if and only if |zk|→0; rk→0 for real 0≤r<1; and a convergent sequence of real numbers ≥0 has a real limit ≥0. In particular, if |λ|<1, then |λk|=|λ|k→0 (Theorem 0.6.2), so λk→0.

Example (A Two-State Chain)

A machine is either working (state 1) or under repair (state 2) each day. A working machine is still working the next day with probability 9/10; a machine under repair is back to work the next day with probability 1/5. So the transition matrix is A=(9/101/51/104/5). Find Ak, its entrywise limit, and the long-run probability that the machine is working, if it is working on day 0.

Solution. Eigenvalues. trA=17/10 and detA=36/50−1/50=7/10, so, by the 2×2 formula pA=x2−(trA)x+detA (the examples after Definition 7.10.1), pA=x2−1710x+710=(x−1)(x−710). The eigenvalue 1 was guaranteed by Proposition 9.11.3.

Eigenvectors. A−I=(−1/101/51/10−1/5) gives x=2y, eigenvector (2,1). A−710I=(1/51/51/101/10) gives y=−x, eigenvector (1,−1). The eigenvalues are distinct, so P=(211−1),D=diag(1,710),P−1=13(111−2), using Theorem 0.9.8 with detP=−3.

Powers. By Theorem 9.4.3, writing t=(7/10)k, Ak=P(100t)P−1=13(2t1−t)(111−2)=13(2+t2−2t1−t1+2t). Check: for k=1, t=7/10 and 13(27/106/103/1024/10)=A; each column of Ak sums to 1, as Proposition 9.11.3 requires.

The limit. Since 0≤7/10<1, t→0, so entrywise Ak→13(2211)=(2/31/3)(11). Starting from x0=e1, xk=Ake1=(2+t3,1−t3)→(23,13). 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 x0=(s,1−s), Akx0→13(2s+2(1−s), s+(1−s))=(23,13). The vector v=(23,13) is the steady state, the eigenvector (2,1) scaled to sum 1.

The example shows the general mechanism. The eigenvalue 1 survives in Dk, all others fade, and the surviving rank-one piece is (right eigenvector for 1) times (left eigenvector for 1), which for a stochastic matrix is the steady state times 1⊤.

Theorem 9.11.4 (Long-Run Behavior of a Diagonalizable Markov Chain)

Let A∈Mn(R), n≥1, be stochastic. Suppose that A is diagonalizable over C, that aA(1)=1, and that every other eigenvalue λ∈C of A has |λ|<1. Then:

  • (a) A has exactly one steady state v;
  • (b) Ak→v1⊤ entrywise as k→∞;
  • (c) for every probability vector x0, the Markov chain xk=Akx0 converges entrywise to v.

Idea. Use the expansion Ak=∑iλikviyi⊤ of Section 10. The terms with |λi|<1 tend to 0, which leaves the single term for λ1=1. Its left eigenvector y1 must be a multiple of 1, because the left eigenvectors for 1 form a line and 1 is one of them. Rescaling turns v1y1⊤ into v1⊤, and the non-negativity of v comes for free as a limit of non-negative entries.

Proof. Since A is diagonalizable over C, there are an invertible P∈Mn(C) and D=diag(λ1,…,λn) with A=PDP−1. A diagonal matrix is upper triangular, so each eigenvalue occurs on the diagonal of D as often as its algebraic multiplicity (Theorem 9.7.4 (b)); in particular 1 occurs exactly once, because aA(1)=1. Permuting the columns of P and the diagonal entries of D together leaves A=PDP−1 intact, so we may assume λ1=1, and then |λi|<1 for i≥2 by hypothesis. Let vi be the columns of P and yi⊤ the rows of P−1. By Proposition 9.10.7, for every k, Ak=v1y1⊤+∑i=2nλikviyi⊤. Each entry of the sum is ∑i≥2λikzi for fixed complex numbers zi, and λik→0 for i≥2. Hence Ak→L=v1y1⊤ entrywise.

The shape of L. By Proposition 9.10.7, y1 is a left eigenvector for 1, and so is 1 (Proposition 9.11.3). Both lie in E1(A⊤)⊆Cn (Proposition 9.10.5 (a)), which has dimension gA⊤(1)=gA(1)≤aA(1)=1 by Proposition 9.10.5 (b) and Theorem 9.3.1. Since 1≠0, y1=c1 for some c∈C. Put v=cv1. Then L=v1⊤, Av=cAv1=v, and 1⊤v=y1⊤v1=1 by Proposition 9.10.7 (b).

v is a steady state. Column 1 of L=v1⊤ is v. It is the limit of column 1 of Ak, and Ak is stochastic (Proposition 9.11.3), so every entry of v is a limit of real numbers ≥0, hence real and ≥0. With 1⊤v=1, v is a probability vector, and Av=v.

Uniqueness. If w is a steady state, then w∈E1(A), a subspace of Cn of dimension gA(1)≤1 that contains v≠0. So w=sv for some s∈C, and 1=1⊤w=s1⊤v=s. Hence w=v. This proves (a) and (b).

  • (c) Entry r of Akx0 is ∑s(Ak)rs(x0)s, which by (b) converges to ∑svr(x0)s=vr(1⊤x0)=vr.

In practice: find the eigenvalues, check the hypotheses, and compute v by solving (A−I)v=0 and scaling. Then (c) gives the long run without computing P−1 at all.

Example (Bicycles at Three Stations)

A shared bicycle is parked each night at station 1, 2 or 3. The transition matrix is A=14(210121113); for instance a bicycle at station 3 stays there with probability 3/4 and never goes to station 1 in one night. Find Ak, its limit, and the long-run distribution of the bicycle.

Solution. Eigenvectors. We check three candidates: A(123)=14(4812),A(−101)=14(−202),A(−110)=14(−110). So 1,12,14 are eigenvalues, with eigenvectors v1=(1,2,3), v2=(−1,0,1), v3=(−1,1,0). A 3×3 matrix has at most three eigenvalues (Corollary 9.2.3), so these are all; they are distinct, so A is diagonalizable (Corollary 9.4.2) and aA(1)=1. As a check, trA=74=1+12+14. The hypotheses of Theorem 9.11.4 hold.

The expansion. With P=(1−1−1201310), whose determinant is −6, P−1=(1/61/61/6−1/2−1/21/2−1/32/3−1/3), as multiplying out P−1P=I confirms. The first row is 161⊤, a multiple of 1⊤ as the proof of the theorem predicts. By Proposition 9.10.7, Ak=16(111222333)+12k⋅12(11−1000−1−11)+14k⋅13(1−21−12−1000). For example, the (1,1)-entry of Ak is 16+12⋅2−k+13⋅4−k, which is 1 for k=0 and 16+14+112=12 for k=1, matching a11=2/4.

The limit. As k→∞, 2−k→0 and 4−k→0, so Ak→16(111222333)=v1⊤,v=(16,13,12). Wherever the bicycle starts, in the long run it is at station 1, 2, 3 with probabilities 16,13,12. Directly, v=16v1 and Av=v. The slowest-fading term is the one with 12: each entry’s gap to its limit roughly halves every night.

Warning. A stochastic matrix need not have convergent powers. The swap S=(0110) is stochastic, and Sk is I for even k and S for odd k, so Sk does not converge. Starting from x0=e1, the chain alternates e1,e2,e1,… forever, although S has the steady state (12,12). The theorem does not apply: S has the eigenvalue −1, with |−1|=1. At the other extreme, I2 has convergent powers, but a(1)=2, every probability vector is a steady state, and the limit of xk depends on x0.

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 |λ|>1.

Quick check. Is A=(1/21/31/22/3) stochastic? If so, find its steady state.

Solution. Yes: the entries are non-negative and the columns sum to 1. From (A−I)v=0, the first row gives −12v1+13v2=0, so v2=32v1. Scaling to sum 1: v1+32v1=1 gives v=(25,35). (The eigenvalues are 1 and trA−1=16; they are distinct, so A is diagonalizable with aA(1)=1, and v is the only steady state and the long-run distribution, by Theorem 9.11.4.)

9.11.5. 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 xk+1=Lxk, 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 7/2 offspring and each adult 3. The Leslie matrix is L=(07/231/20001/20). Starting from x0=(20,10,5) (in hundreds of animals), find xk and describe the long-run growth and age distribution.

Solution. Characteristic polynomial. Expanding det(xI−L) along the first column, pL=xdet(x0−1/2x)+12det(−7/2−3−1/2x)=x3+12(−72x−32)=x3−74x−34. Trying simple values, pL(−1)=−1+74−34=0, and dividing, pL=(x+1)(x2−x−34)=(x+1)(x−32)(x+12). The eigenvalues 32,−1,−12 are distinct, so L is diagonalizable.

Eigenvectors. L(w1,w2,w3)=λ(w1,w2,w3) forces 12w1=λw2 and 12w2=λw3, so taking w3=1 gives w2=2λ, w1=4λ2. Hence, after scaling, λ=32: (9,3,1),λ=−1: (4,−2,1),λ=−12: (1,−1,1). For instance L(9,3,1)=(212+3,92,32)=32(9,3,1).

The initial vector. Solving c1(9,3,1)+c2(4,−2,1)+c3(1,−1,1)=(20,10,5) gives c1=3, c2=−3, c3=5: indeed (27−12+5, 9+6−5, 3−3+5)=(20,10,5). By Theorem 9.11.1, xk=3(32)k(931)−3(−1)k(4−21)+5(−12)k(1−11). Check. For k=1: (812+12−52, 272−6+52, 92+3−52)=(50,10,5), and directly Lx0=(35+15,10,5).

The long run. Divide by (3/2)k: (23)kxk=3(931)−3(−23)k(4−21)+5(−13)k(1−11)⟶(2793), since |−23|<1 and |−13|<1. So the population eventually grows by the factor 32 each year, and the age classes approach the proportions 9:3:1, the entries of the eigenvector for the largest eigenvalue. The eigenvalue −1 makes the population oscillate from year to year, but its effect is bounded while the dominant term grows, so its share fades.

9.11.6. 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 A, the powers Ak converge entrywise. Justify your answer.
  • (c) True or false: 1 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 ak+2=5ak+1−6ak over R.
  • (f) In Theorem 9.11.1, what are the numbers c1,…,cn?

Solution.

  • (a) A∈Mn(R) is stochastic if all entries are non-negative and every column sums to 1 (Definition 9.11.1). This book uses columns, with xk+1=Axk.

  • (b) False. The swap S=(0110) has Sk alternating between I and S.

  • (c) False. A=(11/201/2) is stochastic, and A1=(3/2,1/2) is not a multiple of 1. It is a left eigenvector (Proposition 9.11.3).

  • (d) False. (1/21/21/21/2) is stochastic with determinant 0.

  • (e) p=x2−5x+6=(x−2)(x−3), so by Theorem 9.11.2 the solutions are ak=b12k+b23k with b1,b2∈R.

  • (f) The coordinates of x0 in the basis of eigenvectors v1,…,vn: (c1,…,cn)=P−1x0.

B. Practice

Exercise (B1: Two recurrences)
  • (a) Solve ak+2=ak+1+2ak with a0=0, a1=3.
  • (b) Solve ak+2=6ak+1−9ak with a0=1, a1=6, by the method of Example (A Repeated Root).

Solution.

  • (a) p=x2−x−2=(x−2)(x+1) has distinct roots, so by Theorem 9.11.2, ak=b12k+b2(−1)k. From a0=b1+b2=0 and a1=2b1−b2=3, 3b1=3, so b1=1, b2=−1. Hence ak=2k−(−1)k. Check: a2=3+0=3=4−1, a3=3+6=9=8+1.

  • (b) The window matrix is C=(01−96), with p=(x−3)2. Put N=C−3I=(−31−93); then N2=(9−9−3+327−27−9+9)=0. As in the example, by induction Ck=3kI+k3k−1N: the step is (3kI+k3k−1N)(3I+N)=3k+1I+3kN+k3kN. Row 1 of Ck is (3k−3k3k−1, k3k−1)=((1−k)3k, k3k−1), so ak=(1−k)3k⋅1+k3k−1⋅6=(1−k+2k)3k=(1+k)3k. Check: a2=36−9=27=3⋅9, a3=6⋅27−9⋅6=108=4⋅27.

Exercise (B2: A three-state chain)

Let A=(1/21/21/41/401/41/41/21/2).

  • (a) Verify that A is stochastic, and find its steady state.
  • (b) Verify that (−1,0,1) and (1,−2,1) are eigenvectors of A, and find their eigenvalues.
  • (c) Hence find the entrywise limit of Ak, and the limit of the chain started at x0=e2.

Solution.

  • (a) All entries are non-negative; the columns sum to 12+14+14=1, 12+0+12=1 and 14+14+12=1. For the steady state, solve (A−I)v=0: A−I=(−1/21/21/41/4−11/41/41/2−1/2). Multiplying the rows by 4: −2v1+2v2+v3=0, v1−4v2+v3=0, v1+2v2−2v3=0. Subtracting the second from the third gives 6v2−3v3=0, so v3=2v2; then the second gives v1=4v2−2v2=2v2, and the first holds: −4v2+2v2+2v2=0. So E1(A)=span((2,1,2)), and scaling to sum 1, the steady state is v=(25,15,25).

  • (b) A(−1,0,1)=(−12+14, −14+14, −14+12)=(−14,0,14)=14(−1,0,1), eigenvalue 14. A(1,−2,1)=(12−1+14, 14+14, 14−1+12)=(−14,12,−14)=−14(1,−2,1), eigenvalue −14.

  • (c) The eigenvalues 1,14,−14 are distinct, so they are all the eigenvalues of A, A is diagonalizable (Corollary 9.4.2), aA(1)=1, and the other two have absolute value 14<1. By Theorem 9.11.4, Ak→v1⊤=15(222111222), and every chain, in particular the one started at e2, converges to v=(25,15,25).

Exercise (B3: The limit of a matrix power)

Let A=(01−1/23/2)∈M2(R).

  • (a) Diagonalize A, and find a formula for Ak.
  • (b) Find the entrywise limit of Ak.
  • (c) Hence find limk→∞ak for the sequence with ak+2=32ak+1−12ak, in terms of a0 and a1.

Solution.

  • (a) trA=32 and detA=12, so pA=x2−32x+12=(x−1)(x−12). A−I=(−11−1/21/2) gives the eigenvector (1,1); A−12I=(−1/21−1/21) gives (2,1). So P=(1211), D=diag(1,12), P−1=(−121−1) (detP=−1, Theorem 0.9.8). By Theorem 9.4.3, with t=2−k, Ak=(12t1t)(−121−1)=(−1+2t2−2t−1+t2−t). For k=1, t=12 gives (01−1/23/2)=A.

  • (b) Since t=2−k→0, Ak→(−12−12) entrywise.

  • (c) A is the window matrix of this recurrence, so (ak,ak+1)=Ak(a0,a1) and ak=(−1+2t)a0+(2−2t)a1. Hence ak→2a1−a0. (For instance a0=0, a1=1 gives 0,1,32,74,⋯→2.)

C. Going deeper

Exercise (C1: Eigenvalues of a stochastic matrix)

Let A∈Mn(R) be stochastic, regarded as a complex matrix, and let λ∈C be an eigenvalue of A.

  • (a) Prove that |λ|≤1.
  • (b) Refine the argument: prove that |λ−aii|≤1−aii for some index i.
  • (c) Deduce that if every diagonal entry of A is positive, then −1 is not an eigenvalue of A.
  • (d) Show by an example that (c) fails if a diagonal entry is 0.

Hint: take a left eigenvector y for λ and an index i with |yi| as large as possible.

Solution.

  • (a) By Proposition 9.10.5 (over C), there is y∈Cn, y≠0, with A⊤y=λy. Choose i with |yi|≥|yj| for all j; then |yi|>0, since y≠0. Entry i of A⊤y=λy reads ∑jajiyj=λyi, because row i of A⊤ is column i of A. By Theorem 0.6.2 (d) and Theorem 0.6.4, applied to the n-term sum by induction on n, and since aji≥0 and column i sums to 1, |λ||yi|=|∑jajiyj|≤∑jaji|yj|≤∑jaji|yi|=|yi|. Dividing by |yi|>0 gives |λ|≤1.

  • (b) With the same i, move the diagonal term across: (λ−aii)yi=∑j≠iajiyj. Hence, as in (a), |λ−aii||yi|≤∑j≠iaji|yj|≤(∑j≠iaji)|yi|=(1−aii)|yi|, and dividing by |yi| gives |λ−aii|≤1−aii.

  • (c) Suppose λ=−1. By (b), some i has |−1−aii|≤1−aii. Since aii≥0, |−1−aii|=1+aii, so 1+aii≤1−aii and aii≤0. This contradicts aii>0.

  • (d) The swap S=(0110) is stochastic with zero diagonal, and S(1,−1)=(−1,1), so −1 is an eigenvalue.

Exercise (C2: Two-state chains)

Let 0≤p,q≤1 and A=(1−pqp1−q).

  • (a) Show that A is stochastic, with eigenvalues 1 and 1−p−q.
  • (b) Suppose 0<p+q<2. Prove that Ak converges entrywise, and find the limit and the steady state.
  • (c) In particular, if A has no zero entry, then Ak converges. What happens when p+q=0 and when p+q=2?

Solution.

  • (a) The entries lie in [0,1], and the columns sum to (1−p)+p=1 and q+(1−q)=1. Since trA=2−p−q and detA=(1−p)(1−q)−pq=1−p−q, pA=x2−(2−p−q)x+(1−p−q)=(x−1)(x−(1−p−q)), as multiplying out confirms.

  • (b) Put r=1−p−q. Since 0<p+q<2, −1<r<1, so r≠1 and |r|<1. The eigenvalues 1≠r are distinct, so A is diagonalizable (Corollary 9.4.2). From A−I=(−pqp−q), (q,p) is an eigenvector for 1, non-zero because p+q>0; from A−rI=(qqpp), (1,−1) is one for r. So P=(q1p−1),P−1=1p+q(11p−q), with detP=−(p+q)≠0. By Theorem 9.4.3, Ak=1p+q(qrkp−rk)(11p−q)=1p+q(q+prkq−qrkp−prkp+qrk). Since |r|<1, rk→0, and Ak→1p+q(qqpp),v=(qp+q,pp+q). The limit is v1⊤, and v is the steady state, in agreement with Theorem 9.11.4.

  • (c) If no entry is zero, then 1−p>0 and p>0, so 0<p<1, and likewise 0<q<1; hence 0<p+q<2 and (b) applies. If p+q=0, then p=q=0 and A=I: the powers converge (to I), but every probability vector is a steady state. If p+q=2, then p=q=1 and A is the swap, whose powers do not converge.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.