Two applications of the chapter's big ideas. Markov matrices — nonnegative entries, columns summing to one — always have eigenvalue 1, and its eigenvector is the steady state that powers of the matrix approach; a two-state population model shows the whole machine at work. Then projection onto an orthonormal basis, pushed to infinite dimensions: Fourier series is exactly an expansion in an orthonormal basis of functions, with integrals playing the role of dot products.
This lecture is about applications of eigenvalues, and the star is the Markov matrix. Strang just invents one:
A=.1.2.7.01.990.3.3.4
Why those two properties? Markov matrices are connected to probability, and probabilities are never negative; the columns add to one because probabilities of all the possibilities add to one. And since we’ll be interested in the powers Ak, it matters that the properties persist.
The question that drives everything is steady state. Last time, with differential equations, a steady state came from an eigenvalue λ=0 — the e0t term sat still while the others moved. With powers of a matrix it’s different: a zero eigenvalue dies immediately. For powers, it’s an eigenvalue of one that’s all-important. The two key facts about Markov matrices:
λ=1 is an eigenvalue — always, and you can know it without computing a single determinant.
All other eigenvalues have ∣λ∣<1 (with possible exceptional cases where another eigenvalue has magnitude equal to one — but never larger).
Recall the general formula for powers. If uk=Aku0 and A has a complete set of eigenvectors (Strang: “my conscience always makes me say at least once per lecture” that this is required), then
uk=Aku0=c1λ1kx1+c2λ2kx2+⋯
Now watch what the two key facts do. Take λ1=1: the first term is c1x1 forever. Every other λi is smaller than one in magnitude, so λik→0 — those terms die as we iterate. The steady state is c1x1: the steady state is the eigenvector for λ=1, scaled by however much of it was in the initial condition. And there’s one more special fact: that eigenvector x1 has all components ≥0 — no negative components — so the steady state is positive if the start was. (Strang states this without proof.)
Why one is an eigenvalue
If 1 is an eigenvalue of A, then A−I should be singular — the eigenvalues are exactly the shifts that make the matrix singular. Subtract the identity from the example:
A−I=−.9.2.7.01−.010.3.3−.6
What happened to the columns? They added to one; now all columns of A−I add to zero. Why does that force singularity? This could be a theoretical quiz question, and we’re at a point in the course with several ways to see it. We don’t want the determinant. Singular means the columns are dependent — but it’s the rows that are easier here. What combination of the three rows gives the zero row? Just add them: one times each row, and every column sums to zero. So the rows are dependent, the matrix is singular, done.
That combination (1,1,1) is multiplying the rows, so it lives in the left null space: (1,1,1) is in N(AT−I) — it’s an eigenvector of AT with eigenvalue 1. And who is in the null space of A−I itself? Some combination of the columns gives zero, and the three numbers in that combination are exactly the eigenvector x1 — the steady state.
So the reasoning chain: columns of A add to one ⇒ columns of A−I add to zero ⇒(1,1,1) kills the rows ⇒AT has eigenvalue 1 ⇒ so does A.
Where Markov matrices come from: California and Massachusetts
The equation being studied is uk+1=Auk with A Markov. Strang’s example: two states — literally, California and Massachusetts — and the populations in each. Every year, some fraction of each population stays and some fraction moves:
[uCaluMass]k+1=[.9.1.2.8][uCaluMass]k
Read column one: of the people in California at time k, nine tenths stay and one tenth move to Massachusetts — the column adds to one because all Californians are accounted for. Column two: after the Red Sox fail again, only 80 percent of Massachusetts stays and 20 percent moves to California. Entries ≥0 because they’re probabilities; columns summing to one because nobody is gained or lost. The Markov chain conserves total population. (One severe limitation of the model: the same matrix, the same probabilities, act at every time step, forever.)
Start everyone in Massachusetts: u0=(0,1000). After one step, multiply once by A: a thousand times column two gives (200,800). Next step, more move west, twenty come back — California ends up above 200, the total still 1000. What about step 100? For any question like that, we need eigenvalues and eigenvectors.
Eigenvalues. One of them is λ1=1 — free of charge, it’s a Markov matrix. The trace is .9+.8=1.7, so λ2=.7. (Check with the determinant: .72−.02=.7.) Notice ∣λ2∣<1, as promised.
Eigenvectors. For λ1=1: the null space of A−I=[−.1.1.2−.2] is spanned by x1=[21] — positive, as the theory says. For λ2=.7: subtract .7 from the diagonal to get [.2.1.2.1] — certainly singular, so the calculation checks — with null space x2=[−11].
We can jump to infinity right now. The steady state is a multiple of (2,1), and the multiple is decided by the thousand people: the components must add to 1000, so the populations approach (32000,31000) — two thirds of everyone in California, one third in Massachusetts, forever.
For finite times, write out the full solution and match u0:
Check k=0: 32000−32000=0 and 31000+32000=1000. The (.7)k term is the part that’s disappearing; what’s left is the steady state.
One comment for other courses: many applications (you’ll meet Markov matrices in electrical engineering) prefer row vectors, multiplying vector times matrix from the left. That uses the transpose of our matrix, so in other textbooks you’ll see rows adding to one instead of columns. Same theory, transposed conventions.
Projection onto an orthonormal basis
Now the bridge to Fourier. Suppose q1,…,qn is an orthonormal basis for Rn. Any vector v can be expanded in the basis:
v=x1q1+x2q2+⋯+xnqn
What are the amounts x1,x2,…? We could grind through the normal equations, but orthonormality gives the answer instantly. To get x1, take the inner product of the whole equation with q1. Every term q1Tqi with i=1 is zero; the term q1Tq1 is one. A bunch of zeros and a single survivor:
q1Tv=x1
In matrix language the expansion says Qx=v, so x=Q−1v — and the whole point of the letter Q is that no work is needed to invert it: Q−1=QT. The first component of x=QTv is the first row of QT times v, which is exactly q1Tv. Same conclusion, seen twice.
Fourier series: an orthonormal basis for functions
Joseph Fourier realized: I could work in function space. Instead of a vector v, a function f(x); instead of orthogonal vectors q1,q2,…, orthogonal functions — and infinitely many, because the space is infinite-dimensional:
f(x)=a0+a1cosx+b1sinx+a2cos2x+b2sin2x+⋯
This is the moment the course leaves finite-dimensional vector spaces. The vectors are now functions; the basis is 1,cosx,sinx,cos2x,sin2x,… And the reason Fourier series is a success is that this basis is orthogonal. But orthogonal in what sense? We know vTw=v1w1+⋯+vnwn for vectors. A function doesn’t have n components — it has a whole continuum of values.
Check one orthogonality: ∫02πsinxcosxdx=21sin2x02π=0. The same holds — with some trig identities to help out — for every other pair in the list. So we have an orthogonal infinite basis for function space, and all we want to do is expand a function in that basis.
How much cosx is in f? Exactly as in the vector case: take the inner product of everything with cosx — in ordinary calculus words, multiply by cosx and integrate. On the right, a whole lot of zeros; the only term that survives is the a1 term:
The cos2 integral is not zero, of course — it’s the squared length of the basis function — and an easy calculation gives π. That is Euler’s famous formula (or maybe Fourier found it) for the coefficients of a Fourier series, and you can now see it for what it is: exactly an expansion in an orthonormal basis. (The constant term is even easier: a0 comes out to be the average value of f.)
Problems
Everything here runs on the lecture’s two engines: the eigenvalue 1 of a Markov matrix, and coefficients by inner products.
Problem 24.1Steady state of a Markov chain
Rain follows sun: if today is sunny, tomorrow is sunny with probability .8 and rainy with probability .2; if today is rainy, tomorrow is sunny with probability .4 and rainy with probability .6. Write the Markov matrix, find both eigenvalues, and find the long-run fraction of sunny days.
Show solution
With uk=(sunny,rainy) probabilities,
A=[.8.2.4.6]
(columns add to one). One eigenvalue is λ1=1 automatically; the trace is 1.4, so λ2=.4.
Steady state: null space of A−I=[−.2.2.4−.4], which is spanned by [21]. Scale so the components add to 1: the steady state is (32,31). In the long run, two thirds of days are sunny — regardless of today’s weather, since the (.4)k term dies.
Problem 24.2Powers of a Markov matrix
For the lecture’s matrix A=[.9.1.2.8], with eigenvalues 1,.7 and eigenvectors (2,1) and (−1,1), start from u0=[3000]. Find uk exactly, and give the populations at k=∞.
Show solution
Expand u0=c1[21]+c2[−11]: the components give 2c1−c2=300 and c1+c2=0, so c2=−c1 and 3c1=300: c1=100, c2=−100.
Check k=0: (300,0). ✓ The total is 300 at every step (conserved). As k→∞, the (.7)k term vanishes: u∞=(200,100) — the multiple of the eigenvector (2,1) that accounts for all 300 people.
Problem 24.3Columns add to zero, so singular
Suppose M is any n×n matrix in which every column adds to zero. Without using determinants, prove that M is singular, and explain where the eigenvector for the eigenvalue 0 of M lives.
Show solution
Add all the rows of M: since each column sums to zero, the sum is the zero row. So the combination 1⋅(row1)+⋯+1⋅(rown)=0 — the rows are linearly dependent, hence M is singular. Equivalently, (1,1,…,1) is in the left null space: MT has (1,…,1) as an eigenvector with eigenvalue 0.
Since M is singular, its own null space is nonzero: some combination of the columns gives the zero column, and that combination is an eigenvector of M with eigenvalue 0. It lives in N(M), which is generally a different space from N(MT) — M and MT share eigenvalues, not eigenvectors. (Applied to M=A−I with A Markov, this eigenvector is the steady state.)
Problem 24.4Coefficients from orthonormality
Let q1=21[11] and q2=21[1−1], an orthonormal basis for R2. Expand v=[51] as x1q1+x2q2 using inner products only — no elimination.
Show solution
Orthonormality gives each coefficient directly:
x1=q1Tv=25+1=26=32,x2=q2Tv=25−1=22
Check: 32⋅21[11]+22⋅21[1−1]=[33]+[2−2]=[51]. ✓ This is x=QTv in action.
Problem 24.5A Fourier coefficient
Using the inner product ∫02πf(x)g(x)dx, find the coefficient b1 of sinx in the Fourier series of a 2π-periodic function f, following the lecture’s method. Then compute b1 for the square wave f(x)=1 on (0,π) and f(x)=−1 on (π,2π).
Show solution
Multiply the series f(x)=a0+a1cosx+b1sinx+⋯ by sinx and integrate over [0,2π]. By orthogonality every term on the right integrates to zero except the b1 term: