Gauss-Jordan Elimination Calculator

Solve systems of linear equations by reducing augmented matrices to Reduced Row Echelon Form (RREF) with detailed row operations.

Enter Augmented Matrix

Enter the augmented matrix [A|b] for the system Ax = b:

x1 x2 b

System: 2x1 + x2 = 5, x1 - x2 = 1

Solution

Solution
--

Row Operations (Step-by-Step)

Reduce [A|b] to RREF using row operations

Understanding Gauss-Jordan Elimination

Gauss-Jordan elimination is an algorithm for solving systems of linear equations, finding the rank of a matrix, and computing the inverse of a matrix. It is an extension of Gaussian elimination that continues the row reduction process until the matrix is in Reduced Row Echelon Form (RREF).

The method works by forming an augmented matrix [A|b] from the coefficient matrix A and the constant vector b, then applying elementary row operations to transform it into RREF, from which the solution can be read directly.

Elementary Row Operations

Row Swap

Interchange two rows of the matrix.

R_i <-> R_j

Row Scaling

Multiply a row by a non-zero scalar.

R_i -> c * R_i (c != 0)

Row Addition

Add a scalar multiple of one row to another.

R_i -> R_i + c * R_j

Reduced Row Echelon Form (RREF)

A matrix is in RREF when it satisfies all of the following conditions:

  1. All rows consisting entirely of zeros are at the bottom.
  2. The leading entry (pivot) of each non-zero row is 1.
  3. Each pivot is strictly to the right of the pivot in the row above.
  4. Each pivot is the only non-zero entry in its column.

Types of Solutions

  • Unique Solution: When RREF has a pivot in every column of A, the system has exactly one solution.
  • No Solution: When a row of the form [0 0 ... 0 | c] with c non-zero appears, the system is inconsistent.
  • Infinite Solutions: When there are free variables (columns without pivots), there are infinitely many solutions parameterized by those free variables.

Applications

  • Engineering: Solving circuit equations, structural analysis, and control systems.
  • Computer Science: Computer graphics transformations, machine learning, and data fitting.
  • Economics: Input-output models and equilibrium analysis.
  • Chemistry: Balancing chemical equations.