Gauss Jordan Elimination Calculator
Our free linear algebra calculator solves gauss jordan elimination problems. Get worked examples, visual aids, and downloadable results.
Reviewed by Manoj Kumar, Mathematics Educator
Formula
[A | b] -> RREF via elementary row operations
Transform the augmented matrix [A | b] into reduced row echelon form by applying elementary row operations: row swaps, row scaling, and row addition. The RREF reveals the solution directly: unique (rank = n), infinite (rank < n, consistent), or none (inconsistent).
Worked Examples
Example 1: Solving a 3x3 System Step by Step
Problem:Solve: 2x + y - z = 8, -3x - y + 2z = -11, -2x + y + 2z = -3
Solution:Augmented: [[2, 1, -1, 8], [-3, -1, 2, -11], [-2, 1, 2, -3]]\nR1 = R1/2: [[1, 0.5, -0.5, 4], [-3, -1, 2, -11], [-2, 1, 2, -3]]\nR2 = R2 + 3R1: [[1, 0.5, -0.5, 4], [0, 0.5, 0.5, 1], [-2, 1, 2, -3]]\nR3 = R3 + 2R1: [[1, 0.5, -0.5, 4], [0, 0.5, 0.5, 1], [0, 2, 1, 5]]\nR2 = R2/0.5: [[1, 0.5, -0.5, 4], [0, 1, 1, 2], [0, 2, 1, 5]]\nR3 = R3 - 2R2: [[1, 0.5, -0.5, 4], [0, 1, 1, 2], [0, 0, -1, 1]]\nR3 = R3/(-1): [[1, 0.5, -0.5, 4], [0, 1, 1, 2], [0, 0, 1, -1]]\nBack-eliminate to get RREF: x = 2, y = 3, z = -1
Result:x = 2, y = 3, z = -1 (unique solution, rank = 3)
Example 2: Inconsistent System Detection
Problem:Solve: x + y + z = 1, x + y + z = 2, x + 2y + 3z = 3
Solution:Augmented: [[1, 1, 1, 1], [1, 1, 1, 2], [1, 2, 3, 3]]\nR2 = R2 - R1: [[1, 1, 1, 1], [0, 0, 0, 1], [1, 2, 3, 3]]\nR3 = R3 - R1: [[1, 1, 1, 1], [0, 0, 0, 1], [0, 1, 2, 2]]\nRow 2 gives 0 = 1, which is impossible.\nThe system is inconsistent.
Result:No solution (inconsistent system)
Frequently Asked Questions
What is Gauss-Jordan elimination?
Gauss-Jordan elimination is an algorithm for solving systems of linear equations by transforming the augmented matrix into reduced row echelon form (RREF). It extends Gaussian elimination by also eliminating entries above each pivot, not just below. The result is a matrix where each pivot is 1 and is the only nonzero entry in its column. From the RREF, you can directly read off the solution without back-substitution. The algorithm systematically applies three elementary row operations: swapping rows, multiplying a row by a nonzero scalar, and adding a multiple of one row to another. It was named after Carl Friedrich Gauss and Wilhelm Jordan.
What is the difference between Gaussian elimination and Gauss-Jordan elimination?
Gaussian elimination transforms a matrix into row echelon form (REF), where entries below each pivot are zero, but entries above pivots may be nonzero. Finding the solution then requires back-substitution. Gauss-Jordan elimination goes further, transforming to reduced row echelon form (RREF), where entries both above and below each pivot are zero, and each pivot equals 1. RREF allows you to read solutions directly without back-substitution. Gaussian elimination requires about n^3/3 operations for an n x n system, while Gauss-Jordan needs about n^3/2. Despite being more expensive, Gauss-Jordan is conceptually simpler and is often preferred for matrix inversion.
How does Gauss-Jordan elimination handle systems with no solution?
When Gauss-Jordan elimination encounters an inconsistent system, it produces a row of the form [0, 0, ..., 0 | c] where c is nonzero in the augmented matrix. This represents the equation 0 = c, which is impossible. The system has no solution when the rank of the coefficient matrix is less than the rank of the augmented matrix. Geometrically, this means the constraint planes do not all intersect at a common point (or line or plane). For example, two parallel planes in 3D have no common point. The calculator detects this condition and reports the system as inconsistent.
How does Gauss-Jordan elimination handle systems with infinitely many solutions?
Systems with infinitely many solutions have more unknowns than pivot positions (the rank is less than the number of variables, and the system is consistent). In the RREF, columns without pivots correspond to free variables that can take any value. The solution is expressed parametrically in terms of these free variables. For a 3x3 system of rank 2, one variable is free, and the solution is a line in 3D. For rank 1, two variables are free, and the solution is a plane. The RREF directly shows the relationship between pivot variables and free variables, making it easy to write the general solution.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy