Singular value decomposition, intuitively
6 min read
Short answer
Every matrix (any shape) factors as , where and have orthonormal columns and is diagonal with the singular values . Geometrically: rotate (), stretch along the coordinate axes by the 's (), then rotate again (). Taking square roots of the eigenvalues of gives the singular values.
How to compute it
- Form and find its eigenvalues and orthonormal eigenvectors (the columns of ).
- Singular values are .
- Columns of are .
The number of nonzero singular values is the rank of .
Why people use it
Keeping only the largest few singular values gives the best low-rank approximation of a matrix, which powers image compression, noise reduction, recommendation systems and principal component analysis. For a square matrix, .
Worked example
Find the singular values of .
(columns and give ).
Its eigenvalues are and , with eigenvectors and .
So and .
Check: . ✓
Try it yourself
What are the singular values of , and what is its rank?
Show the answer
For the eigenvalues are and , which means the singular values are and . Only one is nonzero, so the rank is 1.
Keep going with practice
Singular values build on eigenvalues and orthogonality in Vidi's Linear Algebra & Probability course.