Prerequisites. Use the recursive determinant, multilinearity in one row, the swap rule and triangular determinants from 4.1 Determinants and cofactor expansion. Elementary factorization and the pivot test are proved without determinants in 2.3 Invertible matrices. The proof route below leads to their full arguments.
The previous note defined the determinant by cofactor expansion. That definition is fundamental, but expanding every large determinant is rarely the best calculation. Row reduction gives a second route: replace a matrix by a simpler one, record the exact determinant multiplier at every step, and read the final triangular determinant from its diagonal.
The row-operation multipliers lead to the following identities:
Every matrix in this note is square when a determinant is written. For a product, the factors have the same size, so that the product is again square.
Track how elimination changes the determinant
Row reduction changes entries, but the determinant does not respond to all changes in the same way. A row swap changes its sign; scaling one row multiplies it by the same scalar; adding a multiple of a distinct row leaves it unchanged.
Concept lensAlgorithmic
Read elimination as a determinant ledger
At each arrow, write the operation and its determinant multiplier beside the matrix. The three entries are , , and for a swap, a nonzero scaling, and a row replacement respectively. The diagonal product belongs to the final triangular matrix; the ledger tells you how to transfer that value back to the starting matrix.
Reversible operations and their matrices
Definition 4.2.1
(Elementary row operations and elementary matrices)
Work over the real numbers and fix . An elementary row operation is one of the following, with the indicated row indices distinct when two rows occur:
- : interchange rows and ;
- , where ;
- .
The corresponding elementary matrix is obtained by applying that operation to . Left multiplication gives the same operation on every matrix : the transformed matrix is . The restriction is essential for an elementary operation because it makes the operation reversible.
The determinant scaling rule itself still holds for : a zero row gives determinant zero. However, zero scaling is not reversible and therefore is not an elementary factor in a product that is being undone. Keeping these two facts separate prevents a zero factor from being cancelled later.
The multiplier for each row operation
Theorem 4.2.2
(The three row-operation determinant rules)
For an matrix , with and whenever two row indices occur:
- If results from by , then .
- If results from by , then , including the identity at .
- If results from by with , then .
The first rule is the alternating property of the determinant. For the second, hold every row except row fixed and use linearity in that row. If is replaced by , the determinant is multiplied by .
For a replacement, the row indices must be distinct. If , the new row is , so the determinant is multiplied by .
Proof
(Derive the row-replacement rule from multilinearity)
Write the rows of as , and let be obtained by replacing row by , where . Construct by replacing row of by . The th row of is
All other rows of , , and agree. Therefore multilinearity in row gives
Rows and of are identical, so the alternating property gives . Hence . This proof also shows exactly which distinct-row assumption makes the extra term vanish.
Theorem 4.2.3
(The mixed-operation ledger)
Suppose a sequence of elementary operations changes into . If the sequence contains swaps and scales rows by nonzero factors , then
Consequently,
Row replacements do not appear in the product because their multiplier is .
If is a square row-echelon matrix, it is upper triangular and is the product of its diagonal entries. A zero row makes this product zero, so the ledger immediately gives because its denominator contains only nonzero factors. If this row-echelon matrix has no zero row, each of its diagonal positions is a pivot, so the diagonal product is nonzero. An arbitrary upper triangular matrix need not have this property: for example, is upper triangular but has zero determinant. The row-echelon qualification is therefore essential.
A disciplined row-reduction algorithm
Before starting, write the matrix size and mark the roles of the rows. At each stage, use only a legal elementary operation: the two row indices in a swap or replacement must be distinct, and every scaling factor recorded in the ledger must be nonzero. Then follow this sequence:
- Reduce the entries below each pivot, using row replacements whenever they suffice. Record a swap immediately when a pivot must be moved.
- If a pivot row is normalized, record its factor with its sign and position in the sequence. The final diagonal product belongs to the scaled matrix, so this factor will be divided out.
- Stop at an upper triangular matrix. If a zero row appears, stop there: no later division by a supposed pivot is justified, and the determinant is already certified to be zero.
- Multiply the diagonal entries of the final triangular matrix. Finally apply , rather than trying to remember the corrections mentally.
This algorithm permits different valid elimination choices. Two reduction paths may produce different triangular matrices and different intermediate pivots, but their ledgers must return the same determinant. That agreement is a useful check on arithmetic, while the theorem explains why it is guaranteed. The same discipline also applies to an augmented matrix: when solving , an elementary operation acts on as a whole, whereas determinant bookkeeping concerns the square coefficient matrix .
From elementary factors to a product theorem
For one elementary operation, let be its matrix. When is also square of the same size, is square. Since is the result of applying the operation to , the row rules say is respectively , , or . Applying the same rule to gives
If is a sequence, induction on the number of factors gives
The premise used next is the square-matrix pivot and elementary-factor equivalence. Its proof obtains full pivots from the absence of nonzero homogeneous solutions, then reverses the elementary reduction chain. It uses no determinant criterion, so the following argument does not assume the theorem it is proving.
Now suppose is invertible. The earlier row-reduction theorem supplies a factorization . Applying the last formula first to and then to yields
Thus in the invertible case.
For the singular case, row-reduce to an echelon form . The invertibility dictionary established earlier says that a singular square matrix has a zero row in . Let and set . Every factor is nonzero because every operation is reversible. The zero row of remains a zero row in , so
Since , cancellation gives and . The equality again follows, now with both sides zero.
The notation also records the order of operations. The rightmost factor acts first, then , and so on. No commutativity of matrices is being used in this argument. The factors are all , while is an matrix, so each intermediate product is defined. This dimensional condition is part of the theorem, not a cosmetic convention.
Proof X-ray
Reduce to one elementary factor, then split the cases
The main determinant fact the proof needs is the one-factor identity , which is just a row rule read as a matrix product. Everything else is bookkeeping by induction. The real move is the split on : an invertible is itself a product of elementary matrices, while a singular reduces to a zero row that survives multiplication by on the right. Reversibility of every operation makes the multiplier nonzero, and that is what permits cancellation. Nothing about is assumed in either case.
Theorem 4.2.4
(Determinant of a product)
If and are square matrices of the same size, then
This statement was proved by the two cases above. It is stronger than a calculation trick: although and can be different matrices, scalar multiplication commutes, so
Counterexample mode
Without square factors the two orders disagree
One might expect whenever both products are square. Take and . Then has determinant , while is the diagonal matrix with entries , whose determinant is . Here and are not even defined. The equality is guaranteed only when and are square of the same size.
Determinant and invertibility
Theorem 4.2.5
(Determinant criterion for invertibility)
For a square matrix ,
The proof of the product theorem already establishes both directions: an invertible matrix factors into elementary matrices with nonzero determinants, while a singular matrix reduces to an echelon matrix with a zero row. The nonzero reduction multiplier transfers that zero determinant to the original matrix.
Worked examples
Worked example 4.2.6
(Row replacement only: no determinant factor accumulates)
Let
Use replacements in the stated order:
Each operation adds a multiple of one distinct row to another, so each ledger entry is . The final matrix is upper triangular. Therefore
The order matters for producing the displayed states: the second replacement uses the already updated row . It changes no determinant factor.
Worked example 4.2.7
(Swap, scaling, and replacement in one ledger)
Let
Continue all the way to the identity:
The three multipliers are , , and . Hence
The triangular intermediate matrix has determinant , which is consistent with the first line . The final replacement removes the remaining off-diagonal entry while preserving the already corrected determinant value of the scaled matrix.
Worked example 4.2.8
(A parameter value, a minor calculation, and a kernel check)
Let
Expanding along the first column, with the cofactor sign at position equal to , gives
For the first minor, expand along its second row. Only the third entry can be nonzero, and its cofactor sign is :
For the second minor, expand along its first row:
Consequently
so is singular exactly when . At that value, direct row equations give a nonzero kernel vector:
This verifies singularity independently. For every other , the determinant is nonzero, so the determinant criterion says the homogeneous system has only the zero solution.
Theorem 4.2.9
(Inverse determinants and integral powers)
If is invertible, then
For every positive integer and every square ,
If is invertible, the same identity holds for every integer , including negative .
Indeed, and multiplicativity give . Positive powers follow by finite repeated application of the product theorem. We define for every square matrix, including singular matrices. When is singular, this says ; we do not assert the scalar expression , since that would invite the undefined case . For negative , is defined only when is invertible, and the result follows from and the inverse formula.
Common mistakes
Common mistake
(Apply row operations to the entire augmented matrix)
Row operations preserve the solution set only when they are applied to the entire augmented matrix , including the right-hand side. It is not a valid unqualified statement that row-equivalent coefficient matrices have the same solution set. For example, is represented by , whereas is represented by ; changing the coefficient from to while keeping the right-hand side fixed changes the solution. For a homogeneous system, the augmented column is zero and remains zero, which is why row operations on alone are harmless in that special setting.
Other frequent errors are forgetting that a scaling factor must be divided out, counting a swap only once when it occurs twice in different stages, and using as though it were a determinant-preserving row replacement. The last operation is actually scaling by .
Exercises
Quick check
(If one row of is multiplied by , what happens to ?)
Use the row-scaling rule directly.
Solution · Answer
The determinant is multiplied by .
Quick check
(If has a zero row after row reduction, what can you conclude about ?)
Read the determinant of the echelon form and then use the nonzero ledger multiplier to return to the original matrix.
Solution · Answer
. The echelon determinant is zero, and the nonzero swap/scaling ledger factor cannot change that conclusion when it is cancelled.
Quick check
(Can a square matrix with determinant be invertible?)
Use the equivalence theorem.
Solution · Answer
No. A square matrix is invertible exactly when its determinant is nonzero.
Quick check
(Use row reduction to compute .)
Try to avoid row scaling so the bookkeeping stays short.
Solution · Guided solution
Subtract from , then subtract the new from :
Only row replacements were used, so .
Quick check
(Suppose and for two matrices. What is ?)
Use multiplicativity.
Solution · Guided solution
Quick check
(If , what is ?)
Assume is invertible.
Solution · Guided solution
Related notes
Return to 4.1 Determinants and cofactor expansion if the basic definition still feels too symbolic.
Continue with 4.3 Transpose, column operations, and Cramer's rule to see the column viewpoint and the adjoint formula.
Keep 2.3 Invertible matrices in view, because this note upgrades that chapter with a determinant criterion.
Prerequisite proofs and a factor-order check
Compatible products
For positive finite dimensions, the row-by-column definition proves associativity, distributivity and matrix-vector linearity by rearranging finite real sums. See the matrix-product foundations. Keep factor order and compatible dimensions throughout.
Elementary matrices and reversal
For a reversible operation on rows, acts on the left, also on the complete augmented array. A chronological chain has multiplier ; its two-sided inverse is . The three cases and both inverse products are proved in the elementary-matrix foundations.
Finite elimination
Left-to-right coefficient-column scanning gives at most pivots; every stage uses finitely many reversible row operations. The full invariant and termination argument is in the finite-elimination foundations.
Pivots and homogeneous solutions
A missing pivot of a square matrix constructs a nonzero homogeneous solution; full pivots give with invertible, hence a two-sided inverse. See the free-variable construction and pivot equivalence, which do not use determinants. This is the premise used by the product proof, rather than its conclusion.
Recursive determinants and arbitrary expansion
For , is the deleted submatrix, is its minor, and is its cofactor. The base case is . See the recursive definition and the full arbitrary-row/column expansion proof.
Structural determinant rules
The zero-row/column, one-support, triangular, fixed-row multilinearity, swap and repeated-row proofs are in 4.1, “Why the structural rules follow”. Their hypotheses are real square matrices; the repeated-row step uses over the reals. The entry, its deleted submatrix, its minor and its cofactor sign must remain distinct.