A shear moves the point to by adding the height to the first coordinate, and subtracting the height brings the point back. A different map sends both and to , and the output alone cannot say which of the two points it came from. The first map can be undone and the second cannot. This lesson makes that difference precise with the inverse matrix, computes inverses by row reduction, and shows that counting the pivots of a square matrix decides whether an inverse exists. Tuples such as stand for column vectors.
Key terms
Inverse matrix
Definition Let be an matrix. An matrix is an inverse of if
When an inverse exists, is called invertible, or nonsingular, and the inverse is unique. Indeed, if and are both inverses of , then
The inverse is written . The equation says that applying and then returns every input. The equation says that for every output the input is sent to . Here inverses are defined only for square matrices.
In plain words The inverse undoes the matrix, in either order. In general it cannot be found entry by entry, because it has to undo the whole combination of coordinates that the matrix produces.
Example The shear sends to , and sends to ,
For every , applying and then gives , and applying and then gives . So , and . Taking reciprocals of the entries would fail at once, since has a zero entry and its inverse has a where has a .
Singular matrix
Definition A square matrix that has no inverse is singular. An matrix is singular exactly when some nonzero vector satisfies . One direction is short. If with and were an inverse of , then
which is a contradiction. The other direction follows from the pivot test below. A singular matrix has fewer than pivots, so the system has a free variable, and setting it equal to gives a nonzero solution. The words singular and nonsingular are used only for square matrices.
In plain words A singular matrix squashes some nonzero direction down to zero. Two different inputs then share an output, and no rule can recover both of them.
Example Let
It sends to , so every output lies on the line where the second coordinate is twice the first. The nonzero vector goes to , just as does. The replacement turns the second row of into zeros and leaves one pivot. Finding a solution for one convenient target does not show that a matrix is invertible. The target is reached, but by every , and the target is not reached at all.
Computing an inverse by row reduction
Definition Let be an matrix. Form the matrix and apply elementary row operations to whole rows. If the left block can be reduced to , the right block is then . If an echelon form of the left block has fewer than pivots, then is singular. The method works because the row operations together amount to multiplying on the left by one invertible matrix , the product of their elementary matrices, so they turn into . If , then , so as well, and is a two-sided inverse. Column by column, the th column of is the solution of , and the method solves these systems at once.
In plain words Reduce to the identity while the identity next to it records every step. When the left side reaches the identity, the right side holds the inverse.
Example Take
Swap the rows, clear the entry below the first pivot, scale the second row by and clear the entry above the second pivot,
So
Both products check. The entries of are , , and , and the entries of are , , and , so both products equal .
Pivot test for invertibility
Definition For an matrix the following statements are equivalent.
- The matrix has a pivot in every column, that is, pivots.
- For every in the system has exactly one solution.
- The matrix is invertible.
The reasons form a cycle. With pivots, row reduces to , and row reduction of produces . If is invertible, every system has exactly one solution, namely . If every system has exactly one solution, then has only , so no variable is free and every column has a pivot. The test needs to be square.
In plain words For a square matrix, count the pivots. A full set means that every output comes from exactly one input, and that is the same as having an inverse.
Example The matrix in the previous example reached two pivots, so it is invertible. The matrix has only one pivot, so it is singular. The square condition matters. The matrix
has a pivot in each of its two columns, yet it sends to , so the output is never reached.
Solving a system with an inverse
Definition If is an invertible matrix, then for every in the system has exactly one solution,
It is a solution because . It is the only one because any solution satisfies . To solve a single system, row reducing takes less work than computing first, and both methods give the same vector.
In plain words Multiplying by the inverse undoes the matrix and returns the input that produced . The formula is the right tool for reasoning about solutions, while elimination is usually the quicker way to get the numbers.
Example With and from above and ,
Direct elimination is shorter. The equations are and , and subtracting them gives , then . Both equations check, since and .
Check yourself
- Let be the diagonal matrix with diagonal entries and . Find , check both products, and find the input that sends to .
Show the answer
The matrix doubles the first coordinate and reverses the sign of the second, so the inverse halves the first coordinate and reverses the second again,
Both products are diagonal with entries and , so . The input is , and indeed sends to . Taking the reciprocal of each diagonal entry works here only because is diagonal and those entries are nonzero.
- A classmate claims that the inverse of the matrix below is the matrix of reciprocals of its entries. Test the claim, then find the inverse by row reduction.
Show the answer
The proposed matrix has first row . Its product with has top left entry , not , so the claim is false. Row reduction gives
so
The check has entries , , and , which form , and equals in the same way.
- Use the pivot test to decide whether the matrix below is invertible. If it is not, find a nonzero vector that it sends to .
Show the answer
Use and then ,
There are only two pivots for three columns, so is singular. The third variable is free. With the rows give and . Taking gives the vector , and indeed , and .