For the 3-by-3 matrix as above, .
28. Cofactor expansion
28. Cofactor expansion
Recall that the determinant of a 3-by-3 matrix is We can group these into three sets of terms according to the factor : those which contain a factor of , those with an and those with an : Note that the terms in brackets are themselves determinants of 2-by-2 submatrices: When we group our determinant according to the choice of the factor , the expansion we get is: Here:
-
signs alternate; in particular, the last is if is odd and if is even.
-
is the submatrix of obtained by removing the th row and the th column. For example, (where the s show which columns/rows we have removed).
This makes sense: if you pick then you can't pick anything else from row or from column .
More generally, we could group terms according to the choice of factor , or , or any other row. The result of expanding about row would have been: where the signs alternate (I'll talk more about exactly which signs occur below).
Or we could group terms according to the choice of entry in column 1, or column 2, etc. The result of expanding down column would have been where the signs alternate.
Signs
The sign you put in front of is the th entry of this matrix: For example, expanding a 3-by-3 matrix down column 2 would give
Examples
Rather than prove any of these formulae, which would be painful for everybody, let's do some examples.
Let's compute the determinant of using the cofactor expansion along the first row:
Just for comparison, let's expand down the first column (I said row in the video): Which, reassuringly, gives the same answer.
Let's calculate the determinant of Expanding along the top row would give us four terms to calculate. If instead we expand around the first or second columns or the second or fourth rows, then we only have two terms to calculate. Let's do the second column (because the signs will be more fun that way).
We get: (care with signs!). For the first 3-by-3 submatrix ( ) we have (expanding down the first column): For the second, we get (expanding down the first column): so overall we get
As a final sanity check, let's compute this again using row operations. If we do , then becomes Now we switch and then (so the original row 2 ends up at the bottom) to get: Finally yields: This is in echelon form. We did two row-switches, so the determinant changed sign twice (i.e. didn't change sign overall), so that is just the product of the diagonal entries in this echelon matrix. In other words, which agrees with the previous example.