Lemmara logo

Finding the Equation From a Graph

Read where a drawn line crosses the y-axis and how steep it is, then write its equation as y = mx + c.

16real exam questions on this topic
  • 5 steps
  • 4 min
  • 2 syllabuses

Try a real exam question on this

0580/12 · Feb/Mar 2025 · Q17 · 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 grid with axes 0 to 8 and 0 to 7. Find its equation in the form y = mx + c, then find where L meets the x-axis at P.

(a) 2 marks

Using the grid, work out the gradient and y-intercept of line L and write its equation as y = mx + c.

  1. L crosses the y-axis at (0, 3), so c = 3
  2. L passes through (8, 7): gradient = (7 − 3)/(8 − 0) = 4/8 = 1/2
  3. y = 1/2 x + 3

Answer y = 1/2 x + 3

(b) 2 marks

Line L meets the x-axis at point P. Determine the coordinates of P.

  1. On the x-axis y = 0
  2. 0 = 1/2 x + 3
  3. 1/2 x = −3, so x = −6
  4. P = (−6, 0)

Answer (−6, 0)

The lesson, step by step

Step 1 of 5

Two Things to Read

Every straight line (except an upright one) has an equation of this form:

Formula

To find it from a graph you read just two numbers:

LetterWhat it isWhere to look
the gradient: how steepup ÷ across between two points
the y-interceptwhere the line crosses the y-axis

Key idea

For more on what m and c mean, see The Equation y = mx + c.

See this step move in Lemmara

Step 2 of 5

Read c, Then m

The 2–3 mark question: a line is drawn on a grid, find its equation. Pick two points where the line crosses grid corners exactly.

Worked example

  1. 1

    — Find where the line cuts the upright axis. That height is c, so c = 2.

  2. 2

    — Pick two points where the line passes exactly through a grid corner. Exact points give an exact gradient.

  3. 3

    — y goes from 2 down to −4. Going down means up is negative: −6.

  4. 4

    — x goes from 0 to 2, so the line moves 2 to the right.

  5. 5

    — Gradient = up ÷ across. Negative, which matches a line going down to the right.

  6. 6

    — Put m in front of x and c on its own, as in .

  7. 7

    — Check with the second point. It gives y = −4, so the equation fits.

Common mistake

Writing . The line goes down to the right, so the gradient must be negative.

Key idea

Show up ÷ across in your working, and write the answer as , not . A correct gradient or a correct c still earns a mark, even if the other one is wrong.

See this step move in Lemmara

Step 3 of 5

When the Gradient Is a Fraction

Some lines rise slowly. Count across to the next exact grid corner: the gradient is then a fraction.

Worked example

  1. 1

    — The line cuts the y-axis below 0, at −1. So c = −1, minus sign included.

  2. 2

    — Move right from (0, −1) until the line passes exactly through a grid corner. The first one is (3, 1).

  3. 3

    — y goes from −1 up to 1. Taking away a negative adds, so 1 + 1 = 2.

  4. 4

    — x goes from 0 to 3, so the line moves 3 to the right.

  5. 5

    — Up ÷ across. 2 does not divide exactly by 3, so leave the gradient as a fraction.

  6. 6

    — Put m and c into . The −1 keeps its minus.

Common mistake

Doing across ÷ up and getting . Up always goes on top.

Key idea

Check with a third point. At : . It fits.

See this step move in Lemmara

Step 4 of 5

When One Square Is Not 1

Exams often use axes where one square is not 1. Read the numbers on the axes, never just count squares.

Worked example

  1. 1

    — Read the scales first. Here 5 squares reach 10 on the x-axis, and 2 squares reach 1 on the y-axis.

  2. 2

    — The line crosses the y-axis at the number 3. Read the label, not the square count.

  3. 3

    — Pick a second point where the line passes exactly through a grid corner, and read both numbers off the axes.

  4. 4

    — Use the axis numbers. It is 4 squares, but each square is 0.5, so up = 2.

  5. 5

    — Also 4 squares, but each square is 2, so across = 8.

  6. 6

    — Up ÷ across, then simplify. 2 ÷ 8 = 0.25, which is the same as .

  7. 7

    — Put m and c into .

  8. 8

    — Check with a point on the line, (4, 4). It fits.

Common mistake

Counting squares: 4 up and 4 across gives . That is only right when both scales are the same.

See this step move in Lemmara

Step 5 of 5

Which Method? Read the Question

Look at the line and what the question asks.

You seeYou do
A sloping line drawn on a gridread c, then up ÷ across
A flat line the height it sits at
An upright line where it crosses the x-axis
A sloping line through c = 0, so
A line that does not reach the y-axisfind m, then put a point in for c: Equation of a Line Through Two Points
Only two points, no graphEquation of a Line Through Two Points
“Draw the line”Drawing Straight-Line Graphs

Key idea

Check the axis scales before counting squares. One square is not always 1.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 16 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 →