In the mathematical discipline of linear algebra, a matrix decomposition or matrix factorization is a factorization of a matrix into a product of matrices. There are many different matrix decompositions; each finds use among a particular class of problems.
- 1 Example
- 2 Decompositions related to solving systems of linear equations
- 3 Decompositions based on eigenvalues and related concepts
- 4 Other decompositions
- 5 Generalizations
- 6 See also
- 7 Notes
- 8 References
- 9 External links
For instance, when solving a system of linear equations , the matrix A can be decomposed via the LU decomposition. The LU decomposition factorizes a matrix into a lower triangular matrix L and an upper triangular matrix U. The systems and require fewer additions and multiplications to solve, compared with the original system , though one might require significantly more digits in inexact arithmetic such as floating point.
Similarly, the QR decomposition expresses A as QR with Q an orthogonal matrix and R an upper triangular matrix. The system Q(Rx) = b is solved by Rx = QTb = c, and the system Rx = c is solved by 'back substitution'. The number of additions and multiplications required is about twice that of using the LU solver, but no more digits are required in inexact arithmetic because the QR decomposition is numerically stable.
- Applicable to: square matrix A
- Decomposition: , where L is lower triangular and U is upper triangular
- Related: the LDU decomposition is , where L is lower triangular with ones on the diagonal, U is upper triangular with ones on the diagonal, and D is a diagonal matrix.
- Related: the LUP decomposition is , where L is lower triangular, U is upper triangular, and P is a permutation matrix.
- Existence: An LUP decomposition exists for any square matrix A. When P is an identity matrix, the LUP decomposition reduces to the LU decomposition. If the LU decomposition exists, the LDU decomposition does too.
- Comments: The LUP and LU decompositions are useful in solving an n-by-n system of linear equations . These decompositions summarize the process of Gaussian elimination in matrix form. Matrix P represents any row interchanges carried out in the process of Gaussian elimination. If Gaussian elimination produces the row echelon form without requiring any row interchanges, then P = I, so an LU decomposition exists.
Block LU decomposition
- Applicable to: m-by-n matrix A of rank r
- Decomposition: where C is an m-by-r full column rank matrix and F is an r-by-n full row rank matrix
- Comment: The rank factorization can be used to compute the Moore–Penrose pseudoinverse of A, which one can apply to obtain all solutions of the linear system .
- Applicable to: square, symmetric, positive definite matrix A
- Decomposition: , where U is upper triangular with positive diagonal entries
- Comment: the Cholesky decomposition is unique
- Comment: the Cholesky decomposition is also applicable for complex hermitian positive definite matrices
- Comment: An alternative is the LDL decomposition, which can avoid extracting square roots.
- Applicable to: m-by-n matrix A
- Decomposition: where Q is an orthogonal matrix of size m-by-m, and R is an upper triangular matrix of size m-by-n
- Comment: The QR decomposition provides an alternative way of solving the system of equations without inverting the matrix A. The fact that Q is orthogonal means that , so that is equivalent to , which is easier to solve since R is triangular.
- Also called spectral decomposition
- Applicable to: square matrix A with distinct eigenvectors (not necessarily distinct eigenvalues).
- Decomposition: , where D is a diagonal matrix formed from the eigenvalues of A, and the columns of V are the corresponding eigenvectors of A.
- Existence: An n-by-n matrix A always has n (complex) eigenvalues, which can be ordered (in more than one way) to form an n-by-n diagonal matrix D and a corresponding matrix of nonzero columns V that satisfies the eigenvalue equation . If the n eigenvalues are distinct, then the corresponding eigenvectors are linearly independent and V is invertible, implying the decomposition .
- Comment: The condition of having n distinct eigenvalues is sufficient but not necessary. The necessary and sufficient condition is to have n linearly independent eigenvectors, i.e. for each eigenvalue to have geometric multiplicity equal to its algebraic multiplicity.
- Comment: One can always normalize the eigenvectors to have length one (see definition of the eigenvalue equation).
- Comment: Every normal matrix A (i.e. matrix for which , where is a conjugate transpose) can be eigendecomposed. All unitary, Hermitian, and skew-Hermitian (in real-valued case, all orthogonal, symmetric, and skew-symmetric, respectively) matrices are normal and therefore can always be eigendecomposed.
- Comment: For normal matrix A (and only for normal matrix), the eigenvectors can be made orthonormal and eigendecomposition reads as .
- Comment: For real symmetric matrix A the eigendecomposition always exists and can be written as , where both D and V are real-valued.
- Comment: The eigendecomposition is useful for understanding the solution of a system of linear ordinary differential equations or linear difference equations. For example, the difference equation starting from the initial condition is solved by , which is equivalent to , where V and D are the matrices formed from the eigenvectors and eigenvalues of A. Since D is diagonal, raising it to power , just involves raising each element on the diagonal to the power t. This is much easier to do and to understand than raising A to power t, since A is usually not diagonal.
- Applicable to: square matrix A
- Comment: the Jordan normal form generalizes the eigendecomposition to cases where there are repeated eigenvalues and cannot be diagonalized, the Jordan–Chevalley decomposition does this without choosing a basis.
- Applicable to: square matrix A
- Comment: there are two versions of this decomposition: the complex Schur decomposition and the real Schur decomposition. A complex matrix always has a complex Schur decomposition.
- Decomposition (complex version): , where U is a unitary matrix, is the conjugate transpose of U, and T is an upper triangular matrix called the complex Schur form which has the eigenvalues of A along its diagonal.
- Decomposition (real version): , where A, V, S and are matrices that contain real numbers only. In this case, V is an orthogonal matrix, is the transpose of V, and S is a block upper triangular matrix called the real Schur form. The blocks on the diagonal of S are of size 1×1 (in which case they represent real eigenvalues) or 2×2 (in which case they are derived from complex conjugate eigenvalue pairs).
- Also called: generalized Schur decomposition
- Applicable to: square matrices A and B
- Comment: there are two versions of this decomposition: complex and real.
- Decomposition (complex version): and where Q and Z are unitary matrices, the H superscript represents conjugate transpose, and S and T are upper triangular matrices.
- Comment: in the complex QZ decomposition, the ratios of the diagonal elements of S to the corresponding diagonal elements of T, , are the generalized eigenvalues that solve the generalized eigenvalue problem (where is an unknown scalar and v is an unknown nonzero vector).
- Decomposition (real version): and where A, B, Q, Z, S, and T are matrices containing real numbers only. In this case Q and Z are orthogonal matrices, the T superscript represents transposition, and S and T are block upper triangular matrices. The blocks on the diagonal of S and T are of size 1×1 or 2×2.
- Applicable to: square, complex, symmetric matrix A.
- Decomposition: , where D is a real nonnegative diagonal matrix, and V is unitary. denotes the matrix transpose of V.
- Comment: The diagonal elements of D are the nonnegative square roots of the eigenvalues of .
- Comment: V may be complex even if A is real.
- Comment: This is not a special case of the eigendecomposition (see above).
Singular value decomposition
- Applicable to: m-by-n matrix A.
- Decomposition: , where D is a nonnegative diagonal matrix, and U and V are unitary matrices, and denotes the conjugate transpose of V (or simply the transpose, if V contains real numbers only).
- Comment: The diagonal elements of D are called the singular values of A.
- Comment: Like the eigendecomposition above, the singular value decomposition involves finding basis directions along which matrix multiplication is equivalent to scalar multiplication, but it has greater generality since the matrix under consideration need not be square.
- Applicable to: square, complex, matrix A.
- Decomposition: (right polar decomposition) or (left polar decomposition), where U is a unitary matrix and P and P' are positive semidefinite Hermitian matrices.
Algebraic polar decomposition
- Applicable to: square, complex, non-singular matrix A.
- Decomposition: , where Q is a complex orthogonal matrix and S is complex symmetric matrix.
- Comment: The existence of this decomposition is equivalent to being similar to .
Sinkhorn normal form
- Applicable to: square real matrix A with strictly positive elements.
- Decomposition: , where S is doubly stochastic and D1 and D2 are real diagonal matrices with strictly positive elements.
- Applicable to: square, complex matrix A with numerical range contained in the sector .
- Decomposition: , where C is an invertible complex matrix and with all .
|This section needs expansion with: examples and additional citations. You can help by adding to it. (December 2014)|
There exist analogues of the SVD, QR, LU and Cholesky factorizations for quasimatrices and cmatrices or continuous matrices. A ‘quasimatrix’ is, like a matrix, a rectangular scheme whose elements are indexed, but one discrete index is replaced by a continuous index. Likewise, a ‘cmatrix’, is continuous in both indices. As an example of a cmatrix, one can think of the kernel of an integral operator.
- Simon & Blume 1994 Chapter 7.
- Piziak, R.; Odell, P. L. (1 June 1999). "Full Rank Factorization of Matrices". Mathematics Magazine. 72 (3): 193. doi:10.2307/2690882.
- Meyer 2000, p. 514
- Choudhury & Horn 1987, pp. 219–225
- Horn & merino 1995, pp. 43–92
- Zhang, Fuzhen (30 June 2014). "A matrix decomposition and its applications". Linear and Multilinear Algebra: 1–10. doi:10.1080/03081087.2014.933219.
- Drury, S.W. (November 2013). "Fischer determinantal inequalities and Highamʼs Conjecture". Linear Algebra and its Applications. 439 (10): 3129–3133. doi:10.1016/j.laa.2013.08.031.
- Townsend & Trefethen 2015
- Choudhury, Dipa; Horn, Roger A. (April 1987). "A Complex Orthogonal-Symmetric Analog of the Polar Decomposition". SIAM Journal on Algebraic Discrete Methods. 8 (2). doi:10.1137/0608019.
- Fredholm, I. (1903), "Sur une classe d'´equations fonctionnelles", Acta Mathematica (in French), 27: 365–390, doi:10.1007/bf02421317
- Hilbert, D. (1904), "Grundzüge einer allgemeinen Theorie der linearen Integralgleichungen", Nachr. Königl. Ges. Gött (in German), 1904: 49–91
- Horn, Roger A.; Merino, Dennis I. (January 1995). "Contragredient equivalence: A canonical form and some applications". Linear Algebra and its Applications. 214. doi:10.1016/0024-3795(93)00056-6.
- Meyer, C. D. (2000), Matrix Analysis and Applied Linear Algebra, SIAM, ISBN 978-0-89871-454-8
- Schmidt, E. (1907), "Zur Theorie der linearen und nichtlinearen Integralgleichungen. I Teil. Entwicklung willkürlichen Funktionen nach System vorgeschriebener", Mathematische Annalen (in German), 63: 433–476, doi:10.1007/bf01449770
- Simon, C.; Blume, L. (1994). Mathematics for Economists. Norton. ISBN 0-393-95733-0.
- Stewart, G. W. (2011), Fredholm, Hilbert, Schmidt: three fundamental papers on integral equations (PDF), retrieved 2015-01-06
- Townsend, A.; Trefethen, L. N. (2015), "Continuous analogues of matrix factorizations", Proc. R. Soc. A, 471 (2173), doi:10.1098/rspa.2014.0585
- Online Matrix Calculator
- Wolfram Alpha Matrix Decomposition Computation » LU and QR Decomposition
- Springer Encyclopaedia of Mathematics » Matrix factorization
- GraphLab GraphLab collaborative filtering library, large scale parallel implementation of matrix decomposition methods (in C++) for multicore.