When we solve a system of linear equations, we want to know how many solutions it can have and how to read that answer straight from elimination.
1
Why There Are Only Three Possibilities
We want to find every pair (x,y) that satisfies two linear equations at the same time, such as:
x+yx−y=4=2
Why Only Zero, One, or Infinitely Many Solutions
Because linear equations have no powers like x2 or curves like sin(x), their graphs in any dimension are completely flat and can never bend back to cross a second time. Here the two lines cross at the single point (3,1), giving one solution.
2
0=0, Contradictions, and Free Variables
For three or more variables we can't rely on a graph, so we need to see what happens during elimination when the variables cancel out in systems like these two:
2x+3y4x+6y=6=12and2x+3y4x+6y=6=15
0 = 0, Contradictions, and Free Variables
{2x+3y4x+6y=6=12
{2x+3y4x+6y=6=15
Text solution
Subtract 2 times the first equation from the second in the first systemEliminating 4x cancels out both variables and leaves 0=0, which is always true. This shows the second equation is just double the first and adds no new restriction.
4x+6y−(4x+6y0=12=12)=0
Solve the remaining equation for x in terms of the free variable yBecause only 2x+3y=6 is left, we can pick any number for y and let x adjust to keep the equation true.
2xx=6−3free variabley=3−23y
Subtract 2 times the first equation from the second in the second systemReplacing 12 with 15 makes the exact same elimination step give 0=3, which is impossible, showing the two lines are parallel and never meet.
4x+6y−(4x+6y0=15=12)=3(contradiction)
So the first system has infinitely many solutions given by (3−23y,y) for any number y, while the second system has zero solutions.
Whenever we pick a number for y,x=3−23y adjusts to keep (x,y) on the line 2x+3y=6. So infinitely many solutions means every point on that line works, not every point on the grid.
Picking any value for the free variable y locks in the one x that keeps the point on the line.
3
Solving Three-Variable Systems in Echelon Form
Now let's find all solutions to a three-variable system by reducing its augmented matrix to echelon form:
x+2y+z2x+5y+3zx+3y+2z=5=12=7
Solving Three-Variable Systems in Echelon Form
x2xx+++2y5y3y+++z3z2z===5127
(x,y,z)=?
Text solution
Clear column 1 below the first pivot (R2←R2−2R1 and R3←R3−R1)We use the top-left pivot 1 to eliminate x from the second and third rows.
Clear column 2 below the second pivot (R3←R3−R2)Subtracting the second row from the third puts the matrix in echelon form and makes the bottom row all zeros, leaving the third column without a pivot.
Back-substitute from the bottom up to express the pivot variables x and y in terms of the free variable zSolving Row 2 for y and substituting the result into Row 1 tells us how x and y adjust for any choice of z.
y+z=2⟹y=2−zx+2(2−z)+z=5⟹x+4−2z+z=5⟹x=1+z
So the system has infinitely many solutions given by x=1+z,y=2−z, with z free (any number), tracing out the 3D line where all three planes meet.
4
The Pivot Test for Any Matrix Shape
In a 3×3 system, a 0=0 row always leaves a column without a pivot, which makes it tempting to assume 0=0 always means infinitely many solutions. Let's see what happens when we have three equations in only two unknowns, x and y:
x+yx−y2x+y=4=2=7
The Pivot Test for Any Matrix Shape
Text solution
Eliminate x below the first pivot (R2←R2−R1 and R3←R3−2R1)Subtracting multiples of the first row clears the first column.
Eliminate y below the second pivot and check the variable columns for pivotsSubtracting half of Row 2 from Row 3 leaves 0=0 at the bottom, but both the x column and the y column still have pivots.
1001−204−20⟹−2y=−2x+1=4⟹y=1⟹x=3
So the system has one unique solution, (3,1), even though the echelon matrix ends with a 0=0 row.
Geometrically, the third line goes right through the point (3,1) where the first two lines cross. That makes the third equation redundant and gives a 0=0 row, even though there is only one solution.
When the third line meets the crossing point, the bottom row turns to all zeros, and since both columns still have pivots, there is only one solution.
The Pivot Test (in Echelon Form)1. Any contradiction row[0⋯0∣non-zero]⟹Zero solutions2. No contradictions, and a pivotin every variable column⟹One solution(no free variables)3. No contradictions, and a variablecolumn with no pivot⟹Infinitely many solutions (free variable)
5
Systems with an Unknown Constant k
Now we want to find which values of an unknown constant k give one solution, infinitely many solutions, or zero solutions in the system:
12125313k2−2512k+5
After elimination, we can factor the bottom pivot spot using the difference of squares, a2−b2=(a−b)(a+b), to find which values of k make the pivot zero.
Systems with an Unknown Constant k
12125313k2−2512k+5
one solution:no solution:infinitely many:k=?k=?k=?
Text solution
Eliminate x and y to put all the k terms in the bottom rowRunning the same elimination steps (R2←R2−2R1,R3←R3−R1, then R3←R3−R2) puts all the k expressions in the third row.
Factor the third pivot spot in the bottom row equationWriting the bottom row as (k2−4)z=k−2 and factoring shows when the third pivot becomes zero.
third pivot spot(k−2)(k+2)z=k−2
Test the values of k where the third pivot is non-zero or zeroWhenever (k−2)(k+2)=0, all three columns have pivots; plugging in k=2 or k=−2 makes the third pivot zero and either makes the right side zero or creates a contradiction.
k=2 and k=−2⟹three pivots⟹one solutionk=2⟹0z=0 (no third pivot, z free)⟹infinitely many solutionsk=−2⟹0z=−4 (contradiction 0=−4)⟹zero solutions
Don't divide both sides of (k−2)(k+2)z=k−2 by k−2, because canceling k−2 hides the case k=2 where both sides become zero and the system has infinitely many solutions.
6
The Column Picture and Which Right-Hand Sides Are Solvable
In the column picture, solving Ax=b means combining the columns of A to reach a target vector b=⟨b1,b2,b3⟩. When the columns all lie on a single plane, we want to find the exact condition on b1,b2,b3 for the system to have a solution:
x121+y253+z132=b1b2b3
The Column Picture and Which Right-Hand Sides Are Solvable
121253132xyz=b1b2b3
which b can we reach?
Text solution
Reduce the augmented matrix with b1,b2,b3 on the right-hand sideApplying R2←R2−2R1,R3←R3−R1, and R3←R3−R2 produces a row of zeros on the left and a combination of b1,b2,b3 on the right.
Set the right-hand side of the zero row equal to 0Avoiding a contradiction 0=non-zero gives the equation of the plane in 3D space spanned by the three columns.
b1−b2+b3=0(or b1+b3=b2)
So the system has a solution (in fact, infinitely many solutions, since the third column has no pivot) whenever b1−b2+b3=0, such as for b=⟨5,12,7⟩ where 5−12+7=0, and zero solutions whenever b1−b2+b3=0, such as for b=⟨5,12,11⟩ where 5−12+11=4=0.
Geometrically, the three column vectors all lie on the plane b1−b2+b3=0, so they can only combine to reach vectors b on that same plane.
The three columns can combine to reach the right-hand vector only when it sits on their plane, where the bottom row of the matrix stays zero.
Key concepts
Every question about the number of solutions starts by reducing the augmented matrix to echelon form and reading its rows and pivots. Check for a contradiction row first: a row of zeros on the left with a non-zero number on the right, like [0,0,0∣4] (0=4), means the planes never all meet at one point (or in the column picture, b lies outside the space spanned by the columns), so you stop immediately with zero solutions. If there are no contradictions, count the pivots across the variable columns rather than just looking for a 0=0 row. When every variable column has a pivot, every unknown is locked in and there is one solution, even if an extra redundant equation creates a [0,0∣0] row at the bottom of a 3×2 matrix like [1001−20∣∣∣4−20]. When at least one variable column has no pivot, that variable is a free variable that can take any value, giving infinitely many solutions where you back-substitute to express the pivot variables in terms of the free variable (such as x=1+z,y=2−z,z free).
When the system has an unknown constant k or an unknown right-hand side b=⟨b1,b2,b3⟩, run the exact same elimination steps to put the letters into the bottom row. For a constant k in a bottom row like (k−2)(k+2)z=k−2, the values that keep the pivot non-zero (k=2,−2) give one solution, while the values that make the pivot 0 give either 0=0 (k=2, infinitely many solutions) or a contradiction 0=−4 (k=−2, zero solutions). For a right-hand side b=⟨b1,b2,b3⟩ that reduces to a zero row [0,0,0∣b1−b2+b3], setting the bottom-right entry to zero (b1−b2+b3=0) gives the equation of the plane of vectors b we can reach.
7
Practice
1
Use elimination to find whether the system 3x−2y=5 and 6x−4y=7 has zero, one, or infinitely many solutions.
What multiple of the first equation eliminates 6x from the second equation, and what happens to the y term at the same time?
Subtracting 2 times the first equation from the second gives:
6x−4y−(6x−4y0=7=10)=−3
(Watch out: if you see both x and y cancel and immediately answer "infinitely many solutions" without checking the right-hand side, you will miss the contradiction 0=−3. And if you forget to multiply 5 by 2, you get 0=2 instead of 0=−3.) The two lines are parallel and never cross, so there are zero solutions.
2
Each augmented matrix is in echelon form. State whether the system has zero, one, or infinitely many solutions, and identify any free variables:
(a) 1004−30960 in variables x,y
(b) [20−115−243] in variables x,y,z
Circle the first non-zero number (pivot) in each row and check whether every variable column has one.
(a) There is no contradiction row, and both the x and y columns have pivots (1 and −3) despite the 0=0 row. (Watch out: seeing the bottom row [0,0∣0] and answering "infinitely many solutions with a free variable" is the most common mistake; there are only two variables x and y, and both columns already have pivots.)One solution (no free variables).
(b) There is no contradiction row, the x and y columns have pivots (2 and 1), and the z column has no pivot. (Watch out: don't assume a matrix without a 0=0 row has one solution; two rows can hold at most two pivots, leaving the third column without a pivot.)Infinitely many solutions (z is a free variable).
3
Reduce the system x+y+2z=4,2x+3y+3z=11, and x+2y+z=7 to echelon form and write the complete solution by expressing the pivot variables in terms of any free variables.
Clear the first column below the pivot 1, then compare the new second and third rows to see which variable column loses its pivot.
Eliminate x below Row 1 (R2←R2−2R1 and R3←R3−R1), then subtract Row 2 from Row 3 (R3←R3−R2):
The x and y columns have pivots and z is a free variable. Back-substitution from Row 2 to Row 1 gives:
y−z=3⟹y=3+zx+(3+z)+2z=4⟹x+3+3z=4
(Watch out: when substituting y=3+z into x+y+2z=4, subtracting z from 2z instead of adding +z and +2z gives the wrong answer x=1−z.)x=1−3z,y=3+z, with z free (any number).
4
For which values of k does the system x+y+z=2,2x+3y+4z=7, and x+2y+(k2−6)z=k+2 have (a) one solution, (b) infinitely many solutions, and (c) zero solutions?
Eliminate x and y so all k terms sit in the bottom row, then factor the coefficient of z using the difference of squares.
Apply R2←R2−2R1 and R3←R3−R1, followed by R3←R3−R2:
(Watch out: dividing both sides by k−3 to get (k+3)z=1 throws away the case k=3, and taking only the positive square root of k2=9 misses k=−3.)(a) One solution when k=3 and k=−3 (all three columns have pivots). (b) Infinitely many solutions when k=3 (the bottom row becomes 0=0, so z has no pivot). (c) Zero solutions when k=−3 (the bottom row becomes 0=−6, a contradiction).
5
Given the augmented matrix 1242593814b1b2b3 for Ax=b: (a) find the equation that b1,b2,b3 must satisfy for the system to have a solution; (b) state how many solutions the system has when b=⟨1,3,5⟩ and when b=⟨1,3,6⟩.
Carry b1,b2,b3 through the row operations that clear the first two columns, and look at the bottom row where the left side becomes all zeros.
Clear column 1 (R2←R2−2R1 and R3←R3−4R1), then subtract Row 2 from Row 3 (R3←R3−R2):
(Watch out: when computing (b3−4b1)−(b2−2b1), forgetting to distribute the minus sign to −2b1 gives the wrong condition −6b1−b2+b3=0. In part (b), when the condition is satisfied, don't answer "one solution", because the third column has no pivot, so any vector b we can reach gives infinitely many solutions.)(a) −2b1−b2+b3=0 (or b3=2b1+b2). (b) For b=⟨1,3,5⟩,−2(1)−3+5=0: infinitely many solutions. For b=⟨1,3,6⟩,−2(1)−3+6=1=0: zero solutions.