Why we need it

Graphs are lovely for see­ing what's going on, but they let you down when the answer is a frac­tion. The sub­sti­tu­tion method finds the exact solu­tion by pure alge­bra: write one vari­able in terms of the other, sub­sti­tute it in, and you're left with a sin­gle equa­tion in one unknown, which you already know how to solve.

The method in three steps

  1. Take whichever equa­tion is eas­ier and write one vari­able in terms of the other.
  2. Sub­sti­tute that expres­sion into the other equa­tion. You now have one equa­tion in one vari­able, solve it.
  3. Put the value back into the expres­sion from step 1 to get the sec­ond vari­able.

Then check your answer in both orig­i­nal equa­tions. Check­ing in only one catches noth­ing, because the value came from that very equa­tion.

Worked exam­ple 1

Solve x+3y=11x + 3y = 11 and 2x−y=12x - y = 1.

Step 1. The first equa­tion gives xx cleanly: x=11−3yx = 11 - 3y.

Step 2. Sub­sti­tute into the sec­ond: 2(11−3y)−y=12(11 - 3y) - y = 1, so 22−6y−y=122 - 6y - y = 1, so −7y=−21-7y = -21, so y=3y = 3.

Step 3. x=11−3(3)=2x = 11 - 3(3) = 2.

Ver­ify. 2+9=112 + 9 = 11 ✓ and 4−3=14 - 3 = 1 ✓. Solu­tion: x=2x = 2, y=3y = 3.

Worked exam­ple 2, a frac­tional answer

Solve 3x+2y=53x + 2y = 5 and x−4y=4x - 4y = 4.

Step 1. From the sec­ond: x=4+4yx = 4 + 4y.

Step 2. 3(4+4y)+2y=53(4 + 4y) + 2y = 5, so 12+12y+2y=512 + 12y + 2y = 5, so 14y=−714y = -7, so y=−12\displaystyle y = -\frac{1}{2}.

Step 3. x=4+4(−12)=4−2=2\displaystyle x = 4 + 4\left(-\frac{1}{2}\right) = 4 - 2 = 2.

Ver­ify. 6−1=56 - 1 = 5 ✓ and 2+2=42 + 2 = 4 ✓.

A graph would have left you squint­ing and guess­ing at that value. Sub­sti­tu­tion hands it to you exactly.

Graph of 3x + 2y = 5 and x - 4y = 4 crossing at (2, -1/2): the y-value is a fraction halfway between grid lines, hard to read off a drawn graph.
The lines meet at (2, minus one half), between grid lines

What hap­pens when there is no unique solu­tion

Here's a nice thing about sub­sti­tu­tion: it never fails silently. When there isn't a sin­gle answer, it hands you a state­ment that is either always true or always false.

Par­al­lel lines. Solve x+2y=3x + 2y = 3 and 2x+4y=102x + 4y = 10. From the first, x=3−2yx = 3 - 2y. Then 2(3−2y)+4y=102(3 - 2y) + 4y = 10 gives 6−4y+4y=106 - 4y + 4y = 10, i.e. 6=106 = 10. That is false for every yy: no solu­tion.

Coin­ci­dent lines. Solve x+2y=3x + 2y = 3 and 2x+4y=62x + 4y = 6. Same sub­sti­tu­tion: 6−4y+4y=66 - 4y + 4y = 6, i.e. 6=66 = 6. That is true for every yy: infi­nitely many solu­tions.

Left: x + 2y = 3 and 2x + 4y = 10 are parallel lines that never meet. Right: x + 2y = 3 and 2x + 4y = 6 lie on top of each other as a single line.
Par­al­lel lines give 6 = 10; coin­ci­dent lines give 6 = 6

So if the vari­able sud­denly van­ishes, don't panic; just look at what is left. A false state­ment means the lines are par­al­lel, and a true one means they coin­cide.

Choos­ing what to sub­sti­tute

A prac­ti­cal tip: if some vari­able has coef­fi­cient 11 or −1-1, pick that one. Solv­ing 5x−2y=35x - 2y = 3 for xx gives x=3+2y5\displaystyle x = \frac{3 + 2y}{5}, which is cor­rect but an open invi­ta­tion to frac­tion errors. If the other equa­tion has yy on its own, use that instead and save your­self the trou­ble.

Prac­tice

Solve by sub­sti­tu­tion and ver­ify.

  1. x+y=7x + y = 7, x−y=3x - y = 3.
  2. 2x+y=82x + y = 8, x−3y=−3x - 3y = -3.
  3. 3x−y=73x - y = 7, 2x+5y=−12x + 5y = -1.
  4. x+2y=5x + 2y = 5, 3x+6y=153x + 6y = 15.
  5. x−y=1x - y = 1, 2x−2y=52x - 2y = 5.
  6. The sum of two num­bers is 3232 and their dif­fer­ence is 88. Find them.

Answers

Show answers
  1. x=7−yx = 7 - y; then 7−y−y=37 - y - y = 3, y=2y = 2, x=5x = 5. Check: 5+2=75 + 2 = 7 ✓, 5−2=35 - 2 = 3 ✓.
  2. x=3y−3x = 3y - 3; then 2(3y−3)+y=82(3y - 3) + y = 8, 7y=147y = 14, y=2y = 2, x=3x = 3. Check: 6+2=86 + 2 = 8 ✓, 3−6=−33 - 6 = -3 ✓.
  3. y=3x−7y = 3x - 7; then 2x+5(3x−7)=−12x + 5(3x - 7) = -1, 17x=3417x = 34, x=2x = 2, y=−1y = -1. Check: 6+1=76 + 1 = 7 ✓, 4−5=−14 - 5 = -1 ✓.
  4. x=5−2yx = 5 - 2y; then 3(5−2y)+6y=153(5 - 2y) + 6y = 15, i.e. 15=1515 = 15. True for all yy: infi­nitely many solu­tions (coin­ci­dent lines).
  5. x=1+yx = 1 + y; then 2(1+y)−2y=52(1 + y) - 2y = 5, i.e. 2=52 = 5. False: no solu­tion (par­al­lel lines).
  6. x+y=32x + y = 32, x−y=8x - y = 8. x=32−yx = 32 - y; 32−2y=832 - 2y = 8, y=12y = 12, x=20x = 20. The num­bers are 2020 and 1212.