Spectral Theorem
Statement
Let be a real symmetric matrix (i.e., ). Then:
- All eigenvalues of are real.
- Eigenvectors corresponding to distinct eigenvalues are orthogonal.
- There exists an orthogonal matrix (so ) and a diagonal matrix such that:
Equivalently, is orthogonally similar to a diagonal matrix of its eigenvalues. In the complex Hermitian setting (), the same holds with a unitary matrix replacing .
Visualization
Take the symmetric matrix:
Step 1 — Find eigenvalues via :
Both eigenvalues are real.
Step 2 — Find eigenvectors.
For : gives , so .
For : gives , so .
Note : orthogonal, as guaranteed.
Step 3 — Assemble and verify .
Proof Sketch
The key steps for real symmetric matrices are: (1) every symmetric operator on a real finite-dimensional inner product space has at least one real eigenvalue (proved via the characteristic polynomial having a real root, using the fundamental theorem of algebra over then checking reality). (2) By induction on dimension — restrict to the orthogonal complement of one eigenvector; the restricted operator is still symmetric. (3) Orthogonality of eigenvectors for distinct eigenvalues follows from .
Connections
- Cayley–Hamilton TheoremCayley–Hamilton TheoremEvery square matrix satisfies its own characteristic polynomialRead more → — the characteristic polynomial whose roots are these eigenvalues is also annihilated by .
- Determinant MultiplicativityDeterminant MultiplicativityThe determinant of a product equals the product of determinantsRead more → — ; the product of diagonal entries of .
- Rank–Nullity TheoremRank–Nullity TheoremThe dimensions of image and kernel of a linear map sum to the domain dimensionRead more → — the number of zero eigenvalues equals the nullity of .
- Fundamental Theorem of Galois TheoryFundamental Theorem of Galois TheoryBijection between intermediate fields and subgroups of the Galois groupRead more → — the eigenvalue decomposition is the linear algebra analogue of a splitting field decomposition.
- Spectral Radius FormulaSpectral Radius FormulaThe spectral radius equals the limit of the nth root of the operator norm of the nth power (Gelfand's formula)Read more → — for bounded operators on a Banach space, the spectral radius equals the supremum of over all in the spectrum; for Hermitian matrices this reduces to .
Lean4 Proof
/-- The spectral theorem for Hermitian matrices: a Hermitian matrix A is
unitarily conjugate to a diagonal matrix of its (real) eigenvalues.
Mathlib packages this as `Matrix.IsHermitian.spectral_theorem` in
Mathlib.Analysis.Matrix.Spectrum. -/
noncomputable example
{n 𝕜 : Type*} [RCLike 𝕜] [Fintype n] [DecidableEq n]
{A : Matrix n n 𝕜} (hA : A.IsHermitian) :
A = hA.eigenvectorUnitary.val *
Matrix.diagonal (RCLike.ofReal ∘ hA.eigenvalues) *
(star hA.eigenvectorUnitary.val) :=
hA.spectral_theoremReferenced by
- Lagrange MultipliersOptimization
- Matrix-Tree TheoremGraph Theory
- Linear ODE General SolutionDifferential Equations
- Cayley–Hamilton TheoremLinear Algebra
- Singular Value DecompositionLinear Algebra
- Singular Value DecompositionLinear Algebra
- Determinant MultiplicativityLinear Algebra
- Cramer's RuleLinear Algebra
- Rank–Nullity TheoremLinear Algebra
- Polar DecompositionLinear Algebra
- Polar DecompositionLinear Algebra
- Diagonalizability CriterionLinear Algebra
- QR DecompositionLinear Algebra
- Gram–Schmidt OrthogonalizationLinear Algebra
- Jordan Canonical FormLinear Algebra
- Schur DecompositionLinear Algebra
- Schur DecompositionLinear Algebra
- Closed Graph TheoremFunctional Analysis
- Riesz Representation TheoremFunctional Analysis