Solving Systems by Substitution
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Replace a variable with an equal expression to leave one unknown
- Choose a coefficient of or to simplify the isolation step
- Substitute into the other equation, then back-substitute
- Read the pair as the crossing point of two lines
- Interpret a canceled variable as parallel lines or one line
- Check both coordinates in both original equations
Turning two unknowns into one
A system of two linear equations presents two equations that must hold at the same time, and asks for all pairs that satisfy both. In the last lesson you saw the picture: each equation draws a line. When there is exactly one solution, that pair sits where the two lines cross. Reading the crossing point off a graph is quick to picture but hard to do exactly, especially when the coordinates are fractions. Substitution, replacing a variable with an equal expression, finds the solution set exactly using the equation solving from the Linear Equations chapter.
The method rests on a rule you have followed since your first equation: equals may be replaced by equals. If one equation tells you that , then and are two names for the same number. So anywhere appears you may write instead without changing what is true.
Here is how it removes a whole variable. Take
The first equation says is the same as . Replace in the second equation with :
The is gone. What remains has only in it, and you already know how to finish:
Then recover from the first equation: . The solution is , the point where these two lines cross.
The substitution method step by step
The example above followed a fixed routine, and every system starts with the same moves. (If the variable terms cancel completely in step 3, there is no second coordinate to find, and step 4 does not happen. That case gets its own section below.)
- Solve one equation for one variable. Pick a variable that is easy to isolate, ideally one whose coefficient is or , so isolation needs no division, at most a sign change. This gives an expression for that variable in terms of the other.
- Substitute into the other equation. Replace that variable, in the equation you did not use in step 1, with the expression you found. The result is a single equation in one variable.
- Solve the one-variable equation. Use the ordinary methods from the Linear Equations chapter.
- Back-substitute. Put that value into the expression from step 1 to get the second variable.
- Check. Substitute the pair into both original equations. The pair is a solution only if it satisfies both.
Steps 2 and 5 are the two most often skipped. Substituting into the other equation is how you make progress, and checking in both originals is how you catch a slip.
Worked example 1 Solve and
Neither equation is solved for a variable yet, so start with step 1. In the variable has coefficient , so isolating it is clean. Add to both sides:
Substitute this expression for into the other equation, :
Now there is only to find. Distribute and collect:
Back-substitute into :
So the candidate solution is . Check it in both original equations, not just the one you solved:
Both hold, so is the solution.
Check your understanding
In the system and , what do you get right after substituting for in the second equation?
The first equation says is the same as , so replace in with . That is the other equation, not the one you solved for .
From here , so and . Back-substitute into to get , so the solution is .
Check your understanding
Solve the system and by substitution. What is the full solution pair ?
The second equation already gives in terms of , so substitute it into the first equation:
This gives , so and . Back-substitute into to get . Check both originals: , and . Both hold, so the solution is , not just the -value.
Check your understanding
Solving and by substitution, a student finds the candidate pair . Checking the first equation gives , which holds. What must the student still do before calling the solution?
A pair only solves the system if it satisfies BOTH original equations, so the student must also check the second equation. Substituting confirms it here:
Both hold, so is the solution.
Why substitution works
Replacing a variable by an equal expression keeps the same solutions, provided we keep the equation that tells us the two are equal.
Why substitution never gains or loses a solution#
Use and . Subtracting from the first gives . For pairs on that first line, replacing in the second equation gives . This reduces to , and the kept equation then gives .
The replacement works both ways. A pair satisfying the originals has , so it also satisfies the substituted equation. A pair satisfying and the substituted equation also satisfies , because and are equal. Adding back recovers .
The same reasoning applies to any two linear equations. Isolate a variable whose coefficient is nonzero, using reversible equation steps. Keep that equation and replace the variable in the other by its equal expression. Every original solution survives, and every resulting solution satisfies the originals. Back-substitution recovers the coordinate that was replaced.
The one-variable equation may fix a value, giving one pair. If it is false for every value, there is no solution. If it is true for every value, every point on the kept line solves the system.
Choosing what to solve for
Substitution works for every system of two linear equations, but choose a variable with a nonzero coefficient. A convenient choice keeps the first step simpler. Scan the four coefficients and look for or . A coefficient of needs only addition or subtraction to isolate; a coefficient of needs one extra sign flip. With integer coefficients and constants, neither choice introduces fractions during isolation. Fractions already in the equations, or in the final answer, may still remain. If neither nor is available, choose any nonzero coefficient.
Worked example 2 Solve and
Look for the easiest variable to isolate. In the variable has coefficient , so solve that equation for :
Substitute into the other equation, :
Distribute and collect the terms:
Back-substitute into :
The solution is . A quick check confirms it: and , both true. Had we instead solved for , we would have divided by and dragged a fraction through every line. Choosing the coefficient of kept the numbers whole.
Check your understanding
Which first move avoids a fraction while isolating a variable in and ?
Hunt for a coefficient of or . In the variable has coefficient , so isolating it needs no division.
Every other choice divides by , , or and brings in a fraction.
When the variable disappears: no solution and infinitely many
Usually the substituted equation gives one variable a single value. Once in a while the variable terms cancel completely and you are left with a bare numerical statement instead. Check whether that statement is true or false; the next two examples show what each one means.
Worked example 3 A system with no solution
Solve
Both equations are already solved for , so set the two expressions for equal (each equals , so they equal each other):
Subtract from both sides, and every vanishes:
This is false: no value of can make equal . So there is no pair satisfying both equations, and the system has no solution. Geometrically, both lines climb units for every step right but start at different heights, so they are parallel and never cross.
Worked example 4 A system with infinitely many solutions
Solve
Substitute into the second equation:
Distribute carefully, watching the sign on the :
Every has canceled and the statement left over is always true. That means every pair on the first line already satisfies the second, so the system has infinitely many solutions. In fact the second equation is the first one in disguise: rearranging gives , and doubling that gives . The two equations describe the same line, so its every point, written , is a solution.
Check your understanding
Solving a system by substitution, you arrive at . What does this tell you?
When the variable cancels and leaves a false numerical statement, no pair can satisfy both equations at once.
The lines are parallel and never meet. Read it as no solution, not as .
Check your understanding
Solving a system by substitution, you arrive at . What does this tell you?
When the variable cancels and leaves a statement that is always true, every pair on the first line also satisfies the second.
The two equations describe the same line. Contrast this with : a false statement means no solution, an always-true one means infinitely many.
Seeing the answer as a crossing point
Below are the lines from the opening example, and . They cross at , the pair substitution found.
Substitution finds the crossing point exactly, even when it is a fraction that would be hard to read from a rough drawing.
Check your understanding
Substitution turns the system and into the pair . If both lines were graphed, what does the point represent?
A system's solution is the one point that lies on both lines at once, so on the graph it is exactly where the two lines cross. A point on only one line would satisfy just one equation, not both.
The figure below returns to the opening system. Solid line A is ; dashed line B is , rewritten as . Its crossing dot marks the pair substitution finds.
Set Rise B and Run B to , matching line A. With different vertical crossings, the lines are parallel and there is no solution. Watch the dot disappear and the readout change. Then set Crosses B to too. The two lines coincide, so every point on that line is a solution. These are the pictures behind a false leftover statement and an always-true one.
The crossing point substitution computes
y = x + 1. y = -2x + 7. The lines cross exactly once, so one pair satisfies both equations. They cross at (2, 3).