Once you have n independent eigenvectors, put them in a matrix S and the magic combination S inverse A S turns A into a diagonal matrix of eigenvalues. That factorization A equals S Lambda S inverse makes powers of A transparent, decides when those powers go to zero, and solves difference equations — capped by a formula for the hundredth Fibonacci number.
Last lecture reached the key equation Ax=λx and showed how to find the λ‘s and x‘s. Job one is done. Now: what do we do with eigenvalues and eigenvectors once we have them? The good way to see that is to diagonalize the matrix.
Suppose A has n linearly independent eigenvectors x1,…,xn. Put them in the columns of a matrix S — Strang naturally calls it the eigenvector matrix — and look at what he calls “this magic combination S−1AS.” Everything follows from multiplying A times S, a column at a time:
AS=A[x1x2⋯xn]=[λ1x1λ2x2⋯λnxn]
Each column of AS is A times an eigenvector, and that’s an eigenvalue times the eigenvector. Now the step Strang likes even better: peel the λ‘s off. To multiply the first column by λ1, the second by λ2, and so on, put the λ‘s in a diagonal matrix on the right:
[λ1x1⋯λnxn]=[x1⋯xn]λ1⋱λn=SΛ
“There you see matrix multiplication just working for us.” The diagonal matrix of eigenvalues gets a capital lambda, Λ — capital letters for matrices, lambda to remind you it holds eigenvalues.
So A=SΛS−1 is a new factorization — the replacement for LU from elimination or QR from Gram–Schmidt. A matrix, times a diagonal matrix, times the inverse of the first: that combination of S and S−1 runs throughout this chapter.
Powers of A
First use of the formula: what are the eigenvalues and eigenvectors of A2? A straightforward question with an absolutely clean answer, seen two ways.
From the equation. If Ax=λx, multiply both sides by A:
A2x=λAx=λ2x
The eigenvalues of A2 are λ2 — squared. The eigenvectors are the samex‘s. (Strang always asks about both.)
From the factorization. This is the beauty of eigenvalues:
A2=(SΛS−1)(SΛS−1)=SΛ2S−1
The S−1S in the middle is the identity. Same message in matrix form: same S, eigenvalues squared — Λ2 is still diagonal, with λ12,…,λn2 down its diagonal. And nothing stops at the square. String K copies together and the inner S−1S pairs keep canceling:
AK=SΛKS−1
Here’s an immediate payoff. When do the powers of a matrix go to zero — when is Astable, so to speak? That information is not present in the pivots. It’s present in the eigenvalues. In AK=SΛKS−1, the S and S−1 are not moving; it’s ΛK that has to get small.
Which matrices are diagonalizable?
Time to face the assumption. The nice case first: A is sure to have n independent eigenvectors — and be diagonalizable — if all the λ‘s are different. No repeated eigenvalues, no problem; for the proof Strang refers you to the text. And this is the typical case: ask Matlab for eig(rand(10,10)) and a random 10×10 matrix will hand you ten distinct eigenvalues, each with its own eigenvector, automatically independent.
If an eigenvalue is repeated, you have to look more closely — count and check. It’s not a completely negative case: take the 10×10 identity matrix. Its eigenvalue 1 is repeated ten times, but there’s no shortage of eigenvectors — every vector is an eigenvector, so pick ten independent ones. Of course S−1IS=I: the matrix was already diagonal, and a diagonal matrix has its eigenvalues sitting right there in front of you, Λ=A.
Now the case that’s going to be trouble.
That’s the case the lecture is not really handling — the stability theorem above, for instance, was reasoned from a formula that needs n independent eigenvectors. Some matrices escape diagonalization, but the great majority don’t, and distinct eigenvalues always come with a full set of independent eigenvectors.
Difference equations: uₖ₊₁ = Auₖ
Now the important application. Start with a vector u0 and at every step multiply by A:
uk+1=Auk⟹u1=Au0,u2=A2u0,…,uk=Aku0
Strang calls this a first-order difference equation — a system, because the unknowns are vectors and A is a matrix. The next section will solve differential equations, with derivatives; “this section is the nice one.” And uk=Aku0 is the most compact formula you could ever ask for. But how would you actually findu100?
To really solve it, write u0 as a combination of eigenvectors:
u0=c1x1+c2x2+⋯+cnxn
Now multiply by A and watch — “you’ve got to see the magic of eigenvectors working here.” Each piece is a pure eigenvector, so A only brings in a scalar factor:
Au0=c1λ1x1+c2λ2x2+⋯+cnλnxn
Multiply by A a hundred times and each term picks up its eigenvalue a hundred times:
Now the example. The Fibonacci numbers start F0=0, F1=1, and each one is the sum of the previous two: 1,2,3,5,8,13,… Question: what is F100, and how fast are these numbers growing? They’re certainly growing — not a stable case — but they’re not doubling either. The answer lies in an eigenvalue.
The rule Fk+2=Fk+1+Fk is a single second-order equation, like a differential equation with second derivatives. A small trick turns it into a first-order system: let the unknown be a vector,
uk=[Fk+1Fk]
and add the trivially true equation Fk+1=Fk+1 as the second row. Then
uk+1=[Fk+2Fk+1]=[1110][Fk+1Fk]=Auk
“Before I even think,” find the eigenvalues and eigenvectors. The matrix is symmetric, by the way — so the eigenvalues will come out real (a fact coming later in the course). Sanity checks first: λ1+λ2 equals the trace, 1, and λ1λ2 equals the determinant, −1. Now compute:
det(A−λI)=1−λ11−λ=λ2−λ−1
Compare that with the recursion Fk+2−Fk+1−Fk=0 — the Fibonacci rule is showing up directly in the eigenvalue equation. The quadratic formula gives
λ1=21+5≈1.618,λ2=21−5≈−0.618
and sure enough they add to 1 and multiply to −1. One eigenvalue bigger than one, one smaller than one in absolute value — “actually, that’s a great situation to be in.” The eigenvalues are distinct, so the matrix is certainly diagonalizable.
And the growth question is already answered. Write u0=c1x1+c2x2 and take a hundred steps: the λ2 term, roughly (−0.618)100, is extremely small — practically nothing. The λ1 term takes over and controls everything:
F100≈c1(21+5)100
The Fibonacci numbers grow by a factor of about 1.618 per step — precise information straight out of an eigenvalue.
To complete the process, the eigenvectors. For this 2×2 Strang uses a little trick: since
A−λI=[1−λ11−λ]
is singular at each eigenvalue, the vector x=(λ,1) is in its null space — the second row gives λ−λ=0, and the first row gives (1−λ)λ+1=−(λ2−λ−1)=0, zero exactly because these λ‘s are special. So x1=(λ1,1) and x2=(λ2,1). The starting vector is u0=(F1,F0)=(1,0), and solving c1x1+c2x2=u0 pins down c1 and c2 — the last step, which the lecture leaves as the closing idea rather than grinding out (Problem 22.4 finishes it).
The idea is what’s central. When things evolve in time by a first-order system from a starting vector u0: find the eigenvalues and eigenvectors of A — they already tell you whether the solution blows up or dies out — then expand u0 into eigenvectors and follow each one separately. That is exactly what Ak=SΛkS−1 is doing.
Problems
Work these before revealing the solutions — they use only this lecture’s machinery.
Problem 22.1Diagonalize and take powers
Diagonalize
A=[3113]
— find S and Λ with A=SΛS−1 — and use the factorization to give a formula for Ak.
Show solution
det(A−λI)=(3−λ)2−1=λ2−6λ+8=(λ−4)(λ−2), so λ1=4, λ2=2 (check: trace 6, determinant 8).
Without computing any powers, decide whether Ak→0 as k→∞ for
A=[0.60.10.90.6]
Show solution
The answer lives in the eigenvalues. Trace =1.2 and determinant =0.36−0.09=0.27, so
det(A−λI)=λ2−1.2λ+0.27=(λ−0.9)(λ−0.3)
giving λ1=0.9, λ2=0.3. Both satisfy ∣λ∣<1, and the eigenvalues are distinct, so A is diagonalizable and
Ak=SΛkS−1=S[0.9k000.3k]S−1→0
since S and S−1 don’t move while Λk→0. Yes: the powers go to zero (slowly — the 0.9k term controls the approach).
Problem 22.3Algebraic vs. geometric multiplicity
Both of these matrices have λ=3 repeated twice:
A=[3003],B=[3053]
For each, find the algebraic and geometric multiplicities of λ=3 and decide whether the matrix is diagonalizable.
Show solution
Both characteristic polynomials are (3−λ)2, so the algebraic multiplicity is 2 for both.
For A=3I: A−3I is the zero matrix, whose null space is all of R2 — every vector is an eigenvector. Geometric multiplicity 2; take S=I and A is (already) diagonal. Diagonalizable.
For B: B−3I=[0050] has a one-dimensional null space, spanned by (1,0) alone — (0,1) is not in it. Geometric multiplicity 1: only one independent eigenvector, two needed. Not diagonalizable — no invertible eigenvector matrix S exists.
Moral: a repeated eigenvalue may or may not bring enough eigenvectors — you have to count.
Problem 22.4Finishing Fibonacci
The lecture stopped just short of the constants. Using the eigenvectors x1=(λ1,1) and x2=(λ2,1) of the Fibonacci matrix, with λ1=21+5 and λ2=21−5, expand u0=(1,0) as c1x1+c2x2 and derive an exact formula for Fk.
Show solution
The expansion c1x1+c2x2=(1,0) gives two equations:
c1λ1+c2λ2=1,c1+c2=0
From the second, c2=−c1; substitute into the first: c1(λ1−λ2)=1. Since λ1−λ2=5,
c1=51,c2=−51
Each eigenvector goes its own way: uk=c1λ1kx1+c2λ2kx2. The second component of uk is Fk, and the second component of each eigenvector is 1, so
Fk=c1λ1k+c2λ2k=51(21+5)k−(21−5)k
Check: F0=0 ✓, F1=51⋅5=1 ✓, F2=51(λ12−λ22)=51(λ1+λ2)(λ1−λ2)=1 ✓. Since ∣λ2∣<1, the second term vanishes as k grows, and F100≈51λ1100 — exactly the growth rate the eigenvalue predicted.