Substitution and elimination · Mathematics Class 9–10 | StemPy Lab
Course 10.2·Lesson 1 of 3
Substitution and elimination
A pair of equations can be solved exactly without drawing it. Substitution writes one letter in terms of the other. Elimination adds or subtracts the equations to remove a letter. Both find the single crossing point of the two lines.
about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Why solve with algebra
In the course on graphs and consistency, you drew a pair of lines and read the crossing point from the graph. A graph is only as exact as your ruler. If the answer is x=37, a graph cannot show it. Algebra gives the exact answer every time.
A pair from a fair
At a school fair, Amit buys 2 bags of peanuts and 1 cup of juice for ₹35. Neha buys 3 bags of peanuts and 2 cups of juice for ₹60. What does each item cost?
Let a bag of peanuts cost ₹x and a cup of juice cost ₹y. The two bills give a pair of equations:
2x+y=35,3x+2y=60.
The substitution method
Substitution writes one letter in terms of the other, and then puts that into the second equation.
Choose the easier equation and write one letter in terms of the other. From the first equation, y=35−2x.
Substitute it into the other equation, so that only one letter is left: 3x+2(35−2x)=60.
Solve for that letter: 3x+70−4x=60, so −x=−10 and x=10.
Put it back to find the other letter: y=35−2×10=15.
Check in both equations.2×10+15=35 and 3×10+2×15=60. Both hold.
A bag of peanuts costs ₹10 and a cup of juice costs ₹15.
The elimination method
Elimination makes the coefficients of one letter equal, or opposite, in the two equations. Then adding or subtracting removes that letter. Two facts make this allowed:
You may multiply both sides of an equation by the same number that is not zero.
You may add or subtract two equations, because equal amounts added to equal amounts stay equal.
Take the fair pair again, 2x+y=35 and 3x+2y=60.
Match one letter. Multiply the first equation by 2. It becomes 4x+2y=70.
Subtract the second equation: (4x+2y)−(3x+2y)=70−60, which gives x=10.
Find the other letter by putting x=10 into either equation. The answer is y=15.
Elimination gives the same answer as substitution, as it must.
When the coefficients are opposite
Sometimes no multiplying is needed. In 3x+2y=17 and 5x−2y=7, the terms in y are +2y and −2y. Add the equations:
8x=24,sox=3.
Then 3×3+2y=17 gives y=4.
Two equations written one under the other, like a column sum: 3x plus 2y equals 17, and 5x minus 2y equals 7. A line is drawn under them. Below the line is 8x plus 0y equals 24. The 2y in the first row and the minus 2y in the second row are in red, with an arrow and the words that 2y and minus 2y add to 0. A last line says that 8x equals 24, so x is 3, and then 3 times 3 plus 2y equals 17 gives y equals 4.
When neither letter matches
Take 2x+3y=12 and 3x+5y=19. No coefficient matches, so make them match.
Choose a letter to remove, say x. Its coefficients are 2 and 3, and the smallest number both divide is 6.
Multiply the first equation by 3 and the second by 2: 6x+9y=36 and 6x+10y=38.
Subtract:y=2.
Put it back:2x+6=12, so x=3.
Which method to use
Use substitution when a letter already has the coefficient 1 or −1, as in y=35−2x.
Use elimination when two coefficients match, are opposite, or can be matched by a small multiplier.
Always put your answer back into both of the original equations.
When both letters disappear
Sometimes elimination removes both letters. Take x+2y=3 and 2x+4y=9. Double the first equation to get 2x+4y=6, and subtract the second:
0=−3.
That is false for every x and y, so the pair has no solution. The lines are parallel. If you reached 0=0, the equations would describe the same line, with infinitely many solutions. The conditions on the coefficients in the graphs course tell the same story.
Practise with new numbers
Try it in Python
The program solves the fair pair by substitution and by elimination, and checks that the two answers agree.
Common mistakes
Multiplying only one side. If you multiply 2x+3y=7 by 4, the result is 8x+12y=28. The 7 must be multiplied too.
Subtracting with a lost sign. In (4x+2y)−(3x+2y), every term of the second bracket changes sign.
Stopping at one letter. The pair has two unknowns, so the answer needs both values.
Skipping the check. A slip in step 2 or 3 shows up at once when you put the answer back.
Remember these
Substitution: write one letter in terms of the other, put it into the second equation, solve, and put back.
Elimination: match the coefficients of one letter, add or subtract, solve, and put back.
If both letters disappear, a false statement means no solution and 0=0 means infinitely many.
Check the answer in both equations.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Solve y=2x and 3x+y=15 by substitution.
Solve 4x+5y=34 and 4x−5y=14.
Solve x+3y=11 and 2x−y=1 by any method.
After elimination, a pair gives 0=8. What does this say about the two lines?
Ravi multiplies 2x+3y=7 by 4 and writes 8x+12y=7. What is his mistake?
Enroll free in Solving Pairs of Equations Algebraically
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Count the course towards the certificate for its chapter.