mastree

Straight-line graphs: 7 exam questions solved step by step

What this lesson covers

  • A pattern, a table, an equation and a graph can all describe the same relationship.
  • The gradient of a straight-line graph is its rate of change: how much y changes for each one unit of x.
Key idea

A straight line is two numbers: m and c

  1. Gradient m = rise ÷ run: the change in y per 1 of x.
  2. Intercept c: the value of y when x = 0.
  3. Write the line as y = mx + c.
  4. In context, say what m and c mean, with units.
Your turn

Question 1 · Achieved

  • Find the rule for the number of tiles, T.
  • How many tiles in pattern 20?
Pattern, nTiles, T
15
29
313
417
Worked example

Q1: the tile rule

  • Difference = gradient.
  • Step back for c.
  1. 9 − 5 = 4, 13 − 9 = 4constant difference
  2. T = 4n + cgradient 4
  3. 5 − 4 = 1step back to n = 0
  4. T = 4n + 1
  5. n = 4: 4 × 4 + 1 = 17
  6. n = 20: 4 × 20 + 1 = 81
  7. 81 tiles in pattern 20
Key idea

Try it: the tile rule

Your turn

Question 2 · Achieved

  • The line passes through (0, 3) and (4, 11).
  • Find its equation.
Question 2 · Achieved
Worked example

Q2: the equation of a line

  • c: where it crosses.
  • m: rise ÷ run.
  1. c = 3crosses the y-axis at 3
  2. rise = 11 − 3 = 8
  3. run = 4 − 0 = 4
  4. m = 8 ÷ 4 = 2rise ÷ run
  5. y = 2x + 3y = mx + c
  6. x = 4: 2 × 4 + 3 = 11
Your turn

Question 3 · Merit

  • Find the equation of the line.
  • Careful: look at how x changes.
xy
17
313
519
725
Worked example

Q3: x goes up in twos

  • The run is 2, not 1.
  • Use a point for c.
  1. m = 6x went up 2, not 1
  2. y up 6 when x up 2
  3. m = 6 ÷ 2 = 3rise ÷ run
  4. y = 3x + c
  5. 7 = 3 × 1 + cuse (1, 7)
  6. c = 4−3 both sides
  7. y = 3x + 4
  8. x = 7: 3 × 7 + 4 = 25
Your turn

Question 4 · Merit

  • Tiles in pattern n: T = 5n + 3
  • Which pattern uses 98 tiles?
  • Could a pattern use exactly 120?
Worked example

Q4: the rule run backwards

  • Set the rule equal.
  • n must be whole.
  1. 5n + 3 = 98T = 98
  2. 5n = 95−3 both sides
  3. n = 19÷ 5
  4. 5 × 19 + 3 = 98
  5. 5n + 3 = 120T = 120
  6. 5n = 117−3 both sides
  7. n = 23.4n must be whole
  8. pattern 19; no pattern uses 120
Your turn

Question 5 · Merit, in context

  • A candle burns down steadily.
  • After 2 h: 18 cm tall. After 5 h: 12 cm.
  • Find the rate of change, with units.
  • Find h after t hours. What is c?
Worked example

Q5: the rate of change

  • Time across, height up.
  • Units: cm per hour.
  1. (2, 18) and (5, 12)
  2. rise = 12 − 18 = −6height goes down
  3. run = 5 − 2 = 3hours
  4. m = −6 ÷ 3 = −2rise ÷ run
  5. m = −2 cm per houry units per x unit
  6. burns down 2 cm every hour
Worked example

Q5: the equation and c

  • Use a point for c.
  • c is the start value.
  1. m = −2 cm per hour
  2. h = −2t + c
  3. 18 = −2 × 2 + cuse (2, 18)
  4. 18 = −4 + c
  5. c = 22+4 both sides
  6. h = 22 − 2t
  7. t = 5: 22 − 2 × 5 = 12
  8. t = 0: h = 22the intercept
  9. 22 cm tall when it was lit
Key idea

Try it: rate and intercept

Your turn

Question 6 · Excellence, in context

  • Tables in one long row for a hui.
  • Each seats 3 per long side, 1 per end.
  • Explain why n tables seat S = 6n + 2.
  • How many tables seat 100 people?
Worked example

Q6: explain the rule

  • Explain each part.
  • Inner ends are lost.
  1. 3 + 3 = 6 side seats a table
  2. n tables: 6n side seats
  3. + 2 seats, one at each end
  4. S = 6n + 2
  5. n = 1: 6 + 2 = 8
  6. n = 3: 18 + 2 = 20
Worked example

Q6: tables for 100 people

  • Round up, not off.
  • Check both choices.
  1. S = 6n + 2
  2. 6n + 2 = 100S = 100
  3. 6n = 98−2 both sides
  4. n = 16.33…÷ 6
  5. 16 tables: 96 + 2 = 982 people short
  6. 17 tables: 102 + 2 = 104
  7. 17 tables (4 spare seats)
Your turn

Question 7 · Excellence, in context

  • A train: d km from Britomart, t min on.
  • Find the speed in km/min and km/h.
  • What does the intercept mean?
  • When is it 20 km from Britomart?
Question 7 · Excellence, in context
Worked example

Q7: the speed and the rule

  • Units: km per minute.
  • × 60 for km per hour.
  1. rise = 11 − 5 = 6 km
  2. run = 12 − 4 = 8 min
  3. m = 6 ÷ 8 = 0.75rise ÷ run
  4. 0.75 km per minute
  5. 0.75 × 60 = 45 km/h60 minutes in an hour
  6. d = 0.75t + c
  7. 5 = 0.75 × 4 + cuse (4, 5)
  8. 5 = 3 + c, c = 2
  9. d = 0.75t + 2
Worked example

Q7: the intercept and 20 km

  • c: the value at t = 0.
  • Set d = 20 and solve.
  1. d = 0.75t + 2
  2. t = 0: d = 2the intercept
  3. 2 km out when timing began
  4. 0.75t + 2 = 20d = 20
  5. 0.75t = 18−2 both sides
  6. t = 18 ÷ 0.75 = 24
  7. 0.75 × 24 + 2 = 20
  8. 24 minutes after timing began
Key idea

Try it: rules in context

Common mistakes

  • y went up 6, so the gradient is 6.
    Gradient is rise ÷ run: if x went up 2 while y went up 6, the gradient is 6 ÷ 2 = 3.
  • The candle's rate of change is 2.
    Give the sign and the units: the height goes down, so the rate is −2 cm per hour.
  • 5n + 3 = 120 gives n = 23.4, so pattern 23 uses 120 tiles.
    Pattern numbers are whole, so n = 23.4 means no pattern uses exactly 120 tiles.
  • 6n + 2 = 100 gives n = 16.3, so 16 tables.
    16 tables seat only 6 × 16 + 2 = 98 people, so round up: 17 tables are needed for 100.
Summary

What solved all seven

  • Rise over run, the value at zero, and what it means.
StepHow
Gradientrise ÷ run, any two points
Patterndifference is m; c is term 0
x jumpsdivide the rise by the run
Intercepty when x = 0, or use a point
Unitsy units per one x unit
Reverseset the rule equal, then solve
Contextmeaning, units and rounding

Challenge

1

A straight line crosses the y-axis at 18 and goes down to cross the positive x-axis. Together with the two axes it makes a triangle of area 40.5 square units. Find the equation of the line, and show that the point (1, 14) is on it.

Hint

The triangle has a right angle at the origin, with base along the x-axis and height 18. Find where the line crosses the x-axis first, then use rise ÷ run.

Answer

y = −4x + 18 (it crosses the x-axis at 4.5); at x = 1, y = −4 + 18 = 14, so (1, 14) is on it

Step by step
  1. The triangle has height 18 (up the y-axis) and its base is the distance to where the line crosses the x-axis.
  2. ½ × base × 18 = 40.5, so the base is 4.5. The line crosses the x-axis at (4.5, 0).
  3. From (0, 18) to (4.5, 0), the rise is −18 and the run is 4.5, so the gradient is −4.
  4. So y = −4x + 18. Substituting x = 1 gives 14, so (1, 14) is on the line.
Full working
  1. ½ × b × 18 = 40.5area of the triangle
  2. 9b = 40.5, so b = 4.5x-intercept at (4.5, 0)
  3. m = (0 − 18) ÷ (4.5 − 0) = −4rise ÷ run
  4. y = −4x + 18y = mx + c, c = 18
  5. x = 1: −4 + 18 = 14(1, 14) is on the line
  6. y = −4x + 18
2

Rāwiri makes a row of n hexagons from matches, where neighbouring hexagons share a side, and a separate row of n squares in the same way. (a) Find a rule for the number of matches in each row, and explain each number in your rules. (b) Show that the total number of matches is always 2 more than a multiple of 8. (c) He has 200 matches. What is the largest n he can make both rows with, and how many matches are left?

Hint

The first hexagon needs 6 matches. Each extra hexagon shares one side with the one before it, so how many new matches does it need?

Answer

(a) Hexagons H = 5n + 1, squares S = 3n + 1. (b) H + S = 8n + 2. (c) n = 24, using 194 matches with 6 left over.

Step by step
  1. Each hexagon adds 5 new matches (one side is shared), plus 1 extra match to close off the first hexagon: H = 5n + 1.
  2. In the same way each square adds 3 matches, plus 1 to close the first one: S = 3n + 1.
  3. Together: 5n + 1 + 3n + 1 = 8n + 2, which is a multiple of 8 plus 2. So 200, which is 8 × 25, can never be used exactly.
  4. 8n + 2 ≤ 200 gives n ≤ 24.75, and n must be whole, so round down to 24.
  5. With n = 24 he uses 8 × 24 + 2 = 194 matches, leaving 6.
Full working
  1. n = 1, 2, 3 hexagons: 6, 11, 16up 5 each time
  2. H = 5n + 15 per hexagon, 1 to start
  3. n = 1, 2, 3 squares: 4, 7, 10, so S = 3n + 1up 3 each time
  4. H + S = 8n + 2collect like terms
  5. 8n + 2 ≤ 200at most 200 matches
  6. 8n ≤ 198, n ≤ 24.75round down: whole rows
  7. n = 24: 121 + 73 = 194check: 5 × 24 + 1 and 3 × 24 + 1
  8. n = 24, using 194 matches, 6 left over
3

Two tanks at a farm are connected by a pump. Tank P is being drained at a steady rate: 4 minutes after the pump starts it holds 1260 L, and after 10 minutes it holds 900 L. Tank Q is being filled at a steady rate: after 6 minutes it holds 240 L, and after 9 minutes 360 L. (a) Write a rule for the volume in each tank, t minutes after the pump starts, and say what each gradient and intercept means. (b) When do the tanks hold the same amount? (c) When does Q hold exactly twice as much as P? Give the time in minutes and seconds.

Hint

Find each gradient as rise ÷ run, then step back to t = 0 for the intercept. For (c), write 'Q = 2 × P' as an equation and solve.

Answer

(a) P = 1500 − 60t (starts with 1500 L, loses 60 L per minute); Q = 40t (starts empty, gains 40 L per minute). (b) At 15 minutes, both 600 L. (c) At 18 min 45 s, when P holds 375 L and Q holds 750 L.

Step by step
  1. For P, the volume falls 360 L in 6 minutes, so the gradient is −60 L per minute. Stepping back 4 minutes from 1260 L gives 1500 L at the start.
  2. For Q, the volume rises 120 L in 3 minutes, so 40 L per minute. Stepping back 6 minutes from 240 L gives 0, so Q starts empty.
  3. Same amount: 1500 − 60t = 40t gives 100t = 1500, so t = 15, and both hold 600 L.
  4. Twice as much: 40t = 2(1500 − 60t). Expand and collect: 160t = 3000, so t = 18.75 minutes.
  5. 0.75 of a minute is 45 seconds. Check: P = 1500 − 1125 = 375 L and Q = 750 L, which is twice 375.
Full working
  1. m = (900 − 1260) ÷ (10 − 4) = −60P, L per minute
  2. 1260 = −60 × 4 + c, so c = 1500P = 1500 − 60t
  3. m = (360 − 240) ÷ (9 − 6) = 40, c = 240 − 240 = 0Q = 40t
  4. 1500 − 60t = 40t, so 100t = 1500, t = 15same amount
  5. Q = 40 × 15 = 600 = 1500 − 900check
  6. 40t = 2(1500 − 60t) = 3000 − 120tQ is twice P
  7. 160t = 3000, t = 18.75+120t both sides, ÷ 160
  8. 0.75 × 60 = 45 s; P = 375 L, Q = 750 Lcheck
  9. (b) 15 min, 600 L each; (c) 18 min 45 s

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91947