maths.free › Linear Algebra › Matrices › Invertible matrix
Invertible matrix
In linear algebra, an invertible matrix (non-singular, non-degenerate or regular) is a square matrix that has an inverse.
Invertible matrix
In linear algebra, an invertible matrix (non-singular, non-degenerate or regular) 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 n-by-n square matrix A is called invertible if there exists an n-by-n square matrix B such that\[\mathbf{AB} = \mathbf{BA} = \mathbf{I}_n ,\]where In denotes the n-by-n identity matrix and the multiplication used is ordinary matrix multiplication. If this is the case, then the matrix B is uniquely determined by A, and is called the inverse of A, denoted by A. Matrix inversion is the process of finding the matrix which when multiplied by the original matrix gives the identity matrix.
Basic idea
A matrix can be viewed as a rule for transforming vectors. For example, a real \(n \times n\) matrix \(A\) defines a linear transformation
\(x \mapsto Ax\)
from the set \(\mathbb{R}^n\) of \(n\)-tuples of real numbers to itself. The matrix is invertible when this transformation can be undone by another linear transformation. In that case, there is a matrix \(A^{-1}\) such that applying \(A\) and then \(A^{-1}\), or applying \(A^{-1}\) and then \(A\), returns every vector to where it started.
Geometrically, an invertible matrix does not collapse space into a lower-dimensional set. It sends distinct vectors to distinct vectors and reaches every vector in the target space. For a real matrix, this is reflected by its determinant: an invertible matrix has nonzero determinant, while a matrix with determinant zero collapses volume to zero and is not invertible.
Algebraically, invertibility means that the linear system
\(Ax=b\)
has a unique solution \(x\) for every vector \(b\). Equivalently, the columns of \(A\) form a basis of the vector space. These and several other equivalent characterizations are summarized by the invertible matrix theorem.
An invertible matrix
Consider the following 2-by-2 matrix:
\(\mathbf{A} = \begin{pmatrix}-1 & \tfrac{3}{2} \\ 1 & -1\end{pmatrix}\)
The matrix \(\mathbf{A}\) is invertible, as it has inverse \(\mathbf{B} = \begin{pmatrix} 2 & 3 \\ 2 & 2\end{pmatrix} ,\) which can be confirmed by computing
\(\mathbf{A}\mathbf{B} = \begin{pmatrix}-1 & \tfrac{3}{2} \\ 1 & -1\end{pmatrix} \begin{pmatrix} 2 & 3 \\ 2 & 2\end{pmatrix} = \begin{pmatrix} (-1) \times 2 + \tfrac 3 2 \times 2 & (-1) \times 3 + \tfrac 3 2 \times 2 \\ 1 \times 2 + (-1) \times 2 & 1 \times 3 + (-1) \times 2\end{pmatrix} = \begin{pmatrix}1 & 0 \\ 0 & 1\end{pmatrix} = \mathbf{I}_2\)
To check that it is invertible without finding an inverse, \(\det \mathbf{A} = -\frac{1}{2}\) can be computed, which is non-zero.
A non-invertible matrix
This is a non-invertible (singular) matrix:
\(\mathbf{C} = \begin{pmatrix} 2 & 4\\ 2 & 4 \end{pmatrix}\)
This matrix is not invertible, because different vectors \(x\) and \(x'\) have the same value of \(\mathbf Cx\), for example, \(x=\begin{bmatrix}2\\-1\end{bmatrix}\) and \(x'=\begin{bmatrix}0\\0\end{bmatrix}\) both give \(\mathbf Cx = \begin{bmatrix}0\\0\end{bmatrix}\). So it is impossible to reverse the transformation \(x\mapsto\mathbf Cx\), since different inputs produce the same output. The determinant of \(\mathbf{C}\) is 0, which is a necessary and sufficient condition for a matrix to be non-invertible.
Explicit formula for 2x2 matrices
For an arbitrary 2-by-2 matrix \(\mathbf{A}\) defined as
\(\mathbf{A} = \begin{pmatrix}a & b \\ c & d\end{pmatrix}\),
its inverse is
\(\mathbf{A}^{-1} = \frac{1}{ \det{\mathbf{A}} } \begin{pmatrix}d & -b \\ -c & a\end{pmatrix}\).
Criteria for invertibility
A matrix \(\mathbf A\) (over a field such as the real numbers) is invertible if and only if the only solution to the equation \(\mathbf Ax =0\) is the zero vector. That is, the nullity of \(\mathbf A\) is zero: its nullspace consists only of the zero vector. Equivalently, an \(n\times n\) matrix is invertible if its rank is \(n\), by the rank-nullity theorem. Such a matrix is said to be of full rank. Geometrically, this means that the column space of \(\mathbf A\) is all of \(\mathbb R^n\). The rank and nullity characterizations are related in the following way: having full rank means that the matrix maps onto all of \(\mathbb R^n\) (surjectively), and having nullity zero means that the matrix is one-to-one. That is, it is a bijection, and therefore inveritble.
A more computational criterion for invertibility comes from the standard way of determining the rank and nullity of a matrix. For a square matrix, a matrix is invertible if and only if its row-reduced echelon form is the identity matrix. The reason is that this is the only row-reduced echelon matrix having full rank: all ones down the diagonal and zeros everywhere else.
Another criterion is that a matrix is invertible if and only if its determinant is non-zero.
Methods of matrix inversion
There are many methods to compute the inverse matrix, when it exists. A basic method is to use Gaussian elimination, for example. This proceeds by considering the inverse matrix \(A^{-1}\) as a product of elementary matrices, \(A^{-1}=E_kE_{k-1}\dots E_1\) where the \(E_i\) are the elementary matrices corresponding to the elementary row operations needed to put \(A\) into is row-reduced echelon form. This method has the advantage that it will produce a row-reduced echelon form regardless of invertibility, and so gives a criterion to decide if a matrix is invertible which is often more efficient than computing the determinant: the matrix is invertible if and only if, at the end of the process, the echelon form is the identity matrix rather than some matrix of lower rank.
To convert this to a practical method for determining using this method, one uses an augmented matrix whose left side is the matrix to invert and whose right side is 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: \[\mathbf{A} = \begin{pmatrix}-1 & \tfrac{3}{2} \\ 1 & -1\end{pmatrix}\]
The first step to compute its inverse is to create the augmented matrix \[\left(\!\!\begin{array}{cc|cc} -1 & \tfrac{3}{2} & 1 & 0 \\ 1 & -1 & 0 & 1 \end{array}\!\!\right)\]
Call the first row of this matrix \(R_1\) and the second row \(R_2\). Then, add row 1 to row 2 \((R_1 + R_2 \to R_2).\) This yields \[\left(\!\!\begin{array}{cc|cc} -1 & \tfrac{3}{2} & 1 & 0 \\ 0 & \tfrac{1}{2} & 1 & 1 \end{array}\!\!\right)\]
Next, subtract row 2, multiplied by 3, from row 1 \((R_1 - 3\, R_2 \to R_1),\) which yields \[\left(\!\!\begin{array}{cc|cc} -1 & 0 & -2 & -3 \\ 0 & \tfrac{1}{2} & 1 & 1 \end{array}\!\!\right)\]
Finally, multiply row 1 by −1 \((-R_1 \to R_1)\) and row 2 by 2 \((2\, R_2 \to R_2).\) This yields the identity matrix on the left side and the inverse matrix on the right:\[\left(\!\!\begin{array}{cc|cc} 1 & 0 & 2 & 3 \\ 0 & 1 & 2 & 2 \end{array}\!\!\right)\]
Condensed: the full section is in Wikipedia.
Singularity
Over a field, a square matrix that is not invertible is called singular or degenerate. A square matrix with entries in a field is singular if and only if its determinant is zero.
Invertible matrix theorem
Let A be a square n-by-n matrix over a field K (e.g., the field \(\mathbb R\) of real numbers). The following statements are equivalent, i.e., they are either all true or all false for any given matrix:
- A is invertible, i.e. it has an inverse under matrix multiplication, i.e., there exists a B such that AB = In = BA. (In that statement, "invertible" can equivalently be replaced with "left-invertible" or "right-invertible" in which one-sided inverses are considered.)
- The linear transformation mapping x to Ax is invertible, i.e., it has an inverse under function composition. (There, again, "invertible" can equivalently be replaced with either "left-invertible" or "right-invertible".)
- The transpose A is an invertible matrix.
- A is row-equivalent to the n-by-n identity matrix In.
- A is column-equivalent to the n-by-n identity matrix In.
- A has n pivot positions.
- A has full rank: rank A = n.
- A has a trivial kernel: ker(A) = {0}.
- The linear transformation mapping x to Ax is bijective; that is, the equation Ax = b has exactly one solution for each b in K. (There, "bijective" can equivalently be replaced with "injective" or "surjective".)
- The columns of A form a basis of K. (In this statement, "basis" can equivalently be replaced with either "linearly independent set" or "spanning set")
- The rows of A form a basis of K. (Similarly, here, "basis" can equivalently be replaced with either "linearly independent set" or "spanning set")
- The determinant of A is nonzero: det A ≠ 0. In general, a square matrix over a commutative ring is invertible if and only if its determinant is a unit (i.e. multiplicatively invertible element) of that ring.
- The number 0 is not an eigenvalue of A. (More generally, a number \(\lambda\) is an eigenvalue of A if the matrix \(\mathbf{A}-\lambda \mathbf{I}\) is singular, where I is the identity matrix.)
- The matrix A can be expressed as a finite product of elementary matrices.
Other properties
Furthermore, the following properties hold for an invertible matrix A:
- \((\mathbf A^{-1})^{-1} = \mathbf A\)
- \((k \mathbf A)^{-1} = k^{-1} \mathbf A^{-1}\) for nonzero scalar k
- \((\mathbf{Ax})^+ = \mathbf x^+ \mathbf A^{-1}\) if A has orthonormal columns, where denotes the Moore-Penrose inverse and x is a vector
- \((\mathbf A^\mathrm{T})^{-1} = (\mathbf A^{-1})^\mathrm{T}\)
- For any invertible n-by-n matrices A and B, \((\mathbf{AB})^{-1} = \mathbf B^{-1} \mathbf A^{-1}.\) More generally, if \(\mathbf A_1, \dots, \mathbf A_k\) are invertible n-by-n matrices, then \((\mathbf A_1 \mathbf A_2 \cdots \mathbf A_{k-1} \mathbf A_k)^{-1} = \mathbf A_k^{-1} \mathbf A_{k-1}^{-1} \cdots \mathbf A_2^{-1} \mathbf A_1^{-1}.\)
- \(\det \mathbf A^{-1} = (\det \mathbf A)^{-1}.\)
- Left and right inverses are equal. That is, if \(\mathbf{LA} = \mathbf I\) and \(\mathbf{AR} = \mathbf I\) then \(\mathbf L = \mathbf L(\mathbf{AR}) = (\mathbf{LA}) \mathbf R = \mathbf R\).
The rows of the inverse matrix V of a matrix U are orthonormal to the columns of U (and vice versa interchanging rows for columns). To see this, suppose that UV = VU = I where the rows of V are denoted as \(v_i^{\mathrm{T}}\) and the columns of U as \(u_j\) for \(1 \leq i,j \leq n.\) Then clearly, the Euclidean inner product of any two \(v_i^{\mathrm{T}} u_j = \delta_{i,j}.\) This property can also be useful in constructing the inverse of a square matrix in some instances, where a set of orthogonal vectors (but not necessarily orthonormal vectors) to the columns of U are known. In which case, one can apply the iterative Gram-Schmidt process to this initial set to determine the rows of the inverse V.
A matrix that is its own inverse (i.e., a matrix A such that A = A and consequently A = I) is called an involutory matrix.
In relation to its adjugate
The adjugate of a matrix A is a matrix \(\operatorname{adj}(A)\) which exists independently of the invertibility of A. It satisfies the identity \[\operatorname{adj}(\mathbf{A})\mathbf{A} = \mathbf{A}\operatorname{adj}(\mathbf{A}) = \det(\mathbf{A})I.\] In particular, if A is invertible, then
\(\mathbf{A}^{-1} = \frac{1}{\det(\mathbf{A})} \operatorname{adj}(\mathbf{A})\)
In relation to the identity matrix
It follows from the associativity of matrix multiplication that if
\(\mathbf{AB} = \mathbf{I}\)
for finite square matrices A and B, then also
\(\mathbf{BA} = \mathbf{I}\)
This identity does not hold for non-square rectangular matrices, and need not be true for linear operators in infinite dimensions.
Density
Over the field of real numbers, the set of singular n-by-n matrices, considered as a subset of \(\mathbb R^{n \times n},\) is a null set, that is, has Lebesgue measure zero. That is true because singular matrices are the roots of the determinant function. It is a continuous function because it is a polynomial in the entries of the matrix. Thus in the language of measure theory, almost all n-by-n matrices are invertible.
Furthermore, the set of n-by-n invertible matrices is open and dense in the topological space of all n-by-n matrices. Equivalently, the set of singular matrices is closed and nowhere dense in the space of n-by-n matrices.
In practice, however, non-invertible matrices may be encountered. In numerical calculations, matrices that are invertible but close to a non-invertible matrix may still be problematic and are said to be ill-conditioned.
Ahora tú Ninguna calculadora resuelve este, pero las piezas son computables. Pruebe uno abajo, o escriba el suyo.
Una cuenta gratuita añade notas sobre cada lección, un registro de lo que has terminado, tus problemas resueltos en un lugar, y un tutor que puedes preguntar sobre esta página. Las matemáticas en sí están abiertas a todos, se han registrado o no.
Registrarse Inicio de sesiónSímbolos utilizados aquí
Toque cualquier símbolo para la definición completa, una imagen, y lo que cada letra en ella significa.
Preguntas que la gente hace
What does a determinant mean geometrically?
It is the factor by which the matrix scales area (2×2) or volume (3×3), with a negative sign if orientation flips. Zero means the matrix flattens space and cannot be undone.
What is an eigenvector?
A direction the matrix does not turn: it only stretches it by the eigenvalue. Along eigenvectors a complicated matrix acts like multiplication by a number.
Why is matrix multiplication not commutative?
Because a matrix is a transformation and AB means "do B, then A". Rotating then reflecting is not the same as reflecting then rotating.
Parte de esta página se adaptan desde Wikipedia (CC BY-SA 4.0). Condensados y re-explicados aquí; los errores son nuestros.
Más en Linear Algebra
DeterminantsMatrix inverseEigenvalues and eigenvectorsMatrix multiplicationRow reductionVector spaces, span and linear independenceOrthogonality, projections and least squaresDiagonalisation and matrix powersLinear transformations and change of basis