Solving Systems by Substitution
Learning goals
- Replace a variable with an equal expression to leave one unknown
- Choose a coefficient of or to avoid fractions
- 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 the pair that satisfies both. In the last lesson you saw the picture: each equation draws a line, and the one pair solving both sits exactly where the two lines cross. Reading that crossing point off a graph is quick to picture but hard to do exactly, especially when the coordinates are fractions. Substitution finds it precisely, and it needs nothing beyond the equation solving from the Linear Equations chapter.
The method rests on a single principle you have used since your very 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.
Watch it clear an entire variable out of the way. 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 very 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 no fractions appear. 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. A genuine solution satisfies each one.
Steps 2 and 5 are the two most often skipped. Substituting into the other equation is what makes progress, and checking in both originals is what catches 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 one equation checking out proves nothing about the other. Substituting confirms it here too:
Both hold, so is genuinely the solution.
Why substitution works
Substitution can feel almost too easy, so it is worth seeing exactly why the pair it produces is guaranteed to be the solution of the system. The argument below also shows that no solutions are gained and none are lost.
Why substitution never gains or loses a solution#
A system asks for every pair that makes both equations true. Substitution swaps the system for one smaller equation, so it is worth checking that the swap keeps exactly the same pairs. Take the opening example again: and .
Solving the first equation for did not remove or add any pairs. Every step used to get can be undone, so a pair satisfies that equation exactly when its -coordinate equals .
Now look only at pairs with . For any one of them, and are just two names for the same number. So writing in place of inside the second equation cannot change whether that pair satisfies it: you are only replacing a quantity with an equal one. That is why and are true for exactly the same pairs of this kind, for any starting equations, not just these two.
Put the two facts together. A pair solves the system exactly when and are both true. The second condition pins down , and the first then hands you . So substitution trades the system for one equivalent equation. Every that solves it gives one solution of the system, and every solution of the system comes from exactly one such . Nothing is gained, and nothing is lost.
This also explains what the graph does. When the substituted equation pins down one value of , the two lines meet at one point. When it collapses to a false statement such as , no works, so the lines are parallel. When it collapses to something always true such as , every on the first line works, so the two equations describe the same line.
Choosing what to solve for
Every system yields to substitution, but a smart first choice saves you from fractions. Scan the four coefficients and look for a variable whose coefficient is or . A coefficient of needs only addition or subtraction to isolate; a coefficient of needs one extra sign flip. Neither ever divides by anything other than , so no denominator appears. If no coefficient is or , any choice works; you will just carry a fraction through the arithmetic.
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 fractions when solving and by substitution?
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 pins one variable to a single value. Once in a while the variable terms cancel completely and you are left with a bare numerical statement instead. That is not a dead end; it is the system telling you how the two lines lie.
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
Substitution never draws a picture, but it is worth remembering that the pair it returns is exactly the point the two lines share. Below are the lines from the opening example, and . Substitution replaced in the second equation and returned , and that is precisely where the two lines cross.
The algebra and the picture agree, which is the point. Substitution is just a way to compute the crossing point without the guesswork of reading it off a grid. The method also stays exact even when the answer is a fraction that no drawing could pin down.
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 not just a pair of numbers to report; it 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 opens on that same system, as the solid line and as the dashed one. The figure reports the crossing point, when there is one, as you move either line. Substitution and the picture are answering the same question, so the coordinates under the figure should always be the pair substitution would return.
Use it to make the two special cases from earlier in this lesson concrete, because they can look like nothing on paper. Set Rise B and Run B to match Rise A and Run A, a rise of over a run of . Now the dashed line has the same slope as the solid one, and the dot disappears. The lines are parallel, which is what a false statement like was telling you. Next also lower Crosses B until it matches Crosses A, at . The dashed line now sits exactly on top of the solid one. The sentence changes to say every point is a solution, which is what an always-true statement like was telling you. Look closely at what changed. The parallel case still shows two separate lines side by side. The matching case shows only one, because the dashed line has landed exactly on the solid one.
The crossing point substitution computes
y = x + 1. y = -2x + 7. The slopes 1 and -2 are different, so they cross exactly once. They cross at (2, 3).