Computing Determinants: Row Reduction & Cofactors
Two reliable ways to compute the determinant of a square matrix: row-reduce to triangular form and multiply the pivots, or expand in cofactors along a convenient row or column. Includes the exact rules for how each elementary row operation changes the value, and why means is invertible.
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Compute for by cofactor expansion along the first row.
Compute for the upper-triangular matrix .
What you’ll be able to do
- Compute and determinants directly and by cofactor (Laplace) expansion.
- Reduce a matrix to triangular form with elementary row operations and read off its determinant as the product of the pivots.
- State and apply Theorem 6.1: how scaling a row, adding a multiple of one row to another, and swapping two rows each affect the determinant.
- Compute minors and cofactors (Definition 6.2) and expand the determinant along any row or column (Proposition 6.2).
- Use to detect singular matrices and connect with invertibility (Theorem 6.2).
In your course
· MATH2015 · Linear Algebra & Probability- Definition 6.1The determinant functionA function with (D1) , (D2) linearly dependent rows give , and (D3) linearity in each row.
- Theorem 6.1Effect of elementary row operations on determinantsScaling a row by scales by ; adding a multiple of one row to another leaves unchanged; swapping two rows negates .
- Proposition 6.1Determinant of a triangular matrixequals the product of the diagonal entries.
- Theorem 6.2Determinant and invertibilityis not invertible.
- Definition 6.2Minors and cofactorsMinor ; cofactor , where deletes row and column .
- Definition 6.3Expansion along the first row.
- Proposition 6.2Laplace (cofactor) expansionmay be expanded along any row or down any column.
- Example 6.1A 4x4 determinant by row reductionReducing to triangular form with one row swap gives .
The determinant as a volume-like function
For a matrix the determinant is , and is invertible exactly when . Up to sign, is the area of the parallelogram spanned by the rows (a volume in higher dimensions). Definition 6.1 pins down the general by three properties: (D1) ; (D2) linearly dependent rows give ; (D3) the determinant is linear in each row separately. Everything else in the chapter is derived from these.
Computing by row reduction
Theorem 6.1 says how the three elementary row operations act on : multiplying a row by multiplies by ; adding a multiple of one row to another leaves unchanged; swapping two rows flips the sign. So run Gaussian elimination to reach a triangular matrix, tracking only the swaps (each contributes a factor ) and any deliberate row scalings. By Proposition 6.1 the determinant of the triangular result is the product of its diagonal entries, so , where is the number of swaps. If a zero row appears, the rows are dependent and .
Minors, cofactors, and Laplace expansion
Deleting row and column of an matrix leaves an matrix . Its determinant is the minor, and is the cofactor (Definition 6.2). The sign follows the checkerboard pattern . Definition 6.3 expands along the first row, and Proposition 6.2 (Laplace expansion) generalizes it: along any row , or the analogous sum down any column . Choose the row or column with the most zeros to save work.
Which method, and the Rule of Sarrus
For matrices the Rule of Sarrus (Remark 6.1) is a quick shortcut: . It applies only to . For larger matrices, row reduction is usually fastest, while cofactor expansion shines when a row or column is mostly zeros. Because (Theorem 6.5), every row rule has an identical column version (Proposition 6.3).
Let with rows . (1) Multiplying a row by multiplies the determinant by : . (2) Adding times one row to another does not change the determinant. (3) Interchanging two rows reverses the sign of the determinant.
If is upper- or lower-triangular, then equals the product of its diagonal entries: .
For an matrix the determinant may be expanded along any row or down any column : along row , ; down column , , where is with row and column deleted.
For : the rows (equivalently the columns) are linearly dependent. Equivalently, is invertible.
Worked examples
Example 6.1. Compute for by reducing to triangular form.
- 1
Apply and (type-2 operations, determinant unchanged): .
- 2
Swap to bring a nonzero pivot to position . A swap multiplies the determinant by : .
- 3
Apply (type-2, unchanged): .
- 4
Apply (type-2, unchanged): .
- 5
By Proposition 6.1 the triangular determinant is the product of the diagonal, and we performed one swap, so .
Compute for using cofactor expansion.
Suppose is a matrix with . A matrix is built from by (i) multiplying row 1 by , then (ii) swapping rows 2 and 3, then (iii) adding times row 1 to row 2. Find .