Tutorials › Linear Algebra › Choosing Pivot Positions During Reduction

Row Reduction and Echelon Forms · Tutorial 37 of 1000

Choosing Pivot Positions During Reduction

Practise choosing nonzero pivots and reducing without introducing unnecessary fractions.

Beginner 9 min read

What You'll Learn

  • Identify the active rows and columns when searching for a pivot
  • Swap rows to place a nonzero entry in the pivot position
  • Skip a column when every available entry in it is zero
  • Eliminate entries below a pivot using exact row operations
  • Use fraction-free elimination when it simplifies hand calculations
  • Recognize why a pivot row must not be used as its own target row

Choosing a Pivot Without Creating Extra Work

In row reduction, a pivot is a nonzero entry used to organize a row and eliminate entries in its column. The arithmetic can depend substantially on which available entry is chosen. A zero entry cannot serve as a pivot, and dividing by a pivot that is an awkward fraction may create avoidable work. Choosing a convenient nonzero entry, often by swapping rows, keeps the reduction valid while making the calculations easier to follow.

At any stage, some rows have already been used to establish pivots. The rows not yet used are the active rows. When searching for a pivot in a particular column, examine only its entries in the active rows. If an active entry is nonzero, it can be placed in the next pivot row by a row swap. If all active entries in that column are zero, there is no pivot to use there, so the search moves to a later column. Row swaps, nonzero row scalings, and row replacements are elementary row operations; each is reversible, so applying one does not change the solution set of a linear system.

Definition: At a given stage of reduction, a candidate pivot is a nonzero entry in the current column and an active row. The pivot position is the position in the next pivot row and the chosen column after any needed row swap. Entries in other active rows in that column can then be eliminated using the pivot.

Once a candidate is chosen, there is no requirement to select the first nonzero entry from the top. Any available nonzero entry works mathematically. For hand calculations, prefer one that makes the elimination simple: a pivot of \(1\) avoids division when eliminating, while a pivot that divides the other entries in its column can also keep the arithmetic integral. If several candidates are equally convenient, choosing the topmost one avoids a swap.

The Local Rule for a Valid Pivot

Theorem: Suppose the next pivot row is row \(r\), and the current column is column \(j\). If some active entry \(a_{kj}\) with \(k\ge r\) is nonzero, swap row \(k\) with row \(r\). The resulting pivot \(p=a_{rj}\) is nonzero. For each row \(i>r\), the replacement \(R_i\to R_i-(a_{ij}/p)R_r\) makes the entry in column \(j\) of row \(i\) zero and preserves the solution set. If every active entry in column \(j\) is zero, that column has no available pivot at this stage.

Proof. Assume first that \(a_{kj}\ne0\) for some \(k\ge r\). If \(k\ne r\), swapping rows \(k\) and \(r\) places that nonzero entry in row \(r\); if \(k=r\), no swap is needed. Thus \(p=a_{rj}\ne0\). For an active row \(i>r\), write \(a=a_{ij}\). The specified replacement changes its entry in column \(j\) to \(a-(a/p)p=0\). Since \(p\ne0\), the replacement is a row replacement by a multiple of another row, which is reversible by adding that same multiple back. The swap, when used, is reversible as well. Therefore these operations preserve the solution set. In the other case, every entry \(a_{ij}\) with \(i\ge r\) is zero by assumption, so none of those entries can be selected as a nonzero pivot. \(\square\)

The theorem concerns one step of a reduction; repeating such steps places pivots in successive rows and clears entries below them. In a system written as an augmented matrix, row operations apply to the entire row, including the right-hand side. A pivot should therefore be selected from the coefficient columns, not from the augmented column. The focus here is the practical choice of pivot and the arithmetic of elimination, rather than interpreting the resulting solution set.

Worked Example: Swapping a Zero Candidate Pivot

Reduce the augmented matrix below far enough to find its solution. The entry in the first row and first column is zero, so it cannot be the first pivot.

$$ \begin{bmatrix} 0&2&1&5\\ 1&1&1&4\\ 2&3&1&9 \end{bmatrix} \sim \begin{bmatrix} 1&1&1&4\\ 0&2&1&5\\ 2&3&1&9 \end{bmatrix} \quad (R_1\leftrightarrow R_2). $$

The first column now has pivot \(1\). Subtract twice row 1 from row 3. Then swap rows 2 and 3 to use the convenient pivot \(1\) in column 2:

$$ \begin{bmatrix} 1&1&1&4\\ 0&2&1&5\\ 2&3&1&9 \end{bmatrix} \sim \begin{bmatrix} 1&1&1&4\\ 0&2&1&5\\ 0&1&-1&1 \end{bmatrix} \sim \begin{bmatrix} 1&1&1&4\\ 0&1&-1&1\\ 0&2&1&5 \end{bmatrix}. $$

For the first change, row 3 becomes \((2-2,\;3-2,\;1-2,\;9-8)=(0,1,-1,1)\). Now eliminate the entry \(2\) beneath the second pivot:

$$ \begin{bmatrix} 1&1&1&4\\ 0&1&-1&1\\ 0&2&1&5 \end{bmatrix} \sim \begin{bmatrix} 1&1&1&4\\ 0&1&-1&1\\ 0&0&3&3 \end{bmatrix} \quad (R_3\to R_3-2R_2). $$

Back substitution gives \(3z=3\), so \(z=1\); then \(y-z=1\), so \(y=2\); and \(x+y+z=4\), so \(x=1\). Check: substituting \((x,y,z)=(1,2,1)\) into the original equations gives \(2(2)+1=5\), \(1+2+1=4\), and \(2(1)+3(2)+1=9\), as required.

Keeping Elimination Fraction-Free

The usual elimination step \(R_i\to R_i-(a/p)R_r\) uses the fraction \(a/p\) when the pivot is \(p\) and the target entry is \(a\). That is often the clearest choice, especially when the quotient is simple. If it is awkward, there is another valid option: multiply the target row by \(p\), then subtract \(a\) times the pivot row. This replaces the target row by \(pR_i-aR_r\), whose entry in the pivot column is zero. The target row is scaled by a nonzero number, so this alternative can leave larger entries even as it avoids fractions. It is a choice for convenience, not a requirement.

Proposition: Let row \(k\) contain a nonzero pivot \(p\) in a chosen column, and let a different row \(i\) have entry \(a\) in that column. If \(i\ne k\), the replacement \(R_i\to pR_i-aR_k\) is a reversible sequence of elementary row operations and makes the entry in row \(i\) of that column zero.

Proof. The hypothesis \(i\ne k\) ensures that changing row \(i\) does not change the pivot row \(k\). First scale row \(i\) by \(p\), which is allowed because \(p\ne0\). Then add \(-a\) times row \(k\) to row \(i\). The resulting row is \(pR_i-aR_k\), using the original rows on the right. In the chosen column its entry is \(pa-ap=0\). Both operations are reversible: undo the row addition, then scale by \(1/p\). Thus the replacement is valid and preserves the solution set. \(\square\)

After a fraction-free step, it may be useful to divide a row by a common nonzero factor before continuing. This is another reversible row scaling. Compare the sizes of the numbers and the likely next steps rather than trying to avoid every division at any cost.

Worked Example: Elimination Without an Early Fraction

Consider the augmented matrix with variables \(x,y,z\). The first pivot is \(2\), while the entries below it are \(4\) and \(6\). The fractions \(4/2\) and \(6/2\) happen to be simple, but the fraction-free replacement illustrates the alternative.

$$ \begin{bmatrix} 2&1&1&5\\ 4&3&2&12\\ 6&5&4&20 \end{bmatrix}. $$

Using row 1 as the pivot row, replace row 2 by \(2R_2-4R_1\), and row 3 by \(2R_3-6R_1\). Each target is a different row from the pivot row:

$$ \begin{bmatrix} 2&1&1&5\\ 4&3&2&12\\ 6&5&4&20 \end{bmatrix} \sim \begin{bmatrix} 2&1&1&5\\ 0&2&0&4\\ 0&4&2&10 \end{bmatrix}. $$

For row 2, the calculation is \((8-8,\;6-4,\;4-4,\;24-20)=(0,2,0,4)\). For row 3, it is \((12-12,\;10-6,\;8-6,\;40-30)=(0,4,2,10)\). Divide row 2 by \(2\), then eliminate the \(4\) beneath its pivot:

$$ \begin{bmatrix} 2&1&1&5\\ 0&2&0&4\\ 0&4&2&10 \end{bmatrix} \sim \begin{bmatrix} 2&1&1&5\\ 0&1&0&2\\ 0&4&2&10 \end{bmatrix} \sim \begin{bmatrix} 2&1&1&5\\ 0&1&0&2\\ 0&0&2&2 \end{bmatrix}. $$

Divide row 3 by \(2\), then eliminate above the third pivot and the second pivot. Finally scale row 1 to make its leading entry \(1\):

$$ \begin{bmatrix} 2&1&1&5\\ 0&1&0&2\\ 0&0&2&2 \end{bmatrix} \sim \begin{bmatrix} 2&1&1&5\\ 0&1&0&2\\ 0&0&1&1 \end{bmatrix} \sim \begin{bmatrix} 2&1&0&4\\ 0&1&0&2\\ 0&0&1&1 \end{bmatrix} \sim \begin{bmatrix} 2&0&0&2\\ 0&1&0&2\\ 0&0&1&1 \end{bmatrix} \sim \begin{bmatrix} 1&0&0&1\\ 0&1&0&2\\ 0&0&1&1 \end{bmatrix}. $$

The reduced equations give \((x,y,z)=(1,2,1)\). Check: in the original equations, \(2(1)+2+1=5\), \(4(1)+3(2)+2(1)=12\), and \(6(1)+5(2)+4(1)=20\). The solution satisfies all three equations.

When a Column Has No Available Pivot

A column may contain nonzero entries in rows already used for pivots but only zeros in the active rows. Those upper entries do not create a new pivot at the current stage. Do not divide by zero, and do not try to swap a zero active entry into the pivot row. Move to the next column and continue looking among the active rows. The skipped column simply has no pivot position in this reduction.

Worked Example: Skipping a Zero Active Column

Reduce the matrix below. After using the first column, the second column has only zeros in the remaining active rows.

$$ \begin{bmatrix} 1&0&2\\ 2&0&4\\ 1&0&1 \end{bmatrix} \sim \begin{bmatrix} 1&0&2\\ 0&0&0\\ 0&0&-1 \end{bmatrix} \quad \left( R_2\to R_2-2R_1,\; R_3\to R_3-R_1 \right). $$

The second row is \((2-2,\;0-0,\;4-4)=(0,0,0)\), and the third is \((1-1,\;0-0,\;1-2)=(0,0,-1)\). Swap rows 2 and 3, scale row 2 by \(-1\), then clear the entry above its pivot:

$$ \begin{bmatrix} 1&0&2\\ 0&0&0\\ 0&0&-1 \end{bmatrix} \sim \begin{bmatrix} 1&0&2\\ 0&0&-1\\ 0&0&0 \end{bmatrix} \sim \begin{bmatrix} 1&0&2\\ 0&0&1\\ 0&0&0 \end{bmatrix} \sim \begin{bmatrix} 1&0&0\\ 0&0&1\\ 0&0&0 \end{bmatrix}. $$

The pivots are in columns 1 and 3; column 2 was skipped because its active entries were zero. Check: reverse the last three operations to recover the intermediate matrix, then reverse the initial replacements by adding \(2R_1\) to row 2 and \(R_1\) to row 3. This recovers the original matrix, confirming that the displayed reduction uses reversible row operations throughout.

Common Mistakes and Practical Checks

Dividing by a zero candidate is invalid. For example, starting with the first row of \(\begin{bmatrix}0&1&2\\1&1&3\end{bmatrix}\) and attempting to scale that row by \(1/0\) is not a row operation. The correction is to swap the two rows first, placing the nonzero entry in the first column of the pivot row, and only then scale if scaling is useful.

Do not use the pivot row as its own target. The fraction-free replacement \(R_i\to pR_i-aR_k\) requires \(i\ne k\). For instance, if row \(k\) has pivot \(p=3\), using that same row as the target gives \(a=3\) and the proposed expression \(3R_k-3R_k=\mathbf{0}\). Replacing a nonzero row by a zero row is not reversible and is not a valid elementary row operation. To eliminate an entry, use a different target row; the pivot row itself is left unchanged.

Before proceeding to the next pivot, check that the chosen pivot is nonzero, that the target rows are different from the pivot row, and that each eliminated entry is actually zero after the operation. In exact hand calculations, recording the row operation beside each matrix makes these checks easier and helps locate arithmetic errors.

Check Your Understanding

For each question, identify the available pivot rows and state the row operation you would use before carrying it out.

  1. In column 1 of \(\begin{bmatrix}0&2\\3&1\end{bmatrix}\), which row can supply the first pivot, and what swap is needed?
  2. A pivot is \(4\), and a different active row has entry \(6\) in its column. Write both the usual elimination replacement and a fraction-free replacement.
  3. Why is \(R_k\to pR_k-aR_k\) not a valid fraction-free elimination step when \(a=p\ne0\)?
  4. After a pivot has been placed, every remaining active entry in the current column is zero. What should the reduction do next?
  5. Explain why a row swap cannot make a zero active entry into a nonzero pivot.

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