Singular Value Decomposition (SVD)
Problem
Decompose A = [[3,2],[2,3]] as A = UΣVᵀ. Show how the singular values reveal the geometry of the transformation.
Explanation
The SVD statement
Every real matrix has a decomposition
where
- is orthogonal (columns = left singular vectors),
- is diagonal with non-negative entries (singular values ),
- is orthogonal (columns = right singular vectors).
SVD exists for any matrix — no invertibility, no squareness, no symmetry required.
Step-by-step
(symmetric — SVD simplifies).
Step 1 — .
Step 2 — Eigenvalues of .
Characteristic polynomial: .
.
Step 3 — Singular values.
:
Step 4 — Right singular vectors (eigenvectors of ).
: :
: :
Step 5 — Left singular vectors: .
(Same as here because is symmetric positive-definite.)
Verification: compute — will reproduce exactly.
Geometric interpretation
Any linear map decomposes as:
- Rotate input via (align to principal axes).
- Stretch axis-by-axis by (the singular values).
- Rotate output via (align to output directions).
For our matrix: the unit circle, passed through , becomes an ellipse. The semi-axes are (long) and (short), aligned with and respectively.
Why SVD is the most important decomposition in linear algebra
- Exists for every matrix — no structural assumptions needed.
- Reveals rank: = number of non-zero singular values.
- Best low-rank approximation (Eckart-Young): truncating the SVD at terms gives the optimal rank- approximation in both Frobenius and spectral norm.
- Pseudoinverse: with inverting non-zero singular values. Solves least-squares even when is singular.
- Condition number: measures sensitivity of linear systems to perturbations.
- Underlies PCA, latent-semantic analysis, recommender systems, denoising, and compression.
Compact/thin SVD
For an matrix of rank , the thin SVD keeps only the first singular values:
where is , is , is . Stores and computes with far fewer numbers when .
Common mistakes
- Taking square roots of negatives. Singular values are always non-negative (unlike eigenvalues). They come from eigenvalues of , which is positive semi-definite.
- Mixing up and . 's columns span the column space; 's span the row space.
- Confusing SVD with eigendecomposition. SVD is for arbitrary matrices; eigendecomposition requires diagonalizability. For symmetric matrices they're closely related.
Try it in the visualization
Apply to a unit circle, producing an ellipse. Display , , as three sequential transformations: the circle rotates, stretches, and rotates again. Semi-axis lengths are the singular values; the major axis direction is .
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.