The Spectral Theorem
The spectral theorem for real symmetric matrices
The statement
Spectral theorem (real case). For a real n × n matrix A, the following are equivalent:
- A is symmetric (AT = A).
- A is orthogonally diagonalizable: there is an orthogonal matrix Q (QTQ = I) and a diagonal matrix Λ with A = QΛQT.
When A is symmetric, the theorem delivers three facts:
- All eigenvalues are real, counted with multiplicity there are exactly n of them.
- Eigenvectors belonging to different eigenvalues are orthogonal.
- ℝn has an orthonormal basis of eigenvectors of A, even when eigenvalues repeat. The columns of Q are such a basis and the diagonal of Λ lists the matching eigenvalues.
The easy direction is worth seeing: if A = QΛQT then AT = (QT)TΛTQT = QΛQT = A, so an orthogonally diagonalizable matrix must be symmetric. A non-symmetric matrix may still be diagonalizable, but never with an orthonormal eigenbasis.
Why eigenvectors for different eigenvalues are orthogonal
Suppose Av = λv and Aw = μw with λ ≠ μ. Using symmetry,
λ(v·w) = (Av)·w = v·(ATw) = v·(Aw) = μ(v·w).
So (λ − μ)(v·w) = 0, and since λ ≠ μ, v·w = 0. This is a powerful computational shortcut: once you know one eigenvector, eigenvectors for other eigenvalues must lie in its orthogonal complement.
The spectral decomposition
Writing A = QΛQT column by column gives
A = λ1u1u1T + λ2u2u2T + … + λnununT,
where the ui are orthonormal eigenvectors. Each uiuiT is the matrix of orthogonal projection onto the line spanned by ui. So A acts by projecting a vector onto each eigen-direction and scaling that piece by the eigenvalue. The formula needs unit vectors; with an unnormalized v, the projection is vvT/(v·v).
Because the projections satisfy PiPj = 0 for i ≠ j and Pi2 = Pi, powers are easy: Ak = λ1kP1 + … + λnkPn.
Worked example
Let A have rows (5, 2) and (2, 2).
- Eigenvalues. Trace 7, determinant 10 − 4 = 6, so λ2 − 7λ + 6 = 0 and λ = 6, 1.
- Eigenvectors. For λ = 6, A − 6I has rows (−1, 2), (2, −4), so (2, 1) works. For λ = 1, the eigenvector must be orthogonal to (2, 1), so (1, −2); check: A(1, −2) = (5 − 4, 2 − 4) = (1, −2).
- Normalize. Both have length √5: u1 = (2, 1)/√5, u2 = (1, −2)/√5.
- Projections. P1 = (1/5) × rows (4, 2), (2, 1); P2 = (1/5) × rows (1, −2), (−2, 4). Note P1 + P2 = I.
- Check. 6P1 + 1P2 = (1/5) × rows (24 + 1, 12 − 2), (12 − 2, 6 + 4) = rows (5, 2), (2, 2) = A.
Repeated eigenvalues
If an eigenvalue repeats, its eigenspace has dimension equal to its multiplicity (symmetric matrices are never defective). Any orthonormal basis of that eigenspace can be used, for example by applying Gram–Schmidt within it. Eigenvectors inside one eigenspace are not automatically orthogonal; only eigenvectors from different eigenvalues are.
A is a real symmetric 3 × 3 matrix. The vector (1, 2, −1) is an eigenvector of A with eigenvalue 4, and the vector (3, a, 1) is an eigenvector of A with eigenvalue −1.
What is the value of a?
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Let A be the symmetric matrix with rows (7, −6) and (−6, −2).
- Find the two eigenvalues of A (larger first).
- Find the unit eigenvector u1 for the larger eigenvalue, choosing the sign so its first component is positive. Give exact values.
- Find the projection matrix P1 = u1u1T (row by row, exact fractions).
- Use the spectral decomposition A3 = λ13P1 + λ23P2 to find the (1, 1) entry of A3.