Lesson 6 of 8 · 16 min

Equations from graphs and points

Read the gradient and intercepts of a straight line from its graph, and find the equation of a line from its graph or from two points on it.

What you will be able to do

  • Read the xx- and yy-intercepts of a line from its graph.
  • Calculate a gradient as riserun\frac{\text{rise}}{\text{run}} from a graph, and with m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1} from two points.
  • Write the equation of a line in the form y=mx+cy = mx + c from its graph or from two points.

Last lesson went from equation to graph. This one goes the other way: given a line on a grid, work out its equation. You need two numbers — cc, which you can read straight off the yy-axis, and mm, which you calculate from any two points on the line.

From (0,2)(0, 2) to (3,8)(3, 8) the line rises 6 while it runs 3, so m=63=2m = \frac{6}{3} = 2. It crosses the yy-axis at 2, so the equation is y=2x+2y = 2x + 2.

Key idea

Gradient from two points

For two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) on a line,

m=riserun=y2−y1x2−x1m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}

The rise (change in yy) is on top. Take both differences in the same order, and a falling line will give a negative gradient automatically.

Worked example

Find the equation of a line from its graph

  • Simple familiar

Determine the gradient, the intercepts and the equation of the line shown.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Read cc from the yy-axis.

  2. Choose two clear points and calculate m=riserunm = \frac{\text{rise}}{\text{run}}.

  3. Write y=mx+cy = mx + c.

Watch out for

  • Writing m=1.5m = 1.5: a falling line has a negative gradient.

Find the equation of the line shown.

Reads asYour answer shows here as maths.

Two points, no graph. You can do the same thing with just the coordinates. Find mm with the formula, then substitute either point into y=mx+cy = mx + c and solve for cc.

Worked example

Find the equation of the line through (2,7)(2, 7) and (6,19)(6, 19)

  • Complex familiar

Determine the equation of the line passing through (2,7)(2, 7) and (6,19)(6, 19), and state its yy-intercept.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}.

  2. Substitute one point into y=mx+cy = mx + c and solve for cc.

  3. Check with the other point.

Watch out for

  • Taking the differences in opposite orders, such as 19−72−6\frac{19 - 7}{2 - 6}, which gives the wrong sign.

Calculate the gradient of the line through (−1,5)(-1, 5) and (3,−3)(3, -3).

Find the equation of the line through (1,4)(1, 4) and (5,12)(5, 12).

Reads asYour answer shows here as maths.

Which equation matches the graph?

Choose one answer

Common mistake

Reading gradients off a graph

  • Check the scale on each axis. If the yy-axis goes up in 10s and the xx-axis in 1s, a line that looks like it has gradient 1 may really have gradient 10.
  • Use points where the line crosses grid lines exactly, and choose them far apart.
  • A falling line must give a negative gradient. If yours is positive, check the order you subtracted in.

Exam tip

In the exam

Show the two points you used and the substitution into m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}. Then state the equation in the form y=mx+cy = mx + c, and check it with the second point.

Summary

  • Read cc where the line crosses the yy-axis, and the xx-intercept where it crosses the xx-axis.

  • m=riserun=y2−y1x2−x1m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}, with both differences in the same order.

  • From two points: find mm, substitute one point into y=mx+cy = mx + c to find cc, check with the other.

  • Watch the axis scales and the sign of the gradient.

Finished the lesson?

Try the 4 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account