Tutorials › Linear Algebra › Tracking Several Row Operations At Once

Properties of Determinants · Tutorial 253 of 1000

Tracking Several Row Operations At Once

You will learn how to keep a determinant ledger through several row operations and use it to recover the determinant of the starting matrix.

Intermediate 9 min read

What You'll Learn

  • Assign the correct determinant factor to each elementary row operation.
  • Multiply the factors to track a complete sequence of operations.
  • Recover the original determinant from the final triangular matrix.
  • Recognize why the accumulated factor can always be divided out.
  • Detect and correct the common mistake of reversing the factor.

Why Track the Whole Sequence?

Row reduction can turn a complicated square matrix into an upper triangular matrix, whose determinant is the product of its diagonal entries. But the row operations used to get there may change the determinant. To find the determinant of the original matrix, keep track of those changes as they happen. The key is to record the total multiplier from the entire sequence, rather than trying to remember the effect of each operation at the end.

Throughout this tutorial, matrices are square matrices over \(\mathbb{R}\). Write \(\mathbf{A}_0\) for the starting matrix and \(\mathbf{A}_k\) for the matrix after the \(k\)th row operation. The determinant rules for elementary row operations are:

  • Swapping two rows multiplies the determinant by \(-1\).
  • Multiplying a row by a nonzero scalar \(c\) multiplies the determinant by \(c\).
  • Adding a multiple of one row to a different row leaves the determinant unchanged.

Thus, each operation has a factor: \(-1\) for a swap, \(c\) for scaling by \(c\), and \(1\) for adding a row multiple. The scaling factor must be nonzero because scaling by zero would replace a row by a zero row and would not be an elementary row operation.

Definition: For a sequence of elementary row operations with individual determinant factors \(f_1,\dots,f_m\), the total determinant multiplier is \(F=f_1f_2\cdots f_m\). Each factor is nonzero, so \(F\ne0\). If the sequence changes \(\mathbf{A}_0\) into \(\mathbf{A}_m\), then \(\det\mathbf{A}_m=F\det\mathbf{A}_0\).

The Tracking Rule

The total multiplier records the direction in which the operations were applied: it tells how the final determinant relates to the original determinant. To recover the original determinant, divide the final determinant by the total multiplier. The rule works whether the final matrix is triangular or not; triangular form is useful because it makes the final determinant quick to compute.

Theorem (Determinant tracking rule): Let \(\mathbf{A}_0\) be an \(n\times n\) real matrix, and let a sequence of \(m\) elementary row operations with factors \(f_1,\dots,f_m\) change it into \(\mathbf{A}_m\). Then $$ \det\mathbf{A}_m=(f_1f_2\cdots f_m)\det\mathbf{A}_0. $$ Consequently, \(\det\mathbf{A}_0=\det\mathbf{A}_m/(f_1f_2\cdots f_m)\).

Proof. For each \(k\) from \(1\) to \(m\), the determinant rule for the \(k\)th row operation gives \(\det\mathbf{A}_k=f_k\det\mathbf{A}_{k-1}\). Substituting the first relation into the second gives \(\det\mathbf{A}_2=f_2f_1\det\mathbf{A}_0\). Continuing this substitution through all \(m\) operations yields \(\det\mathbf{A}_m=f_mf_{m-1}\cdots f_1\det\mathbf{A}_0\). Real-number multiplication is commutative, so the factors can be written in the stated order. Each \(f_k\ne0\), hence their product is nonzero and division by it is valid. \(\square\)

When the final matrix is upper triangular, its determinant is the product of its diagonal entries. This formula follows from the permutation expansion of the determinant: a nonzero term must select, in row \(i\), a column numbered at least \(i\). Since each column is selected once, the only possible such selection is the diagonal. So a triangular reduction gives a direct route: multiply the diagonal entries, then divide by the tracked factor.

1
Start the ledger.
Set the running multiplier to \(1\), since no operations have yet been applied.
2
Update after every operation.
Multiply the running multiplier by \(-1\) for a swap, by \(c\) for scaling a row by \(c\), or by \(1\) for a row addition.
3
Compute the final determinant.
If the result is triangular, multiply its diagonal entries.
4
Recover the starting determinant.
Divide the final determinant by the running multiplier.

Worked Sequences

Worked Example: A Swap and Two Row Additions

Track the determinant of \(\mathbf{A}=\begin{bmatrix}0&2&1\\1&1&0\\2&3&1\end{bmatrix}\) by reducing it to triangular form.

First swap rows 1 and 2. The factor is \(-1\). Then use the new row 1 to eliminate the entry below its leading entry; this row addition has factor \(1\):

$$ \begin{bmatrix}0&2&1\\1&1&0\\2&3&1\end{bmatrix} \xrightarrow{R_1\leftrightarrow R_2} \begin{bmatrix}1&1&0\\0&2&1\\2&3&1\end{bmatrix} \xrightarrow{R_3\to R_3-2R_1} \begin{bmatrix}1&1&0\\0&2&1\\0&1&1\end{bmatrix}. $$

Next, subtract \(\tfrac12\) of row 2 from row 3. This is also a row addition, so its factor is \(1\):

$$ \begin{bmatrix}1&1&0\\0&2&1\\0&1&1\end{bmatrix} \xrightarrow{R_3\to R_3-\frac12R_2} \begin{bmatrix}1&1&0\\0&2&1\\0&0&\frac12\end{bmatrix}. $$

The total multiplier is \(F=(-1)(1)(1)=-1\). The final matrix is upper triangular, so its determinant is \(1\cdot2\cdot\tfrac12=1\). Therefore the original determinant is \(1/(-1)=-1\).

Check: Expanding the original determinant along its first row gives \(-2(1\cdot1-0\cdot2)+1(1\cdot3-1\cdot2)=-2+1=-1\), as tracked.

Worked Example: Including a Row Scaling

Find \(\det\mathbf{A}\) for \(\mathbf{A}=\begin{bmatrix}2&1&0\\4&3&1\\2&0&1\end{bmatrix}\), and include a row scaling in the reduction.

Apply two row additions to clear the first column below the leading entry, then add the new row 2 to row 3:

$$ \begin{bmatrix}2&1&0\\4&3&1\\2&0&1\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}2&1&0\\0&1&1\\2&0&1\end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix}2&1&0\\0&1&1\\0&-1&1\end{bmatrix} \xrightarrow{R_3\to R_3+R_2} \begin{bmatrix}2&1&0\\0&1&1\\0&0&2\end{bmatrix}. $$

Now scale row 2 by \(\tfrac12\). The result is still upper triangular, and this operation contributes a factor of \(\tfrac12\):

$$ \begin{bmatrix}2&1&0\\0&1&1\\0&0&2\end{bmatrix} \xrightarrow{R_2\to\frac12R_2} \begin{bmatrix}2&1&0\\0&\frac12&\frac12\\0&0&2\end{bmatrix}. $$

The three additions each contribute \(1\), and the scaling contributes \(\tfrac12\), so \(F=\tfrac12\). The final determinant is \(2\cdot\tfrac12\cdot2=2\). Hence \(\det\mathbf{A}=2/(\tfrac12)=4\).

Check: Expansion along the first row gives \(2(3\cdot1-1\cdot0)-1(4\cdot1-1\cdot2)=6-2=4\).

Worked Example: A Zero Determinant After a Swap

Track the determinant of \(\mathbf{A}=\begin{bmatrix}1&2&1\\2&4&2\\0&1&3\end{bmatrix}\) through a reduction that produces a zero row.

Replace row 2 by row 2 minus twice row 1. This operation has factor \(1\). Then swap rows 2 and 3, which contributes \(-1\):

$$ \begin{bmatrix}1&2&1\\2&4&2\\0&1&3\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}1&2&1\\0&0&0\\0&1&3\end{bmatrix} \xrightarrow{R_2\leftrightarrow R_3} \begin{bmatrix}1&2&1\\0&1&3\\0&0&0\end{bmatrix}. $$

The final upper triangular matrix has a zero diagonal entry, so its determinant is \(1\cdot1\cdot0=0\). The total multiplier is \(F=(1)(-1)=-1\). Recovering the original determinant gives \(0/(-1)=0\).

Check: Expansion along the first row of the original matrix gives \((4\cdot3-2\cdot1)-2(2\cdot3-2\cdot0)+(2\cdot1-4\cdot0)=10-12+2=0\).

Why the Factor Can Be Reversed

The tracking rule gives both directions of the relationship. The final determinant is the original determinant multiplied by \(F\); because \(F\ne0\), the original determinant is the final determinant divided by \(F\). This also explains why a sequence of valid elementary row operations cannot turn a nonzero determinant into zero or a zero determinant into a nonzero one.

Corollary: If \(\mathbf{A}_0\) is changed to \(\mathbf{A}_m\) by elementary row operations, then \(\det\mathbf{A}_0=0\) if and only if \(\det\mathbf{A}_m=0\).

Proof. By the tracking rule, \(\det\mathbf{A}_m=F\det\mathbf{A}_0\), where \(F\ne0\). If \(\det\mathbf{A}_0=0\), then \(F\det\mathbf{A}_0=0\), so \(\det\mathbf{A}_m=0\). Conversely, if \(\det\mathbf{A}_m=0\), then \(F\det\mathbf{A}_0=0\). Since \(F\ne0\), division by \(F\) gives \(\det\mathbf{A}_0=0\). \(\square\)

Common Mistake: Multiplying in the Wrong Direction

Suppose a reduction changes \(\mathbf{A}\) to a matrix \(\mathbf{U}\) with total multiplier \(F=\tfrac12\), and \(\det\mathbf{U}=2\). A tempting but wrong calculation is \(\det\mathbf{A}=(\tfrac12)(2)=1\). That applies the forward multiplier in reverse. The forward relationship is \(\det\mathbf{U}=(\tfrac12)\det\mathbf{A}\), so solving gives \(\det\mathbf{A}=2/(\tfrac12)=4\). In the second worked example, this corrected value is confirmed by direct expansion.

A useful way to avoid this error is to write the relationship before substituting numbers: \(\det(\text{final})=F\det(\text{original})\). Then isolate the quantity being asked for. Also keep the operation ledger beside the matrices: a swap contributes \(-1\), a scaling contributes its scale factor, and a row addition contributes \(1\). Do not assign a factor of \(1\) to a scaling merely because it helps simplify the entries; its factor is the scalar actually used.

Check Your Understanding

For each sequence, identify the total multiplier and use it to recover the starting determinant from the final one.

  1. A row swap, followed by two row additions, produces an upper triangular matrix with diagonal entries \(2,1,3\). What is the original determinant?
  2. Three row additions and then scaling row 2 by \(3\) produce a final determinant of \(-6\). What was the original determinant?
  3. A sequence contains two row swaps and a scaling of row 1 by \(-2\). What is the total multiplier, regardless of any row additions in the sequence?
  4. Explain why the original and final matrices in a sequence of elementary row operations either both have zero determinant or both have nonzero determinant.
  5. A reduction has total multiplier \(-1\) and final determinant \(5\). Write the equation relating the original and final determinants, then find the original determinant.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon