Skip to the page
Home Campus
Start free

Solving Simultaneous Equations by Elimination

Solve a pair of linear equations by adding or subtracting them to eliminate one variable, multiplying one or both equations first when the coefficients do not match.

Before you start

  • Substitution (lesson 2.6) works best when a variable has coefficient 11 or −1-1. Elimination works whatever the coefficients are.
  • Subtracting a negative term is adding: 2y−(−y)=3y2y - (-y) = 3y. Take care with signs too in −3y−5y=−8y-3y - 5y = -8y.
  • Multiplying every term of an equation by the same number gives an equivalent equation (lesson 2.1): x+y=5x + y = 5 and 2x+2y=102x + 2y = 10 have the same solutions.

Eliminating by Subtracting or Adding

If two equations are both true, you may subtract one from the other, left side from left side and right side from right side, and the result is true too. You may also add them. If one variable has the same coefficient in both equations, subtracting removes it; if its coefficients are opposite, such as 2y2y and −2y-2y, adding removes it. That variable is eliminated, and an equation in one unknown is left.

Solving by elimination

(1) Write both equations in the form ax+by=cax + by = c, with the xx terms, the yy terms and the numbers lined up.

(2) If needed, multiply one or both equations so that one variable has coefficients of the same size in both.

(3) Same signs: subtract the equations. Opposite signs: add them.

(4) Solve for the remaining variable, then substitute into one of the equations to find the other.

(5) Check both values in both original equations.

Example 1: Equal coefficients: subtract

Solve 3x+2y=163x + 2y = 16 and 3x−y=103x - y = 10.

Solution

3x+2y=163x + 2y = 16 \quad (1)

3x−y=103x - y = 10 \quad (2)

Both equations have 3x3x, with the same sign. Subtract (2) from (1):

(3x+2y)−(3x−y)=16−10(3x + 2y) - (3x - y) = 16 - 10

3x−3x+2y−(−y)=63x - 3x + 2y - (-y) = 6

3y=63y = 6, so y=2y = 2.

Substitute y=2y = 2 into (2): 3x−2=103x - 2 = 10, so 3x=123x = 12 and x=4x = 4.

Check in (1): 3(4)+2(2)=12+4=16,3(4) + 2(2) = 12 + 4 = 16\text{,} true. Check in (2): 3(4)−2=103(4) - 2 = 10, true.

x=4x = 4, y=2y = 2

Example 2: Opposite coefficients: add

Solve 4x+y=144x + y = 14 and 2x−y=42x - y = 4.

Solution

4x+y=144x + y = 14 \quad (1)

2x−y=42x - y = 4 \quad (2)

The yy terms are +y+y and −y-y: opposite signs. Add (1) and (2):

(4x+y)+(2x−y)=14+4(4x + y) + (2x - y) = 14 + 4

6x=186x = 18, so x=3x = 3.

Substitute into (1): 12+y=1412 + y = 14, so y=2y = 2.

Check in (1): 12+2=1412 + 2 = 14, true. Check in (2): 6−2=46 - 2 = 4, true.

x=3x = 3, y=2y = 2

Example 3: Subtracting negative terms

Solve 2x−3y=−42x - 3y = -4 and 2x+5y=122x + 5y = 12.

Solution

2x−3y=−42x - 3y = -4 \quad (1)

2x+5y=122x + 5y = 12 \quad (2)

Both have 2x2x. Subtract (2) from (1), term by term, in brackets:

(2x−3y)−(2x+5y)=−4−12(2x - 3y) - (2x + 5y) = -4 - 12

2x−2x−3y−5y=−162x - 2x - 3y - 5y = -16

−8y=−16-8y = -16, so y=2y = 2.

Substitute into (2): 2x+10=122x + 10 = 12, so 2x=22x = 2 and x=1x = 1.

Check in (1): 2(1)−3(2)=2−6=−4,2(1) - 3(2) = 2 - 6 = -4\text{,} true. Check in (2): 2+10=122 + 10 = 12, true.

Subtracting (1) from (2) instead gives 8y=168y = 16: the same yy, with fewer minus signs. Either order is right.

x=1x = 1, y=2y = 2

Multiplying First

If no variable has coefficients of the same size, make them the same. Multiply every term of one equation (or of both) by a number, so that the coefficients of the chosen variable become equal to their lowest common multiple.

Example 4: Multiplying one equation

Solve 2x+3y=132x + 3y = 13 and x+y=5x + y = 5.

Solution

2x+3y=132x + 3y = 13 \quad (1)

x+y=5x + y = 5 \quad (2)

Multiply every term of (2) by 22 so that both have 2x2x: 2x+2y=102x + 2y = 10 \quad (3)

Subtract (3) from (1): (2x+3y)−(2x+2y)=13−10,(2x + 3y) - (2x + 2y) = 13 - 10\text{,} so y=3y = 3.

Substitute into (2): x+3=5x + 3 = 5, so x=2x = 2.

Check in (1): 4+9=134 + 9 = 13, true. Check in (2): 2+3=52 + 3 = 5, true.

x=2x = 2, y=3y = 3

Example 5: Multiplying both equations

Solve 3x+4y=103x + 4y = 10 and 5x−3y=−225x - 3y = -22.

Solution

3x+4y=103x + 4y = 10 \quad (1)

5x−3y=−225x - 3y = -22 \quad (2)

The yy terms have opposite signs, so eliminate yy by adding. The lowest common multiple of 44 and 33 is 1212.

(1) ×3\times 3: 9x+12y=309x + 12y = 30 \quad (3)

(2) ×4\times 4: 20x−12y=−8820x - 12y = -88 \quad (4)

Add (3) and (4): 29x=−5829x = -58, so x=−2x = -2.

Substitute into (1): 3(−2)+4y=103(-2) + 4y = 10, so −6+4y=10-6 + 4y = 10, 4y=164y = 16 and y=4y = 4.

Check in (1): −6+16=10-6 + 16 = 10, true. Check in (2): 5(−2)−3(4)=−10−12=−22,5(-2) - 3(4) = -10 - 12 = -22\text{,} true.

x=−2x = -2, y=4y = 4

Which variable to eliminate?

Either variable will do; the answer is the same. Choose the one that needs the smaller numbers: look at the lowest common multiple of its two coefficients.

If one variable already has coefficients of the same size, or one coefficient is a multiple of the other, eliminate that one.

If the signs are opposite, you add; many people find adding safer than subtracting.

Example 6: Choosing the variable

Solve 4x+3y=54x + 3y = 5 and 6x−5y=176x - 5y = 17, choosing which variable to eliminate and saying why.

Solution

4x+3y=54x + 3y = 5 \quad (1)

6x−5y=176x - 5y = 17 \quad (2)

To eliminate xx: the lowest common multiple of 44 and 66 is 1212 (multiply by 33 and 22). To eliminate yy: the lowest common multiple of 33 and 55 is 1515 (multiply by 55 and 33). Eliminating xx uses smaller numbers.

(1) ×3\times 3: 12x+9y=1512x + 9y = 15 \quad (3)

(2) ×2\times 2: 12x−10y=3412x - 10y = 34 \quad (4)

Same signs, so subtract (4) from (3): 9y−(−10y)=15−34,9y - (-10y) = 15 - 34\text{,} so 19y=−1919y = -19 and y=−1y = -1.

Substitute into (1): 4x−3=54x - 3 = 5, so 4x=84x = 8 and x=2x = 2.

Check in (1): 8+3(−1)=58 + 3(-1) = 5, true. Check in (2): 12−5(−1)=12+5=17,12 - 5(-1) = 12 + 5 = 17\text{,} true.

x=2x = 2, y=−1y = -1 (eliminating xx, because 1212 is smaller than 1515)

Fractions, and Terms Not Lined Up

Example 7: A fractional answer

Solve 6x+3y=56x + 3y = 5 and 3x−3y=43x - 3y = 4.

Solution

6x+3y=56x + 3y = 5 \quad (1)

3x−3y=43x - 3y = 4 \quad (2)

The yy terms are +3y+3y and −3y-3y. Add: 9x=99x = 9, so x=1x = 1.

Substitute into (2): 3−3y=43 - 3y = 4, so −3y=1-3y = 1 and y=−13y = -\frac{1}{3}.

Check in (1): 6+3(−13)=6−1=5,6 + 3(-\frac{1}{3}) = 6 - 1 = 5\text{,} true. Check in (2): 3−3(−13)=3+1=4,3 - 3(-\frac{1}{3}) = 3 + 1 = 4\text{,} true.

x=1x = 1, y=−13y = -\frac{1}{3}

Elimination needs the like terms lined up: xx under xx, yy under yy, numbers on the right. If an equation is written another way, rearrange it into the form ax+by=cax + by = c first.

Example 8: Rearranging before eliminating

Solve 3y=2x+13y = 2x + 1 and 4x+y=124x + y = 12.

Solution

Subtract 2x2x from both sides of the first equation: −2x+3y=1-2x + 3y = 1 \quad (1)

4x+y=124x + y = 12 \quad (2)

Eliminate xx: (1) ×2\times 2 gives −4x+6y=2-4x + 6y = 2 \quad (3). The xx terms of (2) and (3) are opposite, so add: 7y=147y = 14, y=2y = 2.

Substitute into (2): 4x+2=124x + 2 = 12, so 4x=104x = 10 and x=2.5x = 2.5.

Check in the original first equation: 3(2)=63(2) = 6 and 2(2.5)+1=62(2.5) + 1 = 6, true. Check in (2): 10+2=1210 + 2 = 12, true.

x=212x = 2\frac{1}{2}, y=2y = 2

Common Mistakes

  • Subtracting only some terms. In (3x+2y)−(3x−y)(3x + 2y) - (3x - y) the whole second equation is taken away: 2y−(−y)=3y2y - (-y) = 3y, not yy.
  • Multiplying one side only. x+y=5x + y = 5 times 22 is 2x+2y=102x + 2y = 10; every term, including the number on the right, is multiplied.
  • Adding when you should subtract. Same signs: subtract. Opposite signs: add. Adding 3x+2y=163x + 2y = 16 and 3x−y=103x - y = 10 gives 6x+y=266x + y = 26, which eliminates nothing.
  • Eliminating with terms not lined up. Rearrange 3y=2x+13y = 2x + 1 to −2x+3y=1-2x + 3y = 1 first.
  • Checking only in the equation used to find the second value. Check in both original equations.

Practice Questions

Solve each pair by elimination on paper before you open its solution, and check in both equations. The questions get harder as you go.

Question 1

Solve x+y=7x + y = 7 and x−y=3x - y = 3.

ShowHide solution

The yy terms are opposite. Add: 2x=102x = 10, so x=5x = 5. Then 5+y=75 + y = 7, so y=2y = 2.

Check: 5+2=75 + 2 = 7; 5−2=35 - 2 = 3.

x=5x = 5, y=2y = 2

Question 2

Solve 5x+2y=175x + 2y = 17 and 3x+2y=113x + 2y = 11.

ShowHide solution

Both have 2y2y. Subtract the second from the first: 2x=62x = 6, so x=3x = 3. Then 9+2y=119 + 2y = 11, so y=1y = 1.

Check: 15+2=1715 + 2 = 17; 9+2=119 + 2 = 11.

x=3x = 3, y=1y = 1

Question 3

Solve 2x−5y=−122x - 5y = -12 and 2x+3y=42x + 3y = 4.

ShowHide solution

Both have 2x2x. Subtract: (2x−5y)−(2x+3y)=−12−4,(2x - 5y) - (2x + 3y) = -12 - 4\text{,} so −8y=−16-8y = -16 and y=2y = 2.

Then 2x+6=42x + 6 = 4, so 2x=−22x = -2 and x=−1x = -1.

Check: −2−10=−12-2 - 10 = -12; −2+6=4-2 + 6 = 4.

x=−1x = -1, y=2y = 2

Question 4

Solve 3x+y=143x + y = 14 and 5x+2y=235x + 2y = 23.

ShowHide solution

Multiply the first by 22: 6x+2y=286x + 2y = 28. Subtract the second: x=5x = 5.

Then 15+y=1415 + y = 14, so y=−1y = -1.

Check: 15−1=1415 - 1 = 14; 25−2=2325 - 2 = 23.

x=5x = 5, y=−1y = -1

Question 5

Solve 4x−3y=14x - 3y = 1 and x+2y=3x + 2y = 3.

ShowHide solution

Multiply the second by 44: 4x+8y=124x + 8y = 12. Subtract it from the first: −3y−8y=1−12-3y - 8y = 1 - 12, so −11y=−11-11y = -11 and y=1y = 1.

Then x+2=3x + 2 = 3, so x=1x = 1.

Check: 4−3=14 - 3 = 1; 1+2=31 + 2 = 3.

x=1x = 1, y=1y = 1

Question 6

Solve 5x+3y=235x + 3y = 23 and 2x+7y=152x + 7y = 15.

ShowHide solution

Eliminate xx (lowest common multiple 1010): first ×2\times 2: 10x+6y=4610x + 6y = 46; second ×5\times 5: 10x+35y=7510x + 35y = 75.

Subtract: 29y=2929y = 29, so y=1y = 1. Then 5x+3=235x + 3 = 23, so x=4x = 4.

Check: 20+3=2320 + 3 = 23; 8+7=158 + 7 = 15.

x=4x = 4, y=1y = 1

Question 7

Solve 2x+3y=−12x + 3y = -1 and 5x−2y=265x - 2y = 26.

ShowHide solution

The yy terms have opposite signs: eliminate yy (lowest common multiple 66). First ×2\times 2: 4x+6y=−24x + 6y = -2; second ×3\times 3: 15x−6y=7815x - 6y = 78.

Add: 19x=7619x = 76, so x=4x = 4. Then 8+3y=−18 + 3y = -1, so 3y=−93y = -9 and y=−3y = -3.

Check: 8−9=−18 - 9 = -1; 20+6=2620 + 6 = 26.

x=4x = 4, y=−3y = -3

Question 8

Solve 4x+6y=74x + 6y = 7 and 2x−3y=0.52x - 3y = 0.5.

ShowHide solution

Multiply the second by 22: 4x−6y=14x - 6y = 1. Add it to the first: 8x=88x = 8, so x=1x = 1.

Then 4+6y=74 + 6y = 7, so 6y=36y = 3 and y=12y = \frac{1}{2}.

Check: 4+3=74 + 3 = 7; 2−1.5=0.52 - 1.5 = 0.5.

x=1x = 1, y=12y = \frac{1}{2}

Question 9

Solve 2y=x+42y = x + 4 and 3x+4y=283x + 4y = 28.

ShowHide solution

Rearrange the first: −x+2y=4-x + 2y = 4. Multiply by 33: −3x+6y=12-3x + 6y = 12.

Add it to 3x+4y=283x + 4y = 28: 10y=4010y = 40, so y=4y = 4. Then 2(4)=x+42(4) = x + 4, so x=4x = 4.

Check: 2(4)=82(4) = 8 and 4+4=84 + 4 = 8; 12+16=2812 + 16 = 28.

x=4x = 4, y=4y = 4

Question 10

Solve 3x+2y=83x + 2y = 8 and 5x−4y=65x - 4y = 6. Say which variable you chose to eliminate, and why.

ShowHide solution

For xx, the lowest common multiple of 33 and 55 is 1515; for yy, of 22 and 44 it is 44. Eliminate yy: only the first equation needs multiplying.

First ×2\times 2: 6x+4y=166x + 4y = 16. The second is 5x−4y=65x - 4y = 6.

The yy terms have opposite signs, so add: 11x=2211x = 22 and x=2x = 2. Then 3(2)+2y=83(2) + 2y = 8, so 2y=22y = 2 and y=1y = 1.

Check: 6+2=86 + 2 = 8; 10−4=610 - 4 = 6.

x=2x = 2, y=1y = 1; yy was eliminated because 44 is smaller than 1515, and only one equation had to be multiplied (eliminating xx gives the same answer).

Question 11

The sum of two numbers is 4040 and their difference is 1212. Find the numbers.

ShowHide solution

Let the numbers be xx and yy, with xx the larger: x+y=40x + y = 40 and x−y=12x - y = 12.

Add: 2x=522x = 52, so x=26x = 26. Then y=40−26=14y = 40 - 26 = 14.

Check: 26+14=4026 + 14 = 40; 26−14=1226 - 14 = 12.

The numbers are 2626 and 1414.

Question 12

At a supermarket, 3 kg of rice and 2 bottles of cooking oil cost $17.5017.50, and 5 kg of rice and 2 bottles of the same oil cost $21.5021.50. Find the cost of 1 kg of rice and of one bottle of oil.

ShowHide solution

Let 1 kg of rice cost $xx and a bottle of oil $yy: 3x+2y=17.53x + 2y = 17.5 and 5x+2y=21.55x + 2y = 21.5.

Both have 2y2y. Subtract the first from the second: 2x=42x = 4, so x=2x = 2.

Then 6+2y=17.56 + 2y = 17.5, so 2y=11.52y = 11.5 and y=5.75y = 5.75.

Check: 3(2)+2(5.75)=6+11.5=17.5;3(2) + 2(5.75) = 6 + 11.5 = 17.5\text{;} 5(2)+2(5.75)=10+11.5=21.5.5(2) + 2(5.75) = 10 + 11.5 = 21.5\text{.}

1 kg of rice costs $22 and a bottle of oil costs $5.755.75.

Key Points

  • Line up the equations in the form ax+by=cax + by = c and number them.
  • Make the coefficients of one variable the same size, multiplying one or both equations (every term) if needed.
  • Same signs: subtract. Opposite signs: add. Put the subtracted equation in brackets.
  • Choose the variable whose coefficients have the smaller lowest common multiple, or that already match.
  • Solve for one variable, substitute to find the other, and check in both original equations.
  • Answers may be negative or fractions.

‹ 2.6 Solving Simultaneous Equations by Substitution 2.8 Equations to Tidy First and Choosing a Method ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.