Year 9 (ages 13–14, Grade 8 in the US) · Maths · Straight line graphs · Lesson 2
Plotting straight-line graphs
Use tables of values and function machines to plot lines such as y = 2x − 3, y = −3x and y = 3(x + 1), describe the relationship between x and y in words, and check whether points lie on a line.

20-minute video lesson
Teaching, worked examples and 24 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Complete a table of values
- Plot and draw a straight-line graph
- Link function machines to equations
- Check whether a point lies on a line
The method
- Choose x values (usually −2 to 2) and put them in a table.
- Substitute each x into the equation to find y. Take care with negatives.
- Plot each (x, y) pair. They should lie in a straight line.
- Join them with a ruler right across the grid: the line carries on past the table.
- A point lies on a line if its coordinates make the equation true.
Key words: table of values, function machine, substitute, plot, linear.
Worked examples
Worked examples from the lesson, with every step.
Question 1
Complete a table of values for y = 3x − 1 for x from −2 to 2. Then draw the graph.
- Step 1: y = 3 × (−2) − 1 = −7
- Step 2: y = 3 × (−1) − 1 = −4
- Step 3: y = 3 × 0 − 1 = −1
- Step 4: y = 3 × 1 − 1 = 2
- Step 5: y = 3 × 2 − 1 = 5
- Step 6: plot each (x, y) and join with a ruler
Answer: −7, −4, −1, 2, 5; straight line through the points
Question 2
Complete a table of values for y = 3 − 2x for x from −2 to 2.
- Step 1: y = 3 − 2 × (−2) = 7
- Step 2: y = 3 − 2 × (−1) = 5
- Step 3: y = 3 − 2 × 0 = 3
- Step 4: y = 3 − 2 × 1 = 1
- Step 5: y = 3 − 2 × 2 = −1
Answer: 7, 5, 3, 1, −1
Question 3
Which equation matches this function machine? x → + 1 → × 2 → y
- Step 1: x + 1 then × 2
- Step 2: y = 2x + 2
Answer: y = 2x + 2