From Echelon Form to Reduced Echelon Form
Forward elimination creates an echelon form by finding pivots and clearing entries below them. That form is enough for back substitution, but Gauss-Jordan elimination continues: each pivot is made equal to \(1\), and every other entry in its column—including entries above the pivot—is made \(0\). The result is reduced row echelon form (RREF), where the pivot columns are as simple as possible.
We work with augmented matrices for linear systems over \(\mathbb{R}\). Each row operation is applied to the entire row, including the augmented column. This matters because changing only the coefficient entries but not the right-hand side would change the system. As established in the earlier material on row operations, each elementary row operation preserves the solution set of a system.
For a system with \(n\) variables, its augmented matrix has \(n+1\) columns. In Gauss-Jordan elimination, the last column is part of the matrix being reduced. Therefore, if the coefficient columns have no available pivot but the augmented column still has a nonzero entry, that column can also have a pivot in the RREF of the full augmented matrix.
The Gauss-Jordan Procedure
The procedure builds pivot rows from top to bottom. In each step, it searches the remaining rows for a nonzero entry in the current column. If one exists, that entry is moved into the next pivot row, scaled to \(1\), and used to clear the rest of its column. If there is no such entry, the procedure moves to the next column. The choice among available nonzero entries is not important for correctness; the next tutorial studies pivot choices in more detail.
Begin with the first row. Keep track of the next column to inspect, starting at the first column.
Look in the current pivot row and the rows below it. If all entries there are zero, leave that column without a pivot and inspect the next column. If a nonzero entry exists, swap its row with the current pivot row.
Divide the entire pivot row by its pivot entry, so the pivot becomes \(1\).
Use row replacements to make every other entry in that column \(0\), both below and above the pivot.
Move to the next row and a column to the right. Stop when every column has been inspected or there is no remaining row for a pivot.
In an operation such as \(R_2\to R_2-3R_1\), the entire second row is replaced, not only the entry being cleared. Writing the intermediate matrices is a useful safeguard: it makes each arithmetic change visible and helps catch sign errors before they spread to later steps.
Proof. A row swap \(R_i\leftrightarrow R_j\) is undone by swapping the same rows again. Multiplying a row by a nonzero scalar \(c\) is undone by multiplying it by \(1/c\). Replacing \(R_i\) by \(R_i+cR_j\), with \(i\ne j\), is undone by replacing the new \(R_i\) by \(R_i-cR_j\), since row \(R_j\) was not changed. Thus each operation is reversible, and reversing a finite sequence in reverse order undoes the whole sequence. By the definition of row equivalence, the original and resulting matrices are row-equivalent. \(\square\)
Why the Procedure Produces RREF
Proof. Let the matrix have \(m\) rows and \(q\) columns. Each successful pivot step uses one row and one column, and the next pivot is sought in a row below the previous pivot row and in a column to its right. There can be at most \(\min(m,q)\) successful steps. Every unsuccessful search advances to a new column, and there are only \(q\) columns. Therefore the process terminates.
Each step is an elementary row operation, so the resulting matrix is row-equivalent to the initial matrix by the proposition. For an augmented matrix, the earlier result on why row operations preserve solutions applies to every step; hence the solution set is unchanged.
It remains to check the form of the result. Every pivot is scaled to \(1\). The procedure clears all other entries in its column, above as well as below. Later pivot rows lie below earlier ones and have zeros in earlier pivot columns: those entries were already cleared when the earlier pivots were processed. Swapping rows while searching for a later pivot only swaps rows below the previous pivot row, so it does not disturb the earlier pivot rows. Each new pivot is in a column to the right of the preceding pivot. Finally, if any rows remain after all columns have been inspected, those rows have no nonzero entry in any column, so they are zero rows at the bottom. These are precisely the conditions for RREF. \(\square\)
Worked Reductions of Augmented Matrices
Worked Example: A Two-Equation System
Reduce the augmented matrix for \(2x+y=5\) and \(x-y=1\) to RREF.
Swap the rows so the first pivot is already \(1\), then clear the entry below it:
Scale the second row by \(1/3\). Then add that row to the first row to clear the entry above the second pivot:
The pivots are \(1\)s, and each is the only nonzero entry in its column, so the final matrix is in RREF. It represents \(x=2\) and \(y=1\). Check: \(2(2)+1=5\), and \(2-1=1\), as in the original equations.
Worked Example: A Pivot After a Skipped Column
Reduce the augmented matrix for \(x+2y-z=3\) and \(2x+4y+z=8\). The second column will not contain the next pivot, so this example shows why a pivot need not occur in every column.
Clear the entry below the first pivot, then scale the nonzero entry in the third column to \(1\):
There is no nonzero entry below the first pivot in column two, so column two is skipped. The next pivot is in column three. Add row two to row one to clear the \(-1\) above that pivot:
This is RREF: columns one and three are pivot columns, and the second column is not. Writing \(y=t\), the reduced equations give \(x=\frac{11}{3}-2t\) and \(z=\frac23\). Check: in the original first equation, \(\frac{11}{3}-2t+2t-\frac23=3\). In the second, \(2(\frac{11}{3}-2t)+4t+\frac23=8\). Thus the parameterized values satisfy both original equations.
Worked Example: A Pivot in the Augmented Column
Reduce the augmented matrix for \(x+y=2\), \(2x+2y=5\), and \(y=1\). Continue through the final, augmented column as well as the coefficient columns.
First clear below the pivot in column one. Then swap the second and third rows to place a nonzero entry in the next pivot position, column two:
Clear column two above its pivot. The only remaining pivot is then in the augmented column, in the third row. Clear the entries above that pivot:
The final matrix is RREF for the full augmented matrix. Its last row represents \(0=1\), so it records the contradiction already present in the original equations. Check: the first two original equations require \(2(x+y)=4\) and \(2(x+y)=5\), respectively, which cannot both hold. The row operations have exposed that contradiction without changing the system's solution set.
Common Mistakes and Checks
Clearing only below a pivot is not Gauss-Jordan elimination. For instance, after reaching \(\begin{bmatrix}1&-1&1\\0&1&1\end{bmatrix}\) in the first example, stopping there leaves a nonzero entry above the second pivot. Calling that matrix RREF is incorrect. The correction is \(R_1\to R_1+R_2\), which produces \(\begin{bmatrix}1&0&2\\0&1&1\end{bmatrix}\).
Do not scale just the pivot entry. A row represents an equation, so scaling a pivot to \(1\) means scaling every entry in its row. In the second example, changing the \(3\) in the second row to \(1\) while leaving the augmented entry \(2\) unchanged would incorrectly produce \([0\ 0\ 1\mid2]\). The valid operation \(R_2\to\frac13R_2\) gives \([0\ 0\ 1\mid\frac23]\).
For a final check, inspect each pivot column: its pivot must be \(1\), and every other entry in that column must be \(0\). Also check that pivots move to the right as the rows move down, and that zero rows, if present, are at the bottom. If the matrix is augmented, every operation must have been applied to the right-hand-side column too.
Check Your Understanding
For each reduction, write the row operation beside every arrow and check the final form against the RREF conditions.
- Reduce \(\begin{bmatrix}1&2&4\\2&5&9\end{bmatrix}\) to RREF.
- Reduce the augmented matrix \(\begin{bmatrix}1&1&3\\2&3&8\end{bmatrix}\) to RREF.
- In what way does Gauss-Jordan elimination continue beyond forward elimination?
- Why must a row-scaling operation change the augmented entry as well as the coefficient entries?
- Explain why a pivot in the final column can occur when reducing an augmented matrix.