Loading…
Loading…
Transpose transfers determinant identities from rows to columns; cofactor cancellation then gives the adjoint formula and Cramer’s rule.
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.
Transpose transfers determinant identities from rows to columns. Column linearity then makes it possible to isolate one coefficient in a linear combination: replacing a column creates repeated columns in every unwanted term. This cancellation gives Cramer’s rule and connects it to the adjoint identity.
Throughout this note, matrices and scalars are real; whenever a determinant is written, the matrix is square.
Theorem
For every square matrix ,
Although the recursive definition uses the first row, transposition leaves its value unchanged.
Proof
If is singular, then is singular as well: transposing either inverse equation would turn an inverse for into an inverse for . Thus both determinants are zero. If is invertible, write
as a product of elementary matrices. A swap or nonzero scaling elementary matrix is unchanged by transposition. The transpose of an addition matrix is , which is another addition matrix with determinant one. Therefore for every factor, while
The determinant product rule gives . The matrix factors reverse order, but their determinant values are scalars, whose product may be reordered. This proof uses the factorization and row-operation results of 7.2. It supplies a derivation of the column expansion stated in 7.1 without using that column formula in the argument.
Theorem
For any fixed column of a square matrix , with , where is the minor determinant and is the cofactor,
Equivalently,
So you may expand along a row or along a column. The right choice is whichever one produces the cleanest minors.
To see why the column formula follows from the row formula, fix column . Write for the matrix obtained by deleting row and column . The entry becomes the entry in row of , and deleting that row and column gives
The two submatrices have the same determinant by transpose invariance. Therefore row- expansion of is
which equals . This is the promised column- expansion.
Worked example
Let
The third column has one zero, so expand along that column:
That gives
The same answer would come from row expansion, but the chosen column makes the arithmetic shorter.
Because transpose preserves determinant, every row-operation rule has a column version.
Theorem
Let be obtained from a square matrix by one elementary column operation.
These are the row rules applied to , followed by transpose invariance. The source and target columns in rule 3 must be different. The same transfer gives multilinearity in one column and the fact that two equal columns force a zero determinant. Those two properties will do the cancellation work in Cramer's rule.
Worked example
Consider
Apply the column operations and then , using the updated first column at each step:
After the first step, the second step gives
These are column-addition operations, so the determinant is unchanged. Expand along the first column:
The negative cofactor sign at position is essential. Choose row or column operations according to which creates useful zeros, and use the updated matrix at each step.
The cofactor of one entry helps in one expansion. The adjoint matrix collects all cofactors into one object.
Definition
For an matrix with , let denote the cofactor of , and first form the cofactor matrix
The adjoint matrix is the transpose of that cofactor matrix:
For the base case, define and . Then . The cofactor identity proof below handles .
Theorem
For every square matrix , including singular matrices,
If , then is invertible and
Proof
The following proof assumes ; the base case was defined above.
The entry of is
If , this is cofactor expansion along row , so it equals . If , form by replacing row of with row . The matrix has two equal rows, hence . Expanding along its replaced row uses exactly the cofactors from : deleting row removes the replacement. Therefore
The diagonal entries are and every off-diagonal entry is zero. When , divide by that scalar and use the square-matrix inverse criterion. The identity itself remains valid when is singular; only the inverse formula requires division.
Worked example
Let
The cofactor matrix is
so
Therefore
The familiar inverse formula is really the adjoint identity written in the case. Multiplication displays the cancellation:
The transpose in the adjoint is essential. If the untransposed cofactor matrix were used instead, the product would generally have entries , , , and , not a scalar on the diagonal with zero off-diagonal entries.
Theorem
Let satisfy , and let . For each , let be the matrix obtained by replacing the th column of with .
If is the unique solution of
then
Each coordinate is a determinant ratio, expressing its dependence on the coefficient matrix and the right-hand side.
Proof
Write the columns of as . Since , the system has a unique solution and
In , keep every column except column fixed and substitute this sum only into column . By linearity in that column,
When , the determinant has two equal columns, so that term is zero. The remaining term is . Hence
The order of the columns never changes, which is why no additional sign appears.
The visual below follows the determinant logic behind Cramer's rule: replace one column by the right-hand side vector, use column linearity, and watch repeated columns force the extra terms to vanish.
For , the established inverse formula gives a second, compatible reading of the same coordinate formula. Since , we have . Applying to and then substituting this identity gives
The numerator is exactly : expand down its replaced column . Deleting that column removes and leaves the same minor as in , so the cofactor attached to is . Thus the adjoint route and the fixed-column linearity route meet at the same signed sum. For , write and with ; directly, .
Worked example
Let
Expansion along the first row gives
The cofactor matrix is
Transposing it gives
Replacing columns one, two, and three by gives
Their first-row expansions are
Thus the solution is
Substitution gives , , and , so all three equations agree with .
The numerical data also provide an independent audit of the signs and of the adjoint route. Multiplying the displayed adjoint by gives
so the adjoint identity predicts , exactly the vector obtained from the three replacement determinants. For example, the first entry is ; the signs in the cofactor matrix are already included before this multiplication.
Worked example
Solve
Write
First compute
Replace the first column by :
Replace the second column by :
So
Substitution checks the result: and .
Common mistake
Cramer's rule requires a square coefficient matrix and a nonzero determinant. If the system is rectangular or singular, the rule is not available. Even when it applies, it is usually less efficient than Gaussian elimination for large systems.
Counterexample mode
Let , a nonzero singular matrix. With , the equations are , , and , so the solutions are . With , the second equation is , so the system is inconsistent.
Write the replacement column triples explicitly. For , , , and ; every determinant is zero because of a zero column or repeated columns. For , , , and ; every determinant is zero because each triple has a zero column, and has two zero columns. Thus all six formal ratios are and undefined. Require before using Cramer's rule. For a singular system, row-reduce the augmented matrix and inspect consistency and free variables.
Checkpoint
State the theorem directly.
No. .
Checkpoint
Think of the column analogue of a type-III row operation.
Adding a scalar multiple of one distinct source column to another target column leaves the determinant unchanged.
Checkpoint
Identify the structural hypotheses on A.
When the coefficient matrix is square and invertible, equivalently when its determinant is nonzero.
Checkpoint
Choose the column with the most zeros.
Expand along the second column:
Checkpoint
Compute the four cofactors first, then transpose the cofactor matrix.
The cofactors are , , , and . Hence
Checkpoint
You only need and .
Here
Then
So
Return to 7.2 Row operations, products, and invertibility if the row-operation bookkeeping is still shaky.
Keep 3.3 Transpose, symmetric, and skew-symmetric matrices nearby, because the transpose theorem here extends that earlier structural chapter.
For system language, connect this note back to 1.1 Equations and solution sets and 2.3 Gaussian elimination and RREF.