Linear Algebra · Undergraduate
Determinants: Cofactor Expansion, Row Operations and Area
Quick answer
The determinant of a square matrix is a single number that is zero exactly when the matrix has no inverse. It can be computed by cofactor expansion along any row or column, or faster by row reducing to triangular form, where it is the product of the diagonal entries. Swapping two rows flips its sign, scaling a row scales it, and adding a multiple of one row to another leaves it unchanged. Geometrically, |det A| is the factor by which A scales areas or volumes, and det(AB) = det A · det B.
What you'll learn
- Compute a determinant by cofactor expansion
- Use row operations to compute a determinant
- Interpret |det A| as an area or volume scale factor
- Use det A ≠ 0 as a test for invertibility
One number that decides invertibility
The inverse formula divides by , and the inverse exists exactly when that number is not zero. The number is the determinant:
Every square matrix has a determinant, and the same rule holds in any size: is invertible exactly when .
For a matrix, cofactor expansion along the first row reduces the problem to determinants. Each entry multiplies the determinant of the matrix left after deleting row and column , with signs alternating :
The expansion works along any row or column, with signs following the checkerboard pattern that starts with in the top-left corner. A row or column full of zeros is the best one to choose.
Why row reduction is the fast way
Cofactor expansion of an matrix calls for smaller determinants, each calling for more, which grows faster than any computer can handle once reaches the twenties. Row operations change the determinant in three predictable ways:
| Row operation | Effect on |
|---|---|
| swap two rows | multiplies it by |
| multiply a row by | multiplies it by |
| add a multiple of one row to another | no change |
And for a triangular matrix, expanding down the first column keeps a single term at every step, so the determinant is the product of the diagonal. Reduce to triangular form using mostly the third operation, which costs nothing, keep track of any swaps and scalings, and multiply the diagonal. That takes about steps instead of .
The determinant as area
The columns of are where sends and , so turns the unit square into the parallelogram on its columns. That parallelogram has area . In three dimensions the unit cube becomes a box of volume . Since a linear map stretches every small square by the same factor, is the factor by which multiplies every area. A negative determinant also flips orientation, as a mirror does.
This picture explains the product rule. Doing scales areas by , and then scales them by , so
and a matrix that flattens the plane onto a line, with zero area, cannot be undone.
Worked examples
Common mistakes
Practice problems
-
Find .
Answer
Full solution
.
-
Find .
Answer
Full solution
Expand down the first column, which has a : .
-
Find .
Answer
Full solution
Lower triangular, so multiply the diagonal: .
-
Show that . What does that say about the columns?
Answer
; the columns are dependent.
Full solution
Expand along the first row. A zero determinant means the matrix is not invertible, so by the Invertible Matrix Theorem its columns are linearly dependent.
-
A matrix has . Find and .
Answer
and
Full solution
doubles each of three rows, multiplying the determinant by . And .
-
Swapping two rows of gives , and . Find .
Answer
Full solution
A swap flips the sign.
-
Find the area of the triangle with corners , and .
Answer
Full solution
The parallelogram on and has area , and the triangle is half of it.
-
For which is not invertible?
Answer
or
Full solution
, which is zero at .
-
and are with and . Find and .
Answer
Both are .
Full solution
Each is the product of the two determinants. Even when , their determinants agree.
-
A student computes by first dividing the top row by , getting , and reports . What went wrong?
Hint
What does scaling a row do to the determinant?
Answer
Dividing a row by divided the determinant by . The answer is .
Full solution
Directly, . Scaling a row scales the determinant, so any row scaling has to be undone at the end: factoring out of the top row gives .
Frequently asked questions
How do you compute a 3 × 3 determinant?
Expand along a row: each entry times the determinant of the 2 × 2 matrix left after deleting its row and column, with signs alternating +, −, +.
How do row operations change a determinant?
Swapping two rows multiplies it by −1. Multiplying a row by c multiplies it by c. Adding a multiple of one row to another leaves it unchanged.
What is the determinant of a triangular matrix?
The product of its diagonal entries, since cofactor expansion down the first column keeps only one term at each step.
What does a determinant of zero mean?
The matrix is not invertible. Its columns are dependent, and the transformation flattens space into a lower dimension, giving zero area or volume.
What does the determinant measure geometrically?
|det A| is the factor by which A multiplies areas in ℝ² or volumes in ℝ³. A negative sign means A reverses orientation, like a mirror.