Gauss-Jordan elimination is the row-reduction method that carries an augmented matrix all the way to reduced row echelon form. Gaussian elimination stops at row echelon form and then uses back substitution. Gauss-Jordan elimination continues the reduction until each pivot is and each pivot column has zeros everywhere except at the pivot. In this final form, the solution can be read directly.
10.1 Purpose
Given a linear system
Gauss-Jordan elimination transforms the augmented matrix
into reduced row echelon form.
The target has the form
where is reduced as far as row operations allow. The resulting system is equivalent to the original system, but the equations are arranged so that leading variables are already isolated.
For example,
directly represents
No back substitution is needed.
10.2 Reduced Row Echelon Form
A matrix is in reduced row echelon form when it satisfies the following conditions:
| Condition | Meaning |
|---|---|
| Zero rows are at the bottom | Empty equations appear last |
| Each nonzero row has a leading | The first nonzero entry of each nonzero row is normalized |
| Leading ’s move rightward | Each pivot is to the right of the pivot above it |
| Each pivot column has zeros elsewhere | A leading is the only nonzero entry in its column |
These conditions define the final target of Gauss-Jordan elimination.
For example,
is in reduced row echelon form.
The matrix
is in row echelon form, but not reduced row echelon form, because the pivot in the second column has a nonzero entry above it.
10.3 Difference from Gaussian Elimination
Gaussian elimination and Gauss-Jordan elimination use the same elementary row operations. They differ in the stopping point.
| Method | Final form | Final step |
|---|---|---|
| Gaussian elimination | Row echelon form | Back substitution |
| Gauss-Jordan elimination | Reduced row echelon form | Read solution directly |
Gaussian elimination creates zeros below pivots. Gauss-Jordan elimination creates zeros below and above pivots.
For the echelon matrix
Gaussian elimination would solve by back substitution. Gauss-Jordan elimination continues by eliminating the entries above the pivot in column , then above the pivot in column .
10.4 The Basic Gauss-Jordan Step
Suppose a pivot has been normalized to in row and column . To eliminate another entry in the same column, replace row by
The new entry in column is
This same formula works for entries below the pivot and above the pivot. Gaussian elimination uses it only below pivots. Gauss-Jordan elimination uses it throughout the pivot column.
10.5 Algorithm
For an augmented matrix, Gauss-Jordan elimination proceeds as follows:
row = 1
for each column from left to right:
find a nonzero entry in or below the current row
if no such entry exists:
continue to the next column
swap that row into the current row position
scale the current row so that the pivot equals 1
eliminate every other entry in the pivot column
move to the next rowWhen the process stops, the matrix is in reduced row echelon form.
The algorithm uses only elementary row operations: row swaps, nonzero row scalings, and row replacements. Since each operation is reversible, the final system is equivalent to the original system.
10.6 Example with a Unique Solution
Consider
The augmented matrix is
Eliminate below the first pivot:
Then
Swap rows and :
Eliminate the entry below the second pivot:
This gives
Scale the third row:
Then
Eliminate entries above the third pivot:
Then
Eliminate the entry above the second pivot:
Thus
The solution is
10.7 Reading a Unique Solution
When the left side of an augmented matrix reduces to the identity matrix, the solution is the right-hand side.
If
then
For example,
represents
The solution vector is
10.8 Free Variables in Reduced Form
Reduced row echelon form makes free variables explicit.
Consider
The pivot columns are columns and . The third variable is free.
The equations are
Let
Then
Thus
The reduced form separates the particular solution from the homogeneous direction.
10.9 Inconsistent Systems in Reduced Form
An inconsistent system produces a row of the form
This row represents
For example,
contains the equation
Therefore the system has no solution.
10.10 Pivot Columns and Leading Variables
Each pivot column corresponds to a leading variable. Each nonpivot column corresponds to a free variable.
In
the pivot columns are , , and . Thus
are leading variables.
The nonpivot columns are and . Thus
are free variables.
Let
Then the equations give
So the solution set is
10.11 Homogeneous Systems
For a homogeneous system
the augmented matrix has a zero right-hand side:
Row operations preserve the zero right-hand side. Therefore the reduced row echelon form also has zero in the augmented column:
The system always has the trivial solution
If every variable column has a pivot, the trivial solution is the only solution. If at least one variable is free, the system has infinitely many solutions.
For example,
gives
Let
Then
Thus
10.12 Computing an Inverse
Gauss-Jordan elimination gives a direct method for computing the inverse of a square matrix.
For an matrix , form
Then row reduce.
If
then
If the left side cannot be reduced to , then is not invertible.
This works because the row operations applied to are also applied to . The accumulated row operations form the inverse matrix.
10.13 Example: Inverse of a Matrix
Let
Form
Eliminate below the first pivot:
Then
Scale row :
Then
Eliminate above the second pivot:
Thus
Therefore
One may check:
10.14 Rank from Reduced Row Echelon Form
The rank of a matrix is the number of pivot positions in its row echelon form. Since reduced row echelon form makes pivots explicit, it also makes rank explicit.
For example,
has three pivots. Therefore
Any matrix row equivalent to has rank .
10.15 Uniqueness of Reduced Row Echelon Form
Every matrix is row equivalent to exactly one reduced row echelon matrix.
This is a useful distinction. A matrix may have many possible echelon forms because pivot choices and row swaps may vary. But its reduced row echelon form is unique.
Thus the notation
is meaningful: it refers to the unique reduced row echelon form of .
10.16 Column Information and a Caution
Row reduction preserves row relations and solution sets of augmented systems. It does not preserve the actual columns of the original matrix.
For example, pivot columns in the reduced form identify which columns of the original matrix are pivot columns. But the columns in the reduced matrix are usually not the same as the original columns.
This distinction matters when finding a basis for the column space. One uses the pivot column positions found from row reduction, then returns to the corresponding original columns of .
10.17 Computational Cost
For a dense system, Gauss-Jordan elimination has cubic arithmetic cost, like Gaussian elimination. It usually performs more arithmetic than Gaussian elimination because it eliminates both below and above pivots.
For solving a single system, Gaussian elimination followed by back substitution is often more efficient. For finding reduced row echelon form or computing inverses by , Gauss-Jordan elimination is the natural method.
10.18 Common Mistakes
| Mistake | Correction |
|---|---|
| Stopping at echelon form | Gauss-Jordan continues to reduced row echelon form |
| Forgetting to scale pivots to | Every leading entry in RREF must be |
| Eliminating only below pivots | RREF requires zeros above pivots too |
| Applying row operations only to in | Apply each operation to the whole augmented matrix |
| Treating free variables as zero without saying so | Free variables must be parameterized |
| Using reduced columns as original column-space basis vectors | Use pivot positions to select columns from the original matrix |
10.19 Summary
Gauss-Jordan elimination is the row-reduction process that produces reduced row echelon form. It uses elementary row operations to create leading ’s and zeros everywhere else in each pivot column.
The method gives direct access to:
| Output | How it appears in RREF |
|---|---|
| Unique solution | Left side becomes identity |
| No solution | A row , |
| Infinitely many solutions | At least one free variable |
| Rank | Number of pivots |
| Invertibility | Square matrix reduces to identity |
| Inverse |
Gaussian elimination is usually preferred for solving one system efficiently. Gauss-Jordan elimination is preferred when the reduced form itself is needed.