Lecture 17 · Week 5· 16:45
The invertible matrix theorem
Elementary matrices, equivalent conditions for invertibility.
Saved in this browser only. No account needed.
TranscriptThe full text of the lecture. Click any sentence to play the video from there.
Today: many questions, one answer
Welcome back. Last time, we learned Gauss–Jordan inversion, and we proved that a square matrix is invertible exactly when its reduced row echelon form is the identity. Along the way, we met other properties of a square matrix A. The equation A x equals zero may have only the trivial solution. The columns of A may be linearly independent, or they may span the whole space. And A x equals b may have a solution for every b. These look like different questions. Today we prove that, for a square matrix, they all have the same answer. This is the invertible matrix theorem, one of the central results of the course.
But first, we need one more tool. We will see that every row operation is a multiplication by a matrix, called an elementary matrix. This turns row reduction into matrix algebra, and it explains why Gauss–Jordan inversion works. Then we prove the theorem, and put it to use.
Elementary matrices
Here is the definition. An elementary matrix is a matrix that we get from the identity matrix by a single elementary row operation. There are three kinds, one for each kind of row operation. Let's build them from I three. Swap rows one and two of the identity, and we get E one. Its first row is (zero, one, zero), and its second row is (one, zero, zero).
Multiply row three of the identity by five, and we get E two. It is the identity, except for a five in the last position. Replace row three by row three minus two times row one, and we get E three. Its third row becomes (minus two, zero, one). In the plane, the two by two elementary matrices are simple moves. Swapping the two rows of I two exchanges the two coordinates, so it reflects the plane across the line y equals x.
Scaling the first row by two stretches the plane along the x axis. And adding row one to row two gives a shear. It sends each point x, y to the point x, x plus y.
Row operations are multiplications
Now the key fact. Let E be the elementary matrix of a row operation, of size m by m. Then for every m by n matrix A, the product E A is exactly what we get by doing that row operation on A. In words: to do a row operation, multiply on the left by its elementary matrix. Let's see it with E three, and the matrix A with first row (one, two, zero), second row (three, one, four), and third row (two, five, one). By the row column rule from lecture fourteen, entry i j of E A is row i of E times column j of A. Row one of E three is (one, zero, zero), so it picks out the first entry of each column. So row one of the product is row one of A. In the same way, row two comes through unchanged.
Row three of E three is (minus two, zero, one). Times the first column of A: minus two times one, plus zero times three, plus one times two, is zero. Times the second column: minus two times two, plus zero times one, plus one times five, is one. Times the third column: minus two times zero, plus zero times four, plus one times one, is one. So the new row three is (zero, one, one). Now do the row operation itself, row three minus two times row one: two minus two is zero, five minus four is one, and one minus zero is one. It is the same row. Multiplying by E three did exactly the row operation. The other two work the same way. E one A is A with rows one and two swapped, and E two A is A with its third row multiplied by five.
Why does this always work? Take the replacement of row i by row i plus c times row j. Row i of E has a one in position i, a c in position j, and zeros elsewhere. Times any column of A, it gives the entry in row i, plus c times the entry in row j. So row i of E A is row i of A, plus c times row j. Every other row of E is a row of the identity, so the other rows of A stay as they are. Swaps and scalings are checked in the same way.
Undoing an elementary matrix
Every row operation can be undone by a row operation of the same kind. A swap is undone by the same swap. Multiplying a row by c is undone by multiplying it by one over c, and that is why c must not be zero. And adding c times row j is undone by subtracting c times row j. So every elementary matrix is invertible, and its inverse is the elementary matrix of the reverse operation. Here is why. Let G be the elementary matrix of the reverse operation. By the theorem we just proved, G E is E after the reverse operation. But E is the identity after the original operation. So G E is the identity with the operation done and then undone, and that is the identity.
The same argument, with the two operations in the other order, shows that E G is the identity too. So G is the inverse of E. For example, E three subtracts two times row one from row three. Its inverse adds two times row one back to row three, so the third row of E three inverse is (two, zero, one). Let's check. E three inverse times E three adds two times row one to row three of E three. Row three is (minus two, zero, one), and two times row one is (two, zero, zero). In the first position, minus two plus two is zero. In the second, zero plus zero is zero, and in the third, one plus zero is one. So we are back at the identity.
Why Gauss–Jordan inversion works
Now we can see Gauss–Jordan inversion in matrix language. Suppose row operations take A to the identity, and let E one up to E k be their elementary matrices, in the order we use them. The first operation turns A into E one A. The second turns that into E two E one A, and so on. At the end, E k, and so on down to E one, times A, equals the identity. Call the product of the elementary matrices B. Then B A is the identity, and since one product is enough for square matrices, B is A inverse.
This is exactly what the right block records. The same operations, done on I, give E k down to E one, times I, which is B. So the right block ends up as A inverse, just as Gauss–Jordan inversion promised. We also learn something new. A is the inverse of B, and by the rule for the inverse of a product, from lecture sixteen, that is E one inverse, times E two inverse, and so on, up to E k inverse. Each of these is again an elementary matrix. So every invertible matrix is a product of elementary matrices. Conversely, a product of elementary matrices is invertible, because each factor is.
This gives our next theorem, for a square matrix A. Part a: if elementary matrices reduce A to the identity, then A is invertible, and their product is its inverse. Part b: A is invertible exactly when it is a product of elementary matrices.
An example
Let's see it on the matrix A with rows (one, two), and (three, seven). First, we replace row two by row two minus three times row one. Three minus three times one is zero, and seven minus three times two is one. So the new rows are (one, two), and (zero, one). The elementary matrix of this step is the identity after the same operation. So E one has rows (one, zero), and (minus three, one).
Next, we replace row one by row one minus two times row two. One minus two times zero is one, and two minus two times one is zero. Now we have the identity, and the elementary matrix of this step, E two, has rows (one, minus two), and (zero, one). So A inverse is E two times E one. By the row column rule, the first row gives one times one, plus minus two times minus three, which is seven, and one times zero, plus minus two times one, which is minus two. The second row gives zero times one, plus one times minus three, which is minus three, and zero times zero, plus one times one, which is one. So A inverse has rows (seven, minus two), and (minus three, one). The two by two formula agrees: here a d minus b c is seven minus six, which is one, so we just swap the one and the seven, and change the signs of the two and the three.
Read the other way, A is E one inverse times E two inverse. The first factor adds three times row one back to row two, and the second adds two times row two back to row one. Multiplied out with the row column rule, they give rows (one, two), and (three, seven), which is A again.
The invertible matrix theorem
Now we can gather everything into one theorem. Let A be a square matrix, n by n, over a field F. Then the following statements are equivalent. That is, either they are all true, or they are all false. One: A is invertible. Two: there is a matrix C with C A equal to the identity. Three: the equation A x equals zero has only the trivial solution. Four: A has n pivot positions. Five: the reduced row echelon form of A is the identity.
Six: the columns of A are linearly independent. Seven: for every b, the equation A x equals b has at least one solution. Eight: the columns of A span F n. Nine: for every b, the equation A x equals b has exactly one solution. Ten: there is a matrix D with A D equal to the identity. Eleven: the transpose of A is invertible. And twelve: A is a product of elementary matrices.
So to show that a square matrix is invertible, it is enough to check any one of these. And if any one of them fails, they all fail.
Proof: the main loop
This proof has many steps, but each one is short. Take it one step at a time, and pause or rewatch it if you need to. We prove a loop: one implies two, two implies three, and so on, and five implies one. Then each statement in the loop implies all the others. One implies two: if A is invertible, take C equal to A inverse. Two implies three: suppose C A is the identity, and A x equals zero. Then x equals I x, which is C A x, which is C times zero, which is zero.
Three implies four: by lecture twelve, if A x equals zero has only the trivial solution, then an echelon form of A has a pivot in every column. That makes n pivots, so A has n pivot positions. Four implies five: the reduced row echelon form of A has n pivots, and no column holds more than one, so each of its n columns has a pivot. As we saw last time, a square matrix in reduced form with a pivot in every column is the identity. Five implies one: this is Gauss–Jordan inversion. If the reduced form of A is the identity, then A is invertible. That closes the loop, so statements one to five are equivalent.
Proof: the other statements
Now we attach the other statements to the loop. Three and six are equivalent by lecture twelve: A x equals zero has only the trivial solution exactly when the columns of A are independent. For seven, we count pivots again. Each row holds at most one pivot, so n pivots in n rows means a pivot in every row, and a pivot in every row means n pivots. By the other theorem of lecture twelve, a pivot in every row means exactly that A x equals b has a solution for every b, and also that the columns span F n. So four, seven, and eight are equivalent.
Nine joins through one and three. If A is invertible, then A x equals b has exactly one solution, A inverse b, by lecture sixteen. And if it always has exactly one solution, then in particular A x equals zero has only the solution zero. Ten: if A is invertible, take D equal to A inverse. Conversely, if A D is the identity, then A is invertible, because for square matrices one product is enough. Eleven: if A is invertible, then so is its transpose, by the rules of lecture sixteen. Conversely, if the transpose is invertible, then so is its transpose, which is A.
And twelve is the theorem we proved today: A is invertible exactly when it is a product of elementary matrices. So all twelve statements are equivalent.
Using the theorem
Let's use the theorem. Take the matrix with first row (one, two, three), second row (zero, minus one, four), and third row (zero, zero, one), over any field. It is already in echelon form, with pivots one, minus one, and one. That makes three pivot positions, so statement four holds. So all twelve statements hold. Without any further work, we know that A is invertible, that its columns are independent and span F three, and that A x equals b has exactly one solution, for every b.
Now take the matrix with first column (one, two, zero), second column (zero, one, one), and third column (one, three, one). The third column is the sum of the first two: one plus zero is one, two plus one is three, and zero plus one is one. So the columns are linearly dependent, and statement six fails. Then all twelve fail. This matrix is not invertible, and there is some b for which A x equals b has no solution. We know this without solving a single system. A warning: the theorem is about square matrices. The two by three matrix with first row (one, zero, zero), and second row (zero, one, zero), has a pivot in every row, so its columns span F two. But its third column is zero, so the columns are not independent. For matrices that are not square, these statements split apart.
Here is one consequence that we use often. If A and B are square matrices of the same size, and the product A B is invertible, then A and B are both invertible. Let M be the inverse of A B. Then A, times B M, is A B, times M, which is the identity. So statement ten holds for A. In the same way, M A, times B, is M, times A B, which is the identity. So statement two holds for B.
Summary
Let's summarise. An elementary matrix is the identity after one row operation, and multiplying by it on the left performs that operation. Every elementary matrix is invertible, and its inverse undoes the operation. A square matrix is invertible exactly when it is a product of elementary matrices. The invertible matrix theorem says that, for a square matrix, being invertible is the same as each of eleven other conditions: about pivots, about solutions of A x equals b, about the columns, and about one sided inverses.
And the list keeps growing. In lecture nineteen we add conditions about the column space and the null space, and in week nine, a condition about the determinant. Before the next lecture, read section three point six of the course book, try the problems on sheet five about elementary matrices and the invertible matrix theorem, and do the lecture check on this lecture's page at Open Semester dot com. Next time, we write elimination itself as a factorisation of a matrix: the L U factorisation. See you there.
In this lecture
- 0:00Today: many questions, one answer
- 1:00Elementary matrices
- 2:08Row operations are multiplications
- 4:34Undoing an elementary matrix
- 6:08Why Gauss–Jordan inversion works
- 7:42An example
- 9:36The invertible matrix theorem
- 10:49Proof: the main loop
- 12:03Proof: the other statements
- 13:28Using the theorem
- 15:27Summary
Materials
Check yourself
3 questions, from warm-up to stretch
Work each one out on paper, type your answer and press Check. Stuck? Open a hint; the worked solution is there when you need it.
- Question 1 of 3 Warm-up
Let be the elementary matrix of the row operation . differs from in exactly one entry. In which row and column is it, and what is it? What is that entry in ?
Hint 1 of 2
An elementary matrix is the identity after one row operation (Definition 3.6.1): perform on .
Hint 2 of 2
Row 2 of is and times row 3 is . For , use Theorem 3.6.6: it is the elementary matrix of the reverse operation.
Worked solution
- Perform the operation on : row 2 becomes , and the other rows stay. So : the new entry is in row , column , and it is .
- By Theorem 3.6.6, is the elementary matrix of the reverse operation : , so that entry is .
- Check: by Theorem 3.6.3, is after . Row 2 becomes , so .
- Question 2 of 3 Core
Let . The operations , then , then reduce to . Let , , be their elementary matrices. Give the bottom left entry of , then find .
Hint 1 of 2
Each is after the -th operation. By Theorem 3.6.8, if then : the first operation's matrix stands on the right.
Hint 2 of 2
, , . Multiply first, then times the result.
Worked solution
- Perform each operation on : (bottom left entry ), , .
- The operations take to , then , then , so and (Theorem 3.6.8).
- , and halves its first row: .
- Check: . Reading the product the other way also writes itself as a product of elementary matrices: .
- Question 3 of 3 Stretch
Let over . For which number are the columns of linearly dependent? For , does have a solution for every ? For , is there a matrix with ?
Hint 1 of 2
Row reduce to an echelon form and count pivots. Then use the invertible matrix theorem (Theorem 3.6.10): for a square matrix, statements (4), (6), (7) and (10) are all true or all false.
Hint 2 of 2
gives the second row , and then gives the third row .
Worked solution
- Row reduce: and then give . There are three pivots exactly when , that is, when .
- For there are only two pivots, so statement (4) fails and, by Theorem 3.6.10, so does (6): the columns are dependent. Indeed the third column is the sum of the first two, as in Example 3.6.12. So .
- For the last pivot is , so has three pivot positions: statement (4) holds, hence (7) holds and has a solution for every . Yes.
- For statement (4) fails, so all twelve fail, including (10): there is no with . No.
How did it go?