Rank from the Spectral Decomposition
The rank of a symmetric matrix equals the number of nonzero eigenvalues. This follows from the outer product form : each nonzero term contributes 1 to the rank, and the terms are "orthogonal" (in a precise sense), so the total rank is exactly the count of nonzero .
Equivalently, the null space of is spanned by the eigenvectors corresponding to zero eigenvalues. If , then , so . And since the eigenvectors span , the nullity equals the number of zero eigenvalues. By the rank-nullity theorem, rank = - nullity = number of nonzero eigenvalues.
Formal View
The null space , and the column space .
Interactive Visualization
Rank-Nullity Theorem
Why This Matters
Rank tells you the "effective dimension" of a matrix — how many independent directions it can act along.
- A covariance matrix with a zero eigenvalue indicates a redundant feature — a linear combination of features is constant.
- Rank deficiency in signals that the regression problem has infinitely many solutions.
- Low-rank approximation: keeping only the top- eigenvalues gives the best rank- approximation of the matrix.
Quiz
A symmetric matrix has eigenvalues . What is its rank?
If a symmetric matrix has rank , exactly of its eigenvalues are nonzero.
Common Mistakes
- Counting the number of distinct eigenvalues instead of the number of nonzero eigenvalues — a repeated nonzero eigenvalue still contributes its full multiplicity to the rank.
- Forgetting that nullity = number of zero eigenvalues (counting multiplicity), not the count of distinct zero eigenvalues.