3.2 · CorePaper 1Paper 2Paper 3Paper 4

Drawing linear graphs

In a minute

A such as y=2x+3y = 2x + 3 has a straight-line graph, called a . You work out a few points in a , plot their and join them with a ruler. Extended adds equations written like 4x+3y=124x + 3y = 12.

You'll be able to

  • Complete a table of values and draw the straight line through the points.
  • Draw a line from three well-chosen points, and draw horizontal and vertical lines.
  • Draw lines whose equations are written as y=9−2xy = 9 - 2x or ax+by=cax + by = c.
Before you start3 quick questions on what this builds on
Check yourself
For y=5x+2y = 5x + 2, work out yy when x=−3x = -3.
Check yourself
A point is 44 units to the left of the origin and 11 unit up. Which point is it?
Check yourself
Solve 2y−7=92y - 7 = 9.

Revise first: 2.5 Equations, 2.10 Graphs of functions and 3.1 Coordinates

Drawing a line from a table of values

In y=2x+3y = 2x + 3, xx and yy appear only to the power 11: never squared, multiplied together or under a fraction line. That makes it a .

Each xx gives one yy. Pick a few xx values and work out each yy: that is a . Each column gives the (x,y)(x, y) of a point to plot.

1. Work out yy for each xx. Put negative xx values in brackets.

2. Plot each point with a small cross, xx across and yy up.

3. Join the crosses with one ruled straight line, across the whole range of xx you were given.

Worked exampleComplete a table of values for y=2x+3y = 2x + 3 for x=−3,−2,−1,0,1,2x = -3, -2, -1, 0, 1, 2. Then draw the graph for −3≤x≤2-3 \le x \le 2.

Try it first, then reveal one step at a time.

  1. Substitute each xx. At x=−3x = -3: y=2×(−3)+3=−6+3=−3y = 2 \times (-3) + 3 = -6 + 3 = -3.
Grid with x from minus 4 to 3 and y from minus 4 to 8. Six crosses are plotted at (minus 3, minus 3), (minus 2, minus 1), (minus 1, 1), (0, 3), (1, 5) and (2, 7). A ruled straight line labelled y equals 2x plus 3 passes through all six crosses, from (minus 3, minus 3) to (2, 7). −4 −3 −2 −1 1 2 3 −4 −3 −2 −1 1 2 3 4 5 6 7 8 0 x y y = 2x + 3
The graph of y=2x+3y = 2x + 3 for −3≤x≤2-3 \le x \le 2. The line stops at the ends of the range.

When the xx values go up in 11s, the yy values of a linear equation change by the same amount each time (for y=ky = k they don't change at all). A yy value that breaks the pattern is a slip, so recheck it before you plot.

Check yourself
For y=4x−7y = 4x - 7, work out yy when x=−2x = -2.
Worked exampleComplete a table of values for y=−3x+5y = -3x + 5 for x=−1,0,1,2,3x = -1, 0, 1, 2, 3. Then draw the graph for −1≤x≤3-1 \le x \le 3.

Try it first, then reveal one step at a time.

  1. At x=−1x = -1: y=−3×(−1)+5=3+5=8y = -3 \times (-1) + 5 = 3 + 5 = 8. Two negatives multiply to a positive.
Check yourself
Which point lies on the line y=−2x+6y = -2x + 6?

Three points, and horizontal and vertical lines

Two points fix a straight line. Plot a third point as a check: if the three crosses don't line up, one of them is wrong.

Choose easy xx values: the two ends of the range you are given, and x=0x = 0 (or a value in the middle if 00 is outside the range). Then your line reaches right across.

At x=0x = 0, y=mx+cy = mx + c gives y=cy = c. So the line crosses the yy-axis at (0,c)(0, c), and cc is the . You'll use it more in 3.5.

Worked exampleDraw the graph of y=12x−2y = \frac{1}{2}x - 2 for −6≤x≤4-6 \le x \le 4.

Try it first, then reveal one step at a time.

  1. Use the ends of the range and x=0x = 0. Even xx values avoid halves.

Some equations have only one letter. y=3y = 3 means yy is 33 whatever xx is. Every point on it is at height 33, so it is a horizontal line.

x=−2x = -2 means xx is −2-2 whatever yy is, so it is a vertical line. It has no yy in it, so it can't be written as y=mx+cy = mx + c.

Worked exampleOn one grid, draw the lines y=3y = 3 and x=−2x = -2. Write down the coordinates of the point where they cross.

Try it first, then reveal one step at a time.

  1. y=3y = 3: rule a horizontal line through 33 on the yy-axis.
Grid with x from minus 4 to 4 and y from minus 3 to 4. A horizontal line labelled y equals 3 runs across the grid through y equals 3. A vertical line labelled x equals minus 2 runs up the grid through x equals minus 2. The lines cross at the marked point (minus 2, 3). −4 −3 −2 −1 1 2 3 4 −3 −2 −1 1 2 3 4 0 x y y = 3 x = −2 (−2, 3)
y=3y = 3 goes across; x=−2x = -2 goes up and down.
Check yourself
Which is the equation of the horizontal line through (4,−6)(4, -6)?

Equations in other forms Extended only

On Extended papers the equation may be written as y=9−2xy = 9 - 2x or 4x+3y=124x + 3y = 12. These are still linear, so each graph is still a straight line.

Read y=9−2xy = 9 - 2x as y=−2x+9y = -2x + 9, and make a table as before.

For ax+by=cax + by = c, find where the line crosses the axes. Put x=0x = 0 and solve for yy. Then put y=0y = 0 and solve for xx. Here cc is just the number on the right, not the yy-intercept.

This needs aa, bb and cc all non-zero. If c=0c = 0, both crossings are the origin, so choose another xx value for the second point.

Worked exampleDraw the graph of 5x+2y=205x + 2y = 20 for 0≤x≤40 \le x \le 4.

Try it first, then reveal one step at a time.

  1. Put x=0x = 0: 2y=202y = 20, so y=10y = 10. Plot (0,10)(0, 10).
Check yourself
Where does the line 3x+8y=243x + 8y = 24 cross the xx-axis?

If the crossings give awkward fractions, rearrange to make yy the subject. Then pick xx values that give whole-number yy values.

Worked exampleDraw the graph of 3x−4y=63x - 4y = 6 for −2≤x≤6-2 \le x \le 6.

Try it first, then reveal one step at a time.

  1. Putting x=0x = 0 gives y=−1.5y = -1.5, which is hard to plot. So rearrange instead.
Check yourself
For the line 6x+5y=306x + 5y = 30, work out yy when x=−5x = -5.

Common mistakes

  • Getting a sign wrong with a negative xx. Use brackets: −2×(−4)=+8-2 \times (-4) = +8.
  • Joining the points freehand, or stopping the line short. Use a ruler and go across the whole range of xx.
  • Mixing up x=kx = k and y=ky = k. y=ky = k is horizontal; x=kx = k is vertical.
  • Plotting (x,y)(x, y) the wrong way round. Go across first, then up.
  • Trusting two points. A third point shows up a slip.

Exam tips

  • "Draw the graph for −3≤x≤3-3 \le x \le 3": rule a line that reaches both ends of that range. A short or freehand line loses marks.
  • "Complete the table": the marks are for the yy values. If the xx values go up in equal steps, check the yy values do too before you plot.
  • Read the scale on each axis before you plot. One square is not always one unit.

Key takeaways

Learn thisA linear equation gives a straight line. Plot at least three points and rule one line across the whole range of xx.
Learn thisPut negative xx values in brackets: −3×(−2)=+6-3 \times (-2) = +6.
Learn thisy=mx+cy = mx + c crosses the yy-axis at (0,c)(0, c).
Learn thisy=ky = k is a horizontal line. x=kx = k is a vertical line.
Learn thisax+by=cax + by = c with aa, bb and cc all non-zero: put x=0x = 0, then y=0y = 0, to find where it crosses the axes. Or rearrange to y=…y = \ldots first.

Practise this

24 past-paper questions on 3.2 in the 0580 Extended bank, each with a mark scheme and a worked explanation.

Practise 3.2 →