Loading…
Loading…
Track exactly how row operations change determinants, then connect that behavior to multiplicativity, inverse matrices, and invertibility tests.
Let be positive integers, let , , and . All the following arguments use the row-by-column definition and finite real sums. For any output position ,
The middle equality only reorders two finite sums and uses real distributivity. Both products are , so equality at every position proves associativity. No factor has changed its order.
For , the same definition gives
For , it gives
Thus both distributive laws hold with the displayed matching sizes. For every real scalar ,
proving by entrywise equality. In particular, for and real ,
This proves the matrix-vector linearity used when comparing solutions of the same linear system. All identities concern compatible finite real matrices; they do not assert commutativity or cancellation of arbitrary matrix factors.
Suppose an elementary row operation is meant to act on matrices with rows. Start with the identity matrix , apply the same elementary row operation to , and call the result . All scalars are taken from the underlying field of the matrices; in particular, every nonzero scaling factor has a reciprocal in that field.
Definition
The elementary row-operation matrix associated with an elementary row operation on -row matrices is the matrix obtained by applying to .
This matrix is also called an elementary matrix. The longer name keeps its connection with the specified row operation visible.
Equivalently,
The reason this definition is useful is the following theorem.
Theorem
Let be any matrix with rows. If is one elementary row operation and denotes the result of applying it to , then
So applying that elementary row operation to is the same as multiplying on the left by the elementary row-operation matrix obtained from the same operation on .
The multiplication must be on the left. Row operations change rows by mixing rows. Left multiplication forms new rows of as linear combinations of old rows of . Right multiplication would instead mix columns.
The dimensions make the same point. If is , then is , so is defined and remains . There is no assumption that is square. By contrast, a column-operation matrix acting on these same columns would have size and multiply on the right.
Proof
Write the rows of an arbitrary matrix as , and let denote row of . The basic identity
says that a row of a left multiplier selects the corresponding row of . Now check the three elementary operations.
For , the matrix has row equal to , row equal to , and every other row equal to . Thus the rows of are the rows of with precisely rows and exchanged.
For , where , row of is and all other rows are unchanged. Hence row of the product is
while row remains for .
For , where , row of is and every other row is unchanged. Therefore the new row is
exactly as prescribed.
These cases exhaust the elementary row operations, so they prove for every compatible . The proof does not claim that an arbitrary manipulation of rows has such an elementary matrix; must be one of the three operations just checked.
Suppose is represented by the augmented matrix . An elementary row operation must act on the full augmented matrix, not separately on whichever entries happen to be convenient. The multiplication identity is
Thus the coefficients and the right-hand side undergo the same combination of rows. A vector satisfies if and only if it satisfies : the forward implication follows by multiplying the equation by , and the reverse implication follows by applying the reverse elementary operation. This is the precise reason the solution set is preserved.
Changing only while leaving fixed, or changing only , generally produces a different system. The augmentation bar is therefore a visual separator, not a boundary at which a row operation may stop.
The real payoff is not just representing one elementary row operation. A whole sequence of elementary row operations becomes one product of elementary row-operation matrices.
Theorem
Suppose
Then
Here every is an elementary row operation on matrices with the same number of rows. The product represents the whole sequence, although the product itself need not be a single elementary row-operation matrix.
The order in this formula is important. The first row operation appears closest to , because it is applied first:
Worked example
Let
Apply
The corresponding row-operation matrices are
After both operations, the result is
Instead of multiplying directly, you can also obtain this combined matrix by applying the same two elementary row operations to in the same order. The final numerical matrix also confirms that the second operation uses the already-updated row .
Every elementary row operation has a reverse operation:
This gives a precise matrix statement.
Theorem
Every elementary row-operation matrix is invertible. Its inverse is the elementary row-operation matrix corresponding to the reverse elementary row operation.
Proof
Let represent an elementary row operation , and let represent the reverse elementary operation. For every matrix with rows, applying and then reversing it restores . By the left-multiplication theorem,
This statement holds for every such ; in particular, put to obtain . Reversing first and then applying similarly gives . Hence
Concretely, a swap is its own inverse, scaling by is undone by scaling by , and adding times row to row is undone by adding times row to row .
For example, if
performs , then
performs .
This is the algebraic reason elementary row operations are reversible, and it explains why row reduction is so closely connected to invertible matrices.
Proof
Let encode a chronological chain on matrices with rows, so its combined multiplier is . Each inverse represents the reverse of the corresponding elementary operation. To recover the input, the first move must undo , because that was the last change made to the rows. The remaining reverse moves undo in that order. Consequently the reverse multiplier is
There are two orders to distinguish: the time order of the reverse operations starts with , while the written product places that first action nearest the matrix being restored. For three steps, associativity gives
The other product cancels adjacent inverse pairs starting with and also equals . The same successive cancellation works for any finite chain. No factors have been commuted, and the argument does not require the matrix being transformed to be square.
Apply this reading to the earlier two-operation example. Its combined multiplier is , so its inverse is . Starting from the final matrix, first subtract twice the current second row from the first, recovering as the first row. Then subtract that recovered first row from the second, recovering . Reversing the chain means restoring the intermediate states, which explains the order without a memorized rule.
Let , , with positive finite integers . The permitted row operations are an exchange of two distinct rows, multiplication of a row by a nonzero scalar, and addition of a scalar multiple of one row to a different row. Their inverses are respectively the same exchange, multiplication by the reciprocal, and subtraction of that multiple. Applying an operation to the entire augmented array therefore preserves exactly the solutions of : the new equations are consequences of the old, and its inverse gives the reverse implication. Each operation is also multiplication on the left by the result of applying it to the identity matrix, an invertible elementary matrix.
Scan the coefficient columns from left to right, maintaining the next unused row. If the current column has a nonzero entry in an unused row, exchange that row into the next position, divide by its nonzero pivot, and subtract multiples of it from every other row to clear that column. Advance the unused-row index. If every unused entry in the column is zero, skip the column. Previously chosen pivot columns remain unit columns: the current unused rows have zeros in them, so the new pivot row and every subsequent subtraction preserve those zeros and earlier pivots. There are only column scans and at most pivots, each with finitely many row operations. Thus the algorithm terminates. At its end, the nonzero coefficient rows have increasing pivot columns and zeros below and above each pivot; any remaining coefficient row is zero. This proves the reduced echelon form used below, without assuming it will eventually appear.
Write for the number of pivots in the coefficient part. A zero coefficient row with a nonzero transformed right side is the impossible equation , so the system has no solution. Otherwise assign arbitrary real values to all nonpivot variables. In each pivot row, its pivot variable equals the transformed right side minus the displayed linear combination of these free variables; no other pivot variable occurs. These formulas both construct a solution and recover every solution. If the solution is unique. If , changing a free variable changes the vector, giving infinitely many solutions.
For the free variables can all be zero, giving the zero solution. If , set one free variable to one and the others to zero, and use the pivot formulas. This constructs a nonzero homogeneous solution. If , the formulas force every homogeneous variable to zero. For a consistent system, fixing one solution , subtraction proves that every solution has the form with , and substitution proves the converse.
For square , if every column has a pivot, the coefficient form is . The product of the finitely many elementary matrices satisfies . Since is invertible, and therefore also : is a two-sided inverse. If a pivot is missing, the nonzero homogeneous solution constructed above rules out any inverse. This also justifies applying the same row operations to to obtain in the invertible case.
Definition
Let be an matrix with . For indices , delete row and column simultaneously. The resulting matrix is the submatrix .
The minor belonging to is the scalar
The cofactor belonging to is the signed scalar
The signs form a checkerboard whose upper-left sign is positive:
The notation names a matrix, is a determinant of that matrix, and is that scalar after the sign has been attached. Keeping these three objects distinct prevents a common double-sign error.
Definition
For a matrix , define
For an matrix with , define its determinant by expansion along the first row:
This is a definition, not yet a theorem about other rows or columns. Each minor in the sum has size , so repeated use of the definition eventually reaches the base case. No determinant convention is needed: the submatrix and minor definitions are used only for .
Let be real , , with determinant defined by the one-by-one base case and first-row recursion. Let be the permutations of . Define the inversion number as the number of pairs with , and put .
Suppose and delete position and value , keeping the relative orders of the remaining positions and values; the resulting permutation is . If entries before position are smaller than , the inversions removed are . Consequently
Define . For , it is the recursive determinant. For , grouping by and using the sign identity gives . Induction therefore proves .
Now fix any row and group the same finite permutation sum by . Deletion is a bijection to all permutations of the corresponding minor, so
For a fixed column , each permutation has a unique position with . Grouping by that position gives
Both expansion formulas concern , so no empty determinant convention was introduced. This proves the general expansion theorem without assuming alternating row rules or the determinant product theorem.
Theorem
If every entry in one row or one column of a square matrix is zero, then its determinant is zero.
Theorem
For a square matrix of size , suppose all entries in row are zero except possibly . Then
The same formula holds when all entries in column are zero except possibly . The formula includes the case .
For , a matrix with a zero row is , whose determinant is by the base definition. For , expand along that row using the arbitrary-row theorem. Every term has a zero entry as its factor, so every term is zero and hence .
The zero-column statement can be proved directly by induction, which makes the inheritance of the zero column explicit. For , the only matrix with a zero column is , and its determinant is . Assume the statement for . Let be a matrix with zero column . Expand along the first row. The term from column is zero. In every other term, delete row and a column ; the original zero column survives as a zero column of the resulting submatrix (with its index shifted when ). By the induction hypothesis each such submatrix has determinant zero. Hence every term is zero, proving .
For the one-support theorem, the row case follows by expanding along row : all terms except the -term vanish. For the column case, expand along row . The -term remains. For each , the submatrix inherits a zero column from column of , so its determinant is zero by the zero-column result. Therefore only remains. This is the precise reason that a sparse row or column collapses the calculation to one minor.
Theorem
If is upper triangular or lower triangular, then
We prove the upper-triangular statement by induction on . For , it is the determinant definition. Suppose it holds for upper-triangular matrices, and let be upper triangular of size . Its last row has zero entries except possibly . Expanding along that last row gives
because the sign is . The retained submatrix is still upper triangular, with diagonal . By induction its determinant is , giving the required product through . For a lower-triangular matrix, expand along the first row, whose only possible nonzero entry is ; the retained submatrix is lower triangular with diagonal , and the same induction proves the result.
Theorem
Fix every row except row . If the new row is , then
For , the base definition gives
For , fix every row except row . Let matrices agree in all those fixed rows, and suppose their th rows satisfy . For each column , deleting row gives the same submatrix:
Expanding along row and using the entrywise relation gives
The equality works precisely because every other row is held fixed; changing two rows at once is a different statement.
Theorem
If a square matrix has two identical rows, then its determinant is .
Let have adjacent rows , and let be obtained by swapping those two physical rows. Expand along row . Expand along row , where the row has moved. For each column , the retained submatrix in the two expansions is the same matrix: deleting the position occupied by leaves the other row in the same order. However, the signs differ:
The entries and minors therefore match term by term with the opposite sign, so . Swapping rows in positions can be realised by adjacent swaps, an odd number, and hence also changes the sign.
If rows and of are identical, the matrix obtained by swapping them is still . The swap result then gives . Since the entries are real, this implies and therefore . This proof does not rely on a later row-replacement rule.
For each term, keep three objects visible: the selected entry, its submatrix after deleting one row and one column, and the minor obtained by taking that submatrix determinant. Write the checkerboard sign from the original row and column positions before evaluating the minor. When a minor is expanded again, its local indices guide the inner sign; they do not replace the outer sign.
The arbitrary-row and arbitrary-column theorem makes the choice of expansion line strategic. Choose a line with many zeros or simple surviving minors, and state that choice before calculating. A zero entry removes a branch immediately, whereas a zero minor must be established by its own calculation. The recursive first-row formula defines the determinant; arbitrary-line expansion is the theorem that permits this computational choice.
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.
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
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.
Definition
Work over the real numbers. Let be an matrix. An elementary row operation is one of the following, with the indicated row indices distinct when two rows occur:
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.
Theorem
For an matrix , with and whenever two row indices occur:
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
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
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.
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:
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 .
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
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 from the earlier notes 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.
Theorem
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
Theorem
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 example
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
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
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
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 mistake
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 .
Checkpoint
Use the row-scaling rule directly.
The determinant is multiplied by .
Checkpoint
Read the determinant of the echelon form and then use the nonzero ledger multiplier to return to the original matrix.
. The echelon determinant is zero, and the nonzero swap/scaling ledger factor cannot change that conclusion when it is cancelled.
Checkpoint
Use the equivalence theorem.
No. A square matrix is invertible exactly when its determinant is nonzero.
Checkpoint
Try to avoid row scaling so the bookkeeping stays short.
Subtract from , then subtract the new from :
Only row replacements were used, so .
Checkpoint
Use multiplicativity.
Checkpoint
Assume A is invertible.
Return to 7.1 Determinants and cofactor expansion if the basic definition still feels too symbolic.
Continue with 7.3 Transpose, column operations, and Cramer's rule to see the column viewpoint and the adjoint formula.
Keep 5.1 Invertible matrices in view, because this note upgrades that chapter with a determinant criterion.