Skip to the page
Home Campus
Start free

Linear Equations in Two Variables

Recognise an equation of the form ax+by=cax + by = c, check whether a pair of values (x,y)(x, y) is a solution, find solutions and tables of values, and write such an equation from words.

Before you start

  • To solve a linear equation in one unknown, do the same to both sides: 3y+6=123y + 6 = 12 gives 3y=63y = 6, so y=2y = 2.
  • To substitute a negative number, use brackets: when x=−3x = -3, 2x=2(−3)=−62x = 2(-3) = -6.
  • To make yy the subject of a formula, rearrange it so that yy stands alone on one side.

What Is a Linear Equation in Two Variables?

In Secondary 1 an equation such as 3x+2=113x + 2 = 11 had one unknown, and one value of xx made it true. Many situations need two unknowns. If a pen costs $xx and a file costs $yy, and 3 pens and 2 files cost $1212, then 3x+2y=123x + 2y = 12. This is an equation in two variables, xx and yy.

Linear equation in two variables

A linear equation in two variables xx and yy is an equation that can be written in the form

ax+by=c,ax + by = c,

where aa, bb and cc are numbers and aa and bb are not both 00.

Each variable appears only to the power 11. There is no x2x^{2}, no xyxy (the variables are not multiplied together) and no variable in a denominator, such as 1x\frac{1}{x}.

Example 1: Is it a linear equation in two variables?

Which of these are linear equations in two variables? Give a reason for each. (a) 3x−2y=63x - 2y = 6 (b) y=4x−1y = 4x - 1 (c) xy=6xy = 6 (d) x2+y=4x^{2} + y = 4 (e) 1x+y=2\frac{1}{x} + y = 2 (f) 2(x+y)=3x−42(x + y) = 3x - 4 (g) x2+y3=1\frac{x}{2} + \frac{y}{3} = 1

Solution

(a) Yes. It is already in the form ax+by=cax + by = c, with a=3a = 3, b=−2b = -2 and c=6c = 6.

(b) Yes. Subtract 4x4x from both sides: −4x+y=−1-4x + y = -1. This is the form ax+by=cax + by = c with a=−4a = -4, b=1b = 1, c=−1c = -1.

(c) No. The two variables are multiplied together.

(d) No. xx is squared.

(e) No. xx is in a denominator: 1x\frac{1}{x} is not a number times xx.

(f) Yes. Expand the bracket: 2x+2y=3x−42x + 2y = 3x - 4. Subtract 3x3x from both sides: −x+2y=−4-x + 2y = -4. This is the form ax+by=cax + by = c with a=−1a = -1, b=2b = 2 and c=−4c = -4.

(g) Yes. x2\frac{x}{2} is 12x\frac{1}{2}x and y3\frac{y}{3} is 13y\frac{1}{3}y, so a=12a = \frac{1}{2}, b=13b = \frac{1}{3} and c=1c = 1. Fractions are allowed as the numbers aa, bb and cc.

(a), (b), (f) and (g) are linear equations in two variables; (c), (d) and (e) are not.

Solutions Are Ordered Pairs

A solution of an equation in two variables

A solution of an equation in xx and yy is a pair of values, one for xx and one for yy, that makes the equation true.

It is written as an ordered pair (x,y)(x, y), with the value of xx first. (3,2)(3, 2) means x=3x = 3 and y=2y = 2.

To check a pair, substitute both values and see whether the two sides are equal.

Example 2: Checking pairs

Which of the pairs (3,2)(3, 2), (6,0)(6, 0), (2,3)(2, 3) and (−3,6)(-3, 6) are solutions of 2x+3y=122x + 3y = 12?

Solution

Substitute each pair into the left-hand side, 2x+3y2x + 3y, and compare with 1212.

(3,2)(3, 2): 2(3)+3(2)=6+6=12.2(3) + 3(2) = 6 + 6 = 12\text{.} Equal to 1212, so it is a solution.

(6,0)(6, 0): 2(6)+3(0)=12+0=12.2(6) + 3(0) = 12 + 0 = 12\text{.} A solution.

(2,3)(2, 3): 2(2)+3(3)=4+9=13.2(2) + 3(3) = 4 + 9 = 13\text{.} Not equal to 1212, so it is not a solution.

(−3,6)(-3, 6): 2(−3)+3(6)=−6+18=12.2(-3) + 3(6) = -6 + 18 = 12\text{.} A solution.

Look at (3,2)(3, 2) and (2,3)(2, 3): the same two numbers, but only one is a solution. The order matters, which is why the pair is called ordered.

(3,2)(3, 2), (6,0)(6, 0) and (−3,6)(-3, 6) are solutions of 2x+3y=122x + 3y = 12; (2,3)(2, 3) is not.

Finding a Solution from One Value

If you know one of the two values, substitute it. What is left is an equation in one unknown, which you solve as in Secondary 1. The answer may be negative or a fraction.

Example 3: Given x, find y; given y, find x

For the equation 2x+3y=122x + 3y = 12, find (a) yy when x=9x = 9, (b) yy when x=1x = 1, (c) xx when y=5y = 5, (d) xx when y=1y = 1.

Solution

(a) 2(9)+3y=122(9) + 3y = 12, so 18+3y=1218 + 3y = 12. Subtract 1818: 3y=−63y = -6. Divide by 33: y=−2y = -2.

(b) 2(1)+3y=122(1) + 3y = 12, so 2+3y=122 + 3y = 12. Subtract 22: 3y=103y = 10. Divide by 33: y=103=313y = \frac{10}{3} = 3\frac{1}{3}.

(c) 2x+3(5)=122x + 3(5) = 12, so 2x+15=122x + 15 = 12. Subtract 1515: 2x=−32x = -3. Divide by 22: x=−1.5x = -1.5.

(d) 2x+3(1)=122x + 3(1) = 12, so 2x+3=122x + 3 = 12. Subtract 33: 2x=92x = 9. Divide by 22: x=4.5x = 4.5.

Check (a): 2(9)+3(−2)=18−6=12.2(9) + 3(-2) = 18 - 6 = 12\text{.} Check (c): 2(−1.5)+3(5)=−3+15=12.2(-1.5) + 3(5) = -3 + 15 = 12\text{.}

(a) y=−2y = -2, so (9,−2)(9, -2) is a solution. (b) y=313y = 3\frac{1}{3}, so (1,313)(1, 3\frac{1}{3}). (c) x=−1.5x = -1.5, so (−1.5,5)(-1.5, 5). (d) x=4.5x = 4.5, so (4.5,1)(4.5, 1).

Infinitely Many Solutions

Whatever value you choose for xx, you can find the value of yy that goes with it, as in Example 3. There is no end to the values you can choose, so one linear equation in two variables has infinitely many solutions.

To find solutions quickly, choose values that make the arithmetic easy, such as 00, or values that make the division come out whole.

Example 4: Listing solutions

Find five solutions of x−2y=4x - 2y = 4. Include one in which xx is negative and one in which yy is a fraction.

Solution

Here it is easier to choose yy and find xx: add 2y2y to both sides to get x=4+2yx = 4 + 2y.

y=0y = 0: x=4+0=4x = 4 + 0 = 4, giving (4,0)(4, 0).

y=1y = 1: x=4+2=6x = 4 + 2 = 6, giving (6,1)(6, 1).

y=−1y = -1: x=4+2(−1)=2x = 4 + 2(-1) = 2, giving (2,−1)(2, -1).

y=−3y = -3: x=4+2(−3)=−2,x = 4 + 2(-3) = -2\text{,} giving (−2,−3)(-2, -3), with xx negative.

For a fraction, choose x=5x = 5: 5−2y=45 - 2y = 4, so −2y=−1-2y = -1 and y=12y = \frac{1}{2}, giving (5,12)(5, \frac{1}{2}).

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

For example (4,0)(4, 0), (6,1)(6, 1), (2,−1)(2, -1), (−2,−3)(-2, -3) and (5,12)(5, \frac{1}{2}). There are infinitely many others.

The drawing shows seven solutions of 2x+3y=122x + 3y = 12 plotted as points: six found in Examples 2 and 3, and (0,4)(0, 4), since 2(0)+3(4)=122(0) + 3(4) = 12. They lie on one straight line. Every solution of the equation is a point of that line: this is the graph of the equation, which the next lesson draws.

Seven solutions of 2x + 3y = 12 plotted: (−3, 6), (−1.5, 5), (0, 4), (3, 2), (4.5, 1), (6, 0) and (9, −2). They lie on one straight line.xy−4−3−2−112345678910−3−2−11234567O(−3, 6)(−1.5, 5)(0, 4)(3, 2)(4.5, 1)(6, 0)(9, −2)

Making y the Subject and Tables of Values

To find yy for many values of xx, it saves work to make yy the subject first. Then each value of xx is substituted into one expression.

Making y the subject of ax + by = c

Subtract axax from both sides: by=c−axby = c - ax.

Divide both terms by bb (this needs b≠0b \ne 0): y=c−axb.y = \frac{c - ax}{b}.

Take care with signs when bb is negative.

Example 5: A table of values for 5x + 2y = 10

Make yy the subject of 5x+2y=105x + 2y = 10, and use it to complete a table of values for x=−2,−1,0,1,2x = -2, -1, 0, 1, 2.

Solution

Subtract 5x5x from both sides: 2y=10−5x2y = 10 - 5x. Divide by 22: y=10−5x2y = \frac{10 - 5x}{2}.

x=−2x = -2: y=10−5(−2)2=10+102=10y = \frac{10 - 5(-2)}{2} = \frac{10 + 10}{2} = 10

x=−1x = -1: y=10+52=152=7.5y = \frac{10 + 5}{2} = \frac{15}{2} = 7.5

x=0x = 0: y=102=5y = \frac{10}{2} = 5

x=1x = 1: y=10−52=2.5y = \frac{10 - 5}{2} = 2.5

x=2x = 2: y=10−102=0y = \frac{10 - 10}{2} = 0

xx−2-2−1-1001122
yy10107.57.5552.52.500

Check x=−1x = -1 in the original equation: 5(−1)+2(7.5)=−5+15=10.5(-1) + 2(7.5) = -5 + 15 = 10\text{.}

y=10−5x2y = \frac{10 - 5x}{2}, and the values of yy are 1010, 7.57.5, 55, 2.52.5 and 00.

Example 6: When b is negative

Make yy the subject of 2x−3y=62x - 3y = 6, and find yy for x=−3,0,3,6x = -3, 0, 3, 6.

Solution

Subtract 2x2x from both sides: −3y=6−2x-3y = 6 - 2x.

Multiply both sides by −1-1 to make the yy term positive: 3y=2x−63y = 2x - 6. Divide by 33: y=2x−63y = \frac{2x - 6}{3}.

x=−3x = -3: y=2(−3)−63=−123=−4y = \frac{2(-3) - 6}{3} = \frac{-12}{3} = -4

x=0x = 0: y=−63=−2y = \frac{-6}{3} = -2

x=3x = 3: y=6−63=0y = \frac{6 - 6}{3} = 0

x=6x = 6: y=12−63=2y = \frac{12 - 6}{3} = 2

xx−3-3003366
yy−4-4−2-20022

Check x=−3x = -3: 2(−3)−3(−4)=−6+12=6.2(-3) - 3(-4) = -6 + 12 = 6\text{.}

y=2x−63y = \frac{2x - 6}{3}, and the values of yy are −4-4, −2-2, 00 and 22.

Finding an Unknown in a Solution

If you are told that a pair is a solution, its values make the equation true. Substitute them, and solve for the unknown.

Example 7: Finding k

(a) (k,2)(k, 2) is a solution of 3x−4y=73x - 4y = 7. Find kk. (b) (3,k)(3, k) is a solution of 5x+2y=95x + 2y = 9. Find kk.

Solution

(a) Here x=kx = k and y=2y = 2: 3k−4(2)=73k - 4(2) = 7, so 3k−8=73k - 8 = 7. Add 88: 3k=153k = 15. Divide by 33: k=5k = 5.

Check: 3(5)−4(2)=15−8=7.3(5) - 4(2) = 15 - 8 = 7\text{.}

(b) Here x=3x = 3 and y=ky = k: 5(3)+2k=95(3) + 2k = 9, so 15+2k=915 + 2k = 9. Subtract 1515: 2k=−62k = -6. Divide by 22: k=−3k = -3.

Check: 5(3)+2(−3)=15−6=9.5(3) + 2(-3) = 15 - 6 = 9\text{.}

(a) k=5k = 5 (b) k=−3k = -3

Equations with the Same Solutions

Equivalent equations

Multiplying or dividing every term on both sides of an equation by the same number (not 00), or rearranging its terms, gives an equation with exactly the same solutions. Such equations are called equivalent.

2x+4y=102x + 4y = 10 and x+2y=5x + 2y = 5 are equivalent: divide every term of the first by 22 to get the second.

Example 8: Which equations are equivalent?

Which of these equations have exactly the same solutions as 3x−y=43x - y = 4? (a) 6x−2y=86x - 2y = 8 (b) y=3x−4y = 3x - 4 (c) 3x−y=83x - y = 8 (d) 9x−3y=49x - 3y = 4

Solution

(a) Every term of 3x−y=43x - y = 4 multiplied by 22 gives 6x−2y=86x - 2y = 8. Equivalent.

(b) Add yy to both sides of 3x−y=43x - y = 4, then subtract 44: 3x−4=y3x - 4 = y, that is y=3x−4y = 3x - 4. Equivalent.

(c) Only the right-hand side has changed. (2,2)(2, 2) is a solution of 3x−y=43x - y = 4, since 6−2=46 - 2 = 4, but not of 3x−y=83x - y = 8. Not equivalent.

(d) The left-hand side was multiplied by 33 but the right-hand side was not. (2,2)(2, 2) gives 18−6=1218 - 6 = 12, not 44. Not equivalent.

(a) and (b) are equivalent to 3x−y=43x - y = 4; (c) and (d) are not.

Writing an Equation from Words

First say what each letter stands for, with its unit. Then turn the sentence into an equation.

Example 9: From a sentence to an equation

Write an equation in xx and yy for each sentence. (a) The sum of two numbers is 1010. (b) The difference between two numbers is 44, the first being the larger. (c) 3 pens and 2 files cost $1212. (d) The chickens and goats on a farm have 5050 legs altogether.

Solution

(a) Let the numbers be xx and yy: x+y=10x + y = 10.

(b) Let the larger number be xx and the smaller yy: x−y=4x - y = 4.

(c) Let a pen cost $xx and a file cost $yy. 3 pens cost $3x3x and 2 files cost $2y2y: 3x+2y=123x + 2y = 12.

(d) Let there be xx chickens and yy goats. A chicken has 2 legs and a goat 4: 2x+4y=502x + 4y = 50.

(a) x+y=10x + y = 10 (b) x−y=4x - y = 4 (c) 3x+2y=123x + 2y = 12 (d) 2x+4y=502x + 4y = 50

In a real setting, not every solution makes sense. You cannot have 2.52.5 goats or −1-1 notes. When the variables count things, only whole numbers that are not negative will do, and there are usually only a few such solutions.

Example 10: Whole-number solutions

Mrs Lim pays exactly $3030 using only $22 notes and $55 notes, with at least one note of each kind. Write an equation and list every way she can do it.

Solution

Let xx be the number of $22 notes and yy the number of $55 notes: 2x+5y=302x + 5y = 30.

Make xx the subject: x=30−5y2x = \frac{30 - 5y}{2}. For xx to be a whole number, 30−5y30 - 5y must be even, so yy must be even.

Try the even values of yy from 22 up. Stop when xx would be 00 or less.

yy224466
x=30−5y2x = \frac{30 - 5y}{2}10105500

y=6y = 6 gives x=0x = 0, which has no $22 notes, so it is not allowed.

Check: 2(10)+5(2)=20+10=302(10) + 5(2) = 20 + 10 = 30 and 2(5)+5(4)=10+20=30.2(5) + 5(4) = 10 + 20 = 30\text{.}

There are two ways: ten $22 notes and two $55 notes, or five $22 notes and four $55 notes.

Common Mistakes

  • Swapping the order. (2,3)(2, 3) means x=2x = 2 and y=3y = 3. In Example 2, (3,2)(3, 2) is a solution of 2x+3y=122x + 3y = 12 but (2,3)(2, 3) is not.
  • Losing a minus sign. Substitute a negative number in brackets: 2x−3y2x - 3y at y=−4y = -4 is 2x−3(−4)=2x+12,2x - 3(-4) = 2x + 12\text{,} not 2x−122x - 12.
  • Dividing only one term. From 2y=10−5x2y = 10 - 5x, y=10−5x2y = \frac{10 - 5x}{2}, not 10−5x210 - \frac{5x}{2}. Both terms are divided by 22.
  • Changing one side only. 2x+4y=52x + 4y = 5 is not equivalent to x+2y=5x + 2y = 5: every term on both sides must be divided by 22.
  • Calling xy=6xy = 6 linear. A term with xx times yy, or with x2x^{2}, or with xx in a denominator, makes the equation not linear.

Practice Questions

Work each question on paper before you open its solution. The questions get harder as you go.

Question 1

Which of these are linear equations in two variables? (a) 5x−y=25x - y = 2 (b) x2−3y=1x^{2} - 3y = 1 (c) 4y+x=3\frac{4}{y} + x = 3 (d) y=7−2xy = 7 - 2x (e) 3xy=123xy = 12 (f) x(y+2)=5x(y + 2) = 5

ShowHide solution

(a) Yes: the form ax+by=cax + by = c with a=5a = 5, b=−1b = -1, c=2c = 2.

(b) No: xx is squared.

(c) No: yy is in a denominator.

(d) Yes: add 2x2x to both sides to get 2x+y=72x + y = 7.

(e) No: xx and yy are multiplied together.

(f) No: expanding gives xy+2x=5xy + 2x = 5, and xx and yy are multiplied together.

(a) and (d) only.

Question 2

Which of the pairs (2,1)(2, 1), (1,2)(1, 2), (4,7)(4, 7) and (0,−3)(0, -3) are solutions of 3x−y=53x - y = 5?

ShowHide solution

(2,1)(2, 1): 3(2)−1=6−1=53(2) - 1 = 6 - 1 = 5. Yes.

(1,2)(1, 2): 3(1)−2=13(1) - 2 = 1. No.

(4,7)(4, 7): 3(4)−7=12−7=5.3(4) - 7 = 12 - 7 = 5\text{.} Yes.

(0,−3)(0, -3): 3(0)−(−3)=0+3=3.3(0) - (-3) = 0 + 3 = 3\text{.} No.

(2,1)(2, 1) and (4,7)(4, 7) are solutions; (1,2)(1, 2) and (0,−3)(0, -3) are not.

Question 3

For the equation 4x−5y=204x - 5y = 20, find (a) yy when x=0x = 0, (b) xx when y=2y = 2, (c) yy when x=−5x = -5, (d) yy when x=3x = 3.

ShowHide solution

(a) 4(0)−5y=204(0) - 5y = 20, so −5y=20-5y = 20 and y=−4y = -4.

(b) 4x−5(2)=204x - 5(2) = 20, so 4x−10=204x - 10 = 20, 4x=304x = 30 and x=7.5x = 7.5.

(c) 4(−5)−5y=204(-5) - 5y = 20, so −20−5y=20-20 - 5y = 20. Add 2020: −5y=40-5y = 40, so y=−8y = -8.

(d) 4(3)−5y=204(3) - 5y = 20, so 12−5y=2012 - 5y = 20. Subtract 1212: −5y=8-5y = 8, so y=−85=−1.6y = -\frac{8}{5} = -1.6.

Check (c): 4(−5)−5(−8)=−20+40=20.4(-5) - 5(-8) = -20 + 40 = 20\text{.}

(a) y=−4y = -4 (b) x=7.5x = 7.5 (c) y=−8y = -8 (d) y=−1.6y = -1.6

Question 4

Make yy the subject of 4x+3y=124x + 3y = 12. Use it to complete the table of values for x=−3,0,3,6x = -3, 0, 3, 6.

ShowHide solution

Subtract 4x4x: 3y=12−4x3y = 12 - 4x. Divide by 33: y=12−4x3y = \frac{12 - 4x}{3}.

x=−3x = -3: y=12+123=8y = \frac{12 + 12}{3} = 8. x=0x = 0: y=123=4y = \frac{12}{3} = 4. x=3x = 3: y=12−123=0y = \frac{12 - 12}{3} = 0. x=6x = 6: y=12−243=−4.y = \frac{12 - 24}{3} = -4\text{.}

xx−3-3003366
yy884400−4-4

Check x=6x = 6: 4(6)+3(−4)=24−12=12.4(6) + 3(-4) = 24 - 12 = 12\text{.}

y=12−4x3y = \frac{12 - 4x}{3}; the values of yy are 88, 44, 00 and −4-4.

Question 5

Make yy the subject of 6x−2y=96x - 2y = 9. Use it to find yy for x=−1,0,1,2x = -1, 0, 1, 2.

ShowHide solution

Subtract 6x6x: −2y=9−6x-2y = 9 - 6x. Multiply both sides by −1-1: 2y=6x−92y = 6x - 9. Divide by 22: y=6x−92y = \frac{6x - 9}{2}.

x=−1x = -1: y=−6−92=−7.5.y = \frac{-6 - 9}{2} = -7.5\text{.} x=0x = 0: y=−4.5y = -4.5. x=1x = 1: y=−32=−1.5y = \frac{-3}{2} = -1.5. x=2x = 2: y=32=1.5y = \frac{3}{2} = 1.5.

Check x=−1x = -1: 6(−1)−2(−7.5)=−6+15=9.6(-1) - 2(-7.5) = -6 + 15 = 9\text{.}

y=6x−92y = \frac{6x - 9}{2}; the values of yy are −7.5-7.5, −4.5-4.5, −1.5-1.5 and 1.51.5.

Question 6

Complete this table for the equation 2x+3y=62x + 3y = 6. Some of the missing values are values of xx.

xx−3-300??1.51.5
yy??00−2-2?
ShowHide solution

x=−3x = -3: −6+3y=6-6 + 3y = 6, so 3y=123y = 12 and y=4y = 4.

x=0x = 0: 3y=63y = 6, so y=2y = 2.

y=0y = 0: 2x=62x = 6, so x=3x = 3.

y=−2y = -2: 2x−6=62x - 6 = 6, so 2x=122x = 12 and x=6x = 6.

x=1.5x = 1.5: 3+3y=63 + 3y = 6, so 3y=33y = 3 and y=1y = 1.

The pairs are (−3,4)(-3, 4), (0,2)(0, 2), (3,0)(3, 0), (6,−2)(6, -2) and (1.5,1)(1.5, 1).

Question 7

Write down four solutions of x+3y=9x + 3y = 9: one with a negative value of xx, and one in which yy is not a whole number.

ShowHide solution

Make xx the subject: x=9−3yx = 9 - 3y. Choose values of yy.

y=0y = 0: x=9x = 9, giving (9,0)(9, 0). y=3y = 3: x=0x = 0, giving (0,3)(0, 3). y=4y = 4: x=9−12=−3x = 9 - 12 = -3, giving (−3,4)(-3, 4).

For yy not whole, choose x=1x = 1: 1+3y=91 + 3y = 9, so 3y=83y = 8 and y=83=223y = \frac{8}{3} = 2\frac{2}{3}, giving (1,223)(1, 2\frac{2}{3}).

Check (−3,4)(-3, 4): −3+12=9-3 + 12 = 9. Check (1,223)(1, 2\frac{2}{3}): 1+3×83=1+8=9.1 + 3 \times \frac{8}{3} = 1 + 8 = 9\text{.}

For example (9,0)(9, 0), (0,3)(0, 3), (−3,4)(-3, 4) and (1,223)(1, 2\frac{2}{3}). Any pair that makes x+3y=9x + 3y = 9 true is right.

Question 8

(a) (k,−1)(k, -1) is a solution of 2x+5y=72x + 5y = 7. Find kk. (b) (−2,k)(-2, k) is a solution of 3x−2y=43x - 2y = 4. Find kk. (c) (p,p)(p, p) is a solution of 3x+2y=153x + 2y = 15. Find pp.

ShowHide solution

(a) 2k+5(−1)=72k + 5(-1) = 7, so 2k−5=72k - 5 = 7, 2k=122k = 12 and k=6k = 6. Check: 12−5=712 - 5 = 7.

(b) 3(−2)−2k=43(-2) - 2k = 4, so −6−2k=4-6 - 2k = 4. Add 66: −2k=10-2k = 10, so k=−5k = -5. Check: −6−2(−5)=−6+10=4.-6 - 2(-5) = -6 + 10 = 4\text{.}

(c) Both values are pp: 3p+2p=153p + 2p = 15, so 5p=155p = 15 and p=3p = 3. Check: 9+6=159 + 6 = 15.

(a) k=6k = 6 (b) k=−5k = -5 (c) p=3p = 3

Question 9

Which of these equations have exactly the same solutions as x−2y=3x - 2y = 3? (a) 2x−4y=62x - 4y = 6 (b) 3x−6y=33x - 6y = 3 (c) x=2y+3x = 2y + 3 (d) −x+2y=−3-x + 2y = -3 (e) 2x−2y=62x - 2y = 6

ShowHide solution

(a) Every term multiplied by 22. Equivalent.

(b) The left-hand side is multiplied by 33 but 3×3=93 \times 3 = 9, not 33. Not equivalent: (3,0)(3, 0) solves x−2y=3x - 2y = 3 but gives 9−0=99 - 0 = 9 here.

(c) Add 2y2y to both sides of x−2y=3x - 2y = 3. Equivalent.

(d) Every term multiplied by −1-1. Equivalent.

(e) xx was multiplied by 22 but −2y-2y was not. Not equivalent: (3,0)(3, 0) works, but (5,1)(5, 1) solves x−2y=3x - 2y = 3 and gives 10−2=810 - 2 = 8 here.

(a), (c) and (d).

Question 10

Write an equation in xx and yy for each. (a) A number xx is 55 less than three times a number yy. (b) At a cinema, xx adult tickets at $1212 each and yy child tickets at $88 each cost $9696 altogether. (c) A rectangle xx cm long and yy cm wide has a perimeter of 2626 cm.

ShowHide solution

(a) Three times yy is 3y3y; 55 less is 3y−53y - 5: x=3y−5x = 3y - 5, or x−3y=−5x - 3y = -5.

(b) The adult tickets cost $12x12x and the child tickets $8y8y: 12x+8y=9612x + 8y = 96. Dividing every term by 44 gives the equivalent 3x+2y=243x + 2y = 24.

(c) The perimeter is x+y+x+y=2x+2y:x + y + x + y = 2x + 2y\text{:} 2x+2y=262x + 2y = 26, or x+y=13x + y = 13.

(a) x=3y−5x = 3y - 5 (b) 12x+8y=9612x + 8y = 96 (c) 2x+2y=262x + 2y = 26

Question 11

Kumar spends exactly $4040 on pens at $33 each and notebooks at $44 each, and buys at least one of each. Write an equation and find every possible number of pens and notebooks.

ShowHide solution

Let xx be the number of pens and yy the number of notebooks: 3x+4y=403x + 4y = 40, so x=40−4y3x = \frac{40 - 4y}{3}.

Try y=1,2,3,…y = 1, 2, 3, \ldots and keep only whole values of xx that are at least 11:

yy1122334455667788991010
40−4y40 - 4y3636323228282424202016161212884400
xx1212——88——44——00

y=10y = 10 gives x=0x = 0: no pens, so it is not allowed. A dash means 40−4y40 - 4y is not a multiple of 33.

Check: 3(12)+4(1)=403(12) + 4(1) = 40, 3(8)+4(4)=24+16=40,3(8) + 4(4) = 24 + 16 = 40\text{,} 3(4)+4(7)=12+28=40.3(4) + 4(7) = 12 + 28 = 40\text{.}

Three ways: 12 pens and 1 notebook, 8 pens and 4 notebooks, or 4 pens and 7 notebooks.

Question 12

Aisha has only 20-cent and 50-cent coins in her purse, worth $22 altogether. She has at least one coin of each kind. How many of each could she have?

ShowHide solution

Work in cents: $22 is 200200 cents. Let there be xx 20-cent coins and yy 50-cent coins: 20x+50y=20020x + 50y = 200.

Divide every term by 1010: 2x+5y=202x + 5y = 20, so x=20−5y2x = \frac{20 - 5y}{2}. For a whole xx, yy must be even.

y=2y = 2: x=20−102=5x = \frac{20 - 10}{2} = 5. y=4y = 4: x=0x = 0, not allowed (no 20-cent coins).

Check: 55 coins of 20 cents make 100100 cents and 22 coins of 50 cents make 100100 cents; together 200200 cents, or $22.

Only one way: five 20-cent coins and two 50-cent coins.

Key Points

  • A linear equation in two variables can be written as ax+by=cax + by = c, with aa and bb not both 00; no x2x^{2}, no xyxy, no variable in a denominator.
  • A solution is an ordered pair (x,y)(x, y), xx first, that makes the equation true. Check a pair by substituting both values.
  • Given one value, substitute it and solve for the other. The answer may be negative or a fraction.
  • One linear equation in two variables has infinitely many solutions.
  • To make a table of values, first make yy the subject: y=c−axby = \frac{c - ax}{b} (when b≠0b \ne 0).
  • If a pair with an unknown kk is a solution, substitute it and solve for kk.
  • Multiplying or dividing every term by the same non-zero number gives an equivalent equation, with the same solutions.
  • In a setting where the variables count things, only whole numbers that are not negative make sense.

‹ 1.6 Problems Involving Inequalities 2.2 Graphs of Linear Equations in Two Variables ›

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.