Lemmara logo

Drawing Straight-Line Graphs

Draw a straight line from its equation with a table of values, including lines like y = 5 − 2x, x = 4 and y = −2.

80real exam questions on this topic
  • 6 steps
  • 7 min
  • 5 syllabuses

Try a real exam question on this

0580/23 · May/Jun 2026 · Q8 · 4 marks · Solve it step by step, the way the examiner marks it.

Loading the animated solution…

See the solution as text
Text version of the solution

A straight line L is drawn on a coordinate grid from −5 to 5. Find its gradient, then draw the line y − 2x + 3 = 0 on the same grid.

(a) 2 marks

Work out the gradient of the line L shown on the grid.

  1. L passes through (0, 1) and (3, −1)
  2. Gradient = (−1 − 1)/(3 − 0) = −2/3

Answer −2/3

(b) 2 marks

Draw the straight line y − 2x + 3 = 0 on the grid.

  1. Rearrange: y = 2x − 3
  2. Plot (0, −3), (1, −1), (3, 3)
  3. Join with a straight ruled line

Answer Correct line from at least (0, −3) to (3, 3)

The lesson, step by step

Step 1 of 6

What a Straight-Line Graph Is

An equation like is a rule. Every point whose x and y fit the rule sits on one straight line.

To draw it, work out some points, plot them, and join them with a ruler.

Rule

Work out at least three points. Two fix the line; the third checks you have not made a slip.

See this step move in Lemmara

Step 2 of 6

Draw the Line From a Table

The 3-mark question: “Draw the graph of for values of x from −2 to 3.” Make a table first, one x at a time.

Worked example

  1. 1

    — Write every whole number from −2 to 3 along the top of a table. These are the x values the question asks for.

  2. 2

    — Put x = −2 into the rule. Keep it in brackets: 3 × (−2) = −6, then take away 2.

  3. 3

    — Same two moves for the next x: times by 3, then take away 2.

  4. 4

    — 3 × 0 = 0, so y = −2. This is where the line crosses the y-axis, because x = 0 there.

  5. 5

    — 3 × 1 = 3, then take away 2.

  6. 6

    — 3 × 2 = 6, then take away 2.

  7. 7

    — 3 × 3 = 9, then take away 2. That is the last x in the range.

  8. 8

    — Check the y row: it goes up 3 each time, the number in front of x. A value that breaks the pattern is a slip — work it out again.

  9. 9

    — Plot each pair as a point. Join them with one ruled line from x = −2 right to x = 3.

Common mistake

Stopping the line early. Draw it right from x = −2 to x = 3 with a ruler, through every point.

Key idea

Show the table and plot every point. Even if your line goes wrong, two or three correctly plotted points still earn marks.

See this step move in Lemmara

Step 3 of 6

When the x Term Is Negative

Many questions use a rule like , with a minus in front of the x term. The line goes down from left to right. Take care with the signs.

Worked example

  1. 1

    — Put x = −2 in, inside brackets, so its minus is not lost.

  2. 2

    — Do the times first: 3 × (−2) = −6.

  3. 3

    — Taking away a negative is the same as adding. So the first y is 12.

  4. 4

    — Same moves: 3 × (−1) = −3, and 6 − (−3) = 9.

  5. 5

    — 3 × 0 = 0, so y = 6. The line crosses the y-axis at 6.

  6. 6

    — 3 × 1 = 3, and 6 − 3 = 3.

  7. 7

    — y = 0, so the line crosses the x-axis at (2, 0).

  8. 8

    — 6 − 9 goes below zero: y = −3.

  9. 9

    — Check: y goes down 3 each time. The minus in −3x is what makes the line slope down.

Common mistake

Writing 6 − 3(−2) = 0. Three times −2 is −6, and 6 − (−6) = 12.

See this step move in Lemmara

Step 4 of 6

Flat and Upright Lines

The 1-mark question: “Draw the line ” or “Draw the line .” Only one letter appears, so you need no table.

Worked example

  1. 1

    — Every point has y = −3, whatever x is: (0, −3), (2, −3), (4, −3). So it is a flat line through −3 on the y-axis.

  2. 2

    — Every point has x = 5, whatever y is: (5, 0), (5, 2), (5, −4). They stack up, so it is an upright line through 5 on the x-axis.

  3. 3

    — Here y always equals x: (0, 0), (1, 1), (3, 3). So it is a sloping line through the origin, going up.

  4. 4

    — Now y is x with its sign changed: (1, −1), (−2, 2). It also goes through the origin, but slopes down.

Memory trick

y = a number: flat. x = a number: upright.

Common mistake

Drawing x = 5 flat. Points like (5, 0) and (5, 4) all have x = 5, and they stack straight up.

Key idea

When you draw more than one line on a grid, label each with its equation, so the examiner knows which is which.

See this step move in Lemmara

Step 5 of 6

Lines Like 2x + 3y = 12

Some questions give a line as , with x and y on the same side. There is no “y =” to read, so use the two easy points: x = 0, then y = 0.

Worked example

  1. 1

    — The question. x and y are on the same side, so a table needs a little more work.

  2. 2

    — Put x = 0. The x term becomes 0, so only y is left.

  3. 3

    — Divide both sides by 3. So (0, 4) is on the line: where it crosses the y-axis.

  4. 4

    — Now put y = 0. The y term becomes 0, so only x is left.

  5. 5

    — Divide both sides by 2. So (6, 0) is on the line: where it crosses the x-axis.

  6. 6

    — Find a third point as a check. Put x = 3, so 2 × 3 = 6.

  7. 7

    — Take 6 from both sides, so the y term is alone.

  8. 8

    — Divide by 3. Plot (0, 4), (6, 0) and (3, 2): if they lie in one ruled line, your points are right.

Common mistake

Stopping the line at the axes. If the question says x from −3 to 6, carry on: at x = −3, y = 6. Draw the ruled line across the whole range.

Key idea

If a y value comes out as a decimal, plot it exactly. For , x = 2 gives y = 2.5: put the point halfway between the gridlines, not on 2 or 3.

Key idea

“Sketch the line” (Extended) means no table and no grid. Draw a straight line sloping the right way, and write the numbers where it crosses each axis — here 4 on the y-axis and 6 on the x-axis.

See this step move in Lemmara

Step 6 of 6

Which Method? Read the Question

Look at which letters the equation has.

You seeYou do
“Draw y = … for x from … to …”table, plot, ruler, full range
“Complete the table”put each x into the rule
Only y = a number, or x = a numberflat line, or upright line
y = x or y = −xsloping line through (0, 0)
x and y on one side, like 2x + 3y = 12put x = 0, then y = 0, then one check point
“Does this point lie on the line?”put its x in, compare the y
Gradient or y-intercept askedThe Equation y = mx + c

Key idea

Does (100, 297) lie on ? , not 297, so no. Always write the reason.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 80 questions on this topic

Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.

Try a real exam question on this

Solve it →