Singular value decomposition
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.[src] It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any matrix.[src] It is related to the polar decomposition, and is a common means for implementing low-rank approximation for matrices.[src] Specifically, the singular value decomposition of an m \times n complex matrix is a factorization of the form , where is an complex unitary matrix, \mathbf \Sigma is an m \times n rectangular diagonal matrix with non-negative real numbers on the diagonal, is an n \times n complex unitary matrix, and is the conjugate transpose of .[src] Such decompositions always exist for any complex matrix.[src] 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 .[src] The diagonal entries \sigma_i = \mathbf{\Sigma}_{i,i} of \mathbf \Sigma are uniquely determined by , up to reordering, and are known as the singular values of .[src] Conventionally they are arranged in descending order (from largest to smallest), which uniquely determines .[src] The number of non-zero singular values, allowing repetitions, is equal to , the rank of .…[src]
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.[src] It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any matrix.[src] It is related to the polar decomposition, and is a common means for implementing low-rank approximation for matrices.[src] Specifically, the singular value decomposition of an m \times n complex matrix is a factorization of the form , where is an complex unitary matrix, \mathbf \Sigma is an m \times n rectangular diagonal matrix with non-negative real numbers on the diagonal, is an n \times n complex unitary matrix, and is the conjugate transpose of .[src] Such decompositions always exist for any complex matrix.[src] 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 .[src] The diagonal entries \sigma_i = \mathbf{\Sigma}_{i,i} of \mathbf \Sigma are uniquely determined by , up to reordering, and are known as the singular values of .[src] Conventionally they are arranged in descending order (from largest to smallest), which uniquely determines .[src] The number of non-zero singular values, allowing repetitions, is equal to , the rank of .[src] The columns of and the columns of are called left-singular vectors and right-singular vectors of , respectively.[src] They form two orthonormal bases, {{tmath|\{ \mathbf{u}_1, \ldots, \mathbf{u}_m \} }} and {{tmath|\{ \mathbf{v}_1, \ldots, \mathbf{v}_n \} }}.[src] In general the SVD is not unique, with certain unitary transformations of and producing valid alternative decompositions.[src] The term SVD sometimes refers to the compact SVD, a similar decomposition , in which is an matrix with only the non-zero singular values (allowing repetitions) on its main diagonal.[src] In this variant, is an semi-unitary matrix whose columns {{tmath|\{ \mathbf{u}_1, \ldots, \mathbf{u}_r \} }} span the columns of , and \mathbf{V}_r is an semi-unitary matrix whose columns {{tmath|\{ \mathbf{v}_1, \ldots, \mathbf{v}_r \} }} span the columns of .[src] The SVD (with sorted singular values) splits into a sum of rank- matrices, Mathematical applications of the SVD include computing the pseudoinverse, matrix approximation, and determining the rank, range, and null space of a matrix.[src] 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.[src] T \colon \left \{\begin{align} \C^n & \to \C^m \\ \mathbf{x} & \mapsto \mathbf{Mx} \end{align} \right.[src] has a particularly simple description with respect to these orthonormal bases: we have T(\mathbf{v}_i) = \sigma_i \mathbf{u}_i, \qquad i = 1, \ldots, \min \{m, n\}, where is the -th diagonal entry of , and for .[src] The geometric content of the SVD theorem can thus be summarized as follows: for every linear map one can find orthonormal bases of and such that maps the -th basis vector of to a non-negative multiple of the -th basis vector of , and sends the leftover basis vectors to zero.[src] With respect to these bases, the map is therefore represented by a diagonal matrix with non-negative real diagonal entries.[src] To get a more visual flavor of singular values and SVD factorization – at least when working on real vector spaces – consider the unit sphere in .[src] The linear map maps this sphere onto an ellipsoid in .[src] Non-zero singular values are simply the lengths of the semi-axes of this ellipsoid.[src] Especially when , and all the singular values are distinct and non-zero, the SVD of the linear map can be easily analyzed as a succession of three consecutive moves: consider the ellipsoid and specifically its axes; then consider the directions in sent by onto these axes.[src] These directions happen to be mutually orthogonal.[src] Apply first an isometry sending these directions to the coordinate axes of .[src] On a second move, apply an endomorphism diagonalized along the coordinate axes and stretching or shrinking in each direction, using the semi-axis lengths of as scaling coefficients.[src] The composition then sends the unit-sphere onto an ellipsoid isometric to .[src] To define the third and last move, apply an isometry to this ellipsoid to obtain .[src] As can be easily checked, the composition coincides with .[src] \begin{align} \mathbf{M} &= \begin{bmatrix} ~4 & ~8 & ~8 & ~0 & ~0 \\ -3 & -6 & -6 & ~0 & ~0 \\ -4 & ~4 & -2 & ~0 & ~0 \\ ~0 & ~0 & ~0 & -4 & ~3 \end{bmatrix} \\ &= \,\underbrace{\!\begin{bmatrix} \color{PineGreen}~\frac45 & \color{BrickRed}~0 & \color{BlueViolet}~0 & \color{CadetBlue}~\frac35 \\ \color{PineGreen}-\frac35 & \color{BrickRed}~0 & \color{BlueViolet}~0 & \color{CadetBlue}~\frac45 \\ \color{PineGreen}~0\vphantom{\frac11} & \color{BrickRed}~1 & \color{BlueViolet}~0 & \color{CadetBlue}~0 \\ \color{PineGreen}~0\vphantom{\frac11} & \color{BrickRed}~0 & \color{BlueViolet}~1 & \color{CadetBlue}~0 \end{bmatrix}\!}_{\textstyle \mathbf{U}}\, \,\underbrace{\!\begin{bmatrix} \color{PineGreen}15\vphantom{\frac11} & \color{Gray}0 & \color{Gray}0 & \color{Gray}0 & \color{Gray}0 \\ \color{Gray}0\vphantom{\frac11} & \color{BrickRed}6 & \color{Gray}0 & \color{Gray}0 & \color{Gray}0 \\ \color{Gray}0\vphantom{\frac11} & \color{Gray}0 & \color{BlueViolet}5 & \color{Gray}0 & \color{Gray}0 \\ \color{Gray}0\vphantom{\frac11} & \color{Gray}0 & \color{Gray}0 & \color{CadetBlue}0 & \color{Gray}0 \end{bmatrix}\!}_{\textstyle \mathbf{\Sigma}}\, \,\underbrace{\!\begin{bmatrix} \color{PineGreen}~\frac13 & \color{PineGreen}~\frac23 & \color{PineGreen}~\frac23 & \color{PineGreen}~0 & \color{PineGreen}~0 \\ \color{BrickRed}-\frac23 & \color{BrickRed}~\frac23 & \color{BrickRed}-\frac13 & \color{BrickRed}~0 & \color{BrickRed}~0 \\ \color{BlueViolet}~0 & \color{BlueViolet}~0 & \color{BlueViolet}~0 & \color{BlueViolet}-\frac45 & \color{BlueViolet}~\frac35 \\ \color{CadetBlue}-\frac23 & \color{CadetBlue}-\frac13 & \color{CadetBlue}~\frac23 & \color{CadetBlue}~0 & \color{CadetBlue}~0 \\ \color{CadetBlue}~0 & \color{CadetBlue}~0 & \color{CadetBlue}~0 & \color{CadetBlue}~\frac35 & \color{CadetBlue}~\frac45 \end{bmatrix}\!}_{\textstyle \mathbf{V}^*}\,.[src] \end{align} The singular values of are the diagonal entries of : , , , .[src] The corresponding left- and right-singular vectors are the columns of and rows of , respectively.[src] That is, \begin{align} \mathbf{M} {\color{PineGreen}\mathbf{v}_1} &= {\color{PineGreen}15 \mathbf{u}_1}, & {\color{PineGreen}\mathbf{u}_1^*} \mathbf{M} &= {\color{PineGreen}15 \mathbf{v}_1^*}, \\ \mathbf{M} {\color{BrickRed}\mathbf{v}_2} &= {\color{BrickRed}6 \mathbf{u}_2}, & {\color{BrickRed}\mathbf{u}_2^*} \mathbf{M} &= {\color{BrickRed}6 \mathbf{v}_2^*}, \\ \mathbf{M} {\color{BlueViolet}\mathbf{v}_3} &= {\color{BlueViolet}5 \mathbf{u}_3}, & {\color{BlueViolet}\mathbf{u}_3^*} \mathbf{M} &= {\color{BlueViolet}5 \mathbf{v}_3^*}, \\ \mathbf{M} {\color{CadetBlue}\mathbf{v}_4} &= {\color{CadetBlue}0 \mathbf{u}_4} = {\color{CadetBlue}\mathbf{0}}, & {\color{CadetBlue}\mathbf{u}_4^*} \mathbf{M} &= {\color{CadetBlue}0 \mathbf{v}_4^*} = {\color{CadetBlue}\mathbf{0}}, \\ \mathbf{M} {\color{CadetBlue}\mathbf{v}_5} &= {\color{CadetBlue}\mathbf{0}}.[src] \end{align} The matrices and are unitary (and, as real-valued matrices, orthogonal), meaning and , where is the identity matrix.[src] The matrix has rank , so it has only three non-zero singular values.[src] This particular singular value decomposition is not unique.[src] (See , below.) Any column of and the corresponding row of can be simultaneously multiplied by (or, if is considered to be a complex-valued matrix, by any unit complex number) to obtain a valid SVD.[src] The last two rows of do not contribute to the product because they are multiplied by zero, so are substantially arbitrary, and can be replaced with any pair of unit row vectors which are orthogonal to each other and the other rows.[src] Similarly, the last column of can be multiplied by (or by any unit complex number).[src] The compact SVD eliminates the rows and columns from which consist entirely of zeros, and also the superfluous corresponding columns of and rows of : \mathbf{M} = \,\underbrace{\!\begin{bmatrix} \color{PineGreen}~\frac45 & \color{BrickRed}~0 & \color{BlueViolet}~0 \\ \color{PineGreen}-\frac35 & \color{BrickRed}~0 & \color{BlueViolet}~0 \\ \color{PineGreen}~\vphantom{\frac11}0 & \color{BrickRed}~1 & \color{BlueViolet}~0 \\ \color{PineGreen}~\vphantom{\frac11}0 & \color{BrickRed}~0 & \color{BlueViolet}~1 \end{bmatrix}\!}_{\textstyle \mathbf{U}_r}\, \,\underbrace{\!\begin{bmatrix} \color{PineGreen}15\vphantom{\frac11} & \color{Gray}0 & \color{Gray}0 \\ \color{Gray}0\vphantom{\frac11} & \color{BrickRed}6 & \color{Gray}0 \\ \color{Gray}0\vphantom{\frac11} & \color{Gray}0 & \color{BlueViolet}5 \end{bmatrix}\!}_{\textstyle \mathbf{\Sigma}_r}\, \,\underbrace{\!\begin{bmatrix} \color{PineGreen}~\frac13 & \color{PineGreen}~\frac23 & \color{PineGreen}~\frac23 & \color{PineGreen}~0 & \color{PineGreen}~0 \\ \color{BrickRed}-\frac23 & \color{BrickRed}~\frac23 & \color{BrickRed}-\frac13 & \color{BrickRed}~0 & \color{BrickRed}~0 \\ \color{BlueViolet}~0 & \color{BlueViolet}~0 & \color{BlueViolet}~0 & \color{BlueViolet}-\frac45 & \color{BlueViolet}~\frac35 \end{bmatrix}\!}_{\textstyle \mathbf{V}_r^*}\,.[src] Instead of the product of three matrices, the SVD of can be written as a sum of rank- matrices, each formed as the outer product of one column of times the corresponding row of , scaled by the corresponding singular value : \begin{align} \mathbf{M} &= \sum_{j=1}^r \sigma_j \mathbf{u}_j \mathbf{v}_j^* = {\color{PineGreen}15 \, \mathbf{u}_1 \mathbf{v}_1^*} + {\color{BrickRed}6 \, \mathbf{u}_2 \mathbf{v}_2^*} + {\color{BlueViolet}5 \, \mathbf{u}_3 \mathbf{v}_3^*} \\ &= {\color{PineGreen} \begin{bmatrix} ~4 & ~8 & ~8 & ~0 & ~0 \\ -3 & -6 & -6 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \end{bmatrix}} + {\color{BrickRed} \begin{bmatrix} ~0 & ~0 & ~0 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \\ -4 & ~4 & -2 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \end{bmatrix}} + {\color{BlueViolet} \begin{bmatrix} ~0 & ~0 & ~0 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \\ ~0 & ~0 & ~0 & ~0 & ~0 \\ ~0 & ~0 & ~0 & -4 & ~3 \end{bmatrix}}.[src] \end{align} \begin{align} \mathbf{M v} &= \sigma \mathbf{u}, \\[3mu] \mathbf{M}^* \mathbf{u} &= \sigma \mathbf{v}.[src] \end{align} The vectors and are called left-singular and right-singular vectors for , respectively.[src] In any singular value decomposition , the diagonal entries of comprise the singular values of .[src] The first columns of and are, respectively, left- and right-singular vectors for the corresponding singular values.[src] Consequently, An matrix has at most distinct singular values.[src] It is always possible to find a unitary basis for with a subset of basis vectors spanning the left-singular vectors of each singular value of .[src] It is always possible to find a unitary basis for with a subset of basis vectors spanning the right-singular vectors of each singular value of .[src] The diagonal entries of need not be distinct.[src] A singular value which appears among them times has a -dimensional subspace of corresponding left-singular vectors.[src] Any orthonormal basis for this subspace can be taken as the corresponding columns of some matrix , and uniquely determines an orthonormal basis for the -dimensional subspace of right-singular vectors which form the corresponding columns of a matrix .[src] When and , the singular value is called non-degenerate, and the corresponding left-singular vector and right-singular vector are unique up to multiplication by a phase factor (a unit complex number), or, in the real case, unique up to sign.[src] When , the singular value is called degenerate.[src] The left- and right-singular vectors of singular value comprise all unit vectors in the cokernel and kernel, respectively, of .[src] By the rank–nullity theorem, these subspaces cannot have the same dimension if .[src] Even when all singular values are non-zero, if , then the cokernel is non-trivial, in which case is padded with orthogonal unit vectors from the cokernel.[src] Conversely, if , then is padded by orthogonal unit vectors from the kernel.[src] However, if the singular value exists, the extra columns of or already appear as left- or right-singular vectors.[src] […, if the singular value 0 exists, the extra columns of U or V must not repeat the corresponding left- or right-singular vectors.] [Otherwise, U or V would not have column full rank.] If all singular values of a square matrix are non-zero and non-degenerate, then its singular value decomposition is unique up to multiplication of any column of and the corresponding column of by an arbitrary phase factor.[src] More generally, the SVD of any matrix is unique up to unitary transformations applied uniformly to the column vectors of both and (and which do not mix columns corresponding to distinct singular values).[src] \begin{align} \mathbf{M}^* \mathbf{M} &= \mathbf{V} \mathbf{\Sigma}^* \mathbf{U}^*\, \mathbf{U} \mathbf{\Sigma} \mathbf{V}^* = \mathbf{V} (\mathbf{\Sigma}^* \mathbf{\Sigma}) \mathbf{V}^*, \\[3mu] \mathbf{M} \mathbf{M}^* &= \mathbf{U} \mathbf{\Sigma} \mathbf{V}^*\, \mathbf{V} \mathbf{\Sigma}^* \mathbf{U}^* = \mathbf{U} (\mathbf{\Sigma} \mathbf{\Sigma}^*) \mathbf{U}^*.[src] \end{align} The right-hand sides of these relations describe the eigenvalue decompositions of the left-hand sides.[src] Consequently: The columns of (referred to as right-singular vectors) are eigenvectors of .[src] The columns of (referred to as left-singular vectors) are eigenvectors of .[src] The non-zero elements of (non-zero singular values) are the square roots of the non-zero eigenvalues of or .[src] In the special case of being a normal matrix, and thus also square, the spectral theorem ensures that it can be unitarily diagonalized using a basis of eigenvectors, and thus decomposed as for some unitary matrix and diagonal matrix with complex elements along the diagonal.[src] When is positive semi-definite, the will be non-negative real numbers, so the decomposition is also a singular value decomposition.[src] Otherwise, it can be recast as an SVD by moving the phase of each to either its corresponding or .[src] The natural connection of the SVD to non-normal matrices is through the polar decomposition theorem: , where is positive semidefinite and normal, and is unitary.[src] Thus, except for positive semi-definite matrices, the eigenvalue decomposition and SVD of , while related, differ: the eigenvalue decomposition is , where is not necessarily unitary and is not necessarily positive semi-definite, while the SVD is , where is diagonal and positive semi-definite, and and are unitary matrices that are not necessarily related except through the matrix .[src] While only non-defective square matrices have an eigenvalue decomposition, any matrix has an SVD.[src] \mathbf{M}^+ = \mathbf{V} \mathbf{\Sigma}^+ \mathbf{U}^*, where \mathbf{\Sigma}^+ is the pseudoinverse of , which is formed by replacing every non-zero diagonal entry of by its reciprocal and transposing the resulting matrix.[src] The pseudoinverse is one way to solve linear least squares problems.[src] \tilde{\mathbf{M}} = \mathbf{U} \tilde{\mathbf \Sigma} \mathbf{V}^*, where \tilde{\mathbf \Sigma} is the same matrix as \mathbf \Sigma except that it contains only the largest singular values (the other singular values are replaced by zero).[src] Or, equivalently, by the truncated SVD.[src] This is known as the Eckart–Young theorem, as it was proved by those two authors in 1936.[src] \mathbf{A}_k = \sum_{j=1}^k \sigma_j \mathbf{u}_j \mathbf{v}_j^\mathsf{T} gives an image with the best -norm error out of all rank- approximations.[src] Thus, the task becomes finding an approximation that balances retaining perceptual fidelity with the number of vectors required to reconstruct the image.[src] Storing \mathbf{A}_k requires only k(n + m + 1) floating-point numbers compared to nm integers.[src] This same idea extends to color images by applying this operation to each channel or stacking the channels into one matrix.[src] Since the singular values of most natural images decay quickly, most of their variance is often captured by a small .[src] For a greyscale image, we can achieve a relative error of 0.7 % with as little as .[src] In practice, however, computing the SVD can be too computationally expensive and the resulting compression is typically less storage efficient than a specialized algorithm such as JPEG.[src] \mathbf{M} = \sum_i \mathbf{A}_i = \sum_i \sigma_i \mathbf{u}_i \mathbf{v}_i^*, where and are the left- and right-singular vectors corresponding to each singular value .[src] The number of non-zero is exactly the rank of the matrix.[src] The SVD can be used to find the decomposition of an image processing filter into separable horizontal and vertical filters.[src] Separable models often arise in biological systems, and the SVD factorization is useful to analyze such systems.[src] For example, some visual area V1 simple cells' receptive fields can be well described by a Gabor filter in the space domain multiplied by a modulation function in the time domain.[src] Thus, given a linear filter evaluated through, for example, reverse correlation, one can rearrange the two spatial dimensions into one dimension, thus yielding a two-dimensional filter (space, time) which can be decomposed through SVD.[src] The first column of in the SVD factorization is then a Gabor while the first column of represents the time modulation (or vice versa).[src] One may then define an index of separability \alpha = \frac{\sigma_1^2}{\sum_i \sigma_i^2}, which is the fraction of the power in the matrix accounted for by the first separable matrix in the decomposition.[src] It is possible to use the SVD of a square matrix to determine the orthogonal matrix closest to .[src] The closeness of fit is measured by the Frobenius norm of .[src] The solution is the product .[src] This intuitively makes sense because an orthogonal matrix would have the decomposition where is the identity matrix; so, if , then the product amounts to replacing the singular values with ones.[src] Equivalently, the solution is the unitary matrix of the polar decomposition \mathbf{A} = \mathbf{R} \mathbf{P} = \mathbf{P}' \mathbf{R} in either order of stretch and rotation, as described above.[src] A similar problem, with interesting applications in shape analysis, is the orthogonal Procrustes problem, which consists of finding an orthogonal matrix which most closely maps to .[src] Specifically, \mathbf{Q} = \underset\Omega\operatorname{argmin} \|\mathbf{A}\mathbf{\Omega} - \mathbf{B}\|_F \quad\text{subject to}\quad \mathbf{\Omega}^\mathsf{T}\mathbf{\Omega} = \mathbf{I}, where \| \cdot \|_F denotes the Frobenius norm.[src] This problem is equivalent to finding the nearest orthogonal matrix to a given matrix .[src] \mathbf{X} = \mathbf{V} \mathbf{\Sigma} \mathbf{U}^*.[src] We see that \mathbf{V} \mathbf{\Sigma} contains the scores of the rows of \mathbf{X} (i.e.[src] each observation), and \mathbf{U} is the matrix whose columns are principal component loading vectors.[src] f \colon \left\{ \begin{align} \R^n &\to \R \\ \mathbf{x} &\mapsto \mathbf{x}^\mathsf{T} \mathbf{M} \mathbf{x} \end{align} \right..[src] By the extreme value theorem, this continuous function attains a maximum at some when restricted to the unit sphere \{\|\mathbf x\| = 1\}.[src] By the Lagrange multipliers theorem, necessarily satisfies \nabla \mathbf{u}^\mathsf{T} \mathbf{M} \mathbf{u} - \lambda \cdot \nabla \mathbf{u}^\mathsf{T} \mathbf{u} = \mathbf{0} for some real number .[src] The nabla symbol, , is the del operator (differentiation with respect to Using the symmetry of , we obtain \nabla \mathbf{x}^\mathsf{T} \mathbf{M} \mathbf{x} - \lambda \cdot \nabla \mathbf{x}^\mathsf{T} \mathbf{x} = 2(\mathbf{M} - \lambda \mathbf{I}) \mathbf{x}.[src] Therefore , so is a unit length eigenvector of .[src] For every unit-length eigenvector of , its eigenvalue is , so is the largest eigenvalue of .[src] The same calculation performed on the orthogonal complement of gives the next largest eigenvalue and so on.[src] The complex Hermitian case is similar; there is a real-valued function of real variables.[src] Singular values are similar in that they can be described algebraically or from variational principles.[src] Although, unlike the eigenvalue case, Hermiticity, or symmetry, of is no longer required.[src] This section gives these two arguments for existence of singular value decomposition.[src] \mathbf V^* \mathbf M^* \mathbf M \mathbf V = \bar\mathbf{D} = \begin{bmatrix} \mathbf{D} & 0 \\ 0 & 0\end{bmatrix}, where \mathbf{D} is diagonal and positive definite, of dimension \ell\times \ell , with \ell the number of non-zero eigenvalues of \mathbf{M}^* \mathbf{M} (which can be shown to verify \ell\le\min(n,m) ).[src] Note that \mathbf{V} is here by definition a matrix whose i -th column is the i -th eigenvector of \mathbf{M}^* \mathbf{M} , corresponding to the eigenvalue \bar{\mathbf{D}}_{ii} .[src] Moreover, the j -th column of \mathbf{V} , for j>\ell , is an eigenvector of \mathbf{M}^* \mathbf{M} with eigenvalue \bar{\mathbf{D}}_{jj}=0 .[src] This can be expressed by writing \mathbf{V} as \mathbf{V}=\begin{bmatrix}\mathbf{V}_1 &\mathbf{V}_2\end{bmatrix} , where the columns of \mathbf{V}_1 and \mathbf{V}_2 therefore contain the eigenvectors of \mathbf{M}^* \mathbf{M} corresponding to non-zero and zero eigenvalues, respectively.[src] Using this rewriting of \mathbf{V} , the equation becomes: \begin{bmatrix} \mathbf{V}_1^* \\ \mathbf{V}_2^* \end{bmatrix} \mathbf{M}^* \mathbf{M}\, \begin{bmatrix} \mathbf{V}_1 & \!\![src] \mathbf{V}_2 \end{bmatrix} = \begin{bmatrix} \mathbf{V}_1^* \mathbf{M}^* \mathbf{M} \mathbf{V}_1 & \mathbf{V}_1^* \mathbf{M}^* \mathbf{M} \mathbf{V}_2 \\ \mathbf{V}_2^* \mathbf{M}^* \mathbf{M} \mathbf{V}_1 & \mathbf{V}_2^* \mathbf{M}^* \mathbf{M} \mathbf{V}_2 \end{bmatrix} = \begin{bmatrix} \mathbf{D} & 0 \\ 0 & 0 \end{bmatrix}.[src] This implies that \mathbf{V}_1^* \mathbf{M}^* \mathbf{M} \mathbf{V}_1 = \mathbf{D}, \quad \mathbf{V}_2^* \mathbf{M}^* \mathbf{M} \mathbf{V}_2 \begin{align} \mathbf{V}_1^* \mathbf{V}_1 &= \mathbf{I}_1, \\ \mathbf{V}_2^* \mathbf{V}_2 &= \mathbf{I}_2, \\ \mathbf{V}_1 \mathbf{V}_1^* + \mathbf{V}_2 \mathbf{V}_2^* &= \mathbf{I}_{12}, \end{align} where the subscripts on the identity matrices are used to remark that they are of different dimensions.[src] Let us now define \mathbf{U}_1 = \mathbf{M} \mathbf{V}_1 \mathbf{D}^{-\frac{1}{2}}.[src] Then, \mathbf{U}_1 \mathbf{D}^\frac{1}{2} \mathbf{V}_1^* = \mathbf{M} \mathbf{V}_1 \mathbf{D}^{-\frac{1}{2}} \mathbf{D}^\frac{1}{2} \mathbf{V}_1^* = \mathbf{M} (\mathbf{I} - \mathbf{V}_2\mathbf{V}_2^*) = \mathbf{M} - (\mathbf{M}\mathbf{V}_2)\mathbf{V}_2^* = \mathbf{M}, since \mathbf{M}\mathbf{V}_2 = \mathbf{0}.[src] This can be also seen as immediate consequence of the fact that \mathbf{M}\mathbf{V}_1\mathbf{V}_1^* = \mathbf{M} .[src] This is equivalent to the observation that if \{\mathbf{v}_i\}_{i=1}^\ell is the set of eigenvectors of \mathbf{M}^* \mathbf{M} corresponding to non-vanishing eigenvalues \{\lambda_i\}_{i=1}^\ell , then \{\mathbf M \mathbf{v}_i\}_{i=1}^\ell is a set of orthogonal vectors, and \bigl\{\lambda_i^{-1/2}\mathbf M \mathbf{v}_i\bigr\}\vphantom|_{i=1}^\ell is a (generally not complete) set of orthonormal vectors.[src] This matches with the matrix formalism used above denoting with \mathbf{V}_1 the matrix whose columns are \{\mathbf{v}_i\}_{i=1}^\ell , with \mathbf{V}_2 the matrix whose columns are the eigenvectors of \mathbf{M}^* \mathbf{M} with vanishing eigenvalue, and \mathbf{U}_1 the matrix whose columns are the vectors \bigl\{\lambda_i^{-1/2}\mathbf M \mathbf{v}_i\bigr\}\vphantom|_{i=1}^\ell .[src] We see that this is almost the desired result, except that \mathbf{U}_1 and \mathbf{V}_1 are in general not unitary, since they might not be square.[src] However, we do know that the number of rows of \mathbf{U}_1 is no smaller than the number of columns, since the dimensions of \mathbf{D} is no greater than m and n .[src] Also, since \mathbf{U}_1^*\mathbf{U}_1 = \mathbf{D}^{-\frac{1}{2}}\mathbf{V}_1^*\mathbf{M}^*\mathbf{M} \mathbf{V}_1 \mathbf{D}^{-\frac{1}{2}}=\mathbf{D}^{-\frac{1}{2}}\mathbf{D}\mathbf{D}^{-\frac{1}{2}} = \mathbf{I_1}, the columns in \mathbf{U}_1 are orthonormal and can be extended to an orthonormal basis.[src] This means that we can choose \mathbf{U}_2 such that \mathbf{U} = \begin{bmatrix} \mathbf{U}_1 & \mathbf{U}_2 \end{bmatrix} is unitary.[src] For we already have to make it unitary.[src] Now, define \mathbf \Sigma = \begin{bmatrix} \begin{bmatrix} \mathbf{D}^\frac{1}{2} & 0 \\ 0 & 0 \end{bmatrix} \\ 0 \end{bmatrix}, where extra zero rows are added or removed to make the number of zero rows equal the number of columns of and hence the overall dimensions of \mathbf \Sigma equal to m\times n .[src] Then \begin{bmatrix} \mathbf{U}_1 & \mathbf{U}_2 \end{bmatrix} \begin{bmatrix} \begin{bmatrix} \mathbf{}D^\frac{1}{2} & 0 \\ 0 & 0 \end{bmatrix} \\ 0 \end{bmatrix} \begin{bmatrix} \mathbf{V}_1 & \mathbf{V}_2 \end{bmatrix}^* = \begin{bmatrix} \mathbf{U}_1 & \mathbf{U}_2 \end{bmatrix} \begin{bmatrix} \mathbf{D}^\frac{1}{2} \mathbf{V}_1^* \\ 0 \end{bmatrix} \mathbf{M} = \mathbf{U} \mathbf{\Sigma} \mathbf{V}^*.[src] Notice the argument could begin with diagonalizing rather than (This shows directly that and have the same non-zero eigenvalues).[src] Let denote an matrix with real entries.[src] Let be the unit (k-1) -sphere in \R^k , and define \sigma(\mathbf{u}, \mathbf{v}) = \mathbf{u}^\mathsf{T} \mathbf{M} \mathbf{v}, \mathbf{u} \in S^{m-1}, \mathbf{v} \in S^{n-1}.[src] Consider the function restricted to Since both and are compact sets, their product is also compact.[src] Furthermore, since is continuous, it attains a largest value for at least one pair of vectors in and in .[src] This largest value is denoted and the corresponding vectors are denoted and .[src] Since is the largest value of , it must be non-negative.[src] If it were negative, changing the sign of either or would make it positive and therefore larger.[src] More singular vectors and singular values can be found by maximizing over normalized and which are orthogonal to and , respectively.[src] The passage from real to complex is similar to the eigenvalue case.[src] M \leftarrow M J(p, q, \theta), where the angle \theta of the Jacobi rotation matrix J(p,q,\theta) is chosen such that after the rotation, the columns with numbers p and q become orthogonal.[src] The indices (p,q) are swept cyclically, , where m is the number of columns.[src] After the algorithm has converged, the singular value decomposition M = U S V^\mathsf{T} is recovered as follows: the matrix V is the accumulation of Jacobi rotation matrices, the matrix U is given by normalizing the columns of the transformed matrix , and the singular values are given as the norms of the columns of the transformed matrix .[src] M \leftarrow J^\mathsf{T} G M J, where G is the Givens rotation matrix with the angle chosen such that the given pair of off-diagonal elements become equal after the rotation, and where J is the Jacobi transformation matrix that zeroes these off-diagonal elements.[src] The iterations proceeds exactly as in the Jacobi eigenvalue algorithm: by cyclic sweeps over all off-diagonal elements.[src] After the algorithm has converged, the resulting diagonal matrix contains the singular values.[src] The matrices U and V are accumulated as follows: \begin{align} U &\leftarrow U G^\mathsf{T} J, \\ V &\leftarrow V J.[src] \end{align} \begin{bmatrix} \mathbf{0} & \mathbf{M} \\ \mathbf{M}^* & \mathbf{0} \end{bmatrix}.[src] The approaches that use eigenvalue decompositions are based on the QR algorithm, which is well-developed to be stable and fast.[src] Note that the singular values are real and the right- and left-singular vectors are not required to form similarity transformations.[src] One can iteratively alternate between the QR decomposition and the LQ decomposition to find the real diagonal Hermitian matrices.[src] The QR decomposition gives and the LQ decomposition of gives .[src] Thus, at every iteration, we have , update and repeat the orthogonalizations.[src] Eventually, this iteration between QR decomposition and LQ decomposition produces left- and right-unitary singular matrices.[src] This approach cannot readily be accelerated as the QR algorithm can with spectral shifts or deflation.[src] This is because the shift method is not easily defined without using similarity transformations.[src] However, this iterative approach is very simple to implement, so is a good choice when speed does not matter.[src] This method also provides insight into how purely orthogonal/unitary transformations can obtain the SVD.[src] \begin{align} \sigma_\pm &= \sqrt{|z_0|^2 + |z_1|^2 + |z_2|^2 + |z_3|^2 \pm \sqrt{\bigl(|z_0|^2 + |z_1|^2 + |z_2|^2 + |z_3|^2\bigr)^2 - |z_0^2 - z_1^2 - z_2^2 - z_3^2|^2}} \\ &= \sqrt{|z_0|^2 + |z_1|^2 + |z_2|^2 + |z_3|^2 \pm 2\sqrt{(\operatorname{Re}z_0z_1^*)^2 + (\operatorname{Re}z_0z_2^*)^2 + (\operatorname{Re}z_0z_3^*)^2 + (\operatorname{Im}z_1z_2^*)^2 + (\operatorname{Im}z_2z_3^*)^2 + (\operatorname{Im}z_3z_1^*)^2}}.[src] \end{align} \mathbf{M} = \mathbf{U}_k \mathbf{\Sigma}_k \mathbf{V}_k^*, where , the matrices and contain only the first columns of and , and contains only the first singular values from .[src] The matrix is thus , is diagonal, and is .[src] The thin SVD uses significantly less space and computation time if .[src] The first stage in its calculation will usually be a QR decomposition of , which can make for a significantly quicker calculation in this case.[src] \mathbf{M} = \mathbf{U}_r \mathbf{\Sigma}_r \mathbf{V}_r^*.[src] Only the first columns of and rows of , corresponding to the non-zero singular values, are calculated; this takes less computation and requires less storage than the thin SVD, and if has low rank, much less.[src] This makes an semi-unitary matrix whose columns {{tmath|\{ \mathbf{u}_1, \ldots, \mathbf{u}_r \} }} span the columns of , an diagonal matrix of non-zero singular values, and an semi-unitary matrix whose rows {{tmath|\{ \mathbf{v}_1^*, \ldots, \mathbf{v}_r^* \} }} span the rows of .[src] \tilde{\mathbf{M}} = \mathbf{U}_t \mathbf{\Sigma}_t \mathbf{V}_t^*, where matrix is , is diagonal, and is .[src] is the best approximation of by any matrix of rank less than or equal to , under the Frobenius norm.[src] This can require much less computation and storage than the compact SVD if is much smaller than , but typically requires a completely separate implementation.[src] In applications that require an approximation to the Moore–Penrose inverse of the matrix , the smallest singular values of are of interest, which are more challenging to compute than the largest ones.[src] Truncated SVD is employed in latent semantic indexing.[src] The first of the Ky Fan norms, the Ky Fan -norm, the largest singular value of , is the same as the operator norm of as a linear operator with respect to the Euclidean norms of and , namely {{nobr| \| \mathbf{M} \|_\text{op} = \sup \{ \| \mathbf{M v} \|_2 : ~ \| \mathbf{v} \|_2 \leq 1, ~ \mathbf{v} \in V \} }}.[src] In other words, the Ky Fan -norm is the operator norm induced by the standard \ell^2 Euclidean inner product.[src] For this reason, it is also called the operator -norm.[src] One can easily verify the relationship between the Ky Fan -norm and singular values.[src] Indeed, it is true in general, for a bounded operator on a (possibly infinite-dimensional) Hilbert space, that \| \mathbf{M} \|_\text{op} = \sqrt{ \| \mathbf{M}^* \mathbf{M} \|_\text{op} }.[src] But, in the matrix case, \sqrt{ \mathbf{M}^* \mathbf{M} } is a normal matrix, so \sqrt{ \| \mathbf{M}^* \mathbf{M} \|_\text{op} } is the largest eigenvalue of {{tmath|\sqrt{ \mathbf{M}^* \mathbf{M} } }}, i.e.[src] \| \mathbf{M} \|_\text{op} is the largest singular value of .[src] The last of the Ky Fan norms, the sum of all singular values, is the trace norm (also known as the 'nuclear norm'), defined by \| \mathbf{M} \|_\text{tr} = \operatorname{tr} \sqrt{ \mathbf{M}^* \mathbf{M} } (the eigenvalues of \mathbf{M}^* \mathbf{M} are the squares of the singular values of ).[src] The trace norm (the nuclear norm) is a special case of the Schatten norm.[src] \langle \mathbf{M}, \mathbf{N} \rangle = \operatorname{tr} \left( \mathbf{N}^* \mathbf{M} \right).[src] So the induced norm, called the Frobenius norm, Schatten -norm, or Hilbert–Schmidt norm of , is \| \mathbf{M} \|_\text{F} = \sqrt{\langle \mathbf{M}, \mathbf{M} \rangle} = \sqrt{\operatorname{tr} \left( \mathbf{M}^* \mathbf{M} \right)}.[src] A direct calculation shows that the Frobenius norm of is \| \mathbf{M} \|_\text{F} = \sqrt{\vphantom\bigg|\sum_{i,j} | m_{i,j} |^2}.[src] Besides, since the trace is invariant under unitary equivalence, \| \mathbf{M} \|_\text{F} = \sqrt{\operatorname{tr} \left( \mathbf{\Sigma}^* \mathbf{\Sigma} \right)} = \sqrt{\vphantom\bigg|\sum_i \sigma_i^2}, where is the diagonal matrix whose diagonal entries are the singular values of .[src] The Frobenius norm is another special case of the Schatten norm.[src] \mathbf{M} = \mathbf{U} T_f \mathbf{V}^*, where is the multiplication by on .[src] This can be shown by mimicking the linear algebraic argument for the matrix case above.[src] is the unique positive square root of , as given by the Borel functional calculus for self-adjoint operators.[src] The reason why need not be unitary is that, unlike in the finite-dimensional case, given an isometry with nontrivial kernel, a suitable may not be found such that \begin{bmatrix} U_1 \\ U_2 \end{bmatrix} is a unitary operator.[src] As for matrices, the singular value factorization is equivalent to the polar decomposition for operators: we can simply write \mathbf{M} = \mathbf{U} \mathbf{V}^* \cdot \mathbf{V} T_f \mathbf{V}^*, and notice that is still a partial isometry while is positive.[src] \mathbf{M} \psi = \mathbf{U} T_f \mathbf{V}^* \psi = \sum_i \left \langle \mathbf{U} T_f \mathbf{V}^* \psi, \mathbf{U} e_i \right \rangle \mathbf{U} e_i = \sum_i \sigma_i \left \langle \psi, \mathbf{V} e_i \right \rangle \mathbf{U} e_i, where the series converges in the norm topology on .[src] Notice how this resembles the expression from the finite-dimensional case.[src] The are called the singular values of .[src] The (resp.[src] {{tmath|\{\mathbf{V} e_i\} }}) can be considered the left-singular (resp.[src] right-singular) vectors of .[src] Compact operators on a Hilbert space are the closure of finite-rank operators in the uniform operator topology.[src] The above series expression gives an explicit such representation.[src] An immediate consequence of this is: Theorem.[src] is compact if and only if is compact.[src]
212 sentences · 212 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Singular value decomposition." encyclopegia.org, 2026, https://encyclopegia.org/wiki/singular-value-decomposition. Accessed 02 December 2026.
Chicago
"Singular value decomposition." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/singular-value-decomposition.
APA
encyclopegia.org. (2026). Singular value decomposition. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/singular-value-decomposition
Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON