How to use Gauss–Jordan elimination to reach reduced row-echelon form

Gauss–Jordan elimination uses row operations to make a system’s solution easier to read. We build pivot columns with a leading 1 and zeros above and below it. Let’s follow that process through a three-variable system.

Recognize echelon and reduced echelon forms

In row-echelon form, zero rows are at the bottom and each nonzero row’s leading entry is farther right than the leading entry in the row above. In reduced row-echelon form, each leading entry is 1 and is the only nonzero entry in its column. Entries in columns without pivots may still be nonzero.

Write the system as an augmented matrix

-x-5y+z=17-5x-5y+5z=52x+5y-3z=-10
[-1-51|17-5-55|525-3|-10]

At each pivot stage, look for a nonzero entry at or below the current row. If the current entry is zero, swap a suitable row into that position. If no such entry exists in the column, move to the next column.

Create the first pivot and clear its column

First apply 15R2→R2 and -R1→R1.

[15-1|-17-1-11|125-3|-10]

Now apply R2+R1→R2 and R3-2R1→R3.

[15-1|-17040|-160-5-1|24]

Create the second pivot and clear its column

Apply 14R2→R2, giving row 2 equal to (0,1,0,-4). Then apply R1-5R2→R1 and R3+5R2→R3.

[10-1|3010|-400-1|4]

Create the third pivot and finish reducing

Apply -R3→R3, followed by R1+R3→R1.

[100|-1010|-4001|-4]

The reduced matrix gives x=-1, y=-4, and z=-4. Substituting these values into the original equations gives 17, 5, and -10 on their left sides, matching all three constants.

Interpret other possible reduced forms

A row with zero coefficients and a nonzero constant means the system has no solution. If a consistent system has a variable column without a pivot, that variable is free. The remaining variables can be written in terms of the free variables.