Sub topic 13
Three Unknowns and Counting Equations
This chapter assumes you can already solve two-variable systems by substitution and by elimination, and that you know the three outcomes of a system: one solution, no solution, or infinitely many solutions. Here you extend those methods to three unknowns. You will also learn a counting rule that predicts what to expect before you do any algebra.
On the GRE, a full three-variable system with a unique answer is rare. The more common question is whether the given equations are enough to determine a value. The counting rule below is useful for that second kind of question.
The Counting Rule
Compare the number of unknowns with the number of equations.
| Situation | What usually happens |
|---|---|
| Fewer equations than unknowns | Infinitely many solutions (if any exist) |
| Equal number of equations and unknowns | Usually one solution |
| More equations than unknowns | Often no solution, unless the extra equations agree with the others |
"Usually" matters. The rule describes the typical case. Two equations can be copies of each other in disguise, which makes them count as one. Two lines can also be parallel and have no common point. So the count gives you a prediction, and the algebra confirms it.
Why the rule works
Each independent equation removes one degree of freedom. With two unknowns, one equation such as x + y = 5 leaves a whole line of solutions. A second independent equation cuts that line down to a single point.
With three unknowns, one equation describes a flat surface (a plane) of solutions. A second independent equation cuts that plane down to a line. A third independent equation cuts the line down to a single point. This is why you need three independent equations for three unknowns.
Solving a Three-Unknown System
The method is to use elimination to reduce the system to two unknowns, and then solve that smaller system as you already know how.
Solve:
- Equation 1: x + y + z = 6
- Equation 2: 2x - y + z = 3
- Equation 3: x + 2y - z = 2
Step 1: Eliminate one variable from two different pairs. Here z is convenient because its coefficients are 1, 1, and -1.
Add Equation 1 and Equation 3:
(x + y + z) + (x + 2y - z) = 6 + 2
2x + 3y = 8 (Equation 4)
Subtract Equation 1 from Equation 2:
(2x - y + z) - (x + y + z) = 3 - 6
x - 2y = -3 (Equation 5)
Step 2: Solve the two-variable system. From Equation 5, x = 2y - 3. Substitute into Equation 4:
2(2y - 3) + 3y = 8
4y - 6 + 3y = 8
7y = 14, so y = 2
Then x = 2(2) - 3 = 1.
Step 3: Back-substitute for the third variable. From Equation 1: 1 + 2 + z = 6, so z = 3.
Step 4: Check in every original equation.
- Equation 1: 1 + 2 + 3 = 6 ✓
- Equation 2: 2(1) - 2 + 3 = 3 ✓
- Equation 3: 1 + 2(2) - 3 = 2 ✓
The solution is (x, y, z) = (1, 2, 3).
You must eliminate the same variable from both pairs. If you eliminate z from one pair and x from the other, you end up with two equations that have different unknowns, and you cannot solve them together.
When Three Equations Are Not Enough
Equal counts do not guarantee a unique answer. Consider:
- x + y + z = 6
- 2x + 2y + 2z = 12
- x - y = 0
The second equation is exactly twice the first, so it adds no information. In effect, you have only two independent equations for three unknowns. The solutions form a line: for any value of z, set x = y and then 2x + z = 6. Examples are (1, 1, 4), (2, 2, 2), and (0, 0, 6).
Now consider:
- x + y + z = 6
- x + y + z = 9
- x - y = 0
The first two equations contradict each other, because the same sum cannot equal both 6 and 9. There is no solution at all.
Elimination reveals both cases. In the first, subtracting twice Equation 1 from Equation 2 gives 0 = 0, which is always true and signals a redundant equation. In the second, subtracting Equation 1 from Equation 2 gives 0 = 3, which is false and signals no solution.
Determining a Value Without a Full Solution
An underdetermined system can still pin down a specific expression. The question may only need x + y + z, not each variable.
Given:
- x + y = 7
- y + z = 9
- x + z = 8
Find x + y + z.
Add all three equations. Each variable appears twice:
2x + 2y + 2z = 24
x + y + z = 12
You did not need to solve for the individual variables. If the question had asked for z alone, you could subtract: (x + y + z) - (x + y) = 12 - 7 = 5.
This is the same idea as the target-expression shortcut from the two-variable case, applied to three unknowns. Before eliminating, look at what the question asks for.
Data Sufficiency-Style Reasoning in Quantitative Comparison
The GRE does not have a Data Sufficiency format, but Quantitative Comparison questions often ask, in effect, whether the given information fixes a value. Use the counting rule as a first screen.
Suppose a question states that x, y, and z satisfy x + y + z = 10 and x - y = 2, and asks you to compare z with 4.
There are three unknowns and two equations, so you should expect z to vary. Test it: choosing y = 1 gives x = 3 and z = 6. Choosing y = 2 gives x = 4 and z = 4. Choosing y = 3 gives x = 5 and z = 2. The comparison with 4 changes from "z is greater" to "equal" to "z is less," so the relationship cannot be determined from the information given. The answer is (D).
The pattern is: if you can find two valid choices that give different comparison results, the answer is (D). A single counterexample is enough.
Common Errors
- Counting repeated information as new. An equation that is a multiple of another, or the sum of two others, does not count as independent.
- Eliminating different variables in different pairs. Both new equations must contain the same two unknowns.
- Forgetting to check all original equations. An arithmetic slip in elimination can produce values that satisfy only some equations.
- Assuming equal counts mean one solution. Always watch for 0 = 0 and 0 = 3 style results.
- Solving for everything when one expression is requested. Add or subtract the equations first and see whether the target appears.
Verifying with Code
This optional check solves the worked system using exact fractions and Gaussian elimination. It raises an error when the system lacks a unique solution.
from fractions import Fraction
def solve_linear_system(matrix):
"""Solve an n x n system. Each row is [a1, ..., an, constant]."""
n = len(matrix)
rows = [[Fraction(v) for v in row] for row in matrix]
for col in range(n):
pivot = next((r for r in range(col, n) if rows[r][col] != 0), None)
if pivot is None:
raise ValueError("No unique solution")
rows[col], rows[pivot] = rows[pivot], rows[col]
rows[col] = [v / rows[col][col] for v in rows[col]]
for r in range(n):
if r != col:
factor = rows[r][col]
rows[r] = [a - factor * b for a, b in zip(rows[r], rows[col])]
return [rows[i][n] for i in range(n)]
print(solve_linear_system([
[1, 1, 1, 6],
[2, -1, 1, 3],
[1, 2, -1, 2],
])) # [Fraction(1, 1), Fraction(2, 1), Fraction(3, 1)]Running it on the redundant system (1, 1, 1, 6), (2, 2, 2, 12), (1, -1, 0, 0) raises "No unique solution," matching the algebra above.
Exercises
Exercise
Given x + y = 10, y + z = 14, and x + z = 12, find x + y + z.
Show answer
Add the three equations: 2x + 2y + 2z = 36, so x + y + z = 18.
Exercise
A system has three unknowns x, y, z and these equations: x + y + z = 4, 3x + 3y + 3z = 12, and x - z = 1. Does it have exactly one solution? Explain.
Show answer
No. The second equation is 3 times the first, so it is redundant. Only two independent equations remain for three unknowns, so there are infinitely many solutions. For example, (2, 1, 1) and (3, 0, 2) both work.
Exercise
Solve x + y + z = 9, x - y = 1, and y - z = -1.
Show answer
From the second equation, x = y + 1. From the third, z = y + 1. Substitute into the first: (y + 1) + y + (y + 1) = 9, so 3y + 2 = 9 and y = 7/3. Then x = 10/3 and z = 10/3. Check: 10/3 + 7/3 + 10/3 = 27/3 = 9 ✓.
Exercise
Quantity A is x. Quantity B is 3. You are told that x + y + z = 12 and y + z = 9. Which quantity is greater, or can the relationship not be determined?
Show answer
Subtract the second equation from the first: x = 3. The quantities are equal, so the answer is (C). Although y and z are not individually determined, x is, and x is all the comparison needs.