In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix into a rotation, followed by a scaling, followed by another rotation. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any m×n matrix. It is related to the polar decomposition, and is a common means for implementing low-rank approximation for matrices. Specifically, the singular value decomposition of an m×n complex matrix 𝐌 is a factorization of the form 𝐌=𝐔𝜮𝐕∗, where 𝐔 is an m×m complex unitary matrix, 𝜮 is an m×n rectangular diagonal matrix with non-negative real numbers on the diagonal, 𝐕 is an n×n complex unitary matrix, and 𝐕∗ is the conjugate transpose of 𝐕. Such decompositions always exist for any complex matrix. If 𝐌 is real, then some 𝐔 and 𝐕 can be found which are real (orthogonal) matrices; a real-valued SVD is often denoted 𝐔𝜮𝐕𝖳, where 𝐕𝖳 is the transpose of 𝐕. The diagonal entries σi=𝜮i,i of 𝜮 are uniquely determined by 𝐌, up to reordering, and are known as the singular values of 𝐌. Conventionally they are arranged in descending order (from largest to smallest), which uniquely determines 𝜮. The number of non-zero singular values, allowing repetitions, is equal to r, the rank of 𝐌. The columns of 𝐔 and the columns of 𝐕 are called left-singular vectors and right-singular vectors of 𝐌, respectively. They form two orthonormal bases, {𝐮1,…,𝐮m} and {𝐯1,…,𝐯n}. In general the SVD is not unique, with certain unitary transformations of 𝐔 and 𝐕 producing valid alternative decompositions. The term SVD sometimes refers to the compact SVD, a similar decomposition 𝐌=𝐔r𝜮r𝐕r∗, in which 𝜮r is an r×r matrix with only the non-zero singular values (allowing repetitions) on its main diagonal. In this variant, 𝐔r is an m×r semi-unitary matrix whose columns {𝐮1,…,𝐮r} span the columns of 𝐌, and 𝐕r is an n×r semi-unitary matrix whose columns {𝐯1,…,𝐯r} span the columns of 𝐌∗. The SVD (with sorted singular values) splits 𝐌 into a sum of r rank-1 matrices, 𝐌=σ1𝐮1𝐯1∗+σ2𝐮2𝐯2∗+⋯+σr𝐮r𝐯r∗. Mathematical applications of the SVD include computing the pseudoinverse, matrix approximation, and determining the rank, range, and null space of a matrix. The SVD is also extremely useful in many areas of science, engineering, and statistics, such as signal processing, least squares fitting of data, and process control.
Intuitive interpretations
Rotation/reflection, coordinate scaling, rotation/reflection In the special case when 𝐌 is an m×m real square matrix, the matrices 𝐔 and 𝐕∗ can be chosen to be real orthogonal m×m matrices. 𝐌 can be interpreted to represent a linear transformation 𝐱↦𝐌𝐱 of the Euclidean space ℝm; then the matrices 𝐔 and 𝐕∗ represent rotations or reflections of the space, while 𝜮 represents the scaling of each coordinate 𝐱i by the factor σi. Thus the SVD decomposition breaks down any linear transformation of ℝm into a composition of three geometric transformations: a rotation or reflection 𝐕∗ followed by a coordinate-by-coordinate scaling 𝜮 followed by another rotation or reflection 𝐔. In particular, if 𝐌 has a positive determinant, then 𝐔 and 𝐕∗ can be chosen to be both rotations with reflections, or both rotations without reflections. If the determinant is negative, exactly one of them will have a reflection. If the determinant is zero, each can be independently chosen to be of either type. In the more general case when the matrix 𝐌 is real but not square, namely m×n with m≠n, it can be interpreted as a linear transformation from ℝn to ℝm. Then 𝐔 and 𝐕∗ can be chosen to be rotations/reflections of ℝm and ℝn, respectively; and 𝜮, besides scaling the first min{m,n} coordinates, also extends the vector with zeros and Σ, i.e. removes trailing coordinates, so as to turn ℝn into ℝm.
Singular values as semiaxes of an ellipse or ellipsoid As shown in the figure, the singular values can be interpreted as the magnitude of the semiaxes of an ellipse in 2D. This concept can be generalized to n-dimensional Euclidean space, with the singular values of any n×n square matrix being viewed as the magnitude of the semiaxis of an n-dimensional ellipsoid. Similarly, the singular values of any m×n matrix can be viewed as the magnitude of the semiaxis of an n-dimensional ellipsoid in m-dimensional space, for example as an ellipse in a (tilted) 2D plane in a 3D space. Singular values encode magnitude of the semiaxis, while singular vectors encode direction. See below for further details.
The columns of U and V are orthonormal bases Since 𝐔 and 𝐕∗ are unitary, the columns of each of them form a set of orthonormal vectors, which can be regarded as basis vectors. The matrix 𝐌 maps the basis vector 𝐯i to the stretched unit vector σi𝐮i. By the definition of a unitary matrix, the same is true for their conjugate transposes 𝐔∗ and 𝐕, except the geometric interpretation of the singular values as stretches is lost. In short, the columns of 𝐔, 𝐔∗, 𝐕, and 𝐕∗ are orthonormal bases. When 𝐌 is a positive-semidefinite Hermitian matrix, 𝐔 and 𝐕 are both equal to the unitary matrix used to diagonalize 𝐌. However, when 𝐌 is not positive-semidefinite and Hermitian but still diagonalizable, its eigendecomposition and singular value decomposition are distinct.
Relation to the four fundamental subspaces The first r columns of 𝐔 are a basis of the column space of 𝐌. The last m−r columns of 𝐔 are a basis of the null space of 𝐌∗. The first r columns of 𝐕 are a basis of the column space of 𝐌∗ (the row space of 𝐌 in the real case). The last n−r columns of 𝐕 are a basis of the null space of 𝐌.
… excerpt ends here. Continue reading the full article.





