Expanding an determinant all the way down produces products, which is already products for a matrix. Elimination reaches a triangular matrix far faster, and the determinant of a triangular matrix is just the product of its diagonal entries. The price is bookkeeping, because some row operations change the determinant and others do not. This lesson keeps a ledger of those changes, adds cofactor expansion as a definition and a second method of calculation, and proves that the determinant of a product is the product of the determinants.
Key terms
Row operations and the determinant
Definition Let be an matrix and let be obtained from by one row operation.
- If swaps two rows of , then .
- If multiplies one row of by a scalar , then .
- If adds a multiple of one row of to a different row, then .
These rules hold for every and follow from cofactor expansion and linearity, described below. A determinant ledger records the factor of each operation, for a swap, for a scaling and for a replacement. If operations with factors turn into , then . When every factor is nonzero, as in elimination, this can be solved for . Multiplying a row by cannot be undone and is never an elimination step.
In plain words A swap flips the sign, a scaling multiplies by the scale factor, and a row replacement changes nothing. Keep a running record of the factors, and as long as none of them is zero, the matrix at the end still tells you the determinant you started with.
Example Start from
Applied to one at a time, a swap, a scaling of the first row by , and the replacement give
Watch the step . It scales row by before subtracting row , so it doubles the determinant,
Determinant of a triangular matrix
Definition A square matrix is upper triangular if every entry below the main diagonal is , and lower triangular if every entry above it is . The determinant of an triangular matrix , upper or lower, is the product of its diagonal entries,
In particular it is exactly when some diagonal entry is . A diagonal matrix is both upper and lower triangular.
In plain words For a triangular matrix only the diagonal counts. Expand an upper triangular matrix along its first column, whose only possibly nonzero entry is , and repeat with the smaller triangular matrix that remains. Elimination brings any square matrix to upper triangular form, so with a ledger this rule computes any determinant. It applies only to triangular matrices.
Example Two row replacements bring
to triangular form, first and then , and neither changes the determinant.
The diagonal of itself has product , which is not . The diagonal rule needs a triangular matrix, and is not one.
Cofactor
Definition Let be an matrix with . Deleting row and column of leaves an submatrix . Its determinant is the minor of , and the cofactor of is
Some books call the submatrix itself the minor matrix. The sign is when is even and when is odd, which gives a checkerboard pattern that starts with in the top left corner,
In plain words A minor is the smaller determinant left after crossing out one row and one column. The cofactor is that minor with the sign of its position on the checkerboard.
Example For the matrix above, crossing out row and then column , or gives
The minor of is , not the entry in that position, and the minus sign of position makes the cofactor .
Cofactor expansion
Definition The determinant of a matrix is . For the determinant of an matrix is its cofactor expansion along the first row,
where each cofactor is, up to sign, a determinant of size . Expansion along any row or any column gives the same number,
For this is , and for and it equals the oriented area or volume of the columns. It follows that , so every rule for rows also holds for columns. Expanding all the way down writes as a sum of signed products, each taking exactly one entry from every row and every column.
In plain words Pick a row or a column, multiply each entry by its cofactor and add. A row or column with many zeros saves work, because a zero entry removes its whole term. On a large matrix without zeros the number of terms grows very fast, and elimination is the better hand method.
Example Expanding along its first row with the cofactors found above gives
which agrees with the elimination ledger. Two independent methods giving the same value is a good check on signs.
Linearity in one column
Definition Fix every column of an matrix except column , and let be the determinant of the matrix whose column is . Then for all vectors in and every scalar ,
This follows from expansion along column , whose cofactors do not involve column . The same holds for each row. Together with the swap rule, linearity has two consequences. A matrix with two equal columns has determinant , since swapping them changes the sign but not the matrix. A matrix whose columns are linearly dependent has determinant , since expanding by linearity in a column that is a combination of the others gives only determinants with a repeated column. The row version explains the replacement rule. Adding times row to a different row splits the determinant into plus times a determinant with two equal rows, which is . The rule concerns one column at a time. For the determinant need not equal , and for every matrix .
In plain words With every other column held still, the determinant behaves like a linear function of the one column you vary. For it is not linear in the whole matrix, because changing every column at once creates extra mixed terms.
Example Here a tuple such as stands for a column vector. With the first column held fixed and in the second column,
By contrast, the identity has , but , not . Both columns were doubled, so the determinant was multiplied by .
Multiplicativity of the determinant
Definition For matrices and ,
To prove it, recall that multiplying on the left by an elementary matrix performs the matching row operation on , so , where is for a swap, for scaling a row by , and for a replacement. If is invertible, it is a product of elementary matrices . Applying the rule times gives , and the case shows that . If is singular, its columns are dependent, so . The columns of lie in , whose dimension is less than , so they are dependent too and .
In plain words Applying and then scales oriented area or volume first by and then by , so the factors multiply. Their product does not depend on the order, so even when and are different matrices.
Example Take
with and . The two products are different matrices,
yet and , both equal to .
Check yourself
- A matrix has . Swap rows and , then multiply row by , then add times row to row . What is the determinant of the result?
Show the answer
The ledger has factor for the swap, for the scaling and for the replacement. The determinant of the result is .
- Let and be matrices with and . Find and . Must equal ?
Show the answer
By multiplicativity, . The matrix has all three columns doubled, so , not . The sum need not have determinant . For and the sum is , whose determinant is .
- Find the determinant of
by elimination with a ledger, then check it by cofactor expansion along the first row.
Show the answer
The top left entry is , so start with the swap , which contributes the factor . The replacements and then leave the determinant unchanged.
For the check, the first entry of row is , so its term drops out, and
Both methods give .