Solving Systems by Substitution
Learning goals
- Replace a variable with an equal expression to leave one unknown
- Choose a coefficient of to avoid fractions
- Substitute into the other equation, then back-substitute
- Read the pair as the crossing point of two lines
- Interpret a cancelled 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 yields to the same five moves.
- 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 .
From here , so and . Substitute into only, not into the equation the expression came from.
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 replacing a variable preserves the solution set#
A system of two equations asks for every pair that makes both equations true at once, and that collection of pairs is the solution set. Substitution swaps the system for a smaller problem, so we must confirm it keeps this set exactly.
Suppose the first equation can be solved for , giving , where is some expression built from (for instance ). Solving an equation does not change which pairs satisfy it. Every step is reversible: adding the same amount to both sides can be undone, and so can dividing both sides by a nonzero number. So the pairs satisfying the first equation are precisely the pairs for which . A pair lies on the first line exactly when its -coordinate equals .
Now look at one such pair, a pair with . For it, the symbol and the expression stand for the same number. Substituting in place of in the second equation therefore cannot change whether that pair satisfies it, because we are replacing a quantity by an equal quantity. The second equation written with and the second equation with in place of are true for exactly the same pairs of this kind.
Put the two observations together. A pair solves the system exactly when it satisfies the first equation and the second. The first condition says . Granting that, the second condition becomes the substituted equation, which contains only . So the pairs solving the system are exactly the pairs whose solves the substituted one-variable equation and whose equals . Substitution loses nothing and invents nothing: it trades the system for an equivalent single equation. Every solution of that equation extends to one solution of the system. And every solution of the system arises this way, from exactly one solution of that equation.
This also explains what the graph does. When the substituted equation fixes one value of , the two lines meet at one point. When it collapses to a false statement such as , no can satisfy it, so the lines share no point and run parallel. When it collapses to a statement that is 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 . Solving for that variable never introduces a denominator, because isolating it takes only additions and subtractions, never a division. 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 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 cancelled 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 .
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.
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 awkward cases from earlier in this lesson concrete, because they are the ones that look like nothing on paper. Give the dashed line the same slope as the solid one, a rise of over a run of . Now the crossing point disappears, and that vanishing is what a contradiction like is telling you. Then slide the dashed line’s crossing point down onto the solid one’s. Nothing is left but a single visible line, and the sentence changes to say the two equations describe the same line, which is the identity case. The two states differ in one control and nothing else, and they look almost identical, which is exactly why the algebra distinguishes them and your eyes cannot.
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).