Guides7 min
One Solution, No Solution, or Infinitely Many? How to Tell
A system of linear equations has exactly one solution, no solution, or infinitely many. Reducing the augmented matrix tells you which case you are in. Three examples make the difference clear.
The augmented matrix
For a system Ax = b, the matrix [A | b] obtained by writing b to the right of the coefficient matrix A is called the augmented matrix. Reduce it to RREF with row operations and the solution can be read off.
How to tell the three cases apart
Let n be the number of unknowns. After reduction, compare ranks.
| Condition | Number of solutions | What the reduced matrix looks like |
|---|---|---|
| rank(A) < rank([A | b]) | None | A row of the form 0 = (nonzero) appears |
| rank(A) = rank([A | b]) = n | Exactly one | Every variable column has a pivot |
| rank(A) = rank([A | b]) < n | Infinitely many | Some variable column has no pivot (a free variable) |
Case 1: exactly one solution
Solve the system below.
Reducing the augmented matrix to RREF gives the matrix on the right. The calculator shows every intermediate step.
All three variable columns have pivots. Since rank(A) = rank([A | b]) = 3 = n, the solution is unique and the last column is the solution.
Check by substituting: 2·2 + 3 − (−1) = 8, −3·2 − 3 + 2·(−1) = −11, and −2·2 + 3 + 2·(−1) = −3 all hold.
Case 2: no solution
Doubling the first equation gives 2x + 2y + 2z = 6, but the second equation says 5. The equations contradict each other. Elimination makes this visible.
- 01Form the augmented matrix [A | b].111322251−101
- 02Make every other entry of column 1 zero.
R₂ ← R₂ − 2R₁R₃ ← R₃ − R₁1113000−10−2−1−2 - 03Move a nonzero entry of column 2 up to row 2 to use as the pivot.
R₂ ↔ R₃11130−2−1−2000−1 - 04Divide row 2 by the pivot so the pivot becomes 1.
R₂ ← (−1/2)R₂111301121000−1 - 05Make every other entry of column 2 zero.
R₁ ← R₁ − R₂1012201121000−1
Row 3 became [0, 0, 0 | −1], which says 0 = −1. That is impossible, so there is no solution. rank(A) = 2 while rank([A | b]) = 3, so rank(A) < rank([A | b]).
Case 3: infinitely many solutions
The second equation is twice the first, so there are really only two equations.
- 01Form the augmented matrix [A | b].121424281103
- 02Make every other entry of column 1 zero.
R₂ ← R₂ − 2R₁R₃ ← R₃ − R₁121400000−1−1−1 - 03Move a nonzero entry of column 2 up to row 2 to use as the pivot.
R₂ ↔ R₃12140−1−1−10000 - 04Divide row 2 by the pivot so the pivot becomes 1.
R₂ ← (−1)R₂121401110000 - 05Make every other entry of column 2 zero.
R₁ ← R₁ − 2R₂10−1201110000
Row 3 is all zeros and column 3 has no pivot. rank(A) = rank([A | b]) = 2 with n = 3, so there are infinitely many solutions. The variable of the pivot-free column, z, is a free variable. Set z = t and the other variables follow.
Any value of t satisfies all three equations: t = 0 gives (2, 1, 0) and t = 1 gives (3, 0, 1). The number of free variables is n − rank = 3 − 2 = 1, so the solutions form a line.
Common mistakes
- Deciding by counting equations and unknowns. Extra equations may be redundant, and fewer equations usually means infinitely many solutions, not none.
- Reading a row 0 = 0 as "no solution". 0 = 0 is harmless. Only 0 = (nonzero) rules out solutions.
- Taking only one free variable when there are several. Every pivot-free column is a free variable.
- Sign errors in the general solution. Substitute back into the original equations to check.
FAQ
If there are more equations than unknowns, is there never a solution?
Not necessarily. If some equations repeat others, a solution can exist. Decide by rank.
Can I choose which variable is free?
The free variables are those in pivot-free columns of the RREF. A different elimination order may make the solution look different, but the solution set is the same.
What about Ax = 0?
x = 0 is always a solution, so a homogeneous system is never inconsistent. If there is a free variable, there are infinitely many nonzero solutions too.
Related guides