Contents / Linear Algebra / Determinants
Chapter 4
Determinants
The permutation definition, cofactor expansion, multiplicativity, the adjugate, Cramer's rule, and volume.
Introduction
To every square matrix the determinant attaches a single number, and that number answers a surprising number of questions at once. Is the matrix invertible? By what factor does the associated linear map stretch volume? Does it preserve orientation or flip it? What are the roots of the characteristic polynomial? All of these are read off from one scalar.
The central fact, which the chapter proves twice from different directions, is this: is invertible exactly when . A zero determinant means the matrix flattens space into a lower-dimensional subspace, and flattening is irreversible — once a direction has been crushed to zero, nothing can bring it back.
There is an honest difficulty in this subject, and the older treatment of this chapter fell into it. It is tempting to define the determinant by cofactor expansion along the first row and then announce that expansion along any other row gives the same answer. That announcement is not a small one; it is a theorem, and it cannot be proved from a definition that privileges one row. So we start elsewhere. We first ask what properties a "signed volume" function must have, show those properties force a unique formula, write that formula down explicitly (the permutation or Leibniz definition), and only then derive cofactor expansion — along every row and every column at once — as a consequence. Everything afterwards, from the product rule to Cramer's rule to the volume interpretation, follows from the same small base.
The chapter runs in that order: the characterising properties, the permutation definition, cofactor expansion, the behaviour under row operations, computation by elimination, the adjugate and the inverse formula, Cramer's rule, two families of determinants worth knowing by sight, and finally geometry.
4.1What a determinant has to be
Before writing a formula, decide what the formula must do. Think of an matrix as a list of its rows, each a vector in , and think of the number we want as the signed volume of the box those rows span. Three demands then present themselves, and they turn out to be enough.
Definition 4.1 (Multilinear, alternating, normalised). Let assign a real number to each list of vectors in , thought of as the rows of a matrix. We call
- multilinear if it is linear in each row separately, the others held fixed: for every index , every scalar and all vectors,
- alternating if whenever two of the rows are equal;
- normalised if , that is, .
Each demand encodes something about volume. Multilinearity says that doubling one edge of a box doubles its volume, and that a box built on an edge can be cut into the box on and the box on . Alternating says a box two of whose edges coincide is flat, hence has volume zero. Normalisation fixes the unit: the unit cube has volume one, so that we are measuring in the usual units rather than in some rescaled copy of them.
The word "alternating" is used because of the following consequence, which is where the signs in every determinant formula come from.
Lemma 4.2 (Alternating forces antisymmetry). If is multilinear and alternating, then swapping two rows multiplies by .
Proof. Suppose rows and are involved, , and put the vector in both slots, all other rows fixed. Since two rows agree, the alternating property gives
Expand the left side by multilinearity in slot and then in slot :
where only slots and are displayed. The first and last terms vanish, again because two rows agree. Hence , which is the claim.∎
The converse direction holds over as well: if swapping any two rows negates , then putting two equal rows in gives , so and . Over fields where the two conditions genuinely differ, which is why careful texts take "vanishes on repeated rows" as the definition rather than "changes sign".
One more consequence, small but used constantly, is worth isolating now.
Corollary 4.3 (Row replacement is invisible). If is multilinear and alternating, then adding a multiple of one row to a different row leaves unchanged.
Proof. Add to row , where . By linearity in slot ,
In the second term rows and are both equal to , so it vanishes.∎
Intuition. Picture a parallelogram with base and second edge . Replacing by slides the top edge sideways by three base-lengths. The base is unchanged and the perpendicular height is unchanged, so the area is unchanged — this is the shear that Euclid used to prove the Pythagorean theorem. Corollary "Row replacement is invisible" is that picture in dimensions, and it is the reason elimination is a legitimate way to compute a determinant.
Here is the payoff of setting things up this way: the three demands do not merely constrain , they determine it completely.
Theorem 4.4 (Uniqueness of the determinant). There is at most one multilinear, alternating, normalised function of the rows of an matrix, and it is necessarily given by
the sum running over all rearrangements of , with recording whether is built from an even or an odd number of swaps.
Proof. Write row in the standard basis, , and expand by linearity in the first slot, then the second, and so on. After all expansions,
where ranges over all functions from to itself. If takes the same value twice, the corresponding list of basis vectors has a repeated row and the -factor is . So only the bijections survive.
For a bijection , sort the list back into the order using swaps. By Lemma "Alternating forces antisymmetry" each swap contributes a factor , so by normalisation. Substituting gives the displayed formula, so is forced.∎
Notice what this proof does and does not deliver. It shows that if such a exists, it is the permutation sum — no freedom at all. It does not yet show that the permutation sum really is multilinear and alternating, and until that is checked we do not know any such exists. The next section supplies the check, and from then on the two descriptions can be used interchangeably.
Example 4.5 (Uniqueness at work on a matrix). Without assuming any formula, use only multilinearity, the alternating property and to compute .
Solution. Write the rows as and , then expand in the first slot:
Expand each of those in the second slot:
The first and last terms have a repeated row, so they vanish. The second is . The third is by Lemma "Alternating forces antisymmetry". Hence
Sanity check: the rules were never allowed to choose between and , and indeed they did not — normalisation on gives , not .□
Pitfall. Multilinearity is linearity in one row at a time. It is not linearity in the matrix. From you must scale each of the rows, giving , and has no useful relation to at all: take , where while .
4.2The permutation definition
The permutation sum is the definition that makes everything else provable, so it is worth setting up its vocabulary properly.
Definition 4.6 (Permutation, inversion, sign). A permutation of is a bijection from that set to itself; we write it as the list . The set of all of them is , and it has members. An inversion of is a pair of positions with : a pair that appears out of order. If is the number of inversions, the sign of is
A permutation is even when its sign is and odd when its sign is .
So the sign is decided by a purely mechanical count: read the list left to right and tally every pair that is out of order. The list has inversions and , so and the permutation is even. The list has the single inversion , so it is odd.
Lemma 4.7 (A transposition is odd). Swapping two entries of a permutation changes the parity of the inversion count. In particular every transposition is odd, and for any transposition .
Proof. First take an adjacent swap, exchanging the entries in positions and . Every pair of positions other than keeps both its entries and their relative order, so its inversion status is untouched. The pair flips from inverted to not, or the reverse. So changes by exactly and the parity flips.
Now take a general swap of positions and with . Move the entry at position rightwards by adjacent swaps until it sits at position ; the entry originally at has been pushed back to position , so move it leftwards by adjacent swaps to position . Every other entry has returned to where it started. That is adjacent swaps, an odd number, so the parity flips.∎
Because the sign flips under every swap, is multiplicative: for all , since is a product of transpositions and each contributes one sign flip to both sides. This also settles a worry: a permutation can be written as a product of transpositions in many ways, but the number of them is always even or always odd, never both.
Definition 4.8 (Determinant, permutation form). For an matrix ,
Each term picks exactly one entry from every row and exactly one from every column, multiplies them, and attaches the sign of the corresponding permutation.
Read the formula as a rule for choosing entries. Lay a rook on the board at , another at , and so on: non-attacking rooks, one per row and one per column. Multiply the entries they sit on, sign the product by the parity of the arrangement, and add over all placements.
For there are two permutations, (even, giving ) and (odd, giving ), recovering . For there are six terms,
which is the familiar "rule of Sarrus" pattern of three down-right diagonals minus three down-left ones. For there are terms, for there are , and this is why nobody computes a determinant from this formula. Its value is theoretical: every property in the chapter falls out of it in a few lines.
Pitfall. Sarrus' diagonal trick is a accident. There is no version. Attempting to extend the wrap-around diagonals to a matrix produces terms where are required, and the answer is simply wrong.
Theorem 4.9 (The permutation sum is a determinant). The function defined by the permutation form is multilinear in the rows, alternating, and equal to at . Consequently a multilinear alternating normalised function exists, and by Theorem "Uniqueness of the determinant" it is the only one.
Proof. Multilinear. Fix a row index . Every term contains exactly one factor from row , namely , and the rest of the product does not involve row . A sum of terms each linear in row is linear in row .
Normalised. For the product is unless for every . Only the identity permutation survives, it has no inversions, and its product is . So .
Alternating. Suppose rows and are equal, , and let be the transposition exchanging and . Pair each permutation with ; this pairs up all of into disjoint couples, since and . Within a couple the products agree: picks the entry from row and from row , and because rows and are identical, and — the same two numbers as used, in the other order. All other factors are untouched. But the signs are opposite by Lemma "A transposition is odd", so the two terms cancel. Summing over all couples gives .∎
Example 4.10 (Counting inversions and signing a term). For , find the sign of the permutation , and name the entry-product it contributes to .
Solution. List the pairs of positions and check which are inverted. Against the leading : the pairs and are inverted, while is not — two inversions. Against the in position two: and are both in order — none. Against the in position three: is inverted — one. Total , so
The term it contributes is : row takes column , row takes column , row takes column , row takes column .
Sanity check by decomposing into swaps instead. Starting from , swap positions to reach : exchange the entries and to get , then and to get , then and to get . Three transpositions, an odd number, sign . ✓□
Example 4.11 (A determinant with only two surviving terms). Compute directly from the permutation definition.
Solution. A term is nonzero only if every chosen entry is nonzero. Row forces column , row forces column , row forces column , so the only candidate permutation is , and there is exactly one surviving term.
Its inversions: , and are all out of order, so and . The product of entries is , so
Sanity check: this matrix is the identity with rows reordered and rescaled. Reversing three rows costs one swap of the outer pair, a factor , and the diagonal entries contribute . ✓□
Intuition. Think of the terms as the ways to assign workers (rows) to distinct jobs (columns), one each. Each assignment has a payoff, the product of the individual entries, and the determinant is the alternating sum of all payoffs. The alternating signs are what make the total collapse to zero exactly when the rows are redundant — when one worker's abilities are a mixture of the others', the assignments cancel in pairs.
4.3Cofactor expansion
Now that a definition is in place we can prove the expansion rule, rather than assume it. The idea is to group the terms of the permutation sum according to which column a chosen row uses.
Definition 4.12 (Minor and cofactor). Let be with . The minor is the determinant of the matrix obtained by deleting row and column from . The cofactor is
The sign is easiest to remember as a checkerboard beginning with in the top-left corner:
Theorem 4.13 (Laplace expansion along any row or column). Let be with . For every fixed row index ,
and for every fixed column index ,
All of these expansions produce the same number.
Proof. We prove the row version; the column version follows from it together with Theorem "Transpose invariance" below, whose own proof does not use this one.
Fix and split the permutation sum according to the value :
Call the inner bracket . It depends only on the entries outside row and column , since the factors for never use row , and never use column either because is injective and has already spent column on row . So is some fixed function of the deleted submatrix.
Identify it. First take , . Permutations with restrict exactly to permutations of , with the same inversions, so is precisely the permutation sum for the submatrix: , and agrees.
For general , move row to the bottom by adjacent row swaps and column to the right edge by adjacent column swaps. Adjacent swaps preserve the relative order of every other row and column, so the deleted submatrix is unchanged, while each swap negates the determinant — for rows by Lemma "Alternating forces antisymmetry", for columns by the same lemma applied after transposing. The entry now sits at position , so , using . Substituting gives the stated expansion.∎
Two things follow immediately and are used more often than the theorem itself. First, the expansion is a licence to be lazy: since any row or column works, always pick the one with the most zeros, because every zero entry kills an entire minor before you compute it. Second, the recursion terminates, so cofactor expansion is a genuine algorithm for a or matrix done by hand.
Proposition 4.14 (Triangular determinants). If is upper or lower triangular, then , the product of the diagonal entries. In particular and a triangular matrix is invertible exactly when no diagonal entry is zero.
Proof. Take upper triangular, so whenever , and induct on . For there is nothing to prove. For expand along the first column: every entry below the top is zero, so only the term survives. The submatrix obtained by deleting row and column is again upper triangular with diagonal , so by the inductive hypothesis . Multiplying gives the claim. For lower triangular matrices expand along the first row instead.∎
Intuition. A cofactor expansion is a divide-and-conquer step: one problem becomes three problems, alternating in sign. That is also its weakness. Each step multiplies the work by roughly , so a determinant done this way needs on the order of million multiplications, while the elimination method of a later section needs about . Expansion is for small matrices and for matrices full of zeros.
Example 4.15 (A determinant, expanded two ways). Compute for , and check the answer with a second expansion.
Solution. Expand along row :
The three determinants are , and , so
Sanity check by expanding along column , whose entries are . Only two terms survive, with signs and from positions and :
Theorem "Laplace expansion along any row or column" guaranteed this agreement in advance.□
Example 4.16 (Choosing the cheapest line). Compute .
Solution. Column has entries : two zeros, so only two minors are needed. The checkerboard signs down column read , so
The first has a column of zeros in position except for the ; expand along column , where only the middle entry survives with sign :
The second has first column ; expand along it:
Therefore .
Sanity check on the cost: expanding blindly along row would have required four minors, each costing three determinants — twelve of them instead of the three actually used.□
Example 4.17 (When zeros are absent, expansion is still fine for ). Compute .
Solution. Expand along row :
The minors are , and , so
Sanity check by the Sarrus pattern: the down-right products are , and , summing to ; the down-left products are , and , summing to . Then . ✓□
Pitfall. The cofactor sign is , attached to the position, not to the entry. A negative entry in a position keeps its own minus sign and gains nothing; a positive entry in a position gets one. The commonest slip is to expand along row or column and start the alternation with instead of .
4.4Properties of determinants
Everything in this section is a theorem about the permutation sum, and every one of them has a short proof. These are the facts that make determinants usable.
Theorem 4.18 (Transpose invariance). For every square matrix, .
Proof. Write for the entries of . Then
In each product, relabel the factors by the row index they come from: setting , so , the same numbers are being multiplied, and
Also , because writing as a product of transpositions writes as the same transpositions in reverse order, again of them. Finally, is a bijection of onto itself, so summing over is the same as summing over . Hence
Transpose invariance is a structural statement, not a computational one: it says the determinant does not know the difference between rows and columns. Every theorem about rows therefore has a free column counterpart, and this is the licence used in the proof of Laplace expansion to expand along columns.
Theorem 4.19 (Effect of the elementary row operations). Let be square and let be obtained from by one elementary row operation.
- If comes from swapping two rows, then .
- If comes from multiplying one row by , then .
- If comes from adding a multiple of one row to a different row, then .
The same three statements hold for the corresponding column operations.
Proof. Statement 1 is Lemma "Alternating forces antisymmetry" applied to , which is alternating by Theorem "The permutation sum is a determinant". Statement 2 is linearity in the scaled row, which is multilinearity. Statement 3 is Corollary "Row replacement is invisible". The column versions follow by transposing, using Theorem "Transpose invariance".∎
Each of these has a direct reading in the permutation sum as well. Scaling row by multiplies the single factor in every term by , so the whole sum scales by . Swapping rows and replaces each by composed with the transposition , a relabelling of the sum that flips every sign.
Corollary 4.20 (Zero determinants by inspection). whenever has a zero row, two equal rows, or two proportional rows; and more generally whenever the rows are linearly dependent. The same holds for columns.
Proof. A zero row makes every term of the permutation sum contain a zero factor. Two equal rows give because is alternating. If row equals times row with , factor out by statement 2 of Theorem "Effect of the elementary row operations" to reach a matrix with two equal rows. In general, if the rows are dependent then some row is a linear combination of the others; subtract that combination using statement 3, which changes nothing, and the result has a zero row. Columns follow by Theorem "Transpose invariance".∎
Theorem 4.21 (Scaling the whole matrix). For an matrix and a scalar , .
Proof. is with every one of its rows multiplied by . Apply statement 2 of Theorem "Effect of the elementary row operations" once per row, extracting a factor each time.∎
The next theorem is the deepest one in the chapter, and the route to it goes through elementary matrices. Recall from the chapter on matrix algebra that an elementary matrix is the result of applying one elementary row operation to , and that is with that operation applied.
Lemma 4.22 (Determinants of elementary matrices). Let be the elementary matrix for a row operation. Then for a swap, for scaling a row by , and for a row replacement. In every case, and for every square of matching size,
Proof. For itself, apply Theorem "Effect of the elementary row operations" to and use . For the product statement, note that is exactly with the same operation applied, so Theorem "Effect of the elementary row operations" says is multiplied by , by , or by respectively — which in each case is .∎
Theorem 4.23 (Singularity criterion). A square matrix is invertible if and only if .
Proof. Row reduce to its reduced echelon form , so that for elementary matrices . Repeated use of Lemma "Determinants of elementary matrices" gives
and every is nonzero. So and are zero or nonzero together.
Now is square and in reduced echelon form, so either , or has a row of zeros. If then and is invertible, being a product of invertible elementary matrices inverted. If has a zero row then and is not invertible, hence neither is . The two cases match the two conclusions exactly.∎
Theorem 4.24 (Multiplicativity). For square matrices and of the same size,
Proof. Suppose first that is not invertible. Then by Theorem "Singularity criterion", and the right side is . Also is not invertible: if it had an inverse then , which for square matrices forces to be invertible. So too, and the identity holds.
Now suppose is invertible. Then is a product of elementary matrices, , because its reduced echelon form is . Apply Lemma "Determinants of elementary matrices" repeatedly, peeling one factor at a time:
The same peeling with replaced by gives . Substituting yields .∎
Corollary 4.25 (Inverses, powers and similarity). Let be square.
- If is invertible then .
- for every positive integer , and for every integer when is invertible.
- If for an invertible , then : similar matrices have equal determinants.
Proof. For 1, take determinants in to get ; since we may divide. Statement 2 is Theorem "Multiplicativity" applied times, extended to negative by statement 1. For 3,
the scalars commuting freely.∎
Statement 3 is the reason the determinant can be attached to a linear operator and not merely to a matrix. Changing basis replaces the matrix by a similar one, and the determinant does not notice. The same argument shows the trace is basis-independent, and both facts reappear in the chapter on eigenvalues, where the characteristic polynomial is shown to be a similarity invariant for exactly this reason.
Proposition 4.26 (Orthogonal matrices). If is orthogonal, meaning , then .
Proof. Take determinants: . By Theorem "Transpose invariance" the left side is , so and .∎
Geometrically this says an orthogonal matrix preserves volume, which is unsurprising since it preserves all lengths and angles. The sign separates the two kinds: for rotations, which preserve orientation, and for reflections and their compositions with rotations, which reverse it.
Intuition. Multiplicativity is the statement that volume scaling factors compose by multiplication. Apply a map that triples volume, then one that halves it, and the composite multiplies volume by . Read backwards it also explains the singularity criterion: if crushes volume to zero, no second map can restore it, so nothing composed with is the identity.
Example 4.27 (Chaining the rules). Let and be with and . Compute .
Solution. Work outwards. The matrix inside the scalar multiple has determinant
using Theorem "Transpose invariance", Corollary "Inverses, powers and similarity" and Theorem "Multiplicativity". Then the factor multiplies a matrix, so by Theorem "Scaling the whole matrix" it contributes :
Sanity check on the sign: exactly one factor with a negative determinant appears, namely , so the answer must be negative. ✓□
Example 4.28 (A determinant condition on a parameter). For which values of is singular?
Solution. Expand along row :
By Theorem "Singularity criterion", is singular exactly when , that is , giving
Sanity check at : the matrix becomes , whose first and third rows are equal, so its determinant is by Corollary "Zero determinants by inspection". ✓□
Example 4.29 (Determinant of a rank-one perturbation). Let be the matrix of all ones. Compute and .
Solution. All three rows of are equal, so by Corollary "Zero determinants by inspection".
For , use row operations. Subtract row from rows and ; by statement 3 of Theorem "Effect of the elementary row operations" the determinant is unchanged:
Now subtract row from row , then subtract row from the new row :
This is triangular, so by Proposition "Triangular determinants".
Sanity check: the vector satisfies , and any vector summing to zero satisfies . So the eigenvalues are and their product is . ✓□
Pitfall. is not , and no amount of multilinearity makes it so. Multilinearity splits a sum in one row; changes every row at once. For matrices the honest expansion has four terms, one for each way of choosing a row from or from .
4.5Computing determinants by row reduction
Theorem "Effect of the elementary row operations" together with Proposition "Triangular determinants" gives the method that every piece of software actually uses.
Method 4.30 (Determinant by elimination). To compute :
- Use row replacements to clear out the entries below each pivot, working left to right. These cost nothing.
- If a pivot position holds a zero, swap in a lower row that does not, and record a factor for each swap.
- If you choose to scale a row by to simplify arithmetic, record a factor to undo it later.
- When the matrix is upper triangular, multiply the diagonal entries and then multiply by all the recorded factors.
- If a whole row becomes zero at any stage, stop: .
Step 3 is the one that catches people. Elimination performed to solve a system usually normalises pivots to , and that is harmless for solutions but fatal for determinants unless the factors are tracked. The safest discipline when computing a determinant is to use replacements and swaps only, never scaling.
The cost comparison is stark. Clearing column costs about multiplications, so the total is about operations — for that is roughly . Cofactor expansion on the same matrix needs on the order of operations, about . A machine doing a billion operations per second finishes the elimination instantly and would need about years for the expansion.
Example 4.31 (Elimination with replacements only). Compute for .
Solution. Clear column with and , neither of which changes the determinant:
Clear column with , again free:
The matrix is upper triangular, so .
Sanity check by cofactor expansion along row : . ✓□
Example 4.32 (Elimination with a swap). Compute for .
Solution. The entry is zero, so swap rows and and record a factor :
Now gives second row , and then gives third row :
The triangular product is , so .
Sanity check by expanding the original along column , whose entries are with signs :
Example 4.33 (Spotting dependence mid-elimination). Compute .
Solution. Apply and :
Row is exactly twice row , so produces a zero row and the determinant is .
Sanity check without elimination: the columns satisfy , a linear dependence, so Corollary "Zero determinants by inspection" applies directly. ✓□
Pitfall. Recording the swap factor is not optional, and neither is recording a scaling. A single forgotten swap turns into — a sign error that no amount of arithmetic care downstream will reveal. Write the running factor in the margin as you go.
Intuition. Elimination works because a row replacement is a shear, and shears do not change volume. Every step of the reduction deforms the box spanned by the rows into a new box of exactly the same volume, until the box is axis-aligned and its volume is visibly the product of its side lengths. The swaps are the only steps that touch anything, and all they touch is the sign.
4.6The adjugate and the inverse formula
Laplace expansion says that multiplying the entries of a row by their own cofactors and summing gives the determinant. What happens if you multiply them by the cofactors of a different row? The answer is the key to an explicit formula for the inverse.
Lemma 4.34 (Alien cofactor expansion). If then
and likewise for .
Proof. Let be the matrix obtained from by replacing row with a copy of row , leaving everything else alone. Since , the matrix has two equal rows, so by Corollary "Zero determinants by inspection".
Expand along row . The cofactors of row do not involve row at all — they are determinants of submatrices with row deleted — and rows other than are the same in as in . So the cofactors of along row are exactly the of , while the entries of row of are the . Hence
as claimed. The column version follows by transposing.∎
Definition 4.35 (Cofactor matrix and adjugate). The cofactor matrix of is , the matrix whose entry is the cofactor. The adjugate (or classical adjoint) is its transpose,
The transpose in that definition is not decoration; it is what makes the next theorem come out right, and forgetting it is the single most common error in hand computation of an inverse.
Theorem 4.36 (The adjugate identity). For every square matrix ,
Consequently, if then
Proof. Compute the entry of :
If this is Laplace expansion along row , hence . If it is by Lemma "Alien cofactor expansion". So the product is on the diagonal and off it, which is . The identity is the same computation with columns, using the column form of both expansions. Dividing by the nonzero scalar gives the inverse formula.∎
For matrices the formula is the one everyone memorises. The cofactors of are , , , , so the cofactor matrix is and the adjugate, its transpose, is — swap the diagonal, negate the off-diagonal. Hence
The adjugate identity holds even when is singular, where it says . That degenerate case is genuinely useful: it shows every column of lies in the null space of , and one can deduce that has rank when has rank , and rank when has rank below .
Intuition. Think of as "the inverse before you can afford to divide". Its entries are polynomials in the entries of , with no division anywhere, and the only division in the whole inverse formula is the single final one by . That is why the formula is the right tool for theoretical work — it makes visible that each entry of is a ratio of two polynomials in the entries of , hence a smooth function of them wherever .
Example 4.37 (The adjugate of a matrix). Let . Compute , and .
Solution. Compute the nine cofactors. Along row :
Along row :
Along row :
The determinant, by expansion along row , is .
The adjugate is the transpose of the cofactor matrix:
Since , this adjugate is the inverse: .
Sanity check on the first row of : , then , then . The row reads as required. ✓□
Example 4.38 (One entry of an inverse, without inverting). Let . Find the entry of .
Solution. By Theorem "The adjugate identity", — note the index reversal, which is the transpose in the adjugate.
The cofactor deletes row and column :
For the determinant, expand along row :
Therefore
Sanity check: the second row of times the third column of should give , and the third entry of that row times — more directly, solve and read off its second component, which is by definition . Elimination gives , whose second component is . ✓□
Pitfall. , not . The entry of the adjugate is . Symmetric matrices hide the error, because their cofactor matrices are symmetric too, so test any procedure you have memorised on a non-symmetric example before trusting it.
4.7Cramer's Rule
With the adjugate in hand, an explicit formula for the solution of a square system costs two lines.
Theorem 4.39 (Cramer's Rule). Let be with , and let . Write for the matrix with its -th column replaced by . Then the unique solution of has components
Proof. Since , Theorem "Singularity criterion" gives , and Theorem "The adjugate identity" turns that into
It remains to recognise that sum. Expand along its -th column, which holds the entries . The cofactors of that column are computed by deleting column , so they do not see the replacement at all and coincide with the cofactors of . Hence
which is exactly the sum above. Substituting gives the formula.∎
Here is the same idea without the adjugate, in one move that is worth seeing. Let be the identity with its -th column replaced by the solution . Multiplying block-wise,
because times the -th column is , and times is the -th column of for the other columns. Taking determinants, , and because that matrix is triangular after ignoring the trivial structure — expanding along any row other than peels off the ones and leaves .
Remark. Cramer's rule is a terrible way to compute. Solving an system needs determinants; done by elimination each costs about operations, so the total is about against the of simply solving the system once. Done by cofactor expansion the cost is , which is hopeless past or so. It is also numerically fragile: the separate determinants can each be large while their ratio is tiny, and floating-point cancellation destroys accuracy. Use it for systems, for symbolic entries, and for proofs — never for numerical work.
What Cramer's rule is genuinely good for is structure. It shows that each is a ratio of polynomials in the entries of and , so the solution depends smoothly on the data wherever . That fact underlies sensitivity analysis, the implicit function theorem, and the formula for the derivative of a matrix inverse.
Intuition. Replacing column by asks: how much of the box's volume is accounted for by the -th ingredient? Since , swapping into slot and expanding by multilinearity kills every term except — the others repeat a column already present. So the new volume is times the old one, which is the rule.
Example 4.40 (A system). Solve , by Cramer's rule.
Solution. Here and , so .
Replace column by :
Replace column by :
Sanity check in both equations: ✓, and ✓.□
Example 4.41 (One unknown out of three). For the system , , , find alone.
Solution. Cramer's rule earns its keep here: one unknown means two determinants, not a full elimination.
Clear column with and , giving rows and , then giving . The triangular product is .
Now replace column by :
Expand along row , taking the three minors in turn. Deleting row and column leaves with determinant , contributing . Deleting row and column leaves with determinant , contributing . Deleting row and column leaves with determinant , contributing . The total is .
Therefore
Sanity check by substituting into the third equation once and are known. Solving the first two equations with gives and , whence and . Then ✓.□
Pitfall. Cramer's rule replaces a column, never a row, and the column replaced is the one matching the unknown you want. Replacing a row gives a number with no meaning. And the rule says nothing at all when : it does not tell you whether the system is inconsistent or has infinitely many solutions, only that it is not uniquely solvable.
4.8Block and Vandermonde determinants
Two families of determinants appear often enough that recognising them saves real work.
Theorem 4.42 (Block triangular determinant). Let , where is , is , and the lower-left block is the zero matrix. Then
The same holds for .
Proof. Fix and regard as a function of the rows of . It is multilinear and alternating in those rows, since the full determinant is multilinear and alternating in all rows and we are only varying of them. Moreover the value does not depend on : in the permutation sum, any contributing a nonzero term must send the last rows into the last columns, because the entries of the zero block are zero and there are rows to place; those rows then use up all of the last columns, forcing the first rows into the first columns, which never touches .
So for a multilinear alternating function of the rows of . By the expansion in the proof of Theorem "Uniqueness of the determinant", any such function equals . And , which after clearing by row replacements against the identity block is , by expanding along the first columns one at a time. Hence .∎
Pitfall. There is no such rule for a general block matrix. For with a nonzero lower-left block, is not . Take
whose four blocks all have determinant , so the false formula predicts . But is a permutation matrix for , which has three inversions, so . The correct generalisation, valid when is invertible, is .
Example 4.43 (A by blocks). Compute .
Solution. The lower-left block is zero, so the matrix is block upper triangular with and .
so by Theorem "Block triangular determinant", .
Sanity check: the upper-right block held , and none of those numbers appeared in the answer, exactly as the theorem promises. ✓□
Definition 4.44 (Vandermonde matrix). Given scalars , the Vandermonde matrix is
Theorem 4.45 (Vandermonde determinant).
In particular exactly when the are distinct.
Proof. Induct on . For the determinant is , matching the single factor.
For the step, fix and let play the role of , so that becomes a function . Expanding along the last row shows is a polynomial in of degree at most , and its coefficient of is the cofactor of the entry, namely the Vandermonde determinant of , which by the inductive hypothesis is .
Now for each , because setting makes the last row equal to row , and Corollary "Zero determinants by inspection" applies. A polynomial of degree at most with the distinct roots and known leading coefficient is determined:
Setting gives exactly , completing the induction. (If some coincide, both sides are zero, so the identity holds there too by continuity or by the repeated-row argument.)∎
The non-vanishing statement is the reason Vandermonde matrices matter. It says that for distinct nodes the interpolation system has a unique solution: there is exactly one polynomial of degree at most passing through prescribed values. That single fact underlies polynomial interpolation, Gaussian quadrature and the discrete Fourier transform.
Example 4.46 (A Vandermonde). Compute .
Solution. The rows are for , so this is Vandermonde with nodes , , . Theorem "Vandermonde determinant" gives
Sanity check by elimination: subtract row from rows and to get rows and , then subtract times the new row from the new row to get . The triangular product is . ✓□
Example 4.47 (Reading off a repeated node). For which values of is singular?
Solution. This is Vandermonde with nodes , , in that row order, so
It vanishes exactly when or , which is precisely when one node repeats and two rows coincide.
Sanity check at : rows and both read , so the determinant is zero by Corollary "Zero determinants by inspection". ✓□
Intuition. Read the Vandermonde formula as a measure of how spread out the nodes are. Every factor is a gap between two nodes, and the determinant is the product of all the gaps. Nodes that crowd together make the determinant small, the interpolation system nearly singular, and the fitted polynomial wildly sensitive to the data — the reason interpolation at closely spaced points is numerically dangerous.
4.9Area, volume and orientation
The three defining demands of the first section were read off from properties of volume. This section closes the circle by showing they really do compute volume.
Theorem 4.48 (The determinant is signed area). Let and , and let be the matrix with these as rows. The parallelogram spanned by and has area .
Proof. If the parallelogram is degenerate with area , and too. Otherwise write for the length of and decompose into the part along and the part perpendicular to it:
The parallelogram has base and height , since is the component of the second edge perpendicular to the base. So its area is .
On the determinant side, subtracting from the second row changes nothing by Theorem "Effect of the elementary row operations", so . Because , we have , the perpendicular of rescaled. Substituting,
Taking absolute values gives the area.∎
The sign that the absolute value discards is itself information.
Definition 4.49 (Orientation). An ordered basis of is positively oriented if the determinant of the matrix with those rows is positive, and negatively oriented if it is negative. A linear map preserves orientation when its determinant is positive and reverses it when the determinant is negative.
In the plane, a positively oriented pair is one where the shorter turn from to is anticlockwise. In space, a positively oriented triple obeys the right-hand rule. A reflection has determinant and turns a right hand into a left hand; no continuous motion can do that, which is the geometric content of the sign.
Theorem 4.50 (Volume scaling). Let be a linear map on and let be a region with -dimensional volume . Then
Proof. We argue in the plane; the general case is identical with boxes in place of squares. First take to be the unit square, spanned by and . Its image is spanned by and , the columns of , so by Theorem "The determinant is signed area" applied to — legitimate by Theorem "Transpose invariance" — the image has area . That is the claim for the unit square.
Next take any square of side , positioned anywhere. Translation does not change area and commutes with up to a translation of the image, and scaling the square by scales both sides of the identity by . So the claim holds for every square.
Finally, any region whose area is defined can be approximated from inside and outside by finite unions of disjoint small squares, with the two approximations closing in on . Applying to those unions gives inner and outer approximations to whose areas are times the originals, because area is additive over disjoint pieces. Passing to the limit gives the result.∎
Corollary 4.51 (Cross products and triple products). For , the parallelepiped they span has volume , and the three vectors are coplanar exactly when this vanishes.
Proof. The scalar triple product expands, entry by entry, into the cofactor expansion of that determinant along its first row. Vanishing means the rows are linearly dependent by Theorem "Singularity criterion", which for three vectors in means they lie in a common plane.∎
Remark. Theorem "Volume scaling" is the linear ancestor of the change-of-variables formula in multivariable calculus. A differentiable map is not linear, but near each point it is well approximated by its derivative matrix , so it scales tiny volumes near that point by . That determinant is called the Jacobian, and
is the precise statement. The determinant is the exchange rate between the two coordinate systems.
Intuition. Take the map with matrix . It stretches horizontally by and vertically by , so a tile becomes a tile and area multiplies by . Now shear it with , determinant : the tile leans far to the right but its area is unchanged, because the base and the height are unchanged. Composing the two multiplies areas by , which is multiplicativity seen with the eyes.
Example 4.52 (Area and orientation of a parallelogram). Find the area of the parallelogram spanned by and , and say whether is positively oriented.
Solution. Form the matrix with these rows and take its determinant:
The area is , and since the ordered pair is positively oriented: the turn from to is anticlockwise.
Sanity check by shearing, which preserves area by Theorem "Effect of the elementary row operations". Replace by , so the sheared parallelogram is spanned by and , and
unchanged. ✓□
Example 4.53 (Volume of a parallelepiped and a test for coplanarity). Find the volume of the parallelepiped spanned by , and .
Solution. Compute the determinant of the matrix with those rows, expanding along column where the entries are :
the second sign being . The minors are and , so the determinant is .
The volume is , so the three vectors are coplanar by Corollary "Cross products and triple products".
Sanity check by finding the dependence explicitly: . ✓□
Example 4.54 (Area of a triangle from a determinant). Find the area of the triangle with vertices , and .
Solution. Translate to the origin, which does not change the area. The edge vectors are
The parallelogram on and has area , and the triangle is half of it:
Sanity check with the bounding box: the vertices lie in the rectangle of area , and cutting the three corner right triangles off leaves . ✓□
Example 4.55 (A linear map's effect on a disc). The map with is applied to the unit disc. What is the area of the image, and is orientation preserved?
Solution. By Theorem "Volume scaling", the area multiplies by regardless of the shape of the region. Here
and the unit disc has area , so the image is an ellipse of area . Since , orientation is preserved.
Sanity check on the order of magnitude: maps and , vectors of lengths and at a modest angle, so an area factor around is plausible. ✓□
Pitfall. Area is , not . A determinant of describes a parallelogram of area traversed in the reversed sense. Reporting a negative area is the single most common error in this section, and reporting a positive orientation for a negative determinant is the second.
Remark. One more determinant is waiting in the next chapter. For a square matrix the function is a polynomial of degree in , called the characteristic polynomial, and by Theorem "Singularity criterion" its roots are exactly the scalars for which is singular — that is, the eigenvalues of . Everything proved here about determinants is what makes that polynomial computable and its coefficients meaningful: the constant term is , and the coefficient of is times the trace.
Summary (What the determinant is and what it computes). The determinant is the unique function of the rows of a square matrix that is multilinear, alternating and normalised by ; those three demands force the permutation formula , and Laplace expansion along any row or column is a consequence, not a definition. Row operations act predictably: a swap negates , scaling a row by multiplies it by , a replacement leaves it alone — so is computed by elimination to triangular form, where it is the product of the diagonal, at cost against the of blind expansion. Since , every row statement has a column twin. The central facts are is invertible, and , whence and , so the determinant belongs to an operator and not merely to a matrix; note , while obeys no such rule. The adjugate identity holds for every square and yields and Cramer's rule when . Geometrically is the volume of the box on the rows, for , and the sign records orientation: preserves it, reverses it, and orthogonal has .
- Using on a matrix, or Sarrus' diagonal rule on a one. The and shortcuts are special cases with no larger analogue; beyond you must expand or eliminate.
- Starting the cofactor alternation with no matter which row you expand along. The sign belongs to the position: , so expanding along row begins with .
- Writing . Each of the rows is scaled, so the correct factor is .
- Assuming . Multilinearity splits one row at a time, never the whole matrix.
- Forgetting the sign from a row swap, or the reciprocal factor from scaling a row, during elimination. Track the running factor in the margin.
- Taking the adjugate to be the cofactor matrix instead of its transpose. The entry of is , and a non-symmetric example will expose the error.
- Replacing a row instead of a column in Cramer's rule, or applying the rule at all when .
- Reporting a negative area or volume. The geometric quantity is ; the sign records orientation separately.
- Believing . The block product rule needs a zero block in the corner.
- Treating a small determinant as a reliable sign of near-singularity. Scaling a matrix by divides the determinant of a matrix by without changing its invertibility at all; the condition number, not the determinant, measures how close to singular a matrix is.