The Determinant
. For a , expand along a row: each entry times the determinant left when its row and column are deleted, with signs alternating . Geometrically, is the factor by which scales area (volume in 3D), and the sign says whether flips orientation.
Where comes from: sends the unit square to the parallelogram spanned by its columns and , and that parallelogram's signed area is (the proof below cuts it out of a rectangle). For the columns are and and : the square of area becomes a parallelogram of area . Since every region is filled by tiny squares, every area is multiplied by the same .
exists exactly when , and for : — swap the diagonal, negate the off-diagonal, divide by the determinant. Also , so .
The geometry explains the test. If , the square is flattened onto a line (or a point), and different inputs land on the same output — no map can undo that, so there is no inverse. If , the columns span the plane and every is hit exactly once. The product rule is the area story twice: applying scales areas by , then scales them by .
fails to invert when : at the rows become parallel and the matrix flattens the plane onto a line.
Watch it happen through the columns and . At the determinant is , and the columns span a thin parallelogram of area . As falls toward the second column swings onto the line through , the parallelogram's area shrinks to , and at the second column is exactly twice the first.
Jacobians in calculus are determinants (area scaling); Cramer's rule solves small systems by determinants; the characteristic polynomial that finds eigenvalues is a determinant; and orientation (does a transformation flip space?) is its sign. It is the only scalar that summarizes an entire matrix's invertibility and volume behavior.
What is ? Look for structure before expanding.
Show the answerHide the answer
Row 3 is row 1 plus row 2: . So the replacement , which never changes a determinant, produces a row of zeros, and a matrix with a zero row has determinant . The answer is . Geometrically, the three rows lie in one plane, so the box they span has no volume. Check by cofactors along row 1: ✓.
Row Operations and the Determinant
- Swapping two rows multiplies by .
- Multiplying one row by multiplies by .
- Adding a multiple of one row to another leaves unchanged.
So reduce to triangular form, multiply the diagonal, and correct for swaps and scalings: when only swaps and replacements were used.
The third rule is the important one, and it is a shear. Since , rows and columns obey the same rules, so picture columns: replacing by slides the top of the parallelogram along a line parallel to . Base and height are unchanged, so the area is too. Scaling one side by scales the area by , and a swap reverses the order of the two sides, which reverses orientation. A triangular matrix's determinant is the product of its diagonal because expanding down the first column meets only one nonzero entry at each stage.
Find . Row 1 has a common factor ; pull it out (this divides row 1 by , so the determinant carries a factor ): .
Now replacements only, which change nothing: gives and gives ; then gives . The triangular matrix has diagonal , so
Check by cofactors along row 1: ✓. Elimination took three row replacements; for an matrix it needs about operations, while cofactor expansion needs about .
Find . The top-left entry is , so there is no pivot to eliminate with. Swap , which flips the sign: .
Clear column 1: gives . Clear column 2: gives . The pivots are , with product , so . Check by cofactors along the first row of the original: ✓.
A matrix has . Find , and . Multiplying the matrix by multiplies each of its three rows by .
Each row scaling contributes a factor , so . From and the product rule, , so . And — always nonnegative, a fact that returns with least squares and singular values.
: with , but . The same example exposes the other slip, : for an matrix the correct factor is , because each of the rows is doubled. The determinant is linear in one row at a time, never in the whole matrix.
Compute by elimination, and check by cofactors.
Show the answerHide the answer
Replacements only: gives ; gives ; then gives . No swaps or scalings were used, so the determinant is the product of the pivots: . Cofactors along row 1: ✓.
Cramer's Rule and Area Formulas
If , the solution of is
where is with column replaced by . The same area idea gives coordinate formulas: the triangle with vertices has area , the two edge vectors from used as columns.
Why Cramer's rule holds, in the plane: , so the parallelogram on and is the one on and sheared along — same area. Hence , which is . The rule is elegant and good for one unknown or for proofs; for solving whole systems, elimination is far cheaper.
Solve , . First the denominator: . Replace column 1 by : .
So . Replace column 2 instead: , so . Check: and ✓. In the figure, the parallelogram on and (dashed) has area , exactly twice the area of the one on and — that factor is .
Find only in , , . The denominator, by cofactors along row 1: .
Replace column 3 by : . So . This is where Cramer's rule earns its keep: one unknown from two determinants, without solving for the others. (The full solution is ; check the second equation: ✓.)
Find the area of the triangle with vertices , , . Edge vectors from : and .
They span a parallelogram of area , and the triangle is half of it: area . The determinant is positive, which says the order runs counterclockwise; listing the vertices the other way round would give . The formula needs no heights, no angles, and no square roots.
For , , all three determinants vanish: and . Writing and concluding " can be anything, so can too" is wrong — , fails the first equation. With Cramer's rule says nothing at all; elimination shows the solutions are the line . Change the second equation to and , yet there is no solution. Only elimination tells these cases apart.
Solve , by Cramer's rule, and check.
Show the answerHide the answer
Denominator: . Column 1 replaced by : , so . Column 2 replaced: , so . Check: and ✓.
Proofs & Why It Matters
The matrix sends the unit square (spanned by ) to the parallelogram spanned by the columns and .
Embed in 3D and take the cross product: , so the parallelogram's area is — the factor by which every area scales, since any region is a limit of little squares. The sign records whether orientation flips. A cut-and-paste proof avoids the cross product. With columns and , the parallelogram sits in a rectangle of area . Around it are two triangles of area , two of area , and two rectangles of area . What is left is . In general .
Multiply directly: .
When , dividing by it gives ; when the product is the zero matrix, so no inverse can exist (an invertible product would force ).
The map first scales areas by (applying ), then by (applying ) — so the composite scales areas by the product. Since the determinant is the (signed) area factor, . Setting repeatedly gives .
Going Deeper: Explanations & Worked Problems
The determinant answers three seemingly different questions with one number. Algebra: has a unique solution iff — the determinant is the product of the pivots (up to sign from row swaps), so "no zero pivot" and "nonzero determinant" are the same statement.
Geometry: is the factor by which scales all areas (volumes in 3D), and its sign records orientation — negative means the plane got flipped. Computation: expand along any row or column (each entry times its minor, alternating signs in a checkerboard), or better, row reduce and multiply pivots — for large matrices, elimination is exponentially faster than cofactors. Useful consequences worth having at your fingertips: a matrix with two equal rows has determinant (swap them: the sign flips yet nothing changed); triangular matrices have determinant product of the diagonal; and .
Let . Cofactors along row 1: . Evaluate each : ; ; .
Assemble with the signs: . Now by elimination: swap to get the pivot on top (the swap flips the sign), then gives , and gives . The pivots are with product , and the one swap makes it ✓. Same number, two engines — cofactors for small or sparse matrices, elimination for everything else.
Solve by the inverse.
Step 1 — determinant: .
Step 2 — the inverse recipe (swap diagonal, negate off-diagonal, divide): .
Step 3 — multiply: .
Step 4 — check in the original system: ✓, ✓. Because , this matrix even preserves areas exactly — an example of the geometry and the algebra agreeing to the digit.