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 - and -intercepts of a line from its graph.
- Calculate a gradient as from a graph, and with from two points.
- Write the equation of a line in the form 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 — , which you can read straight off the -axis, and , which you calculate from any two points on the line.
From to the line rises 6 while it runs 3, so . It crosses the -axis at 2, so the equation is .
Key idea
Gradient from two points
For two points and on a line,
The rise (change in ) 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
Determine the gradient, the intercepts and the equation of the line shown.
Step 1: Read the intercepts
The line crosses the -axis at and the -axis at .
Step 2: Calculate the gradient
Using and :
The line falls from left to right, so a negative gradient is expected.
Step 3: Write the equation
and , so .
Try it yourself first, then check the working one step at a time.
Answer
Gradient , -intercept , -intercept ; equation .
Method
Read from the -axis.
Choose two clear points and calculate .
Write .
Watch out for
Writing : a falling line has a negative gradient.
Find the equation of the line shown.
Two points, no graph. You can do the same thing with just the coordinates. Find with the formula, then substitute either point into and solve for .
Worked example
Find the equation of the line through and
Determine the equation of the line passing through and , and state its -intercept.
Step 1: Calculate the gradient
Step 2: Substitute a point to find
Put into :
Every point on the line satisfies its equation, so substituting a known point leaves as the only unknown.
Step 3: Write the equation and check
. Check with : ✓
Try it yourself first, then check the working one step at a time.
Answer
, with -intercept .
Method
.
Substitute one point into and solve for .
Check with the other point.
Watch out for
Taking the differences in opposite orders, such as , which gives the wrong sign.
Calculate the gradient of the line through and .
Find the equation of the line through and .
Which equation matches the graph?
Common mistake
Reading gradients off a graph
- Check the scale on each axis. If the -axis goes up in 10s and the -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 . Then state the equation in the form , and check it with the second point.
Summary
Read where the line crosses the -axis, and the -intercept where it crosses the -axis.
, with both differences in the same order.
From two points: find , substitute one point into to find , 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.