Linear Algebra
8.128 min read

The Spectral Decomposition Gives Eigenvalues

If we know the spectral decomposition A=UΛUA = U\Lambda U^\top, the eigenvalues are simply the diagonal entries of Λ\Lambda, and the eigenvectors are the columns of UU. This is worth verifying directly: for the ii-th column ui\mathbf{u}_i of UU, we compute Aui=UΛUuiA\mathbf{u}_i = U\Lambda U^\top \mathbf{u}_i.

Since Uui=eiU^\top \mathbf{u}_i = \mathbf{e}_i (the ii-th standard basis vector, because UU is orthogonal and its columns are orthonormal), we get UΛei=U(λiei)=λiUei=λiuiU\Lambda \mathbf{e}_i = U (\lambda_i \mathbf{e}_i) = \lambda_i U \mathbf{e}_i = \lambda_i \mathbf{u}_i. So Aui=λiuiA\mathbf{u}_i = \lambda_i \mathbf{u}_i — confirming that each column of UU is an eigenvector with eigenvalue λi\lambda_i.

This also shows the spectral decomposition can be written as a sum of outer products: A=i=1nλiuiuiA = \sum_{i=1}^n \lambda_i \mathbf{u}_i \mathbf{u}_i^\top. Each term λiuiui\lambda_i \mathbf{u}_i \mathbf{u}_i^\top is a rank-1 matrix encoding the action along the ii-th principal axis.

Formal View

Theorem 8.3 — Outer Product Form of Spectral Decomposition
If A=UΛUA = U\Lambda U^\top with orthogonal U=[u1un]U = [\mathbf{u}_1 \cdots \mathbf{u}_n] and Λ=diag(λ1,,λn)\Lambda = \operatorname{diag}(\lambda_1, \ldots, \lambda_n), then
A=i=1nλiuiui.A = \sum_{i=1}^n \lambda_i \mathbf{u}_i \mathbf{u}_i^\top.
Each term λiuiui\lambda_i \mathbf{u}_i \mathbf{u}_i^\top is a rank-1 symmetric matrix.

The verification is: Auj=(iλiuiui)uj=iλi(uiuj)ui=λjujA\mathbf{u}_j = \left(\sum_i \lambda_i \mathbf{u}_i \mathbf{u}_i^\top\right)\mathbf{u}_j = \sum_i \lambda_i (\mathbf{u}_i^\top \mathbf{u}_j) \mathbf{u}_i = \lambda_j \mathbf{u}_j using orthonormality uiuj=δij\mathbf{u}_i^\top \mathbf{u}_j = \delta_{ij}.

Why This Matters

The outer-product form of the spectral decomposition is the foundation of low-rank approximation and PCA.

  • Truncating the sum to kk terms gives the best rank-kk approximation to AA.
  • Image compression: storing only the largest kk eigenvalue-eigenvector pairs captures most of the structure.
  • Quantum mechanics: density matrices are written as sums of outer products weighted by probabilities.

Quiz

Question 1

In the outer product form A=i=1nλiuiuiA = \sum_{i=1}^n \lambda_i \mathbf{u}_i \mathbf{u}_i^\top, what is the rank of each term λiuiui\lambda_i \mathbf{u}_i \mathbf{u}_i^\top?

Question 2

The step Uui=eiU^\top \mathbf{u}_i = \mathbf{e}_i uses the orthonormality of the columns of UU.

Common Mistakes

  • Confusing uiui\mathbf{u}_i \mathbf{u}_i^\top (an outer product, n×nn \times n matrix) with uiui\mathbf{u}_i^\top \mathbf{u}_i (an inner product, a scalar equaling 1).
  • Forgetting the λi\lambda_i factor in front of each outer product.