Linear Algebra
8.812 min read

The Spectral Theorem

The Spectral Theorem is the cornerstone of this chapter: every symmetric matrix can be diagonalized by an orthogonal matrix. Specifically, for any symmetric n×nn \times n matrix AA, there exists an orthogonal matrix UU (meaning UU=IU^\top U = I) and a diagonal matrix Λ=diag(λ1,,λn)\Lambda = \text{diag}(\lambda_1, \ldots, \lambda_n) such that A=UΛUA = U \Lambda U^\top.

The columns u1,,un\mathbf{u}_1, \ldots, \mathbf{u}_n of UU form an orthonormal basis of Rn\mathbb{R}^n, called the principal axes of AA. The diagonal entries λ1,,λn\lambda_1, \ldots, \lambda_n of Λ\Lambda are called the eigenvalues of AA. The eigenvalues are always real (never complex) for symmetric matrices — this is a key structural fact.

Geometrically, the decomposition A=UΛUA = U \Lambda U^\top says: rotating to the principal-axis frame (via UU^\top), scaling independently along each axis (via Λ\Lambda), then rotating back (via UU). This makes symmetric matrices far easier to analyze than general matrices.

Formal View

Theorem 8.1 (Spectral Theorem) — Eigendecomposition of Symmetric Matrices
Let AA be a real symmetric n×nn \times n matrix. Then:\n1. All eigenvalues of AA are real.\n2. Eigenvectors for distinct eigenvalues are orthogonal.\n3. AA can be written as A=UΛUA = U \Lambda U^\top, where UU is orthogonal (UU=IU^\top U = I) and Λ=diag(λ1,,λn)\Lambda = \operatorname{diag}(\lambda_1, \ldots, \lambda_n).

This decomposition is called the spectral decomposition or eigendecomposition of AA. MATLAB: `[U, Lambda] = eig(A)`.

Interactive Visualization

Eigenvector Explorer

Why This Matters

The Spectral Theorem is what makes symmetric matrices so powerful — it guarantees a clean coordinate system where everything diagonalizes.

  • PCA relies on the spectral theorem: the covariance matrix is symmetric, so it has orthogonal eigenvectors (principal components).
  • Vibration analysis: natural frequencies of a structure are eigenvalues of a symmetric stiffness matrix.
  • Quantum mechanics: observables are represented by symmetric (Hermitian) operators, whose eigenvalues are the measurable quantities.

Quiz

Question 1

The spectral theorem guarantees that every symmetric matrix has real eigenvalues.

Question 2

In the spectral decomposition A=UΛUA = U \Lambda U^\top, what does UU=IU^\top U = I tell us about UU?

Common Mistakes

  • Confusing the spectral theorem (for symmetric matrices) with the general diagonalization theorem (which requires nn linearly independent eigenvectors but not necessarily orthonormal ones).
  • Forgetting that UU is orthogonal, so U1=UU^{-1} = U^\top — this simplifies many calculations.