Skip to main content
Mathovia

Algebra / Systems of Equations

Augmented Matrices

An augmented matrix is a system of equations with the variables stripped out, leaving just a grid of numbers. Solving the system then becomes a matter of tidying that grid with three simple row operations, which is the same elimination you already know, written far more compactly.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

When you solve a system by elimination, the letters just come along for the ride. Every step changes the numbers, but , and sit in the same columns the whole time. An augmented matrix drops them and keeps only the numbers, arranged in a grid. That makes the work shorter and harder to get wrong, and it’s exactly how graphing calculators and computers solve systems. This lesson shows how to write a system as an augmented matrix and how to solve it with Gaussian and Gauss-Jordan elimination.

A system of two linear equations a1 x + b1 y = c1 and a2 x + b2 y = c2 written as the augmented matrix with rows a1 b1 | c1 and a2 b2 | c2
A system and its augmented matrix

What Is an Augmented Matrix?

A matrix is a rectangular grid of numbers. The augmented matrix of a linear system has:

  • one row for each equation,
  • one column for each variable, in the same order in every row,
  • and one extra column for the constants, set off by a vertical bar that stands in for the equals signs.
The system x + y + z = 6, 2x − y + z = 3, x + 2y − z = 2 turned into an augmented matrix with rows 1 1 1 | 6, 2 −1 1 | 3 and 1 2 −1 | 2, each column colour-matched to its variable
Each column belongs to one variable; the bar replaces the equals signs

The same system written both ways:

A variable with no visible number in front has coefficient , and a subtraction sign means a negative entry: gives and .

Coefficient Matrix vs Augmented Matrix

The coefficient matrix is just the part to the left of the bar, the coefficients of the variables. The augmented matrix “augments” it with the column of constants:

Which Matrix Represents the System of Equations?

Writing the matrix correctly is mostly about lining things up. Two things trip people up: missing variables and equations that aren’t in standard form.

Write the augmented matrix for:

Step 1 — put every equation in standard form, with variables on the left in the order :

Step 2 — copy the coefficients, using for every missing variable:

The zeros matter. Leaving a gap instead of a shifts the numbers into the wrong columns, and the matrix then represents a different system.

Which System Represents the Matrix?

Going the other way is just as quick: attach the variables to the columns and put the equals sign back where the bar is. The matrix

represents

A in a column means that variable doesn’t appear in that equation.

The Three Row Operations

To solve a system with its matrix, you transform the matrix step by step. Only three moves are allowed, and each one matches something you could do to the equations themselves without changing the solution:

The three elementary row operations: swap two rows, written R1 ↔ R2; multiply a row by a non-zero number, written 3R1 → R1; add a multiple of one row to another, written R2 − 2R1 → R2
Swap, scale, and add a multiple: the only moves you need
OperationNotationEquation version
swap two rowslist the equations in a different order
multiply a row by a non-zero numbermultiply both sides of an equation by
add a multiple of one row to anotherthe elimination method

The goal is to create zeros below (and, for Gauss-Jordan, above) the main diagonal, one column at a time.

Row-Echelon Form and Reduced Row-Echelon Form

Side by side: a matrix in row-echelon form with zeros below each leading 1 and last column 6, −4, 3, and a matrix in reduced row-echelon form, the identity on the left with last column 1, 2, 3
Row-echelon form needs back-substitution; reduced row-echelon form shows the answer directly
Row-echelon form (REF)Reduced row-echelon form (RREF)
Below each leading entryzeroszeros
Above each leading entryanythingzeros
Leading entriesusually made always
Reached byGaussian eliminationGauss-Jordan elimination
Last stepback-substitutionread off the last column

Gaussian Elimination vs Gauss-Jordan Elimination

Both methods use the same row operations. Gaussian elimination stops at row-echelon form and finishes with back-substitution, which is the triangular-form technique from systems with three variables. Gauss-Jordan elimination keeps going until the left side is the identity matrix, so each row reads “variable = number”. Gaussian takes fewer row operations; Gauss-Jordan needs no back-substitution. On paper, use whichever you find tidier.

Example 1: Gauss-Jordan Elimination on a 2 × 2 System

Solve and .

Step 1 — write the augmented matrix:

Step 2 — make a zero below the first leading 1 with :

Step 3 — make the second leading entry 1 with :

Step 4 — clear the entry above it with :

Step 5 — read the answer: the rows say and . Check: ✓ and ✓.

Four augmented matrices in sequence for x + 2y = 5 and 3x − y = 1: the starting matrix, after R2 − 3R1, after R2 ÷ (−7), and after R1 − 2R2, ending with rows 1 0 | 1 and 0 1 | 2
Gauss-Jordan in three row operations, with the changed row highlighted at each step

Example 2: Gaussian Elimination on a 3 × 3 System

Solve , and .

Step 1 — the augmented matrix:

Step 2 — clear the first column with and :

Step 3 — swap so the second row starts with a 1:

Step 4 — clear below it with :

Step 5 — back-substitute from the bottom row up:

Answer: , the same solution the elimination method gives in the three-variable lesson, with a lot less writing.

No Solution and Infinitely Many Solutions in Matrix Form

The final matrix also tells you when there isn’t exactly one solution.

A row with means no solution. For and , the operation gives

and the second row says . The system is inconsistent.

A row of all zeros means infinitely many solutions (when there are as many equations as unknowns). For and , gives

Only one real equation is left, , so is a free variable. Let . The general solution is

Each value of gives one of the infinitely many solutions: gives , gives , and so on. An augmented matrix whose final form has no row of the form with belongs to a consistent system.

Common Mistakes to Avoid

  • Skipping zeros for missing variables. is the row , not .
  • Mixing up the column order. Every row must list the variables in the same order, usually .
  • Applying an operation to only part of a row. changes every entry of , including the constant after the bar.
  • Multiplying a row by zero. That deletes an equation. Scaling must use a non-zero number.
  • Misreading the final matrix. In row-echelon form you still need back-substitution; only reduced row-echelon form shows the answer directly.

Practice Problems

Work each one before opening the answer.

Problem 1. Write the augmented matrix for and .

Show answer

Step 1 — one row per equation, columns , , constant:

Answer: rows and

Problem 2. Which system of equations does this augmented matrix represent?

Show answer

Step 1 — attach , , to the columns and drop the zero terms:

Answer: , ,

Problem 3. Write the augmented matrix for , and .

Show answer

Step 1 — fill in zeros for the missing variables:

Answer: rows ; ;

Problem 4. Solve and using an augmented matrix.

Show answer

Step 1 — :

Step 2 — , then :

Answer:

Problem 5. A system’s augmented matrix reduces to rows and . What is the solution?

Show answer

Step 1 — this is reduced row-echelon form, so each row reads directly: and .

Answer:

Problem 6. A system’s augmented matrix reduces to rows and . How many solutions does it have?

Show answer

Step 1 — the second row means , that is, .

Step 2 — a false equation means the system is inconsistent.

Answer: no solution

Matrices work for any number of linear equations, but every equation so far has been a straight line or a flat plane. When one of the equations is a curve, such as a parabola or a circle, the system is nonlinear, and substitution becomes the main tool again.

Frequently Asked Questions

What is an augmented matrix?+

It's a rectangular array that stores a system of linear equations. Each row is one equation and each column holds the coefficients of one variable. A final column, usually separated by a vertical bar, holds the constants from the right-hand side.

What is the difference between a coefficient matrix and an augmented matrix?+

The coefficient matrix contains only the coefficients of the variables. The augmented matrix is the coefficient matrix with the column of constants attached on the right. For and , the coefficient matrix has rows and ; the augmented matrix adds the column .

What is the difference between Gaussian elimination and Gauss-Jordan elimination?+

Gaussian elimination uses row operations to reach row-echelon form, with zeros below each leading entry, and then finishes with back-substitution. Gauss-Jordan elimination keeps going to reduced row-echelon form, with zeros above and below each leading 1, so the solution can be read straight from the last column.

How do you tell from an augmented matrix that a system has no solution?+

If row operations produce a row like , with all zeros on the left and a non-zero number on the right, it represents the false equation . The system is inconsistent and has no solution.

What does a row of all zeros mean?+

A row says , which is always true. That equation carried no new information, so (in a system with as many equations as unknowns) at least one variable is free and the system has infinitely many solutions. You describe them with a general solution in terms of a parameter.

Related lessons

Calculators for this topic