To solve you multiply both sides by , the number that undoes multiplying by . Many matrices can be undone in the same way. If a matrix moves the points of the plane and no two points land on the same spot, another matrix moves every point back. With that matrix in hand, a whole system of equations is solved in one multiplication.
Key terms
Identity matrix
Definition The identity matrix has in each entry of the main diagonal and everywhere else. For every matrix and every in
In plain words Among matrices the identity plays the part of the number . As a map it leaves every vector where it is, so it is the target when you undo a matrix.
Example Multiplying by changes nothing,
Inverse matrix
Definition Let be an matrix. The matrix is invertible when there is an matrix with
Such a is unique, because if also works then . It is called the inverse of and written . If and are invertible matrices, then , and is invertible with
In plain words The inverse undoes what does. Apply and then , and every vector is back where it started. To undo two steps, undo the last one first, the way you take off shoes before socks.
Example The two matrices below are inverses of each other, since
and the product in the other order is also .
Square and nonsingular conditions
Definition Only square matrices have inverses. If is with , no matrix satisfies both and . A square matrix is invertible exactly when it is nonsingular, that is, when . Equivalently, its reduced row echelon form is the identity matrix. For square matrices one product is enough to check, because if and are and , then also and .
In plain words Only a square matrix that does not flatten the plane can be undone. A flattening matrix sends different points to the same place, and no matrix can send one point back to two places.
Example The matrix below has determinant , and it sends two different vectors to the same one,
An inverse would have to send back to both and , which is impossible. So this matrix has no inverse.
The 2 by 2 inverse formula
Definition Let have rows and . If , then
If , the matrix has no inverse. The formula works because
In plain words Swap the two diagonal entries, change the signs of the other two, and divide everything by the determinant.
Example For the matrix with rows and the determinant is , so
As a check, the top left entry of is and the top right entry is , and the bottom row works out to in the same way.
Finding an inverse by row reduction
Definition Let be . Row reduce the matrix . If the left block becomes , the right block is ,
If instead a row of zeros appears in the left block, then is singular and has no inverse.
In plain words Whatever row operations turn into the identity, apply them to the identity at the same time. What the identity turns into is the inverse.
Example Take the matrix with rows , and . Replace by , then by ,
The left block is now , so the inverse is the matrix with rows , and .
Matrix equation
Definition A system of linear equations in variables can be written as the single matrix equation
where is the coefficient matrix, is the column of variables and is the column of constants. The row-column product rebuilds the left sides of the equations, one row at a time.
In plain words The coefficients go into one matrix, the unknowns into one column and the right sides into another. The whole system becomes one equation that looks like .
Example The system and becomes
The first row times the column gives , the left side of the first equation.
Solving a system with the inverse
Definition If is an invertible matrix, then for every in the equation has exactly one solution,
Multiplying both sides on the left by shows that any solution must equal , and shows that it is one. The inverse goes on the left, because is not even defined for a column when .
In plain words Undo on both sides and the unknowns are left alone. This pays off most when you solve many systems with the same coefficients and different right sides.
Example For the system above, the formula with determinant gives
Check it, and . If the right sides change to and , the same inverse gives and at once.
Inverse versus entrywise reciprocal
Definition The inverse of an matrix is defined by the products , not entry by entry. In general is not the matrix of reciprocals , and a matrix with zero entries can still be invertible. Reciprocals do work for a diagonal matrix with nonzero diagonal entries . Its inverse is the diagonal matrix with diagonal entries , and its zeros off the diagonal stay zeros. There is also no division of matrices. Write or , which are usually different.
In plain words Flipping each entry upside down does not undo a matrix. You have to compute the inverse.
Example For the matrix with rows and , the matrix of reciprocals fails,
The true inverse, found earlier, has rows and . In the other direction, the matrix with rows and has no reciprocal matrix at all, since is undefined, yet it is its own inverse, because swapping the coordinates twice changes nothing.
Check yourself
- Find the inverse of the matrix with rows and , and check it.
Show the answer
The determinant is , so the formula gives
The product has rows and , which is .
- Solve and with an inverse matrix.
Show the answer
The coefficient matrix has determinant , so
So and , and indeed and .
- Does the matrix with rows and have an inverse?
Show the answer
No. Its determinant is , so it is singular. Its second column is half of its first, so it flattens the plane onto a line and cannot be undone.