Matrix decomposition

From HandWiki
Short description: Representation of a matrix as a product

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.

Example

In numerical analysis, different decompositions are used to implement efficient matrix algorithms.

For instance, when solving a system of linear equations [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math], 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 [math]\displaystyle{ L(U \mathbf{x}) = \mathbf{b} }[/math] and [math]\displaystyle{ U \mathbf{x} = L^{-1} \mathbf{b} }[/math] require fewer additions and multiplications to solve, compared with the original system [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math], 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.

Decompositions related to solving systems of linear equations

LU decomposition

Main page: LU decomposition
  • Traditionally applicable to: square matrix A, although rectangular matrices can be applicable.[1][nb 1]
  • Decomposition: [math]\displaystyle{ A=LU }[/math], where L is lower triangular and U is upper triangular.
  • Related: the LDU decomposition is [math]\displaystyle{ A=LDU }[/math], 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 [math]\displaystyle{ PA=LU }[/math], 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.
  • Comments: The LUP and LU decompositions are useful in solving an n-by-n system of linear equations [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math]. 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.

LU reduction

Main page: LU reduction

Block LU decomposition

Main page: Block LU decomposition

Rank factorization

Main page: Rank factorization
  • Applicable to: m-by-n matrix A of rank r
  • Decomposition: [math]\displaystyle{ A=CF }[/math] 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,[2] which one can apply to obtain all solutions of the linear system [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math].

Cholesky decomposition

Main page: Cholesky decomposition
  • Applicable to: square, hermitian, positive definite matrix [math]\displaystyle{ A }[/math]
  • Decomposition: [math]\displaystyle{ A=U^*U }[/math], where [math]\displaystyle{ U }[/math] is upper triangular with real positive diagonal entries
  • Comment: if the matrix [math]\displaystyle{ A }[/math] is Hermitian and positive semi-definite, then it has a decomposition of the form [math]\displaystyle{ A=U^*U }[/math] if the diagonal entries of [math]\displaystyle{ U }[/math] are allowed to be zero
  • Uniqueness: for positive definite matrices Cholesky decomposition is unique. However, it is not unique in the positive semi-definite case.
  • Comment: if [math]\displaystyle{ A }[/math] is real and symmetric, [math]\displaystyle{ U }[/math] has all real elements
  • Comment: An alternative is the LDL decomposition, which can avoid extracting square roots.

QR decomposition

Main page: QR decomposition
  • Applicable to: m-by-n matrix A with linearly independent columns
  • Decomposition: [math]\displaystyle{ A=QR }[/math] where [math]\displaystyle{ Q }[/math] is a unitary matrix of size m-by-m, and [math]\displaystyle{ R }[/math] is an upper triangular matrix of size m-by-n
  • Uniqueness: In general it is not unique, but if [math]\displaystyle{ A }[/math] is of full rank, then there exists a single [math]\displaystyle{ R }[/math] that has all positive diagonal elements. If [math]\displaystyle{ A }[/math] is square, also [math]\displaystyle{ Q }[/math] is unique.
  • Comment: The QR decomposition provides an effective way to solve the system of equations [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math]. The fact that [math]\displaystyle{ Q }[/math] is orthogonal means that [math]\displaystyle{ Q^{\mathrm{T}}Q=I }[/math], so that [math]\displaystyle{ A \mathbf{x} = \mathbf{b} }[/math] is equivalent to [math]\displaystyle{ R \mathbf{x} = Q^{\mathsf{T}} \mathbf{b} }[/math], which is very easy to solve since [math]\displaystyle{ R }[/math] is triangular.

RRQR factorization

Main page: RRQR factorization

Interpolative decomposition

Main page: Interpolative decomposition

Decompositions based on eigenvalues and related concepts

Eigendecomposition

  • Also called spectral decomposition.
  • Applicable to: square matrix A with linearly independent eigenvectors (not necessarily distinct eigenvalues).
  • Decomposition: [math]\displaystyle{ A=VDV^{-1} }[/math], 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 [math]\displaystyle{ AV=VD }[/math]. [math]\displaystyle{ V }[/math] is invertible if and only if the n eigenvectors are linearly independent (that is, each eigenvalue has geometric multiplicity equal to its algebraic multiplicity). A sufficient (but not necessary) condition for this to happen is that all the eigenvalues are different (in this case geometric and algebraic multiplicity are equal to 1)
  • Comment: One can always normalize the eigenvectors to have length one (see the definition of the eigenvalue equation)
  • Comment: Every normal matrix A (that is, matrix for which [math]\displaystyle{ AA^*=A^*A }[/math], where [math]\displaystyle{ A^* }[/math] is a conjugate transpose) can be eigendecomposed. For a normal matrix A (and only for a normal matrix), the eigenvectors can also be made orthonormal ([math]\displaystyle{ VV^*=I }[/math]) and the eigendecomposition reads as [math]\displaystyle{ A=VDV^* }[/math]. In particular all unitary, Hermitian, or skew-Hermitian (in the real-valued case, all orthogonal, symmetric, or skew-symmetric, respectively) matrices are normal and therefore possess this property.
  • Comment: For any real symmetric matrix A, the eigendecomposition always exists and can be written as [math]\displaystyle{ A=VDV^\mathsf{T} }[/math], 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 [math]\displaystyle{ x_{t+1}=Ax_t }[/math] starting from the initial condition [math]\displaystyle{ x_0=c }[/math] is solved by [math]\displaystyle{ x_t = A^tc }[/math], which is equivalent to [math]\displaystyle{ x_t = VD^tV^{-1}c }[/math], where V and D are the matrices formed from the eigenvectors and eigenvalues of A. Since D is diagonal, raising it to power [math]\displaystyle{ D^t }[/math], just involves raising each element on the diagonal to the power t. This is much easier to do and understand than raising A to power t, since A is usually not diagonal.

Jordan decomposition

The Jordan normal form and the Jordan–Chevalley decomposition

  • 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.

Schur decomposition

Main page: Schur decomposition
  • Applicable to: square matrix A
  • Decomposition (complex version): [math]\displaystyle{ A=UTU^* }[/math], where U is a unitary matrix, [math]\displaystyle{ U^* }[/math] 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.
  • Comment: if A is a normal matrix, then T is diagonal and the Schur decomposition coincides with the spectral decomposition.

Real Schur decomposition

  • Applicable to: square matrix A
  • Decomposition: This is a version of Schur decomposition where [math]\displaystyle{ V }[/math] and [math]\displaystyle{ S }[/math] only contain real numbers. One can always write [math]\displaystyle{ A=VSV^\mathsf{T} }[/math] where V is a real orthogonal matrix, [math]\displaystyle{ V^\mathsf{T} }[/math] 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).

QZ decomposition

  • 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): [math]\displaystyle{ A=QSZ^* }[/math] and [math]\displaystyle{ B=QTZ^* }[/math] where Q and Z are unitary matrices, the * 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, [math]\displaystyle{ \lambda_i = S_{ii}/T_{ii} }[/math], are the generalized eigenvalues that solve the generalized eigenvalue problem [math]\displaystyle{ A \mathbf{v} = \lambda B \mathbf{v} }[/math] (where [math]\displaystyle{ \lambda }[/math] is an unknown scalar and v is an unknown nonzero vector).
  • Decomposition (real version): [math]\displaystyle{ A=QSZ^\mathsf{T} }[/math] and [math]\displaystyle{ B=QTZ^\mathsf{T} }[/math] 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.

Takagi's factorization

  • Applicable to: square, complex, symmetric matrix A.
  • Decomposition: [math]\displaystyle{ A=VDV^\mathsf{T} }[/math], where D is a real nonnegative diagonal matrix, and V is unitary. [math]\displaystyle{ V^\mathsf{T} }[/math] denotes the matrix transpose of V.
  • Comment: The diagonal elements of D are the nonnegative square roots of the eigenvalues of [math]\displaystyle{ AA^*=VD^2V^* }[/math].
  • Comment: V may be complex even if A is real.
  • Comment: This is not a special case of the eigendecomposition (see above), which uses [math]\displaystyle{ V^{-1} }[/math] instead of [math]\displaystyle{ V^\mathsf{T} }[/math]. Moreover, if A is not real, it is not Hermitian and the form using [math]\displaystyle{ V^* }[/math] also does not apply.

Singular value decomposition

Main page: Singular value decomposition
  • Applicable to: m-by-n matrix A.
  • Decomposition: [math]\displaystyle{ A=UDV^* }[/math], where D is a nonnegative diagonal matrix, and U and V satisfy [math]\displaystyle{ U^*U = I, V^*V = I }[/math]. Here [math]\displaystyle{ V^* }[/math] is the conjugate transpose of V (or simply the transpose, if V contains real numbers only), and I denotes the identity matrix (of some dimension).
  • 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.
  • Uniqueness: the singular values of [math]\displaystyle{ A }[/math] are always uniquely determined. [math]\displaystyle{ U }[/math] and [math]\displaystyle{ V }[/math] need not to be unique in general.

Scale-invariant decompositions

Refers to variants of existing matrix decompositions, such as the SVD, that are invariant with respect to diagonal scaling.

  • Applicable to: m-by-n matrix A.
  • Unit-Scale-Invariant Singular-Value Decomposition: [math]\displaystyle{ A=DUSV^*E }[/math], where S is a unique nonnegative diagonal matrix of scale-invariant singular values, U and V are unitary matrices, [math]\displaystyle{ V^* }[/math] is the conjugate transpose of V, and positive diagonal matrices D and E.
  • Comment: Is analogous to the SVD except that the diagonal elements of S are invariant with respect to left and/or right multiplication of A by arbitrary nonsingular diagonal matrices, as opposed to the standard SVD for which the singular values are invariant with respect to left and/or right multiplication of A by arbitrary unitary matrices.
  • Comment: Is an alternative to the standard SVD when invariance is required with respect to diagonal rather than unitary transformations of A.
  • Uniqueness: The scale-invariant singular values of [math]\displaystyle{ A }[/math] (given by the diagonal elements of S) are always uniquely determined. Diagonal matrices D and E, and unitary U and V, are not necessarily unique in general.
  • Comment: U and V matrices are not the same as those from the SVD.

Analogous scale-invariant decompositions can be derived from other matrix decompositions; for example, to obtain scale-invariant eigenvalues.[3][4]

Hessenberg decomposition

  • Applicable to: square matrix A.
  • Decomposition: [math]\displaystyle{ A=PHP^* }[/math] where [math]\displaystyle{ H }[/math] is the Hessenberg matrix and [math]\displaystyle{ P }[/math] is a unitary matrix.
  • Comment: often the first step in the Schur decomposition.

Complete orthogonal decomposition

Main page: Complete orthogonal decomposition
  • Also known as: UTV decomposition, ULV decomposition, URV decomposition.
  • Applicable to: m-by-n matrix A.
  • Decomposition: [math]\displaystyle{ A=UTV^* }[/math], where T is a triangular matrix, and U and V are unitary matrices.
  • Comment: Similar to the singular value decomposition and to the Schur decomposition.

Other decompositions

Polar decomposition

Main page: Polar decomposition
  • Applicable to: any square complex matrix A.
  • Decomposition: [math]\displaystyle{ A=UP }[/math] (right polar decomposition) or [math]\displaystyle{ A=P'U }[/math] (left polar decomposition), where U is a unitary matrix and P and P' are positive semidefinite Hermitian matrices.
  • Uniqueness: [math]\displaystyle{ P }[/math] is always unique and equal to [math]\displaystyle{ \sqrt{A^*A} }[/math] (which is always hermitian and positive semidefinite). If [math]\displaystyle{ A }[/math] is invertible, then [math]\displaystyle{ U }[/math] is unique.
  • Comment: Since any Hermitian matrix admits a spectral decomposition with a unitary matrix, [math]\displaystyle{ P }[/math] can be written as [math]\displaystyle{ P=VDV^* }[/math]. Since [math]\displaystyle{ P }[/math] is positive semidefinite, all elements in [math]\displaystyle{ D }[/math] are non-negative. Since the product of two unitary matrices is unitary, taking [math]\displaystyle{ W=UV }[/math]one can write [math]\displaystyle{ A=U(VDV^*)=WDV^* }[/math] which is the singular value decomposition. Hence, the existence of the polar decomposition is equivalent to the existence of the singular value decomposition.

Algebraic polar decomposition

  • Applicable to: square, complex, non-singular matrix A.[5]
  • Decomposition: [math]\displaystyle{ A=QS }[/math], where Q is a complex orthogonal matrix and S is complex symmetric matrix.
  • Uniqueness: If [math]\displaystyle{ A^\mathsf{T}A }[/math] has no negative real eigenvalues, then the decomposition is unique.[6]
  • Comment: The existence of this decomposition is equivalent to [math]\displaystyle{ AA^\mathsf{T} }[/math] being similar to [math]\displaystyle{ A^\mathsf{T}A }[/math].[7]
  • Comment: A variant of this decomposition is [math]\displaystyle{ A=RC }[/math], where R is a real matrix and C is a circular matrix.[6]

Mostow's decomposition

  • Applicable to: square, complex, non-singular matrix A.[8][9]
  • Decomposition: [math]\displaystyle{ A=Ue^{iM}e^{S} }[/math], where U is unitary, M is real anti-symmetric and S is real symmetric.
  • Comment: The matrix A can also be decomposed as [math]\displaystyle{ A=U_2e^{S_2}e^{iM_2} }[/math], where U2 is unitary, M2 is real anti-symmetric and S2 is real symmetric.[6]

Sinkhorn normal form

Main page: Sinkhorn's theorem
  • Applicable to: square real matrix A with strictly positive elements.
  • Decomposition: [math]\displaystyle{ A=D_{1}SD_{2} }[/math], where S is doubly stochastic and D1 and D2 are real diagonal matrices with strictly positive elements.

Sectoral decomposition

  • Applicable to: square, complex matrix A with numerical range contained in the sector [math]\displaystyle{ S_\alpha = \left\{r e^{i \theta} \in \mathbb{C} \mid r\gt 0, |\theta| \le \alpha \lt \frac{\pi}{2}\right\} }[/math].
  • Decomposition: [math]\displaystyle{ A = CZC^* }[/math], where C is an invertible complex matrix and [math]\displaystyle{ Z = \operatorname{diag}\left(e^{i\theta_1},\ldots,e^{i\theta_n}\right) }[/math] with all [math]\displaystyle{ \left|\theta_j\right| \le \alpha }[/math].[10][11]

Williamson's normal form

  • Applicable to: square, positive-definite real matrix A with order 2n×2n.
  • Decomposition: [math]\displaystyle{ A=S^\mathsf{T}\operatorname{diag}(D,D)S }[/math], where [math]\displaystyle{ S \in \text{Sp}(2n) }[/math] is a symplectic matrix and D is a nonnegative n-by-n diagonal matrix.[12]

Matrix square root

Main page: Square root of a matrix
  • Decomposition: [math]\displaystyle{ A=BB }[/math], not unique in general.
  • In the case of positive semidefinite [math]\displaystyle{ A }[/math], there is a unique positive semidefinite [math]\displaystyle{ B }[/math] such that [math]\displaystyle{ A=B^*B=BB }[/math].

Generalizations

There exist analogues of the SVD, QR, LU and Cholesky factorizations for quasimatrices and cmatrices or continuous matrices.[13] 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.

These factorizations are based on early work by (Fredholm 1903), (Hilbert 1904) and (Schmidt 1907). For an account, and a translation to English of the seminal papers, see (Stewart 2011).

See also

References

Notes

  1. If a non-square matrix is used, however, then the matrix U will also have the same rectangular shape as the original matrix A. And so, calling the matrix U upper triangular would be incorrect as the correct term would be that U is the 'row echelon form' of A. Other than this, there are no differences in LU factorization for square and non-square matrices.

Citations

  1. Lay, David C. (2016). Linear algebra and its applications. Steven R. Lay, Judith McDonald (Fifth Global ed.). Harlow. pp. 142. ISBN 978-1-292-09223-2. OCLC 920463015. https://www.worldcat.org/oclc/920463015. 
  2. Piziak, R.; Odell, P. L. (1 June 1999). "Full Rank Factorization of Matrices". Mathematics Magazine 72 (3): 193. doi:10.2307/2690882. 
  3. Uhlmann, J.K. (2018), "A Generalized Matrix Inverse that is Consistent with Respect to Diagonal Transformations", SIAM Journal on Matrix Analysis and Applications 239 (2): 781–800, doi:10.1137/17M113890X 
  4. Uhlmann, J.K. (2018), "A Rank-Preserving Generalized Matrix Inverse for Consistency with Respect to Similarity", IEEE Control Systems Letters 3: 91–95, doi:10.1109/LCSYS.2018.2854240, ISSN 2475-1456 
  5. Choudhury & Horn 1987, pp. 219–225
  6. 6.0 6.1 6.2 Bhatia, Rajendra (2013-11-15). "The bipolar decomposition". Linear Algebra and Its Applications 439 (10): 3031–3037. doi:10.1016/j.laa.2013.09.006. 
  7. Horn & Merino 1995, pp. 43–92
  8. Mostow, G. D. (1955), Some new decomposition theorems for semi-simple groups, Mem. Amer. Math. Soc., 14, American Mathematical Society, pp. 31–54, https://archive.org/details/liealgebrasandli029541mbp 
  9. Nielsen, Frank; Bhatia, Rajendra (2012) (in en). Matrix Information Geometry. Springer. pp. 224. doi:10.1007/978-3-642-30232-9. ISBN 9783642302329. 
  10. Zhang, Fuzhen (30 June 2014). "A matrix decomposition and its applications". Linear and Multilinear Algebra 63 (10): 2033–2042. doi:10.1080/03081087.2014.933219. https://zenodo.org/record/851661. 
  11. 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. 
  12. Idel, Martin; Soto Gaona, Sebastián; Wolf, Michael M. (2017-07-15). "Perturbation bounds for Williamson's symplectic normal form". Linear Algebra and Its Applications 525: 45–58. doi:10.1016/j.laa.2017.03.013. 
  13. Townsend & Trefethen 2015

Bibliography


External links