
A First Course in Linear Algebra
A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.

A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.
Chapter 5 · pp. 54–63
Some square matrices can be 'undone' by another matrix, just as dividing undoes multiplying. This chapter defines the inverse of a matrix, shows how to find it with row operations, and explains why the method works. It also covers a shortcut for matrices and the rule for the inverse of a product.
A square matrix is invertible (also called non-singular) if there is a matrix of the same size with and . We write . A square matrix with no inverse is singular. Only square matrices can be invertible. (p. 54)
Example: a matrix that swaps two rows undoes itself when applied twice. So it is its own inverse. A matrix with a row of zeros is singular. (p. 54)
Two facts help here:
Not every matrix has an inverse, so always ask whether one exists.
The method extends Gaussian elimination (GE) and works for square matrices of any size. (pp. 55–56, 58)
Worked example. Let have rows , , . Elimination gives an upper triangular matrix with rows , , . Continuing upward gives
You can check this by multiplying. The first row of times the columns of this matrix gives , and the other rows work out the same way. (pp. 55, 58)
A check is always worth doing: multiply by your answer . If you do not get , you made a mistake. (p. 58)
Each row operation is the same as multiplying by an elementary matrix. Suppose the operations that reduce to correspond to . Then
Let . Then . (p. 56)
We also need . Each has an inverse . Multiplying the equation above on the left by gives . Then
because the inner pairs , , and so on, each cancel to . So is the inverse of . (p. 56)
Now look at what happens to the identity matrix. Applying the same operations to produces . That is why the right-hand side ends up as the inverse. (p. 56)
A square matrix is invertible exactly when elimination reaches a form with 1s on the main diagonal and 0s below it. If a row of zeros appears, the process stops and the matrix is singular. (pp. 58–60)
Example. Take rows , , . Elimination ends with the last row . There is no way to put a 1 in the bottom corner, so there is no inverse. (pp. 58–59)
Why a zero row rules out an inverse. First, a useful fact: if a matrix has a last row of all zeros, then also has a last row of zeros for any matrix . The entries in that row are sums of terms , and every is 0. So each sum is 0. (p. 59)
Now suppose a matrix with a zero last row were invertible. Multiplying it by its inverse would have to give . But the product would have a zero last row, and does not. This is a contradiction, so no inverse exists. (pp. 59–60)
For a matrix, if :
To use it, swap the diagonal entries, change the signs of the other two, and divide by . (p. 59)
Example. For we have . The inverse is . Multiplying the two matrices gives . (pp. 59–60)
If , the formula cannot be used and the matrix is singular.
The definition asks for both and . For square matrices, one is enough. The other follows automatically. (pp. 58–60)
Here is the reasoning. Suppose but were singular. Then some invertible matrix makes have a zero last row. So would have a zero last row too. But , and an invertible matrix cannot have a zero last row. This contradiction shows is invertible. Multiplying on the left by then gives . (p. 59)
In practice you only need to compute one product to verify an answer.
If and are invertible matrices of the same size, then is invertible and
Check: . Multiplying in the other order gives as well. Since inverses are unique, this is the inverse. (p. 60)
The order reverses, like taking off socks and shoes: the shoes (last on) come off first. For three matrices, . (p. 60)
Common mistake. Many students write . Matrix multiplication is generally not commutative, so this fails. The factors and must meet in the middle and cancel first. (p. 60)
The same reversal appears with elementary matrices. The inverse of is , where each is the inverse of . (p. 60)