The Spectral Theorem, Symmetric and Positive-Definite Matrices, Quadratic Forms
Why symmetric matrices are the best behaved of all: real eigenvalues, orthogonal eigenvectors, and the geometry of covariance.
Leads to: The SVD (4.7) extends this to non-symmetric matrices; PSD covariance underlies all of portfolio theory.
Learning Objectives
Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.
- State the spectral theorem for real symmetric matrices.
- Classify a symmetric matrix as positive-(semi)definite via eigenvalues or pivots.
- Diagonalize a quadratic form and read its geometry (principal axes).
- Prove that any covariance matrix is symmetric positive-semidefinite.
Key Vocabulary
- Symmetric matrix
- \(A=A^\top\); the natural class for covariance, Hessians, and Gram matrices.
- Spectral theorem
- Every real symmetric matrix is \(A=Q\Lambda Q^\top\) with orthonormal \(Q\) and real \(\Lambda\).
- Positive definite
- Symmetric with \(x^\top Ax\gt 0\) for all \(x\neq0\); equivalently all eigenvalues \(\gt 0\).
- Positive semidefinite
- Symmetric with \(x^\top Ax\ge0\); eigenvalues \(\ge0\) (covariances live here).
- Quadratic form
- A function \(q(x)=x^\top Ax\) with symmetric \(A\); its level sets are ellipsoids when \(A\succ0\).
- Covariance matrix
- \(\Sigma=\E[(X-\mu)(X-\mu)^\top]\); symmetric PSD, encoding all variances and covariances.
Intuition & Motivation
The spectral theorem
Definiteness and quadratic forms
Because \(x^\top A x=x^\top Q\Lambda Q^\top x=\sum_i \lambda_i\,y_i^2\) where \(y=Q^\top x\) are the coordinates in the eigenbasis, the sign of the quadratic form is governed entirely by the eigenvalues:
| Eigenvalues | Classification | \(x^\top Ax\) |
|---|---|---|
| all \(\gt 0\) | positive definite | \(\gt 0\) for \(x\neq0\) |
| all \(\ge0\) | positive semidefinite | \(\ge0\) |
| mixed signs | indefinite | takes both signs |
| all \(\lt 0\) | negative definite | \(\lt 0\) for \(x\neq0\) |
For a positive-definite \(A\) the level set \(x^\top Ax=1\) is an ellipsoid whose principal axes are the eigenvectors of \(A\) and whose semi-axis lengths are \(1/\sqrt{\lambda_i}\).
Application: covariance is symmetric PSD
With a symmetric matrix (\(b=c\)) the two eigen-directions come out perpendicular - the visual signature of the spectral theorem. The unit circle maps to an ellipse whose axes are those eigenvectors, scaled by the eigenvalues.
- Claiming a non-symmetric matrix has orthogonal eigenvectors - the spectral theorem needs \(A=A^\top\).
- Testing definiteness by checking only the diagonal entries; you need all eigenvalues (or all leading principal minors) positive.
- Forgetting that a covariance can be singular (PSD not PD) when assets are collinear - then \(\Sigma^{-1}\) fails to exist.
- Confusing positive entries with positive definiteness; a matrix can have all positive entries yet be indefinite.
- Definiteness = eigenvalue signs; Sylvester’s criterion (all leading principal minors \(\gt 0\)) is a fast hand-check for PD.
- The eigenvectors of a covariance matrix are the principal components; the eigenvalues are the variances they explain (Lesson 4.7).
- A regularized covariance \(\Sigma+\epsilon I\) is guaranteed PD - the standard fix for a singular sample covariance before inverting.
Knowledge Check
Practical Exercise
Let \(A=\begin{bmatrix}2&-1\\-1&2\end{bmatrix}\). (a) Show \(A\) is positive definite. (b) Describe the level set \(x^\top Ax=1\) (orientation and axis lengths).
(a) Symmetric with \(\tr A=4\gt 0\) and \(\det A=4-1=3\gt 0\), so both eigenvalues are positive (their sum and product are positive). Explicitly \(\lambda=2\pm1=3,1\). Hence \(A\succ0\). Equivalently the leading minors \(2\gt 0\) and \(3\gt 0\) satisfy Sylvester’s criterion.
(b) In the eigenbasis \(x^\top Ax=3y_1^2+y_2^2=1\) is an ellipse. Principal axes are the eigenvectors \((1,-1)/\sqrt2\) (for \(\lambda=3\)) and \((1,1)/\sqrt2\) (for \(\lambda=1\)). Semi-axis lengths are \(1/\sqrt3\) (short, along the large-eigenvalue direction) and \(1\) (long). The ellipse is tilted 45° to the axes.
Lesson Summary
Formula Sheet Additions
Retrieval Practice
Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.
A: A = Q Λ Q^T with Q orthonormal (eigenvectors) and Λ diagonal with real eigenvalues; eigenvectors are orthogonal.
A: Because w^T Σ w = Var(w^T X) ≥ 0 for every weight vector w; a variance cannot be negative.
Completion Checklist
- I can explain the core ideas in my own words
- I worked the derivations/examples by hand
- I completed the interactive workbench(es)
- I passed the knowledge check