There are three stan­dard ways of solv­ing a pair of lin­ear equa­tions by alge­bra: sub­sti­tu­tion, elim­i­na­tion and cross mul­ti­pli­ca­tion. They always give the same answer, so you can use whichever suits the pair in front of you, and use a sec­ond method to check. This les­son teaches the first, the sub­sti­tu­tion method. Its idea is sim­ple: use one equa­tion to say what xx is in terms of yy, then put that into the other equa­tion, which leaves an equa­tion in yy alone.

The method

  1. Num­ber the equa­tions (1) and (2).
  2. From one equa­tion, write one vari­able in terms of the other, for exam­ple x=…x = \ldots in terms of yy.
  3. Sub­sti­tute that expres­sion in the other equa­tion. It now has only one vari­able. Solve it.
  4. Put the value you found back into the expres­sion from step 2 to get the other vari­able.
  5. Write the answer as an ordered pair and check it in both orig­i­nal equa­tions.

Before you start, it is worth check­ing the ratios a1a2\displaystyle \frac{a_1}{a_2} and b1b2\displaystyle \frac{b_1}{b_2}, as in the last les­son, to make sure there is a unique solu­tion to find.

Exam­ple 1

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

3x+2y=5(1)2x−3y=7(2)\begin{aligned} 3x + 2y &= 5 \quad \text{(1)} \\ 2x - 3y &= 7 \quad \text{(2)} \end{aligned}

Here a1a2=32\displaystyle \frac{a_1}{a_2} = \frac{3}{2} and b1b2=−23\displaystyle \frac{b_1}{b_2} = -\frac{2}{3}. Since a1a2≠b1b2\displaystyle \frac{a_1}{a_2} \neq \frac{b_1}{b_2}, there is a unique solu­tion.

From (1), write xx in terms of yy:

3x=5−2yx=5−2y3\displaystyle \begin{aligned} 3x &= 5 - 2y \\ x &= \frac{5 - 2y}{3} \end{aligned}

Sub­sti­tute this xx in (2):

2(5−2y3)−3y=72(5−2y)−9y3=710−4y−9y=2110−13y=2110−21=13y−11=13yy=−1113\displaystyle \begin{aligned} 2\left(\frac{5 - 2y}{3}\right) - 3y &= 7 \\ \frac{2(5 - 2y) - 9y}{3} &= 7 \\ 10 - 4y - 9y &= 21 \\ 10 - 13y &= 21 \\ 10 - 21 &= 13y \\ -11 &= 13y \\ y &= -\frac{11}{13} \end{aligned}

In the sec­ond line the 3y3y was writ­ten as 9y3\displaystyle \frac{9y}{3} so that both terms share the denom­i­na­tor 33. In the third line both sides were mul­ti­plied by 33.

Now put y=−1113\displaystyle y = -\frac{11}{13} back into 3x=5−2y3x = 5 - 2y:

3x=5−2(−1113)3x=65+22133x=8713x=2913\displaystyle \begin{aligned} 3x &= 5 - 2\left(-\frac{11}{13}\right) \\ 3x &= \frac{65 + 22}{13} \\ 3x &= \frac{87}{13} \\ x &= \frac{29}{13} \end{aligned}

In the last step, divid­ing by 33 can­cels 8787 down to 2929.

∴(x,y)=(2913,−1113)\displaystyle \therefore (x, y) = \left(\frac{29}{13}, -\frac{11}{13}\right)

Check in (2): 2×2913−3×(−1113)=58+3313=9113=7\displaystyle 2 \times \frac{29}{13} - 3 \times \left(-\frac{11}{13}\right) = \frac{58 + 33}{13} = \frac{91}{13} = 7.

Choos­ing which vari­able to make the sub­ject

In Exam­ple 1 every coef­fi­cient was 22 or more, so frac­tions could not be avoided. Look for a vari­able whose coef­fi­cient is 11 (or −1-1). Mak­ing that vari­able the sub­ject avoids frac­tions alto­gether and keeps the work­ing short.

Exam­ple 2

Solve 7x−5y=27x - 5y = 2 and x+2y=3x + 2y = 3.

7x−5y=2(1)x+2y=3(2)\begin{aligned} 7x - 5y &= 2 \quad \text{(1)} \\ x + 2y &= 3 \quad \text{(2)} \end{aligned}

In (2) the coef­fi­cient of xx is 11, so take xx from (2):

x=3−2yx = 3 - 2y

Sub­sti­tute in (1):

7(3−2y)−5y=221−14y−5y=221−19y=221−2=19y19=19yy=1\begin{aligned} 7(3 - 2y) - 5y &= 2 \\ 21 - 14y - 5y &= 2 \\ 21 - 19y &= 2 \\ 21 - 2 &= 19y \\ 19 &= 19y \\ y &= 1 \end{aligned}

Put y=1y = 1 into x=3−2yx = 3 - 2y:

x=3−2(1)=3−2=1x = 3 - 2(1) = 3 - 2 = 1

∴(x,y)=(1,1)\therefore (x, y) = (1, 1)

Check: 7−5=27 - 5 = 2 and 1+2=31 + 2 = 3.

Exam­ple 3

Solve 4x+y=114x + y = 11 and 3x−2y=03x - 2y = 0.

4x+y=11(1)3x−2y=0(2)\begin{aligned} 4x + y &= 11 \quad \text{(1)} \\ 3x - 2y &= 0 \quad \text{(2)} \end{aligned}

The coef­fi­cient of yy in (1) is 11, so take yy from (1): y=11−4xy = 11 - 4x.

Sub­sti­tute in (2):

3x−2(11−4x)=03x−22+8x=011x=22x=2\begin{aligned} 3x - 2(11 - 4x) &= 0 \\ 3x - 22 + 8x &= 0 \\ 11x &= 22 \\ x &= 2 \end{aligned}

Then y=11−4×2=3y = 11 - 4 \times 2 = 3.

∴(x,y)=(2,3)\therefore (x, y) = (2, 3)

Check: 8+3=118 + 3 = 11 and 6−6=06 - 6 = 0.

Exam­ple 4: a word prob­lem

A pen and a pen­cil together cost ₹15. The pen costs ₹9 more than the pen­cil. Find the price of each.

Let the pen cost xx rupees and the pen­cil yy rupees.

x+y=15(1)x−y=9(2)\begin{aligned} x + y &= 15 \quad \text{(1)} \\ x - y &= 9 \quad \text{(2)} \end{aligned}

From (2), x=9+yx = 9 + y. Sub­sti­tute in (1):

9+y+y=152y=6y=3\begin{aligned} 9 + y + y &= 15 \\ 2y &= 6 \\ y &= 3 \end{aligned}

Then x=9+3=12x = 9 + 3 = 12. The pen costs ₹12 and the pen­cil ₹3. Check: 12+3=1512 + 3 = 15 and 12−3=912 - 3 = 9.

Com­mon mis­takes

  • Sub­sti­tut­ing back into the same equa­tion you used to make the sub­ject. That only gives 0=00 = 0 or a true state­ment like 3=33 = 3. Always sub­sti­tute into the other equa­tion.
  • For­get­ting the bracket when sub­sti­tut­ing. In Exam­ple 2, 7(3−2y)7(3 - 2y) needs the bracket so that both 33 and −2y-2y are mul­ti­plied by 77.
  • Stop­ping after find­ing one vari­able. A pair has two unknowns, so the answer is an ordered pair.

Prac­tice

Solve each pair by the sub­sti­tu­tion method.

  1. x+y=9x + y = 9 and x−y=3x - y = 3
  2. y=2x+1y = 2x + 1 and 3x+y=163x + y = 16
  3. x+3y=10x + 3y = 10 and 2x−y=62x - y = 6
  4. 3x+2y=123x + 2y = 12 and x−y=−1x - y = -1
  5. 5x−y=135x - y = 13 and 2x+3y=122x + 3y = 12
  6. 4x−3y=−24x - 3y = -2 and x+2y=5x + 2y = 5
  7. 2x+3y=42x + 3y = 4 and 3x−y=173x - y = 17
  8. 2x+5y=12x + 5y = 1 and x−2y=3x - 2y = 3
  9. Two num­bers add up to 4040 and dif­fer by 1212. Find them.

Answers

Show answers
  1. x=9−yx = 9 - y, so 9−2y=39 - 2y = 3 and y=3y = 3, x=6x = 6. Answer (6,3)(6, 3).
  2. 3x+2x+1=163x + 2x + 1 = 16, so x=3x = 3 and y=7y = 7. Answer (3,7)(3, 7).
  3. x=10−3yx = 10 - 3y, so 20−6y−y=620 - 6y - y = 6, y=2y = 2 and x=4x = 4. Answer (4,2)(4, 2).
  4. x=y−1x = y - 1, so 3y−3+2y=123y - 3 + 2y = 12, y=3y = 3 and x=2x = 2. Answer (2,3)(2, 3).
  5. y=5x−13y = 5x - 13, so 2x+15x−39=122x + 15x - 39 = 12, 17x=5117x = 51, x=3x = 3 and y=2y = 2. Answer (3,2)(3, 2).
  6. x=5−2yx = 5 - 2y, so 20−8y−3y=−220 - 8y - 3y = -2, 11y=2211y = 22, y=2y = 2 and x=1x = 1. Answer (1,2)(1, 2).
  7. y=3x−17y = 3x - 17, so 2x+9x−51=42x + 9x - 51 = 4, 11x=5511x = 55, x=5x = 5 and y=−2y = -2. Answer (5,−2)(5, -2).
  8. x=3+2yx = 3 + 2y, so 6+4y+5y=16 + 4y + 5y = 1, 9y=−59y = -5, y=−59\displaystyle y = -\frac{5}{9} and x=3−109=179\displaystyle x = 3 - \frac{10}{9} = \frac{17}{9}. Answer (179,−59)\displaystyle \left(\frac{17}{9}, -\frac{5}{9}\right).
  9. x+y=40x + y = 40 and x−y=12x - y = 12. From the sec­ond, x=12+yx = 12 + y, so 12+2y=4012 + 2y = 40, y=14y = 14 and x=26x = 26. The num­bers are 2626 and 1414.