Solving Systems of Equations with Matrices
An augmented matrix is a compact way to represent a system of linear equations so you can solve it using a systematic process called Gaussian elimination. Instead of juggling multiple equations with variables, you organize everything into a grid of numbers and apply row operations until the solution reveals itself.
Augmented Matrices from Equations
To build an augmented matrix, you take each equation in your system and pull out the coefficients and constants, arranging them in rows. A vertical line separates the coefficients (left side) from the constants (right side).
Take this system:
The augmented matrix looks like this:
- Row 1 holds the coefficients and constant from the first equation: 2, 3, and 5
- Row 2 holds them from the second equation: 4, -1, and 3
- The variables themselves disappear. You just need to keep the coefficients in the same column order ( first, second) for every row
If a variable is missing from an equation, use 0 as its coefficient. For example, if an equation is , the row would be because the -coefficient is 0.

Row Operations for Matrix Simplification
Once you have the augmented matrix, you simplify it using row operations. There are exactly three moves you're allowed to make:
- Row switching: Swap the positions of two rows
- Row multiplication: Multiply every entry in a row by a non-zero constant
- Row addition: Add a multiple of one row to another row (and replace that row with the result)
These operations change the appearance of the matrix but never change the solution to the system. They're the matrix equivalent of the moves you already know from solving equations (multiplying both sides by a constant, adding equations together, etc.).
The goal is to reach row echelon form, where:
- The leading entry (first non-zero number from the left) of each row is strictly to the right of the leading entry in the row above
- All entries below each leading entry are zeros
This staircase-like pattern makes back-substitution straightforward. The process of using row operations to get there is called Gaussian elimination.

Solving a System Step by Step
Here's the full process from start to finish:
-
Write the augmented matrix from the system of equations
-
Apply row operations to transform the matrix into row echelon form
-
Interpret the result:
- If any row reads where , the system has no solution (it's inconsistent, meaning the equations contradict each other)
- If a row is all zeros , the system has infinitely many solutions (the equations are dependent)
- Otherwise, the system has a unique solution
-
Back-substitute to find the variable values, starting from the bottom row and working upward
Example: Solve the system from earlier.
Start with the augmented matrix:
Step 1: Eliminate the 4 in row 2, column 1. Replace Row 2 with (Row 2 - 2 × Row 1):
Step 2: The matrix is now in row echelon form. Back-substitute starting from Row 2:
Row 2 gives , so .
Plug into Row 1: , so , and .
The solution is .
Reduced Row Echelon Form
If you keep simplifying beyond row echelon form, you can reach reduced row echelon form (RREF), where every leading entry is 1 and it's the only non-zero entry in its column. In RREF, you can read the solution directly without back-substitution. For the example above, RREF would look like:
This tells you immediately that and .
Additional Matrix Concepts
A few related terms you should know at this level:
- Matrix: A rectangular array of numbers arranged in rows and columns. The augmented matrix is one specific type.
- Determinant: A single number computed from a square matrix. For a 2×2 matrix , the determinant is . If the determinant is zero, the system either has no solution or infinitely many solutions.
- Inverse matrix: A matrix that, when multiplied with the original, produces the identity matrix (1s on the diagonal, 0s everywhere else). You can solve a system by computing , but this method is typically covered in more depth in linear algebra courses.