We now give the algorithm for inverting square matrices of any size. That is, given a matrix we try to find a matrix such that , and if we cannot find such a , then it means that is not invertible. We shall see in Section 5 that the method comes down to finding a simultaneous solution to systems of linear equations each, and with variables. Namely, we want to solve the following systems of linear equations, one for each , in the variables , where ,
As in Remark 3.1.1, is the Kronecker symbol, which equals if , and is zero otherwise.
Hence, we encode these equations in the following augmented matrix
(1) |
The goal is to perform successive elementary row operations (simultaneously on both sides of this split array), in order to pass from (1) to an array of the form
If this is possible, then is the inverse of , that is . Otherwise, the matrix on the left becomes something other than the identity matrix; in this case is not invertible. The above method for finding the inverse of a matrix is called the augmented matrix method.
Example 3.2.1.
Now let us work out the example of an arbitrary matrix, for which we already have the answer (Theorem 3.1.7).
Example 3.2.2.
Let be the following matrix.
We calculate .
The additional assumption that is non-zero is a technical question that will allow us to go straight to the point of the above algorithm. If , then an additional argument is needed, which we leave as an exercise.
We write the augmented matrix
In order to get the identity matrix on the left-hand side, we need to do row operations that make the left-hand side into reduced echelon form. The echelon form will tell us whether the matrix is invertible or not. Since , we do
So is invertible if and only if the bottom row is non-zero, which is true if and only if is non-zero. This quantity we will later call the determinant. For later purposes, let us record that using elementary matrices we can write:
(Beware that . Also, this is where the assumption shortens the algorithm.)
To actually find the inverse, we assume that , and we carry on our computations to find the reduced echelon form of the left-hand side matrix (which will thus be ). We obtain the augmented matrix
The conclusion is that the right-hand side of the augmented matrix is the inverse of . That is,
This method works with square matrices of any size, and we will shortly handle a few more examples. First though, let us recap the algorithm: given a square matrix ,
Write the augmented matrix
Put into echelon form , i.e. put into echelon form and perform simultaneously the elementary row operations on the right-hand side identity matrix.
If the bottom row of is filled with zeros, then is not invertible and the algorithm stops. Otherwise:
Carry on with elementary row operations until the left-hand side is .
The right-hand side of this last augmented matrix is .
As mentioned above, the synopsis of this algorithm for inverting matrices is to use elementary row operations in order to
Example 3.2.3.
Let . We prove that is not invertible using the above algorithm.
We perform the following row operations on the augmented matrix. For short, we give the key steps and write the order of the successive row operations from top to bottom.
Since the bottom row in the left-hand side is a zero row, we conclude that is not invertible. Recall that when we stack row operations over a single arrow, it means “do the top one first, then the next, etc.”.