Example: The system of equations ⎩⎨⎧x+y+z2x+3y+7zx+3y−2z=3=0=17 has augmented matrix 12113317−23017.Row operations can be used to express the matrix in reduced row-echelon form.12113317−23017→10011215−33−614→100010−45−139−626→100010−4519−6−2→10001000114−2The augmented matrix now says that x=1,y=4, and z=−2.
aij = Coefficients of the variables in the original system of equations
bi = Constants on the right-hand side of each equation
x1,x2,x3 = The solution values read directly from the reduced matrix
Worked Example
Problem:Solve the system using Gauss-Jordan Elimination:
x+2y=103x+4y=24
Step 1: Write the augmented matrix for the system.
[13241024]
Step 2: Eliminate the 3 in row 2, column 1 by replacing R₂ with R₂ − 3R₁.
R2←R2−3R1:[102−210−6]
Step 3: Scale row 2 so the pivot becomes 1 by dividing R₂ by −2.
R2←−2R2:[1021103]
Step 4: Eliminate the 2 above the pivot in column 2 by replacing R₁ with R₁ − 2R₂. This is the key Gauss-Jordan step: we eliminate entries above the pivot, not just below.
R1←R1−2R2:[100143]
Step 5: Read the solution directly from the reduced row-echelon form.
x=4,y=3
Answer: x = 4, y = 3
Another Example
This example shows a 3×3 system, requiring more row operations and demonstrating the full process of eliminating both below and above every pivot to reach RREF.
Problem:Solve the 3×3 system using Gauss-Jordan Elimination:
x+y+z=62x+3y+z=14x+2y+3z=14
Step 1: Write the augmented matrix.
12113211361414
Step 2: Eliminate below the first pivot. Replace R₂ with R₂ − 2R₁ and R₃ with R₃ − R₁.
1001111−12628
Step 3: Eliminate below the second pivot. Replace R₃ with R₃ − R₂.
1001101−13626
Step 4: Scale R₃ by dividing by 3 to make the third pivot equal to 1.
1001101−11622
Step 5: Now eliminate above each pivot (the Gauss-Jordan part). Replace R₂ with R₂ + R₃, then R₁ with R₁ − R₃, then R₁ with R₁ − R₂.
What is the difference between Gaussian Elimination and Gauss-Jordan Elimination?
Gaussian Elimination reduces the matrix to row-echelon form (upper triangular), where you then use back-substitution to find the solution. Gauss-Jordan Elimination goes further by also eliminating entries above each pivot, producing reduced row-echelon form (RREF). With Gauss-Jordan, the solution is read directly from the final matrix without any back-substitution.
When should you use Gauss-Jordan Elimination?
Use Gauss-Jordan Elimination when you want a direct, systematic method to solve a linear system, especially when the system has many variables. It is also the standard approach for finding the inverse of a matrix by augmenting it with the identity matrix and row-reducing.
What are the three allowed row operations in Gauss-Jordan Elimination?
The three elementary row operations are: (1) swap two rows, (2) multiply a row by a nonzero constant, and (3) add a multiple of one row to another row. These operations change the matrix without changing the solution of the system.
Gauss-Jordan Elimination vs. Gaussian Elimination
Gauss-Jordan Elimination
Gaussian Elimination
Goal
Reduce to reduced row-echelon form (RREF)
Reduce to row-echelon form (REF)
Elimination direction
Eliminates entries both above and below each pivot
Eliminates entries only below each pivot
Finding the solution
Read the solution directly from the final matrix
Requires back-substitution after row reduction
Number of operations
More row operations overall
Fewer row operations, but back-substitution is needed
Common use
Solving systems; finding matrix inverses
Solving systems; computing determinants
Why It Matters
Gauss-Jordan Elimination appears in every introductory linear algebra course and is one of the first algorithmic methods students learn for solving systems of equations. Beyond solving systems, the same technique is used to find the inverse of a matrix and to determine whether a set of vectors is linearly independent. It also forms the basis for understanding how computers solve large linear systems in fields like engineering, data science, and physics.
Common Mistakes
Mistake: Forgetting to eliminate entries above the pivots, stopping at row-echelon form instead of reduced row-echelon form.
Correction: Gauss-Jordan requires that every pivot has zeros both above and below it, not just below. After creating zeros below a pivot (as in Gaussian Elimination), continue by using that pivot row to eliminate all entries above it as well.
Mistake: Performing a row operation incorrectly by applying it to the wrong row, such as modifying the pivot row instead of the target row.
Correction:When you compute Ri←Ri−kRj, only row i changes. Row j (the pivot row) stays exactly the same. Write out the operation explicitly before computing to avoid errors.