Singular Value Decomposition
Every matrix, however ugly, is a rotation then a stretch then another rotation. Step through the three and watch it happen.
Singular Value Decomposition
This module needs JavaScript: the numbers are computed in the page rather than recorded.
Worth knowing
A = U Σ V': rotate, stretch along the axes, rotate again.Overview
The factorisation
Every real m × n matrix A can be written as A = UΣVᵀ. The columns of U and V are orthonormal directions; the nonnegative diagonal entries of Σ are singular values, ordered from largest to smallest. Right singular vectors in V describe input directions; the matching columns of U show their output directions.
A vector along a right singular direction is mapped to the matching left direction, scaled by its singular value. A zero singular value marks a collapsed direction. Unlike eigendecomposition, SVD applies to rectangular matrices and does not require the matrix to be symmetric.
The factorisation
Every real m × n matrix A can be written as A = UΣVᵀ. The columns of U and V are orthonormal directions; the nonnegative diagonal entries of Σ are singular values, ordered from largest to smallest. Right singular vectors in V describe input directions; the matching columns of U show their output directions.
A vector along a right singular direction is mapped to the matching left direction, scaled by its singular value. A zero singular value marks a collapsed direction. Unlike eigendecomposition, SVD applies to rectangular matrices and does not require the matrix to be symmetric.