The Spectral Theorem for Symmetric Matrices
Every symmetric matrix, however tangled it looks, is secretly just a stretch along a set of perpendicular directions — the spectral theorem guarantees those directions always exist and are always at right angles.
Prerequisites: Eigenvalues & Eigenvectors, Vector Spaces and Bases, Inner Products and Orthogonality
Multiply a vector by most matrices and it gets stretched and rotated — the output points in some new, unpredictable direction. But for a special and enormously common class of matrices — symmetric ones, which is what every covariance matrix and every "similarity" or "distance" matrix in finance and statistics happens to be — something remarkable is guaranteed: there always exists a set of directions the matrix does not rotate at all, only stretches, and those directions are always mutually perpendicular. That guarantee is the spectral theorem, and it's the reason principal component analysis, risk decomposition, and half of multivariate statistics work at all.
The analogy: kneading dough along fixed grain lines
Picture a block of dough with grain running in two perpendicular directions, like woven fabric. Now knead it — push and pull — but only ever along those grain lines, never twisting them. The dough stretches unevenly (more along one grain than the other) but the grain lines themselves stay put; they just get longer or shorter. Any other line drawn on the dough, diagonal to the grain, does rotate as you knead. A symmetric matrix is a kneading operation with this special property built in: there are always some perpendicular "grain lines" — the eigenvectors — that survive the kneading without rotating, only stretching by a factor called the eigenvalue.
Writing it down
Let be a real, symmetric matrix, meaning — the entry in row , column equals the entry in row , column . A vector is an eigenvector with eigenvalue if
In words: multiplying by gives back the same direction , just scaled by the number — no rotation, pure stretch (or shrink, or flip, if is negative).
The spectral theorem states that for any symmetric of size , there exist eigenvectors that are mutually orthogonal (perpendicular, zero dot product between any pair) and can be scaled to unit length, and their eigenvalues are always real numbers (never involving , unlike general matrices). Collecting the eigenvectors as columns of a matrix and the eigenvalues on the diagonal of a matrix , the whole matrix factors as
In words: is equivalent to rotating into the grain-line coordinate system (), stretching along each grain line by its eigenvalue (), then rotating back (). Because 's columns are orthonormal, — rotating back is literally the reverse of rotating in, with no distortion, which is what makes this decomposition so clean compared to a general matrix.
This explorer draws the unit circle transformed by a 2x2 matrix, with its eigenvectors overlaid. For a symmetric matrix, the two eigenvector arrows sit at exactly 90 degrees to each other, and they point straight along the axes of the resulting ellipse — that alignment, guaranteed by the spectral theorem, is what you should watch for as you adjust the matrix entries.
Worked example 1: a 2x2 covariance matrix, by hand
Take — symmetric, and a plausible (scaled) covariance matrix. Find eigenvalues by solving :
So , . For : solve , i.e. , giving (unnormalised) — check: . Normalise: length , so .
For : solve , i.e. , giving (unnormalised) — check: . Normalise: length , so .
Sanity check the perpendicularity: — exactly orthogonal, as guaranteed. And (the trace), a fast arithmetic check available on every 2x2 symmetric matrix.
Worked example 2: reconstructing and reading a risk decomposition
Verify with , . Compute first: multiply each column of by its eigenvalue — column 1 by 6, column 2 by 1: . Then : row 1 of dotted with each column of (which are the rows of ) gives row 1 of the result: , and . That reproduces 's first row , confirming the factorisation.
Now read it as a risk decomposition: if is a covariance matrix, total variance (the trace, ) splits into units along direction and unit along . In portfolio terms, of the total risk () sits along one specific combination of the two original variables — the direction a principal component analysis would call the first, dominant factor.
What this means in practice
- It's the mathematical basis of principal component analysis. PCA on a covariance matrix is literally applying the spectral theorem and reading off the eigenvector with the largest eigenvalue as "the direction of greatest variance."
- It guarantees real, orthogonal risk factors exist. Risk models decompose portfolio variance into independent contributions precisely because a covariance matrix is always symmetric, so the spectral theorem always applies — no special pleading needed.
- It underlies Cholesky's cousin decompositions. Where Cholesky gives a fast triangular square root for simulation, the spectral form gives an interpretable square root () used when you specifically want to see which directions carry the risk.
Every real symmetric matrix can be written : a rotation into a special set of mutually perpendicular directions (the eigenvectors, columns of ), a pure stretch along each one (the eigenvalues, diagonal of ), and a rotation back. Symmetry is what guarantees the directions are perpendicular and the stretches are real numbers — general matrices offer no such guarantee.
The classic confusion is assuming any square matrix has this nice orthogonal decomposition. It does not — a non-symmetric matrix can have complex eigenvalues, eigenvectors that aren't perpendicular, or even too few eigenvectors to diagonalise at all. The spectral theorem is a special gift of symmetry. The practical trap: a sample covariance matrix computed from noisy or insufficient data is symmetric by construction, so the theorem always technically applies, but with too few observations relative to the number of assets, the smallest eigenvalues become unreliable — dominated by estimation noise rather than genuine low-risk directions — which is why practitioners shrink or clip small eigenvalues before trusting a spectral decomposition for risk management.
Related concepts
Practice in interviews
Further reading
- Strang, Introduction to Linear Algebra (ch. 6)
- Axler, Linear Algebra Done Right (ch. 7)