Inverse matrix
An inverse matrix is defined for square non-singular matrices. When we multiply a matrix by its inverse, we get the identity matrix.
Definition
An inverse matrix can only be worked out for a square matrix; for a rectangular matrix the inverse is not defined. The inverse of a matrix A (written A−1) exists only if the matrix is non-singular (it has no linearly dependent rows). This inverse is then uniquely determined. The two main properties of the inverse matrix are:
And, most importantly, the key property of the inverse matrix (which is also its definition):
I is the identity matrix.
How to work out an inverse matrix
Now for the method of working out an inverse matrix. The simplest algorithm is Gaussian elimination. You transform the matrix A into the identity matrix, write an identity matrix next to it, and carry out the same operations on that matrix as on A. At the end of the process you have, on the left, the matrix A transformed into the identity matrix and, on the right, the inverse matrix. Let’s try it on a simple example:
A quick glance shows that the matrix is non-singular, so it makes sense to work out the inverse. When working out an inverse matrix, we usually write it in this form:
Now we transform the left-hand matrix into the identity matrix and carry out identical operations on the right-hand matrix. We add −3 times the first row to the second row. First the left-hand matrix:
Now we add −3 times the first row of the right-hand matrix to the second row of the right-hand matrix:
Now we need to get a zero in the position a12. It is enough to add the second row to the first row. This time I will carry out both operations in one step:
And now we get rid of the minus two by dividing the whole row by minus two:
The resulting inverse matrix is:
If you want to check that the inverse you have worked out is correct, multiply it by the original matrix:
To check, you can also look at WolframAlpha.
Working it out using the determinant
We can also work out the inverse matrix using the determinant. If A is a non-singular matrix, then the inverse matrix A−1 has entries
On the left-hand side we have i,j, but in the numerator we have j,i. Watch out: it is not a mistake that they are swapped. In the numerator we have the matrix Aj,i, which is the submatrix of A that we get by removing the jth row and the ith column from A. So if
then:
If you do not like the subscripts being the other way round, we can write it like this instead:
In other words, if you do not swap the subscripts, you work out the transpose of the inverse matrix. If you transpose this matrix again, you get the inverse matrix.
Working it out this way is usually long-winded, and it is mainly suited to computers, because it is very straightforward. In the example we will only try to work out two entries. So let’s take this matrix:
First we work out the determinant of the whole matrix, which is used in the denominator of the fraction:
Now we work out the first entry of the inverse matrix. We denote it
We will need the submatrix A1,1. Leaving out the first row and the first column, we get:
Now we need to work out the determinant of this matrix:
And now we can substitute into the formula:
And we have the first entry of the inverse matrix.
We get the second number like this:
The determinant of the submatrix will be
And substituting everything, we get:
Another piece of the jigsaw:
And so on, and so on.