Sub topic 8
Solving Systems by Substitution
This chapter assumes you can solve one-variable linear equations, rearrange a formula to isolate a variable, and read a two-variable linear equation as a line. You should also know that a solution of a system must satisfy every equation in it. Here you will learn the substitution method, when to choose it, and the errors that cost points on the GRE.
The Core Idea
Substitution reduces a two-variable system to a one-variable equation. You express one variable in terms of the other, then replace that variable in the second equation with the expression. The second equation now contains one unknown, which you can solve with the methods from earlier chapters.
The method works because the first equation says the two sides are equal. Anywhere the variable appears, you may write the equivalent expression without changing the meaning of the second equation.
The steps are:
- Pick one equation and solve it for one variable.
- Substitute that expression into the other equation. Never substitute it back into the equation you just used.
- Solve the resulting one-variable equation.
- Substitute the value back into the isolated form from step 1 to find the other variable.
- Check the pair in both original equations.
Worked Example: A Variable Is Already Isolated
When one equation already has the form y = something, substitution is immediate.
System: y = 2x - 1 and 3x + y = 14
Substitute: 3x + (2x - 1) = 14
5x = 15, so x = 3
Then y = 2(3) - 1 = 5
Solution: (3, 5)Notice the parentheses around 2x - 1. Writing them is a habit worth keeping, because the expression you substitute is treated as a single unit.
Check in both original equations. In y = 2x - 1: 5 = 2(3) - 1 = 5. In 3x + y = 14: 3(3) + 5 = 14. Both hold.
Geometrically, the two equations are lines, and (3, 5) is the point where they cross. Substitution finds the one point that lies on both lines.
Choosing What to Isolate
Often neither equation is already solved for a variable. You then choose, and a good choice avoids fractions.
Consider the system 2x + y = 9 and 4x - 3y = 7. In the first equation, y has coefficient 1, so y = 9 - 2x needs no division. Isolating x instead would give x = (9 - y)/2, which introduces a fraction you would need to carry through the next step.
A practical rule: look for a variable with coefficient 1 or -1 and isolate that one. Solve it:
y = 9 - 2x
4x - 3(9 - 2x) = 7
4x - 27 + 6x = 7
10x = 34, so x = 17/5
y = 9 - 2(17/5) = 45/5 - 34/5 = 11/5Check in the second equation: 4(17/5) - 3(11/5) = 68/5 - 33/5 = 35/5 = 7. Correct.
The answer has fractions, which is normal on the GRE. Do not treat a fractional result as a sign of error. Only the check can tell you whether a result is right.
Substitution with Literal Equations
Isolating a variable is the same skill as solving a formula for one variable. If a system includes a formula such as P = 2l + 2w, you can solve it for l in terms of w and substitute. This is why the concept graph links solving for one variable to the substitution method.
Example: a rectangle has perimeter 40, and its length is 4 more than its width. Write the equations as 2l + 2w = 40 and l = w + 4.
2(w + 4) + 2w = 40
2w + 8 + 2w = 40
4w = 32, so w = 8
l = 8 + 4 = 12The rectangle is 12 by 8. Check: 2(12) + 2(8) = 24 + 16 = 40.
When Substitution Is the Better Choice
Substitution and elimination both solve any system. You choose between them for speed and for lower risk of error.
| Situation | Better method | Reason |
|---|---|---|
| One equation already reads y = ... or x = ... | Substitution | The first step is already done |
| A variable has coefficient 1 or -1 | Substitution | Isolating it creates no fractions |
| Both equations are in the form ax + by = c with awkward coefficients | Elimination | Scaling and adding avoids fractions |
| The question asks for x + y or a similar combination | Elimination or adding the equations | You may not need either variable alone |
| One equation is nonlinear, such as y = x^2 | Substitution | Elimination does not apply cleanly |
The last row matters. Some GRE questions pair a linear equation with an equation like xy = 12 or x^2 = y. Substitution handles these, while elimination usually does not.
A Nonlinear Example
Suppose x + y = 7 and xy = 12. Isolate y = 7 - x and substitute:
x(7 - x) = 12
7x - x^2 = 12
x^2 - 7x + 12 = 0
(x - 3)(x - 4) = 0
x = 3 or x = 4If x = 3 then y = 4. If x = 4 then y = 3. This system has two solutions, which is possible only because one equation is not linear. For two linear equations, you will get one solution, none, or infinitely many.
Substitution into a Word Problem
Substitution fits word problems where one relationship expresses one quantity in terms of another.
A store sells notebooks and pens. A notebook costs 3 dollars more than a pen. Four notebooks and five pens cost 47 dollars. Find the price of a pen.
Let n be the notebook price and p the pen price.
n = p + 3
4n + 5p = 47
4(p + 3) + 5p = 47
4p + 12 + 5p = 47
9p = 35, so p = 35/9That price, about 3.89 dollars, is not a clean value. Rechecking the setup is the right move when a result looks unusual, but an unusual result is not automatically wrong. Here the setup is correct: n = 35/9 + 27/9 = 62/9, and 4(62/9) + 5(35/9) = 248/9 + 175/9 = 423/9 = 47. The check confirms the answer.
If a problem like this were meant to have whole-number prices, you would suspect a misread number. On the GRE, answer choices are the guide. If your result is not among them, reread the problem before assuming the choices are wrong.
Common Errors
These mistakes appear repeatedly, and the check step catches most of them.
- Substituting into the same equation. If you isolate y from equation 1 and place it back into equation 1, you get a true statement such as 5 = 5 or 0 = 0 and learn nothing. Always substitute into the other equation.
- Dropping parentheses. Replacing y with 2x - 1 in 3y gives 3(2x - 1) = 6x - 3, not 3 * 2x - 1. Distribute over the whole expression.
- Sign errors when isolating. From 2x + y = 9, the result is y = 9 - 2x, not y = 2x - 9. Moving a term across the equals sign flips its sign.
- Stopping at one variable. The question may ask for y, or for a combination such as x - y. Reread the question before you finish.
- Checking only one equation. A wrong pair can satisfy the equation you used for back-substitution by construction. It must also satisfy the other one.
What the Result Tells You
After you substitute, the one-variable equation can end in three ways.
x + 2y = 5 and 2x + 4y = 10
x = 5 - 2y
2(5 - 2y) + 4y = 10
10 - 4y + 4y = 10
10 = 10Here the variable disappears and the statement is true. The equations describe the same line, so there are infinitely many solutions.
x + 2y = 5 and 2x + 4y = 7
x = 5 - 2y
2(5 - 2y) + 4y = 7
10 = 7Here the variable disappears and the statement is false. The lines are parallel, so there is no solution. If you reach a normal equation like 5x = 15, there is exactly one solution. The next chapters treat these special cases more fully, but you can already recognize them during substitution.
Verifying with Code
The following optional program uses substitution logic indirectly. It solves a two-variable system with exact fractions so you can confirm hand results. It returns None when the determinant is zero, which corresponds to the no-solution and infinitely-many-solutions cases above.
from fractions import Fraction
def solve_2x2(a1, b1, c1, a2, b2, c2):
"""Solve a1*x + b1*y = c1 and a2*x + b2*y = c2 using Cramer's rule."""
det = a1 * b2 - a2 * b1
if det == 0:
return None # no solution or infinitely many solutions
x = Fraction(c1 * b2 - c2 * b1, det)
y = Fraction(a1 * c2 - a2 * c1, det)
return x, y
# 2x + y = 9 and 4x - 3y = 7 from the section on choosing what to isolate
print(solve_2x2(2, 1, 9, 4, -3, 7)) # (Fraction(17, 5), Fraction(11, 5))The output matches the hand solution x = 17/5, y = 11/5.
Practice
Exercise
Solve the system x = 3y - 2 and 2x + 5y = 18. Give x and y, and say which equation you used for the check.
Show answer
Substitute x = 3y - 2 into the second equation: 2(3y - 2) + 5y = 18, so 6y - 4 + 5y = 18, so 11y = 22 and y = 2. Then x = 3(2) - 2 = 4. The solution is (4, 2). Check in both equations: 4 = 3(2) - 2 = 4, and 2(4) + 5(2) = 18.
Exercise
Solve y = 4 - x and 3x + 2y = 11 by substitution, then explain what you would conclude if the second equation were 3x + 3y = 11 and the first were x + y = 4.
Show answer
First system: 3x + 2(4 - x) = 11, so 3x + 8 - 2x = 11, so x = 3 and y = 1. For the second pair, y = 4 - x gives 3x + 3(4 - x) = 11, which simplifies to 12 = 11. The variable cancels and the statement is false, so there is no solution (the lines are parallel).
Exercise
The sum of two numbers is 20 and one number is 6 more than three times the other. Find both numbers.
Show answer
Let a + b = 20 and a = 3b + 6. Substitute: (3b + 6) + b = 20, so 4b = 14 and b = 7/2. Then a = 3(7/2) + 6 = 33/2. Check: 33/2 + 7/2 = 40/2 = 20, and 3(7/2) + 6 = 21/2 + 12/2 = 33/2.