JoeCMath

Choosing the Next Row Operation

Simple overview of identifying the next step in Gaussian Elimination to converted an augmented matrix into row echelon form.

Check the Two Conditions First

A matrix is in row echelon form when:

  1. Every all-zero row is below every nonzero row.
  2. Each pivot is farther right than the pivot in the row above it.

A pivot is the first nonzero entry in a nonzero row.

Consider

\[\left[ \begin{array}{ccc|c} 10 & 5 & 2 & 1 \\ 0 & 2 & 8 & 2 \\ 0 & 0 & 0 & 0 \end{array} \right]\]

Pass Condition 1: The all zero row is at the bottom of the matrix.

Pass Condition 2: The pivots, 10 in column 1, and 2 in column 2 satisfy the second condition. Mainly, the pivot in column 2 is to the right of the pivot in the row above it.

Watch this section: checking the pivot staircase at 0:25.

Move a Zero Row Out of the Way

Consider the following matrix

\[\left[ \begin{array}{ccc|c} 1 & 1 & 2 & 1 \\ 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 1 \end{array} \right]\]

What is the next move to move closer to row echelon form?

Well we have an all zero row in the middle of the matrix. This violates condition 1 so it makes sense to move that row to the bottom of the matrix.

We accomplish this through swapping the following rows

\[R_2\leftrightarrow R_3\]

which gives us

\[\left[ \begin{array}{ccc|c} 1 & 1 & 2 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{array} \right]\]

Now the zero row is at the bottom.

Watch this section: moving the zero row at 2:19.

Clear an Entry Below a Pivot

Consider this matrix

\[\left[ \begin{array}{ccc|c} 5 & 10 & 15 & 5 \\ 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 1 \end{array} \right]\]

What is the next move to move closer to row echelon form?

There is no all zero row so condition 1 is satisfied.

The pivot in row 2 is directly below the pivot in row 1, so we violate condition 2.

We need to find a row operation that will put a zero in the first position of row 2 (this will force the pivot in row 2 further to the right).

Consider

\[R_2-\frac{1}{5}R_1\longrightarrow R_2\]

The matrix becomes

\[\left[ \begin{array}{ccc|c} 5 & 10 & 15 & 5 \\ 0 & -1 & -2 & 0 \\ 0 & 1 & 1 & 1 \end{array} \right]\]

That fixes column 1. We’re closer to row echelon form but not done yet. We’ll revisit this one later.

Watch this section: eliminating the entry below the first pivot at 3:18.

Reorder Rows When the Pivots Run Backward

Conisder

\[\left[ \begin{array}{cccc|c} 0 & 0 & 0 & 1 & 1 \\ 0 & 0 & 1 & 1 & 1 \\ 0 & 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 1 & 1 \end{array} \right]\]

What is the next move to move closer to row echelon form?

This sort of is the reverse order of condition 2.

Instead of adding rows together to create zeros in pivot columns, consider swapping the following rows

\[R_1\leftrightarrow R_4, \qquad R_2\leftrightarrow R_3\]

The reordered matrix is

\[\left[ \begin{array}{cccc|c} 1 & 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 1 & 1 \\ 0 & 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 1 & 1 \end{array} \right]\]

By just swapping our rows we converted the matrix to row echelon form.

Watch this section: reordering the rows at 6:33.

Return to the Unfinished Column

We return to the earlier example

\[\left[ \begin{array}{ccc|c} 5 & 10 & 15 & 5 \\ 0 & -1 & -2 & 0 \\ 0 & 1 & 1 & 1 \end{array} \right]\]

What is the next move to move closer to row echelon form?

The pivot in row 3 is directly below the pivot in row 2 so we look to get a zero in the pivot position of row 2 by doing the following row operation

\[R_3+R_2\longrightarrow R_3\]

This produces

\[\left[ \begin{array}{ccc|c} 5 & 10 & 15 & 5 \\ 0 & -1 & -2 & 0 \\ 0 & 0 & -1 & 1 \end{array} \right]\]

This matrix satisfies both conditions and so it is in row echelon form.

Watch this section: adding rows to create the next zero at 8:58.

Find the First Broken Pivot in a Larger Matrix

Even with the following bigger example, we should be able to scan it to find what the next operation should be

\[\left[ \begin{array}{rrrrrr|r} 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 0 & 3 & 4 & 8 & 9 & -1 & 3 \\ 0 & 0 & 0 & 1 & 2 & 3 & 4 \\ 0 & 0 & 0 & 2 & 3 & 5 & 9 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{array} \right]\]

What is the next move to move closer to row echelon form?

The zero rows are already at the bottom (this satisfies condition 1).

Start at the top and compare pivots. The pivot in row 4 is directly below the pivot in row 3.

Use row 3 to clear it

\[R_4-2R_3\longrightarrow R_4\]

Replacing row 4 we get

\[\left[ \begin{array}{rrrrrr|r} 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 0 & 3 & 4 & 8 & 9 & -1 & 3 \\ 0 & 0 & 0 & 1 & 2 & 3 & 4 \\ 0 & 0 & 0 & 0 & -1 & -1 & 1\\ 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 \end{array} \right]\]

This matrix satisfies both conditions, and so it is in row echelon form.

Watch this section: choosing the next operation in the larger matrix at 10:50.

Timestamp Guide

Section What is shown Video
Row echelon conditions Review zero-row placement and the pivot staircase. 0:00
Pivot check Confirm that a completed matrix already has the right shape. 0:25
Zero row Swap rows to move an all-zero row to the bottom. 2:19
Entry below a pivot Clear the entry below the first pivot. 3:18
Reversed pivot order Reorder four rows so the pivots move right. 6:33
Next zero Add rows to separate two pivots in the same column. 8:58
Larger matrix Find and fix the first pivot-position problem. 10:50

Review the target shape in the Row Echelon Form companion.

For more practice with the allowed moves, use the Elementary Row Operations companion. When you’re ready to continue past row echelon form, work through the Gauss-Jordan Elimination companion.


More in Row echelon form