Linear Functions

Recognise a linear function y=ax+by = ax + b and state aa and bb, tell from a table of values whether a function is linear, find its rule, and use linear functions in real settings, forwards and backwards.

Before you start

  • A function machine applies the same rule to every input and gives exactly one output. The machine "multiply by 44, then subtract 11" turns the input xx into the output y=4x−1y = 4x - 1: the input 55 gives 5×4−1=195 \times 4 - 1 = 19.
  • A table of values has the values of xx in its first row and the corresponding values of yy in its second. Each column gives an ordered pair (x,y)(x, y), xx first. For y=x+3y = x + 3, the values x=0x = 0, 11 and 22 give the pairs (0,3)(0, 3), (1,4)(1, 4) and (2,5)(2, 5), and these points lie on a straight line. Plotted points are joined only when the values in between make sense and the quantity changes steadily, not for a whole number of things such as people or trips.
  • To substitute a negative number, put it in brackets: if x=−3x = -3, then 2x+1=2(−3)+1=−6+1=−52x + 1 = 2(-3) + 1 = -6 + 1 = -5.
  • To solve an equation, do the same to both sides: from 2x+1=112x + 1 = 11, subtract 11 to get 2x=102x = 10, then divide by 22 to get x=5x = 5.

Linear Functions

The functions y=x+3y = x + 3, y=2x+1y = 2x + 1 and y=3xy = 3x have the same form: the variable is multiplied by a number (in y=x+3y = x + 3 the number is 11), and a number is added (here 33, 11 and 00). Their points lie on straight lines. A function of this form is called a linear function.

Linear function

A linear function is a function that can be written in the form y=ax+by = ax + b, where aa and bb are numbers.

aa is the coefficient of xx (the number multiplying xx) and bb is the constant term (the number on its own). Each may be positive, negative or zero.

When xx can take every value, the graph of a linear function is a straight line; when xx can only be a whole number (pens, trips, T-shirts), its points lie on a straight line and are not joined.

Examples: y=2x+3y = 2x + 3 has a=2a = 2 and b=3b = 3. y=−x+5y = -x + 5 has a=−1a = -1 and b=5b = 5, since −x-x means −1×x-1 \times x. y=3xy = 3x has a=3a = 3 and b=0b = 0. y=4y = 4 has a=0a = 0 and b=4b = 4, since it is y=0x+4y = 0x + 4.

Not linear: y=x2y = x^{2}, because xx is squared, and y=1xy = \frac{1}{x}, because a number is divided by xx. Their points do not lie on a straight line. The grid shows the points of y=2x+1y = 2x + 1 and of y=x2y = x^{2} for x=0x = 0, 11, 22 and 33.

The points (0, 1), (1, 3), (2, 5) and (3, 7) of y = 2x + 1, in blue, lie on a straight line; the points (0, 0), (1, 1), (2, 4) and (3, 9) of y = x squared, in amber, do notxy−11234−112345678910Oy = 2x + 1y = x²

A function machine whose steps are "multiply by a number", then "add or subtract a number", is a linear function: "multiply by 44, then subtract 11" is y=4x−1y = 4x - 1, with a=4a = 4 and b=−1b = -1.

Example 1: Linear or Not?

Which of these are linear functions? For each linear one, state aa and bb.
(a) y=5x−2y = 5x - 2 (b) y=x2y = x^{2} (c) y=7y = 7 (d) y=−3xy = -3x

Solution

(a) y=5x−2y = 5x - 2 is y=5x+(−2)y = 5x + (-2). Linear, with a=5a = 5 and b=−2b = -2: the sign in front of a number belongs to it.

(b) y=x2y = x^{2} has xx squared. Not linear.

(c) y=7y = 7 can be written as y=0x+7y = 0x + 7. Linear, with a=0a = 0 and b=7b = 7: every value of xx gives y=7y = 7.

(d) y=−3xy = -3x can be written as y=−3x+0y = -3x + 0. Linear, with a=−3a = -3 and b=0b = 0.

(a), (c) and (d) are linear, with a=5a = 5, b=−2b = -2; a=0a = 0, b=7b = 7; and a=−3a = -3, b=0b = 0. (b) is not linear.

Example 2: Writing a Function in the Form y = ax + b

Write each function in the form y=ax+by = ax + b, and state aa and bb.
(a) y=10−2xy = 10 - 2x (b) y=x3+4y = \frac{x}{3} + 4 (c) y=3(x+2)y = 3(x + 2)

Solution

(a) The term in xx is −2x-2x, so y=10−2xy = 10 - 2x can be written as y=−2x+10y = -2x + 10. So a=−2a = -2 and b=10b = 10 (not a=10a = 10).

(b) x3\frac{x}{3} is xx divided by 33, which is 13\frac{1}{3} of xx. So y=x3+4y = \frac{x}{3} + 4 can be written as y=13x+4y = \frac{1}{3}x + 4, and a=13a = \frac{1}{3}, b=4b = 4. Here xx is divided by a number, which is allowed; in y=1xy = \frac{1}{x} a number is divided by xx, which is not linear.

(c) Expand the brackets: 3(x+2)=3x+63(x + 2) = 3x + 6. So y=3(x+2)y = 3(x + 2) can be written as y=3x+6y = 3x + 6, and a=3a = 3, b=6b = 6.

(a) y=−2x+10y = -2x + 10: a=−2a = -2, b=10b = 10. (b) y=13x+4y = \frac{1}{3}x + 4: a=13a = \frac{1}{3}, b=4b = 4. (c) y=3x+6y = 3x + 6: a=3a = 3, b=6b = 6.

Linear or Not from a Table, and Finding the Rule

For y=2x+1y = 2x + 1, each time xx goes up by 11, yy goes up by 22 (11, 33, 55, 77): the steps in yy are equal, and the points lie on a straight line. For y=x2y = x^{2} the steps in yy are 11, 33 and 55 (00, 11, 44, 99): they are not equal, and the points do not lie on a straight line. This gives a test that needs no graph.

Linear or not, and the rule, from a table

When the values of xx in a table go up in equal steps, look at the steps in yy. If yy changes by the same amount at every step (up, down, or not at all), the pairs belong to a linear function and their points lie on a straight line. If not, the function is not linear.

To find the rule y=ax+by = ax + b when xx goes up by 11 at each step: aa is the change in yy at each step (negative if yy goes down), and bb is the value of yy when x=0x = 0.

If xx goes up in equal steps of another size (such as 22 or 1010), aa is the change in yy at each step divided by the change in xx (for steps of 22 in xx and 1010 in yy, a=10÷2=5a = 10 \div 2 = 5).

Then check the rule with every column of the table.

Why bb is the value of yy when x=0x = 0: substituting x=0x = 0 into y=ax+by = ax + b gives y=a(0)+b=by = a(0) + b = b. If the table has no column for x=0x = 0, substitute any column into y=ax+by = ax + b and solve for bb.

Example 3: Is the Table Linear?

Is each table linear? Give a reason.

(a)

xx01234
yy357911

(b)

xx12345
yy1491625

(c)

xx1234
yy10741

Solution

(a) xx goes up by 11 each time, and yy goes up by 22, 22, 22 and 22. Equal steps: linear.

(b) xx goes up by 11 each time, and yy goes up by 33, 55, 77 and 99. The steps are not equal: not linear.

(c) xx goes up by 11 each time, and yy goes down by 33 each time (a change of −3-3). Equal steps: linear.

(a) and (c) are linear; (b) is not.

Example 4: Finding the Rule from a Table

Find the rule y=ax+by = ax + b for each table.

(a)

xx01234
yy357911

(b)

xx1234
yy10741

(c)

xx2468
yy10203040

Solution

(a) yy goes up by 22 for each step of 11 in xx, so a=2a = 2. When x=0x = 0, y=3y = 3, so b=3b = 3. The rule is y=2x+3y = 2x + 3.

Check every column: 2(1)+3=52(1) + 3 = 5 ✓\checkmark, 2(2)+3=72(2) + 3 = 7 ✓\checkmark, 2(3)+3=92(3) + 3 = 9 ✓\checkmark, 2(4)+3=112(4) + 3 = 11 ✓\checkmark

(b) yy goes down by 33 for each step of 11 in xx, so a=−3a = -3. There is no column for x=0x = 0, so substitute the first column, x=1x = 1 and y=10y = 10, into y=−3x+by = -3x + b:

10=−3(1)+b10 = -3(1) + b

Add 33 to both sides: b=13b = 13. The rule is y=−3x+13y = -3x + 13.

Check: −3(2)+13=7-3(2) + 13 = 7 ✓\checkmark, −3(3)+13=4-3(3) + 13 = 4 ✓\checkmark, −3(4)+13=1-3(4) + 13 = 1 ✓\checkmark

(c) Here xx goes up by 22 at each step, and yy goes up by 1010. For each 11 that xx goes up, yy goes up by 10÷2=510 \div 2 = 5, so a=5a = 5. Substitute the first column, x=2x = 2 and y=10y = 10: 10=5(2)+b10 = 5(2) + b, so b=0b = 0. The rule is y=5xy = 5x.

Check: 5(4)=205(4) = 20 ✓\checkmark, 5(6)=305(6) = 30 ✓\checkmark, 5(8)=405(8) = 40 ✓\checkmark

(a) y=2x+3y = 2x + 3 (b) y=−3x+13y = -3x + 13 (c) y=5xy = 5x

Linear Functions in Real Life

Many everyday charges are linear: a fixed charge, paid once, plus a charge for each unit used. The fixed charge is bb and the charge for each unit is aa.

A quantity that changes by the same amount in each minute or hour, such as the temperature of water heated steadily, is a linear function of the time too: bb is its value at the start and aa is its change in each unit of time.

Once the equation is written, it can be used forwards (substitute xx to find yy) or backwards (substitute yy and solve the equation for xx).

Example 5: Binding a Booklet

A printing shop in Bras Basah Complex charges $2 to bind a booklet and $0.10 for each page printed. The cost of a booklet of nn pages is CC dollars.
(a) Write a formula for CC in terms of nn, and say what aa and bb stand for.
(b) Find the cost of a booklet of 120120 pages.
(c) Priya paid $9.50 for her booklet. How many pages did it have?

Solution

(a) For nn pages the charge is 0.1×n=0.1n0.1 \times n = 0.1n dollars, and the binding charge of $2 is added once: C=0.1n+2C = 0.1n + 2.

This is a linear function with a=0.1a = 0.1, the charge in dollars for each page, and b=2b = 2, the binding charge in dollars, paid once whatever the number of pages.

(b) Forwards: substitute n=120n = 120.

C=0.1(120)+2=12+2=14C = 0.1(120) + 2 = 12 + 2 = 14

(c) Backwards: substitute C=9.5C = 9.5 and solve.

9.5=0.1n+29.5 = 0.1n + 2

Subtract 22 from both sides:

7.5=0.1n7.5 = 0.1n

Divide both sides by 0.10.1:

n=7.50.1=75n = \frac{7.5}{0.1} = 75

Check: 0.1(75)+2=7.5+2=9.50.1(75) + 2 = 7.5 + 2 = 9.5 ✓\checkmark

(a) C=0.1n+2C = 0.1n + 2. (b) A booklet of 120120 pages costs $14. (c) Priya's booklet had 7575 pages.

Example 6: Heating Water

In a Science lesson, Mei Ling heats a beaker of water and records its temperature every 22 minutes.

Time, tt (minutes)2468
Temperature, TT (°C)31374349

(a) Show that TT is a linear function of tt, and find the formula T=at+bT = at + b.
(b) Say what aa and bb stand for.
(c) If the water keeps heating at the same rate, after how many minutes will it reach 7070 °C?

Solution

(a) tt goes up by 22 at each step, and TT goes up by 66 each time: equal steps, so TT is a linear function of tt.

For each 11 minute, TT goes up by 6÷2=36 \div 2 = 3, so a=3a = 3.

There is no column for t=0t = 0, so substitute the first column, t=2t = 2 and T=31T = 31, into T=3t+bT = 3t + b:

31=3(2)+b31 = 3(2) + b

Subtract 66 from both sides: b=25b = 25. The formula is T=3t+25T = 3t + 25.

Check: 3(4)+25=373(4) + 25 = 37 ✓\checkmark, 3(6)+25=433(6) + 25 = 43 ✓\checkmark, 3(8)+25=493(8) + 25 = 49 ✓\checkmark

(b) a=3a = 3: the temperature rises by 33 °C every minute. b=25b = 25: the temperature at the start, when t=0t = 0, was 2525 °C.

(c) Backwards: substitute T=70T = 70 and solve.

70=3t+2570 = 3t + 25

Subtract 2525 from both sides:

45=3t45 = 3t

Divide both sides by 33: t=15t = 15.

Check: 3(15)+25=45+25=703(15) + 25 = 45 + 25 = 70 ✓\checkmark

The formula holds only while the water heats at the same rate; it cannot be used beyond 100100 °C, where water boils.

(a) T=3t+25T = 3t + 25. (b) The temperature rises by 33 °C each minute, from 2525 °C at the start. (c) After 1515 minutes.

Common Mistakes

  • Taking aa to be the first number written. In y=10−2xy = 10 - 2x, aa is −2-2 (the number multiplying xx, with its sign) and bb is 1010.
  • Dropping the sign of bb. y=5x−2y = 5x - 2 is y=5x+(−2)y = 5x + (-2), so b=−2b = -2, not 22.
  • Forgetting the number that is not written. In y=x+3y = x + 3, a=1a = 1; in y=−x+5y = -x + 5, a=−1a = -1; in y=3xy = 3x, b=0b = 0.
  • Calling y=3xy = \frac{3}{x} linear because it looks like y=x3y = \frac{x}{3}. Dividing xx by a number is linear; dividing a number by xx is not.
  • Taking the step in yy as aa when xx goes up by more than 11. If xx goes up by 22 and yy by 1010, then a=10÷2=5a = 10 \div 2 = 5, not 1010.
  • Checking a rule with only one or two columns of a table. The rule must fit every column.
  • In a setting, adding a fixed charge for every unit. A binding charge or a hire company's fixed charge is paid once: it is bb, not part of aa.

Practice Questions

Try each question on your own before you open its solution. The questions get harder as you go.

Question 1

State aa and bb for each linear function.
(a) y=4x+7y = 4x + 7 (b) y=x−6y = x - 6 (c) y=−2x+1y = -2x + 1
(d) y=5xy = 5x (e) y=−x−3y = -x - 3

ShowHide solution

(a) a=4a = 4 and b=7b = 7.

(b) y=x−6y = x - 6 is y=1x+(−6)y = 1x + (-6): a=1a = 1 and b=−6b = -6.

(c) a=−2a = -2 and b=1b = 1.

(d) y=5xy = 5x is y=5x+0y = 5x + 0: a=5a = 5 and b=0b = 0.

(e) −x-x is −1×x-1 \times x, and −3-3 is added: a=−1a = -1 and b=−3b = -3.

(a) a=4a = 4, b=7b = 7 (b) a=1a = 1, b=−6b = -6 (c) a=−2a = -2, b=1b = 1 (d) a=5a = 5, b=0b = 0 (e) a=−1a = -1, b=−3b = -3

Question 2

Which of these are linear functions? For each linear one, write it in the form y=ax+by = ax + b and state aa and bb.
(a) y=6+4xy = 6 + 4x (b) y=x2−3y = \frac{x}{2} - 3 (c) y=2(x−5)y = 2(x - 5)
(d) y=−5y = -5 (e) y=3xy = \frac{3}{x} (f) y=x2+1y = x^{2} + 1

ShowHide solution

(a) y=4x+6y = 4x + 6: linear, with a=4a = 4 and b=6b = 6.

(b) y=12x−3y = \frac{1}{2}x - 3: linear, with a=12a = \frac{1}{2} and b=−3b = -3.

(c) Expand the brackets: 2(x−5)=2x−102(x - 5) = 2x - 10, so y=2x−10y = 2x - 10: linear, with a=2a = 2 and b=−10b = -10.

(d) y=0x−5y = 0x - 5: linear, with a=0a = 0 and b=−5b = -5.

(e) 33 is divided by xx: not linear.

(f) xx is squared: not linear.

(a), (b), (c) and (d) are linear; (e) and (f) are not.

Question 3

Write the rule of each function machine as an equation in the form y=ax+by = ax + b, and state aa and bb.

(a)

A function machine: the input x is multiplied by 2, then 5 is added, giving the output yxinput× 2+ 5youtput

(b)

A function machine: 5 is added to the input x, then the result is multiplied by 2, giving the output yxinput+ 5× 2youtput

(c) "Subtract the input from 88, then divide by 22."

(d) Find the output of machine (a) and of machine (b) when the input is 33. Does the order of the steps matter?

ShowHide solution

(a) Multiply xx by 22: 2x2x. Then add 55: y=2x+5y = 2x + 5. So a=2a = 2 and b=5b = 5.

(b) Add 55 to xx: x+5x + 5. Then multiply by 22: y=2(x+5)y = 2(x + 5). Expand the brackets: y=2x+10y = 2x + 10. So a=2a = 2 and b=10b = 10.

(c) Subtract xx from 88: 8−x8 - x. Then divide by 22, which is the same as multiplying by 12\frac{1}{2}: y=12(8−x)y = \frac{1}{2}(8 - x). Expand the bracket: y=12×8−12×x=4−12xy = \frac{1}{2} \times 8 - \frac{1}{2} \times x = 4 - \frac{1}{2}x, which can be written as y=−12x+4y = -\frac{1}{2}x + 4. So a=−12a = -\frac{1}{2} and b=4b = 4.

Check (c) with the input 22: 8−2=68 - 2 = 6, then 6÷2=36 \div 2 = 3; and −12(2)+4=−1+4=3-\frac{1}{2}(2) + 4 = -1 + 4 = 3 ✓\checkmark

(d) Machine (a): 2(3)+5=6+5=112(3) + 5 = 6 + 5 = 11. Machine (b): 3+5=83 + 5 = 8, then 8×2=168 \times 2 = 16. The outputs are different, so the order of the steps matters.

(a) y=2x+5y = 2x + 5: a=2a = 2, b=5b = 5. (b) y=2x+10y = 2x + 10: a=2a = 2, b=10b = 10. (c) y=−12x+4y = -\frac{1}{2}x + 4: a=−12a = -\frac{1}{2}, b=4b = 4. (d) 1111 and 1616: the order matters.

Question 4

(a) Copy and complete the table of values for y=−4x+1y = -4x + 1.

xx−2−1012
yy?????

(b) By how much does yy change each time xx goes up by 11? Compare it with aa.
(c) What is the value of yy when x=0x = 0? Compare it with bb.

ShowHide solution

(a) x=−2x = -2: y=−4(−2)+1=8+1=9y = -4(-2) + 1 = 8 + 1 = 9

x=−1x = -1: y=−4(−1)+1=4+1=5y = -4(-1) + 1 = 4 + 1 = 5

x=0x = 0: y=−4(0)+1=0+1=1y = -4(0) + 1 = 0 + 1 = 1

x=1x = 1: y=−4(1)+1=−3y = -4(1) + 1 = -3; x=2x = 2: y=−4(2)+1=−7y = -4(2) + 1 = -7

xx−2−1012
yy951−3−7

(b) yy goes down by 44 each time: a change of −4-4, which is aa.

(c) y=1y = 1 when x=0x = 0, which is bb.

(a) 99, 55, 11, −3-3, −7-7. (b) A change of −4-4, the same as aa. (c) 11, the same as bb.

Question 5

For each table, say whether it is linear. If it is, find its rule y=ax+by = ax + b.

(a)

xx01234
yy−4−1258

(b)

xx1234
yy251017
ShowHide solution

(a) xx goes up by 11 each time and yy goes up by 33 each time: linear, with a=3a = 3. When x=0x = 0, y=−4y = -4, so b=−4b = -4. The rule is y=3x−4y = 3x - 4.

Check every column: 3(1)−4=−13(1) - 4 = -1 ✓\checkmark, 3(2)−4=23(2) - 4 = 2 ✓\checkmark, 3(3)−4=53(3) - 4 = 5 ✓\checkmark, 3(4)−4=83(4) - 4 = 8 ✓\checkmark

(b) xx goes up by 11 each time, but yy goes up by 33, 55 and 77: the steps are not equal, so it is not linear.

(a) Linear: y=3x−4y = 3x - 4. (b) Not linear.

Question 6

Find the rule y=ax+by = ax + b for each table.

(a)

xx−2−1012
yy97531

(b)

xx1357
yy4101622
ShowHide solution

(a) xx goes up by 11 and yy goes down by 22 each time, so a=−2a = -2. When x=0x = 0, y=5y = 5, so b=5b = 5. The rule is y=−2x+5y = -2x + 5.

Check: −2(−2)+5=4+5=9-2(-2) + 5 = 4 + 5 = 9 ✓\checkmark, −2(−1)+5=2+5=7-2(-1) + 5 = 2 + 5 = 7 ✓\checkmark, −2(1)+5=3-2(1) + 5 = 3 ✓\checkmark, −2(2)+5=1-2(2) + 5 = 1 ✓\checkmark

(b) Here xx goes up by 22 each time and yy goes up by 66. For each 11 that xx goes up, yy goes up by 6÷2=36 \div 2 = 3, so a=3a = 3.

There is no column for x=0x = 0, so substitute the first column, x=1x = 1 and y=4y = 4, into y=3x+by = 3x + b:

4=3(1)+b4 = 3(1) + b

Subtract 33 from both sides: b=1b = 1. The rule is y=3x+1y = 3x + 1.

Check: 3(3)+1=103(3) + 1 = 10 ✓\checkmark, 3(5)+1=163(5) + 1 = 16 ✓\checkmark, 3(7)+1=223(7) + 1 = 22 ✓\checkmark

(a) y=−2x+5y = -2x + 5 (b) y=3x+1y = 3x + 1

Question 7

The table belongs to a linear function, but three of its values of yy are missing.

xx01234
yy?7?15?

(a) Find the rule y=ax+by = ax + b.
(b) Complete the table.

ShowHide solution

(a) From x=1x = 1 to x=3x = 3, xx goes up by 22 and yy goes up from 77 to 1515, by 88. For each 11 that xx goes up, yy goes up by 8÷2=48 \div 2 = 4, so a=4a = 4.

Substitute x=1x = 1 and y=7y = 7 into y=4x+by = 4x + b: 7=4(1)+b7 = 4(1) + b, so b=3b = 3. The rule is y=4x+3y = 4x + 3.

Check with the other given column: 4(3)+3=12+3=154(3) + 3 = 12 + 3 = 15 ✓\checkmark

(b) x=0x = 0: y=4(0)+3=3y = 4(0) + 3 = 3. x=2x = 2: y=4(2)+3=11y = 4(2) + 3 = 11. x=4x = 4: y=4(4)+3=19y = 4(4) + 3 = 19.

xx01234
yy37111519

The steps in yy are all 44: 33, 77, 1111, 1515, 1919 ✓\checkmark

(a) y=4x+3y = 4x + 3. (b) The missing values are 33, 1111 and 1919.

Question 8 (Setting: Bicycle Hire at East Coast Park)

At a bicycle kiosk in East Coast Park, hiring a bicycle costs a fixed charge of $4 plus $6 for each hour. The cost of hiring a bicycle for hh hours is CC dollars.
(a) Write a formula for CC in terms of hh.
(b) Find the cost of hiring a bicycle for 33 hours.
(c) Wei Ming paid $34. For how many hours did he hire his bicycle?

ShowHide solution

(a) hh hours at $6 an hour cost 6h6h dollars, and the fixed charge of $4 is added once: C=6h+4C = 6h + 4.

(b) Substitute h=3h = 3:

C=6(3)+4=18+4=22C = 6(3) + 4 = 18 + 4 = 22

(c) Substitute C=34C = 34 and solve:

34=6h+434 = 6h + 4

Subtract 44 from both sides:

30=6h30 = 6h

Divide both sides by 66: h=5h = 5.

Check: 6(5)+4=30+4=346(5) + 4 = 30 + 4 = 34 ✓\checkmark

(a) C=6h+4C = 6h + 4. (b) $22. (c) Wei Ming hired the bicycle for 55 hours.

Question 9 (Setting: A New Freezer)

A new freezer in an air-conditioned shop is switched on. For the first 88 hours, the temperature inside it, TT °C, hh hours after it is switched on is given by T=24−4hT = 24 - 4h.
(a) State aa and bb for this linear function, and say what each means.
(b) Make a table of values for h=0,1,2,3,4,5,6,7h = 0, 1, 2, 3, 4, 5, 6, 7 and 88. Plot the pairs (h,T)(h, T), and say whether the points should be joined.
(c) What is the temperature after 33 hours?
(d) After how many hours is the temperature −8-8 °C?

ShowHide solution

(a) T=24−4hT = 24 - 4h can be written as T=−4h+24T = -4h + 24, so a=−4a = -4 and b=24b = 24.

b=24b = 24: the temperature is 2424 °C when the freezer is switched on (h=0h = 0). a=−4a = -4: the temperature falls by 44 °C every hour.

(b) h=0h = 0: T=24−4(0)=24T = 24 - 4(0) = 24. h=1h = 1: T=24−4(1)=20T = 24 - 4(1) = 20. Each hour after that the temperature is 44 °C lower.

Time, hh (hours)012345678
Temperature, TT (°C)24201612840−4−8

One square across stands for 11 hour and one square up for 44 °C.

The temperature in a freezer: the points (0, 24), (1, 20), (2, 16), (3, 12), (4, 8), (5, 4), (6, 0), (7, −4) and (8, −8) plotted with time in hours across and temperature in degrees Celsius up, joined by a straight lineTime (hours)Temperature (°C)123456789−12−8−4481216202428O

The points lie on a straight line going down. Time and temperature take every value in between the readings, and the temperature falls steadily, so the points are joined.

(c) T=24−4(3)=24−12=12T = 24 - 4(3) = 24 - 12 = 12

(d) Substitute T=−8T = -8 and solve:

−8=24−4h-8 = 24 - 4h

Add 4h4h to both sides:

4h−8=244h - 8 = 24

Add 88 to both sides:

4h=324h = 32

Divide both sides by 44: h=8h = 8.

Check: 24−4(8)=24−32=−824 - 4(8) = 24 - 32 = -8 ✓\checkmark

(a) a=−4a = -4 (the temperature falls 44 °C each hour) and b=24b = 24 (it starts at 2424 °C). (b) The points lie on a straight line and are joined. (c) 1212 °C. (d) After 88 hours.

Question 10 (Setting: Class T-shirts)

Class 1A is ordering printed T-shirts for Sports Day. The printing shop sends this table of prices.

Number of T-shirts, nn10203040
Cost, CC ($)130230330430

(a) Show that CC is a linear function of nn, and find the formula C=an+bC = an + b.
(b) What do aa and bb stand for?
(c) Find the cost of 3535 T-shirts.
(d) The class has $500 to spend. How many T-shirts can it order for exactly that amount?

ShowHide solution

(a) nn goes up by 1010 at each step and CC goes up by 100100 each time: equal steps, so CC is a linear function of nn.

For each extra T-shirt, CC goes up by 100÷10=10100 \div 10 = 10, so a=10a = 10.

Substitute the first column, n=10n = 10 and C=130C = 130, into C=10n+bC = 10n + b:

130=10(10)+b130 = 10(10) + b

Subtract 100100 from both sides: b=30b = 30. The formula is C=10n+30C = 10n + 30.

Check: 10(20)+30=23010(20) + 30 = 230 ✓\checkmark, 10(30)+30=33010(30) + 30 = 330 ✓\checkmark, 10(40)+30=43010(40) + 30 = 430 ✓\checkmark

(b) a=10a = 10: each T-shirt costs $10. b=30b = 30: a fixed charge of $30, paid once for the order, however many T-shirts there are.

(c) C=10(35)+30=350+30=380C = 10(35) + 30 = 350 + 30 = 380

(d) Substitute C=500C = 500 and solve:

500=10n+30500 = 10n + 30

Subtract 3030 from both sides:

470=10n470 = 10n

Divide both sides by 1010: n=47n = 47.

Check: 10(47)+30=470+30=50010(47) + 30 = 470 + 30 = 500 ✓\checkmark

(a) C=10n+30C = 10n + 30. (b) $10 for each T-shirt, plus a fixed charge of $30. (c) $380. (d) 4747 T-shirts.

Question 11 (Setting: An EZ-Link Card)

Mei Ling has $30 on her EZ-Link card, and each of her bus trips costs $1.50. After nn trips, the amount left on the card is BB dollars.
(a) Write a formula for BB in terms of nn, and state aa and bb.
(b) How much is left after 88 trips?
(c) After how many trips is $12 left?
(d) Can the amount left ever be exactly $20.50? Explain.
(e) If the pairs (n,B)(n, B) were plotted, should the points be joined?

ShowHide solution

(a) Each trip takes $1.50 off the $30, so after nn trips 1.5n1.5n dollars have been taken off: B=30−1.5nB = 30 - 1.5n, which can be written as B=−1.5n+30B = -1.5n + 30. So a=−1.5a = -1.5 and b=30b = 30.

(b) Substitute n=8n = 8:

B=30−1.5(8)=30−12=18B = 30 - 1.5(8) = 30 - 12 = 18

(c) Substitute B=12B = 12 and solve:

12=30−1.5n12 = 30 - 1.5n

Add 1.5n1.5n to both sides:

1.5n+12=301.5n + 12 = 30

Subtract 1212 from both sides:

1.5n=181.5n = 18

Divide both sides by 1.51.5: n=12n = 12.

Check: 30−1.5(12)=30−18=1230 - 1.5(12) = 30 - 18 = 12 ✓\checkmark

(d) Substitute B=20.5B = 20.5: 20.5=30−1.5n20.5 = 30 - 1.5n gives 1.5n=9.51.5n = 9.5, so n=9.51.5=613n = \frac{9.5}{1.5} = 6\frac{1}{3}.

A number of trips must be a whole number, so the amount left can never be exactly $20.50. After 66 trips $21 is left, and after 77 trips $19.50.

(e) No. A number of trips is a whole number, so there is nothing to draw between the points.

(a) B=30−1.5nB = 30 - 1.5n, with a=−1.5a = -1.5 and b=30b = 30. (b) $18. (c) After 1212 trips. (d) No: it would need 6136\frac{1}{3} trips. (e) No.

Question 12 (Setting: Choosing a Phone Plan)

Priya is choosing between two mobile phone plans. Plan A costs $15 a month plus $2 for each GB of data used. Plan B costs $9 a month plus $3 for each GB of data used. In a month in which she uses nn GB, Plan A costs AA dollars and Plan B costs BB dollars.
(a) Write a formula for AA and a formula for BB in terms of nn.
(b) Which plan is cheaper in a month in which she uses 44 GB?
(c) For how many GB do the two plans cost the same?
(d) Priya usually uses 1010 GB a month. Which plan should she choose, and how much does she save each month?

ShowHide solution

(a) The fixed monthly charge is added once and the charge for data is paid for each GB: A=2n+15A = 2n + 15 and B=3n+9B = 3n + 9.

(b) Substitute n=4n = 4: A=2(4)+15=8+15=23A = 2(4) + 15 = 8 + 15 = 23 and B=3(4)+9=12+9=21B = 3(4) + 9 = 12 + 9 = 21. Plan B is cheaper, by $2.

(c) The plans cost the same when A=BA = B:

2n+15=3n+92n + 15 = 3n + 9

Subtract 2n2n from both sides:

15=n+915 = n + 9

Subtract 99 from both sides: n=6n = 6.

Check: A=2(6)+15=27A = 2(6) + 15 = 27 and B=3(6)+9=27B = 3(6) + 9 = 27 ✓\checkmark Both plans cost $27 for 66 GB.

(d) Substitute n=10n = 10: A=2(10)+15=35A = 2(10) + 15 = 35 and B=3(10)+9=39B = 3(10) + 9 = 39. Plan A is cheaper: she saves $39 − $35 = $4 each month.

(a) A=2n+15A = 2n + 15 and B=3n+9B = 3n + 9. (b) Plan B ($21, against $23 for Plan A). (c) 66 GB. (d) Plan A, saving $4 a month.

Key Points

  • A linear function can be written in the form y=ax+by = ax + b, where aa and bb are numbers: aa is the coefficient of xx and bb is the constant term; either may be negative or zero.
  • To state aa and bb, first write the function in the form y=ax+by = ax + b: put the term in xx first, expand any brackets, and write x3\frac{x}{3} as 13x\frac{1}{3}x.
  • A function is not linear when xx is squared or a number is divided by xx.
  • When xx can take every value, the graph of a linear function is a straight line; when xx can only be a whole number (pens, trips, T-shirts), its points lie on a straight line and are not joined.
  • When xx goes up in equal steps, a table is linear if yy changes by the same amount at every step.
  • aa is the change in yy divided by the change in xx; bb is the value of yy when x=0x = 0, or is found by substituting a column and solving. Check the rule with every column.
  • In a setting, bb is the fixed amount, paid once or present at the start, and aa is the amount for each unit; substitute to go forwards, and solve an equation to go backwards.

‹ 10.2 Functions and Graphs of Ordered Pairs 10.4 Graphs of Linear Functions ›

All Secondary 1 (Grade 7) 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 1 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.