Gauss-Jordan elimination is the workhorse of linear algebra. While it is simple in conceptâ€â€add, subtract, and scale rows until the matrix is simplifiedâ€â€it requires strict attention to detail. A single arithmetic error early on will ruin the entire result. In this guide, we will break down the algorithm step-by-step so you can compute it by hand with confidence.
The Goal of Gauss-Jordan Elimination
The objective is to take any starting matrix A and transform it into its unique **Reduced Row Echelon Form (RREF)**. The resulting matrix will have 1s on its main diagonal (where possible) and zeros elsewhere in those columns, resembling an Identity matrix.
The Step-by-Step Gauss-Jordan Algorithm
Let's reduce a general matrix by following the algorithmic steps. We will work column by column, starting from the left.
Step 1: Locate the Pivot Column
Begin with the first column. Look for the first row that has a non-zero entry in this column. This entry will be our **pivot**. If the top row already has a non-zero number in the first column, that is our pivot. If it is zero, we must swap that row with a row below it that has a non-zero entry.
Step 2: Scale the Pivot Row
Once you have swapped the pivot row to the current row index (let's say Row 1), multiply the entire row by the reciprocal of the pivot. For example, if the pivot is 3, multiply the row by 1/3. This forces the pivot value to become exactly **1**.
Step 3: Eliminate Entries Below the Pivot
Now, look at the rows *below* the pivot row in the pivot column. For each row that has a non-zero entry, subtract a multiple of the pivot row from that row to turn the entry into zero. For instance, if Row 2 has a 4 in the pivot column, perform the operation: Row 2 → Row 2 - 4 × Row 1.
Step 4: Repeat for Remaining Columns
Move to the next row and column (Row 2, Column 2) and repeat Steps 1 to 3. Do this until you have processed all rows. At this point, your matrix is in **Row Echelon Form (REF)**â€â€it is upper triangular, with pivots of 1 along the diagonal and zeros below them.
Step 5: Eliminate Entries Above the Pivots (Backward Phase)
This is the 'Jordan' part of the algorithm. Start from the rightmost pivot and work backwards. For each pivot, look at the entries in its column *above* it. Add or subtract multiples of the pivot row to turn all entries above the pivot into zero. Since the pivot row has zeros to the left of the pivot, this backward phase will not disturb any columns you cleared during the forward phase.
Once you have cleared out all entries above all pivots, the matrix is in its final **Reduced Row Echelon Form (RREF)**.