Session 22 · Unit 2

Diagonalization and Powers of A


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.

The key formula: S⁻¹AS = Λ

Last lecture reached the key equation Ax=λxA\mathbf{x} = \lambda\mathbf{x} and showed how to find the λ\lambda‘s and x\mathbf{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 AA has nn linearly independent eigenvectors x1,,xn\mathbf{x}_1, \dots, \mathbf{x}_n. Put them in the columns of a matrix SS — Strang naturally calls it the eigenvector matrix — and look at what he calls “this magic combination S1ASS^{-1}AS.” Everything follows from multiplying AA times SS, a column at a time:

AS=A[x1x2xn]=[λ1x1λ2x2λnxn]AS = A \begin{bmatrix} \mathbf{x}_1 & \mathbf{x}_2 & \cdots & \mathbf{x}_n \end{bmatrix} = \begin{bmatrix} \lambda_1\mathbf{x}_1 & \lambda_2\mathbf{x}_2 & \cdots & \lambda_n\mathbf{x}_n \end{bmatrix}

Each column of ASAS is AA times an eigenvector, and that’s an eigenvalue times the eigenvector. Now the step Strang likes even better: peel the λ\lambda‘s off. To multiply the first column by λ1\lambda_1, the second by λ2\lambda_2, and so on, put the λ\lambda‘s in a diagonal matrix on the right:

[λ1x1λnxn]=[x1xn][λ1λn]=SΛ\begin{bmatrix} \lambda_1\mathbf{x}_1 & \cdots & \lambda_n\mathbf{x}_n \end{bmatrix} = \begin{bmatrix} \mathbf{x}_1 & \cdots & \mathbf{x}_n \end{bmatrix} \begin{bmatrix} \lambda_1 & & \\ & \ddots & \\ & & \lambda_n \end{bmatrix} = S\Lambda

“There you see matrix multiplication just working for us.” The diagonal matrix of eigenvalues gets a capital lambda, Λ\Lambda — capital letters for matrices, lambda to remind you it holds eigenvalues.

So A=SΛS1A = S\Lambda S^{-1} is a new factorization — the replacement for LULU from elimination or QRQR from Gram–Schmidt. A matrix, times a diagonal matrix, times the inverse of the first: that combination of SS and S1S^{-1} runs throughout this chapter.

Powers of A

First use of the formula: what are the eigenvalues and eigenvectors of A2A^2? A straightforward question with an absolutely clean answer, seen two ways.

From the equation. If Ax=λxA\mathbf{x} = \lambda\mathbf{x}, multiply both sides by AA:

A2x=λAx=λ2xA^2\mathbf{x} = \lambda A\mathbf{x} = \lambda^2 \mathbf{x}

The eigenvalues of A2A^2 are λ2\lambda^2 — squared. The eigenvectors are the same x\mathbf{x}‘s. (Strang always asks about both.)

From the factorization. This is the beauty of eigenvalues:

A2=(SΛS1)(SΛS1)=SΛ2S1A^2 = \left(S\Lambda S^{-1}\right)\left(S\Lambda S^{-1}\right) = S\Lambda^2 S^{-1}

The S1SS^{-1}S in the middle is the identity. Same message in matrix form: same SS, eigenvalues squared — Λ2\Lambda^2 is still diagonal, with λ12,,λn2\lambda_1^2, \dots, \lambda_n^2 down its diagonal. And nothing stops at the square. String KK copies together and the inner S1SS^{-1}S pairs keep canceling:

AK=SΛKS1A^K = S\Lambda^K S^{-1}

Here’s an immediate payoff. When do the powers of a matrix go to zero — when is AA stable, so to speak? That information is not present in the pivots. It’s present in the eigenvalues. In AK=SΛKS1A^K = S\Lambda^K S^{-1}, the SS and S1S^{-1} are not moving; it’s ΛK\Lambda^K that has to get small.

Which matrices are diagonalizable?

Time to face the assumption. The nice case first: AA is sure to have nn independent eigenvectors — and be diagonalizable — if all the λ\lambda‘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×1010 \times 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×1010 \times 10 identity matrix. Its eigenvalue 11 is repeated ten times, but there’s no shortage of eigenvectors — every vector is an eigenvector, so pick ten independent ones. Of course S1IS=IS^{-1}IS = I: the matrix was already diagonal, and a diagonal matrix has its eigenvalues sitting right there in front of you, Λ=A\Lambda = 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 nn 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\mathbf{u}_0 and at every step multiply by AA:

uk+1=Auku1=Au0,u2=A2u0,,uk=Aku0\mathbf{u}_{k+1} = A\mathbf{u}_k \qquad\Longrightarrow\qquad \mathbf{u}_1 = A\mathbf{u}_0,\quad \mathbf{u}_2 = A^2\mathbf{u}_0,\quad \dots,\quad \mathbf{u}_k = A^k\mathbf{u}_0

Strang calls this a first-order difference equation — a system, because the unknowns are vectors and AA is a matrix. The next section will solve differential equations, with derivatives; “this section is the nice one.” And uk=Aku0\mathbf{u}_k = A^k\mathbf{u}_0 is the most compact formula you could ever ask for. But how would you actually find u100\mathbf{u}_{100}?

To really solve it, write u0\mathbf{u}_0 as a combination of eigenvectors:

u0=c1x1+c2x2++cnxn\mathbf{u}_0 = c_1\mathbf{x}_1 + c_2\mathbf{x}_2 + \cdots + c_n\mathbf{x}_n

Now multiply by AA and watch — “you’ve got to see the magic of eigenvectors working here.” Each piece is a pure eigenvector, so AA only brings in a scalar factor:

Au0=c1λ1x1+c2λ2x2++cnλnxnA\mathbf{u}_0 = c_1\lambda_1\mathbf{x}_1 + c_2\lambda_2\mathbf{x}_2 + \cdots + c_n\lambda_n\mathbf{x}_n

Multiply by AA a hundred times and each term picks up its eigenvalue a hundred times:

u100=A100u0=c1λ1100x1+c2λ2100x2++cnλn100xn\mathbf{u}_{100} = A^{100}\mathbf{u}_0 = c_1\lambda_1^{100}\mathbf{x}_1 + c_2\lambda_2^{100}\mathbf{x}_2 + \cdots + c_n\lambda_n^{100}\mathbf{x}_n

The Fibonacci numbers

Now the example. The Fibonacci numbers start F0=0F_0 = 0, F1=1F_1 = 1, and each one is the sum of the previous two: 1,2,3,5,8,13,1, 2, 3, 5, 8, 13, \dots Question: what is F100F_{100}, 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+FkF_{k+2} = F_{k+1} + F_k 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]\mathbf{u}_k = \begin{bmatrix} F_{k+1} \\ F_k \end{bmatrix}

and add the trivially true equation Fk+1=Fk+1F_{k+1} = F_{k+1} as the second row. Then

uk+1=[Fk+2Fk+1]=[1110][Fk+1Fk]=Auk\mathbf{u}_{k+1} = \begin{bmatrix} F_{k+2} \\ F_{k+1} \end{bmatrix} = \begin{bmatrix} 1 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} F_{k+1} \\ F_k \end{bmatrix} = A\mathbf{u}_k

“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\lambda_1 + \lambda_2 equals the trace, 11, and λ1λ2\lambda_1\lambda_2 equals the determinant, 1-1. Now compute:

det(AλI)=1λ11λ=λ2λ1\det(A - \lambda I) = \begin{vmatrix} 1-\lambda & 1 \\ 1 & -\lambda \end{vmatrix} = \lambda^2 - \lambda - 1

Compare that with the recursion Fk+2Fk+1Fk=0F_{k+2} - F_{k+1} - F_k = 0 — the Fibonacci rule is showing up directly in the eigenvalue equation. The quadratic formula gives

λ1=1+521.618,λ2=1520.618\lambda_1 = \frac{1 + \sqrt{5}}{2} \approx 1.618, \qquad \lambda_2 = \frac{1 - \sqrt{5}}{2} \approx -0.618

and sure enough they add to 11 and multiply to 1-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\mathbf{u}_0 = c_1\mathbf{x}_1 + c_2\mathbf{x}_2 and take a hundred steps: the λ2\lambda_2 term, roughly (0.618)100(-0.618)^{100}, is extremely small — practically nothing. The λ1\lambda_1 term takes over and controls everything:

F100c1(1+52)100F_{100} \approx c_1 \left( \frac{1+\sqrt{5}}{2} \right)^{100}

The Fibonacci numbers grow by a factor of about 1.6181.618 per step — precise information straight out of an eigenvalue.

To complete the process, the eigenvectors. For this 2×22 \times 2 Strang uses a little trick: since

AλI=[1λ11λ]A - \lambda I = \begin{bmatrix} 1-\lambda & 1 \\ 1 & -\lambda \end{bmatrix}

is singular at each eigenvalue, the vector x=(λ,1)\mathbf{x} = (\lambda, 1) is in its null space — the second row gives λλ=0\lambda - \lambda = 0, and the first row gives (1λ)λ+1=(λ2λ1)=0(1-\lambda)\lambda + 1 = -(\lambda^2 - \lambda - 1) = 0, zero exactly because these λ\lambda‘s are special. So x1=(λ1,1)\mathbf{x}_1 = (\lambda_1, 1) and x2=(λ2,1)\mathbf{x}_2 = (\lambda_2, 1). The starting vector is u0=(F1,F0)=(1,0)\mathbf{u}_0 = (F_1, F_0) = (1, 0), and solving c1x1+c2x2=u0c_1\mathbf{x}_1 + c_2\mathbf{x}_2 = \mathbf{u}_0 pins down c1c_1 and c2c_2 — 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\mathbf{u}_0: find the eigenvalues and eigenvectors of AA — they already tell you whether the solution blows up or dies out — then expand u0\mathbf{u}_0 into eigenvectors and follow each one separately. That is exactly what Ak=SΛkS1A^k = S\Lambda^k S^{-1} is doing.

Problems

Work these before revealing the solutions — they use only this lecture’s machinery.

Problem 22.1 Diagonalize and take powers

Diagonalize

A=[3113]A = \begin{bmatrix} 3 & 1 \\ 1 & 3 \end{bmatrix}

— find SS and Λ\Lambda with A=SΛS1A = S\Lambda S^{-1} — and use the factorization to give a formula for AkA^k.

Show solution

det(AλI)=(3λ)21=λ26λ+8=(λ4)(λ2)\det(A - \lambda I) = (3-\lambda)^2 - 1 = \lambda^2 - 6\lambda + 8 = (\lambda - 4)(\lambda - 2), so λ1=4\lambda_1 = 4, λ2=2\lambda_2 = 2 (check: trace 66, determinant 88).

Eigenvectors: A4I=[1111]A - 4I = \begin{bmatrix} -1 & 1 \\ 1 & -1 \end{bmatrix} gives x1=(1,1)\mathbf{x}_1 = (1,1); A2I=[1111]A - 2I = \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix} gives x2=(1,1)\mathbf{x}_2 = (1,-1).

S=[1111],Λ=[4002],S1=12[1111]S = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix},\quad \Lambda = \begin{bmatrix} 4 & 0 \\ 0 & 2 \end{bmatrix},\quad S^{-1} = \frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}

Then

Ak=SΛkS1=12[1111][4k002k][1111]=12[4k+2k4k2k4k2k4k+2k]A^k = S\Lambda^k S^{-1} = \frac{1}{2}\begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} 4^k & 0 \\ 0 & 2^k \end{bmatrix} \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} = \frac{1}{2}\begin{bmatrix} 4^k + 2^k & 4^k - 2^k \\ 4^k - 2^k & 4^k + 2^k \end{bmatrix}

Check k=1k = 1: 12[6226]=A\frac{1}{2}\begin{bmatrix} 6 & 2 \\ 2 & 6 \end{bmatrix} = A. ✓

Problem 22.2 Do the powers go to zero?

Without computing any powers, decide whether Ak0A^k \to 0 as kk \to \infty for

A=[0.60.90.10.6]A = \begin{bmatrix} 0.6 & 0.9 \\ 0.1 & 0.6 \end{bmatrix}
Show solution

The answer lives in the eigenvalues. Trace =1.2= 1.2 and determinant =0.360.09=0.27= 0.36 - 0.09 = 0.27, so

det(AλI)=λ21.2λ+0.27=(λ0.9)(λ0.3)\det(A - \lambda I) = \lambda^2 - 1.2\lambda + 0.27 = (\lambda - 0.9)(\lambda - 0.3)

giving λ1=0.9\lambda_1 = 0.9, λ2=0.3\lambda_2 = 0.3. Both satisfy λ<1|\lambda| \lt 1, and the eigenvalues are distinct, so AA is diagonalizable and

Ak=SΛkS1=S[0.9k000.3k]S10A^k = S\Lambda^k S^{-1} = S \begin{bmatrix} 0.9^k & 0 \\ 0 & 0.3^k \end{bmatrix} S^{-1} \to 0

since SS and S1S^{-1} don’t move while Λk0\Lambda^k \to 0. Yes: the powers go to zero (slowly — the 0.9k0.9^k term controls the approach).

Problem 22.3 Algebraic vs. geometric multiplicity

Both of these matrices have λ=3\lambda = 3 repeated twice:

A=[3003],B=[3503]A = \begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix}, \qquad B = \begin{bmatrix} 3 & 5 \\ 0 & 3 \end{bmatrix}

For each, find the algebraic and geometric multiplicities of λ=3\lambda = 3 and decide whether the matrix is diagonalizable.

Show solution

Both characteristic polynomials are (3λ)2(3 - \lambda)^2, so the algebraic multiplicity is 2 for both.

For A=3IA = 3I: A3IA - 3I is the zero matrix, whose null space is all of R2\mathbb{R}^2 — every vector is an eigenvector. Geometric multiplicity 2; take S=IS = I and AA is (already) diagonal. Diagonalizable.

For BB: B3I=[0500]B - 3I = \begin{bmatrix} 0 & 5 \\ 0 & 0 \end{bmatrix} has a one-dimensional null space, spanned by (1,0)(1, 0) alone — (0,1)(0,1) is not in it. Geometric multiplicity 1: only one independent eigenvector, two needed. Not diagonalizable — no invertible eigenvector matrix SS exists.

Moral: a repeated eigenvalue may or may not bring enough eigenvectors — you have to count.

Problem 22.4 Finishing Fibonacci

The lecture stopped just short of the constants. Using the eigenvectors x1=(λ1,1)\mathbf{x}_1 = (\lambda_1, 1) and x2=(λ2,1)\mathbf{x}_2 = (\lambda_2, 1) of the Fibonacci matrix, with λ1=1+52\lambda_1 = \frac{1+\sqrt{5}}{2} and λ2=152\lambda_2 = \frac{1-\sqrt{5}}{2}, expand u0=(1,0)\mathbf{u}_0 = (1, 0) as c1x1+c2x2c_1\mathbf{x}_1 + c_2\mathbf{x}_2 and derive an exact formula for FkF_k.

Show solution

The expansion c1x1+c2x2=(1,0)c_1\mathbf{x}_1 + c_2\mathbf{x}_2 = (1,0) gives two equations:

c1λ1+c2λ2=1,c1+c2=0c_1\lambda_1 + c_2\lambda_2 = 1, \qquad c_1 + c_2 = 0

From the second, c2=c1c_2 = -c_1; substitute into the first: c1(λ1λ2)=1c_1(\lambda_1 - \lambda_2) = 1. Since λ1λ2=5\lambda_1 - \lambda_2 = \sqrt{5},

c1=15,c2=15c_1 = \frac{1}{\sqrt{5}}, \qquad c_2 = -\frac{1}{\sqrt{5}}

Each eigenvector goes its own way: uk=c1λ1kx1+c2λ2kx2\mathbf{u}_k = c_1\lambda_1^k \mathbf{x}_1 + c_2\lambda_2^k \mathbf{x}_2. The second component of uk\mathbf{u}_k is FkF_k, and the second component of each eigenvector is 11, so

Fk=c1λ1k+c2λ2k=15[(1+52)k(152)k]F_k = c_1\lambda_1^k + c_2\lambda_2^k = \frac{1}{\sqrt{5}}\left[ \left(\frac{1+\sqrt{5}}{2}\right)^{k} - \left(\frac{1-\sqrt{5}}{2}\right)^{k} \right]

Check: F0=0F_0 = 0 ✓, F1=155=1F_1 = \frac{1}{\sqrt{5}}\cdot\sqrt{5} = 1 ✓, F2=15(λ12λ22)=15(λ1+λ2)(λ1λ2)=1F_2 = \frac{1}{\sqrt{5}}(\lambda_1^2 - \lambda_2^2) = \frac{1}{\sqrt{5}}(\lambda_1+\lambda_2)(\lambda_1-\lambda_2) = 1 ✓. Since λ2<1|\lambda_2| \lt 1, the second term vanishes as kk grows, and F10015λ1100F_{100} \approx \frac{1}{\sqrt{5}}\lambda_1^{100} — exactly the growth rate the eigenvalue predicted.