Lesson 3.2 · Determinants
Properties of determinants
Cofactor expansion defines the determinant, but it is slow: a matrix with no zeros would need millions of multiplications. In this lesson you'll see how row operations change a determinant, which gives a fast way to compute it and leads to the central theorem of the unit: a square matrix is invertible exactly when its determinant is nonzero.
How row operations change the determinant
You know from the last lesson that a triangular matrix has an easy determinant: the product of its diagonal. Row reduction turns any square matrix into a triangular one (an echelon form is upper triangular). So the only question is how each of the three elementary row operations affects the determinant.
Row operations and determinants
Let be a square matrix.
- Replacement: if comes from by adding a multiple of one row to another row, then .
- Interchange: if comes from by swapping two rows, then .
- Scaling: if comes from by multiplying one row by , then .
You can check each rule on a matrix. Swapping the rows of gives . Scaling the first row by gives . Adding times row 1 to row 2 gives , since the terms cancel. The general proof uses cofactor expansion and induction on .
In terms of geometry, these rules make sense too. A replacement is a shear, and shears slide a parallelogram without changing its area. Scaling one edge by scales the area by . A swap reverses orientation, which flips the sign.
The scaling rule is usually used in reverse: you may factor a common number out of a single row, putting it in front of the determinant.
Worked example: Row reducing a 3 × 3 matrix
Compute for .
Use only replacements, which don't change the determinant:
Worked example: A 4 × 4 matrix that needs a swap
Compute .
Clear column 1 with , and (no change):
The entry is , so swap rows 2 and 3. That flips the sign:
Now gives row 4 , and then gives :
Common mistake
When you scale a row during row reduction, the new determinant is times the old one, so to keep an equality you must write . It is easy to multiply when you should divide. The safest habit is to avoid scaling entirely: use only replacements and swaps, then multiply the diagonal and attach .
Determinants and invertibility
Suppose you reduce to an echelon form using only replacements and row swaps. Then
If is invertible, every column has a pivot, so every diagonal entry of is a nonzero pivot and . If is not invertible, has at least one zero on its diagonal (in the square case, a missing pivot forces a zero row at the bottom), so .
The invertibility test
A square matrix is invertible if and only if .
This adds a new statement to the Invertible Matrix Theorem. In particular, if the columns (or rows) of are linearly dependent, then . So a matrix with two equal rows, or with one row a multiple of another, has determinant without any computation.
Worked example: When is a matrix singular?
For which values of is not invertible?
Expand across row 1:
This is zero when or . For those three values is singular; for every other it is invertible.
Transposes and column operations
Transpose
For any square matrix , .
The reason: cofactor expansion across row 1 of is the same computation as expansion down column 1 of . The consequence is that every row rule has a column twin. Swapping two columns flips the sign, scaling a column scales the determinant, and adding a multiple of one column to another changes nothing. You may mix row and column operations freely when computing a determinant (never when solving a system, though).
Products, inverses and scalar multiples
The multiplicative property
If and are matrices, then
Geometrically this is natural: if scales area by a factor of and scales area by , then doing and then scales area by the product. Two useful consequences follow.
- Inverses. Since and , you get , so .
- Scalar multiples. The matrix multiplies every row of by . That's scalings, so for an matrix.
Worked example: Combining the properties
Let and be matrices with and . Find and .
Common mistake
The determinant does not respect addition: in general . Try : , but . The same example shows why is , not .
Tip
Before computing any determinant, scan for shortcuts: a zero row or column, two proportional rows or columns (determinant ), or a triangular shape (multiply the diagonal).
Practice
Let be a matrix with . The matrix is obtained from by these steps, in order: add times row 1 to row 2; swap rows 1 and 2; multiply row 3 by . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Use row operations to compute .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Use row operations to compute .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let and be matrices with and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let be a matrix with . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find all values of for which is singular.
Separate answers with commas, e.g. 2, -5
Let and be matrices with . Which statement is always true?
A square matrix satisfies . What are the possible values of ?
Separate answers with commas, e.g. 2, -5