Linear Algebra
9.68 min read

Spectral Decomposition from SVD

The spectral decomposition K=AA=U(ΣΣ)UK = AA^\top = U(\Sigma\Sigma^\top)U^\top directly gives UU and the eigenvalues σi2\sigma_i^2. Singular values are σi=λi(K)\sigma_i = \sqrt{\lambda_i(K)}.

Once we have UU and σi\sigma_i, we recover right singular vectors: vi=1σiAui\mathbf{v}_i = \frac{1}{\sigma_i} A^\top \mathbf{u}_i for each nonzero σi\sigma_i. This follows from A=UΣV    Aui=σiviA = U\Sigma V^\top \implies A^\top \mathbf{u}_i = \sigma_i \mathbf{v}_i. So the full SVD is computable from the spectral decomposition of KK alone.

Formal View

Theorem 9.3 — Computing SVD from Covariance
Let K=AA=UΛKUK = AA^\top = U\Lambda_K U^\top (spectral decomposition). Then: - σi=(ΛK)ii\sigma_i = \sqrt{(\Lambda_K)_{ii}} - vi=1σiAui\mathbf{v}_i = \frac{1}{\sigma_i} A^\top \mathbf{u}_i for each σi>0\sigma_i > 0 - These give the full SVD A=UΣVA = U\Sigma V^\top.

Interactive Visualization

Eigenvector Explorer

Why This Matters

This two-step construction shows the SVD is just two spectral decompositions unified.

  • When mnm \ll n, eigendecomposing the m×mm \times m matrix KK is cheaper than the n×nn \times n matrix GG.
  • Kernel PCA uses this path with a kernel matrix instead of KK.
  • Covariance-based SVD underlies the "economy" SVD used in practice.

Quiz

Question 1

If an eigenvalue of K=AAK = AA^\top is 16, what is the corresponding singular value?

Question 2

Given UU and singular values σi\sigma_i, we compute vi=1σiAui\mathbf{v}_i = \frac{1}{\sigma_i}A^\top \mathbf{u}_i.

Common Mistakes

  • Forgetting the 1/σi1/\sigma_i factor when computing right singular vectors.
  • Trying to compute vi\mathbf{v}_i for zero singular values using this formula — it is undefined.