Part6 Matrix Diagonalization
Part6 Matrix Diagonalization
Part VI
Matrices: Diagonalization & Applications
Topics Covered:
• Eigenvalues & Eigenvectors: Definitions, the Characteristic Polynomial
• Algebraic & Geometric Multiplicity; When They Differ
• Linear Independence of Eigenvectors from Distinct Eigenvalues (Proof)
• Diagonalization: Necessary & Sufficient Conditions (Full Proof)
• The Change-of-Basis Interpretation: What Diagonalization Means
Geometrically
• Application I: Matrix Powers An via Diagonalization
• Application II: The Matrix Exponential eAt and Systems of ODEs
• Application III: Large Powers, Markov Chains & Steady States
• The Spectral Theorem for Real Symmetric Matrices
• Cayley-Hamilton Theorem and Minimal Polynomial
Based on:
Mathematical Methods for Physicists — Arfken, Weber & Harris
Mathematical Methods in the Physical Sciences — Mary L. Boas
Advanced Engineering Mathematics — Erwin Kreyszig
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Contents
4 Diagonalization 6
4.1 Definition and the Key Equation . . . . . . . . . . . . . . . . . . . . . 7
4.2 The Procedure for Diagonalization . . . . . . . . . . . . . . . . . . . . 8
4.3 Geometric Interpretation: Change of Basis . . . . . . . . . . . . . . . . 10
1
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
2
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
A diagonal matrix is the simplest possible matrix: its action on any basis vector is
mere scaling. The central question of diagonalization is:
2.1. Definitions
Av = λv.
3
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
det(A − λI) = 0.
The coefficient of λn−1 is − tr(A) = −(a11 + · · · + ann ) and the constant term is
pA (0) = det(−A) = (−1)n det(A).
4
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Definition: Eigenspace
For each eigenvalue λ of A, the eigenspace is
1 ≤ mg (λ) ≤ ma (λ).
5
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
λ − 4 −1
pA (λ) = = (λ − 4)(λ − 3) − 2 = λ2 − 7λ + 10 = (λ − 5)(λ − 2).
−2 λ − 3
6
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Proof. By induction on k.
Base case k = 1: A single eigenvector v1 ̸= 0 is trivially linearly independent.
Inductive step: Assume any set of k − 1 eigenvectors from distinct eigenvalues is
linearly independent. Suppose
c1 v1 + c2 v2 + · · · + ck vk = 0. (∗)
c1 λ1 v1 + c2 λ2 v2 + · · · + ck λk vk = 0. (∗∗)
4. Diagonalization
7
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
A = P DP −1 ,
equivalently P −1 AP = D.
mg (λ) = ma (λ).
8
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Algorithm:
3. For each λi , solve (A − λi I)v = 0 to find a basis for Eλi ; record mg (λi ) = dim Eλi .
−1 0 1
Characteristic polynomial:
λ−2 0 0
pA (λ) = det(λI − A) = −1 λ − 2 −1 .
1 0 λ−1
λ − 2 −1
Expanding along the first row: = (λ − 2) = (λ − 2)[(λ − 2)(λ −
0 λ−1
1) − 0] = (λ − 2)2 (λ − 1).
Eigenvalues: λ1 = 2 with ma = 2; λ2 = 1 with ma = 1.
9
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
−1 0 −1
0 1
0
−1
E2 = span 1 , 0 . mg (2) = 2 = ma (2). ✓
0 1
Eigenspace for λ = 1: (A − I)v = 0:
1 0 0
A − I = 1 1 1 .
−1 0 0
Diagonalizing matrices:
0 −1 0 2 0 0
P = 1 0 1 , D = 0 2 0 .
0 1 −1 0 0 1
0 0 0
Verification: AP , column 1: A 1 = 2 = 2 1. ✓
0 0 0
10
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
An = P Dn P −1 , Dn = diag(λn1 , . . . , λnk ).
11
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
12
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
recurrence ! ! !
Fn+1 1 1 Fn
= .
Fn 1 0 Fn−1
| {z }
A
! !
Fn+1 1
So = An (with F1 = 1, F0 = 0).
Fn 0
√
2 1± 5 √
Eigenvalues of A: λ − λ − 1 = 0, so λ1,2 = . Let ϕ = (1 + 5)/2 (the
√ 2
− 5)/2.
golden ratio) and ϕ̂ = (1 ! !
ϕ ϕ̂
Eigenvectors: v1 = (for λ1 = ϕ), v2 = (for λ2 = ϕ̂).
1 1
!
1
Using An = P Dn P −1 and extracting the (1, 1) entry of An :
0
" √ !n √ !n #
ϕn − ϕ̂n 1 1+ 5 1− 5
Fn = √ =√ − .
5 5 2 2
√
This is Binet’s formula. Since |ϕ̂| < 1, ϕ̂n → 0, so Fn ≈ ϕn / 5 for large n,
and Fn+1 /Fn → ϕ.
13
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Since the scalar series e∥A∥ converges, the matrix series converges absolutely (entry by
entry).
14
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
5. If A has eigenvalues λi , then eAt has eigenvalues eλi t with the same eigenvec-
tors.
x(t) = eAt x0 .
eλ1 t c1
.
x(t) = P eDt c = P .. = c1 eλ1 t v1 + · · · + cn eλn t vn .
eλn t cn
15
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
! ! !
1 1 2
Decompose initial condition: x0 = c1 v1 + c2 v2 : c1 + c2 = .
1 −1 0
c1 + c2 = 2, c1 − c2 = 0, so c1 = 1, c2 = 1.
Solution: ! ! !
1 1 e4t + e2t
x(t) = e4t + e2t = .
1 −1 e4t − e2t
Verify: ẋ1 = 4e4t + 2e2t . 3x1 + x2 = 3(e4t + e2t ) + (e4t − e2t ) = 4e4t + 2e2t . ✓
Proof. An x0 = P Dn P −1 x0 = nj=1 cj λnj vj = λn1 j cj (λj /λ1 )n vj . Since |λj /λ1 | < 1
P P
16
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
1. λ = 1 is an eigenvalue of A.
Proof. Part 1: Let 1 = (1, . . . , 1)T . Then 1T A = 1T (column sums are 1), so AT 1 = 1,
meaning 1 is an eigenvector of AT with λ = 1. Hence det(A − I) = det(AT − I) = 0,
so λ = 1 is an eigenvalue of A.
Part 2: Suppose Av = λv with |λ| ≥ 1. Let vk = maxi |vi |. Then |λ||vk | = |(λv)k | =
P P P
|(Av)k | = | j Akj vj | ≤ j Akj |vj | ≤ |vk | j Akj = |vk |. Hence |λ| ≤ 1. The strict
inequality |λ| < 1 for λ ̸= 1 follows from the regularity condition (details require the
Perron-Frobenius theorem).
Part 3: By the dominant eigenvalue theorem, An x0 → c1 q for any x0 with 1T x0 = 1
(probability vector). Normalising, each column of An converges to q.
ASS = 0.8: probability sunny → sunny. ARS = 0.2: probability sunny → rainy.
Etc.
Eigenvalues: pA (λ) = (λ−0.8)(λ−0.6)−0.08 = λ2 −1.4λ+0.4 = (λ−1)(λ−0.4).
λ1 = 1, λ2 = 0.4. !
−0.2 0.4
Steady state (λ1 = 1): (A − I)q = 0: q = 0, so qR = qS /2.
0.2 −0.4
Normalising
! (qS + qR = 1): qS = 2/3, qR = 1/3.
2/3
q= .
1/3
!
2/3 2/3
Long-run prediction: limn→∞ An = .
1/3 1/3
Regardless of today’s weather, after many days the probability of sunshine is 2/3.
Rate of convergence: |λ2 | = 0.4, so after n steps the error in any probability
is ∼ 0.4n — geometric decay. After 5 steps: 0.45 ≈ 0.01.
17
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Real symmetric matrices are the most important class in physics (they arise as Hamil-
tonians, inertia tensors, stress tensors, covariance matrices, and more).
v∗ Av = λv∗ v = λ∥v∥2 .
v∗ Av = λ̄v∗ v = λ̄∥v∥2 .
Both sides are equal: λ∥v∥2 = λ̄∥v∥2 . Since ∥v∥2 > 0, we get λ = λ̄, i.e., λ ∈ R.
Part 2: Eigenvectors from distinct eigenvalues are orthogonal. Let Au = λu
and Av = µv with λ ̸= µ (all real).
λ u · v = (Au) · v = uT AT v = uT Av = u · (Av) = µ u · v.
18
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
19
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
Now pA (D) = diag(pA (λ1 ), . . . , pA (λn )). Since each λi is a root of pA : pA (λi ) = 0 for
all i. Hence pA (D) = 0, and pA (A) = P · 0 · P −1 = 0.
(For non-diagonalizable matrices, the proof uses the Jordan normal form or the adjugate
matrix; the result holds in full generality.)
1 n−1
A−1 = − (A + cn−1 An−2 + · · · + c1 I).
c0
20
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
! ! !
4 4 1
1 18 7
Direct check: A2 = = . A3 = A2 · A =
2 3
2 3 14 11
! ! ! !
18 7 4 1 72 + 14 18 + 21 86 39
= = . ✓
14 11 2 3 56 + 22 14 + 33 78 47
When mg (λ) < ma (λ) for some eigenvalue, A cannot be diagonalized. The closest we
can get is the Jordan normal form.
n n n
λn 1
λn−1 2
λn−2 ··· k−1
λn−k+1
n n
0 λn λn−1 ··· λn−k+2
1 k−2
n
. .. ..
Jk (λ) = . . .
. .
n
n−1
··· λn
0 0 1
λ
0 0 ··· 0 λn
Proof. Write Jk (λ) = λI + N where N is the nilpotent matrix with 1’s on the su-
perdiagonal and 0’s elsewhere. Since λI and N commute: Jk (λ)n = (λI + N )n =
Pk−1 n n−j j
j=0 j λ N (the sum terminates at j = k − 1 since N k = 0). The (i, j) entry of
N j is δi+j,j (1 on the j-th superdiagonal), giving the stated formula.
21
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
6 −11 6
panion matrix):
Q3. (Matrix
! Exponential: Non-Diagonal Case) For the matrix A =
1 1
(a Jordan block J2 (1)):
0 1
22
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
!
0 1
(b) Write A = I + N where N = and show N 2 = 0.
0 0
!
et tet
(c) Use the power series definition to show eAt = .
0 et
d At
(d) Show that dt
e= AeAt , verifying Property 2 of the matrix exponential.
!
1
(e) Solve the system ẋ = Ax, x(0) = .
1
3 1 1
Q4. (The Spectral Theorem: Applications) Let A = 1 3 1 (a circu-
1 1 3
lant matrix).
23
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
24
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
!
√ 5 4
(d) Use this to solve: what is A (a “square root” of A) for A = ?
1 2
(Find a matrix B with B 2 = A.)
25
Part 6 — Matrix Diagonalization & Applications Mathematical Methods
26