Invertible matrix
In linear algebra, an invertible matrix is a square matrix that has an inverse. In other words, if a matrix is invertible, it can be multiplied by its inverse matrix to yield the identity matrix. Invertible matrices are the same size as their inverse.
The inverse of a matrix represents the inverse operation, meaning if a matrix is applied to a particular vector, followed by applying the matrix's inverse, the result is the original vector.
Definition
An -by- square matrix is called invertible if there exists an -by- square matrix such thatwhere denotes the -by- identity matrix and the multiplication used is ordinary matrix multiplication. If this is the case, then the matrix is uniquely determined by, and is called the inverse of, denoted by. Matrix inversion is the process of finding the matrix which when multiplied by the original matrix gives the identity matrix.Examples
Consider the following 2-by-2 matrix:The matrix is invertible, as it has inverse which can be confirmed by computing
To check that it is invertible without finding an inverse, can be computed, which is non-zero.
On the other hand, this is a non-invertible matrix:
We can see the rank of this 2-by-2 matrix is 1, which is, so it is non-invertible. Additionally, we can compute that the determinant of is 0, which is a necessary and sufficient condition for a matrix to be non-invertible.
Methods of matrix inversion
Gaussian elimination
is a useful and easy way to compute the inverse of a matrix. To compute a matrix inverse using this method, an augmented matrix is first created with the left side being the matrix to invert and the right side being the identity matrix. Then, Gaussian elimination is used to convert the left side into the identity matrix, which causes the right side to become the inverse of the input matrix.For example, take the following matrix:
The first step to compute its inverse is to create the augmented matrix
Call the first row of this matrix and the second row. Then, add row 1 to row 2 This yields
Next, subtract row 2, multiplied by 3, from row 1 which yields
Finally, multiply row 1 by −1 and row 2 by 2 This yields the identity matrix on the left side and the inverse matrix on the right:
Thus,
It works because the process of Gaussian elimination can be viewed as a sequence of applying left matrix multiplication using elementary row operations using elementary matrices, such as
Applying right-multiplication using we get And the right side which is the inverse we want.
To obtain we create the augmented matrix by combining with and applying Gaussian elimination. The two portions will be transformed using the same sequence of elementary row operations. When the left portion becomes, the right portion applied the same elementary row operation sequence will become.
Newton's method
A generalization of Newton's method as used for a multiplicative inverse algorithm may be convenient if it is convenient to find a suitable starting seed:Victor Pan and John Reif have done work that includes ways of generating a starting seed.
Newton's method is particularly useful when dealing with families of related matrices that behave enough like the sequence manufactured for the homotopy above: sometimes a good starting point for refining an approximation for the new inverse can be the already obtained inverse of a previous matrix that nearly matches the current matrix. For example, the pair of sequences of inverse matrices used in obtaining matrix square roots by Denman–Beavers iteration. That may need more than one pass of the iteration at each new matrix, if they are not close enough together for just one to be enough. Newton's method is also useful for "touch up" corrections to the Gauss–Jordan algorithm which has been contaminated by small errors from imperfect computer arithmetic.
Cayley–Hamilton method
The Cayley–Hamilton theorem allows the inverse of to be expressed in terms of, traces and powers of :where is size of, and is the trace of matrix given by the sum of the main diagonal. The sum is taken over and the sets of all satisfying the linear Diophantine equation
The formula can be rewritten in terms of complete Bell polynomials of arguments as
That is described in more detail under Cayley–Hamilton method.
Eigendecomposition
If matrix can be eigendecomposed, and if none of its eigenvalues are zero, then is invertible and its inverse is given bywhere is the square matrix whose th column is the eigenvector of, and is the diagonal matrix whose diagonal entries are the corresponding eigenvalues, that is, If
is symmetric, is guaranteed to be an orthogonal matrix, therefore Furthermore, because is a diagonal matrix, its inverse is easy to calculate:
Cholesky decomposition
If matrix is positive definite, then its inverse can be obtained aswhere is the lower triangular Cholesky decomposition of, and denotes the conjugate transpose of.
Analytic solution
Writing the transpose of the matrix of cofactors, known as an adjugate matrix, may also be an efficient way to calculate the inverse of small matrices, but the recursive method is inefficient for large matrices. To determine the inverse, we calculate a matrix of cofactors:so that
where is the determinant of, is the matrix of cofactors, and represents the matrix transpose.
Inversion of 2 × 2 matrices
The cofactor equation listed above yields the following result for matrices. Inversion of these matrices can be done as follows:This is possible because is the reciprocal of the determinant of the matrix in question, and the same strategy could be used for other matrix sizes.
The Cayley–Hamilton method gives
Inversion of 3 × 3 matrices
A computationally efficient matrix inversion is given by.
If the determinant is non-zero, the matrix is invertible, with the entries of the intermediary matrix on the right side above given by
The determinant of can be computed by applying the rule of Sarrus as follows:
The Cayley–Hamilton decomposition gives
The general inverse can be expressed concisely in terms of the cross product and triple product. If a matrix is invertible, its inverse is given by
The determinant of,, is equal to the triple product of,, and —the volume of the parallelepiped formed by the rows or columns:
The correctness of the formula can be checked by using cross- and triple-product properties and by noting that for groups, left and right inverses always coincide. Intuitively, because of the cross products, each row of is orthogonal to the non-corresponding two columns of . Dividing by
causes the diagonal entries of to be unity. For example, the first diagonal is:
Inversion of 4 × 4 matrices
With increasing dimension, expressions for the inverse of get complicated. For, the Cayley–Hamilton method leads to an expression that is still tractable:Blockwise inversion
Letwhere,, and are matrix sub-blocks of arbitrary size and is the Schur complement of.
Matrices can also be inverted blockwise by using the analytic inversion formula:
The strategy is particularly advantageous if is diagonal and is a small matrix, since they are the only matrices requiring inversion.
The nullity theorem says that the nullity of equals the nullity of the sub-block in the lower right of the inverse matrix, and that the nullity of equals the nullity of the sub-block in the upper right of the inverse matrix.
The inversion procedure that led to Equation performed matrix block operations that operated on and first. Instead, if and are operated on first, and provided and are nonsingular, the result is
Equating the upper-left sub-matrices of Equations and leads to
where Equation is the Woodbury matrix identity, which is equivalent to the binomial inverse theorem.
If and are both invertible, then the above two block matrix inverses can be combined to provide the simple factorization
By the Weinstein–Aronszajn identity, one of the two matrices in the block-diagonal matrix is invertible exactly when the other is.
This formula simplifies significantly when the upper right block matrix is the zero matrix. This formulation is useful when the matrices and have relatively simple inverse formulas, if and only if is invertible. By writing matrix inversion can be reduced to inverting symmetric matrices and 2 additional matrix multiplications, because the positive definite matrix satisfies the invertibility condition for its left upper block.
Those formulas together allow to construct a divide and conquer algorithm that uses blockwise inversion of associated symmetric matrices to invert a matrix with the same time complexity as the matrix multiplication algorithm that is used internally. Research into matrix multiplication complexity shows that there exist matrix multiplication algorithms with a complexity of operations, while the best proven lower bound is.
By Neumann series
If a matrix has the property thatthen is nonsingular and its inverse may be expressed by a Neumann series:
Truncating the sum results in an "approximate" inverse which may be useful as a preconditioner. Note that a truncated series can be accelerated exponentially by noting that the Neumann series is a geometric sum. As such, it satisfies
Therefore, only matrix multiplications are needed to compute terms of the sum.
More generally, if is "near" the invertible matrix in the sense that
then is nonsingular and its inverse is
If it is also the case that has rank 1 then this simplifies to