Finding the equation of a line: two points, or one point and the gradient
Ages 14–16GCSE (A9c, A10, R14)
What you will learn
Exactly one straight line passes through two different points. You learn to find its equation : first the gradient , then the -intercept .
Think first: does a vertical line have a gradient too? Does it fit the form ? Then check: drag B straight above A.
The line through A(−2, −2) and B(2, 4) has gradient 3/2 and y-intercept 1. Its equation is y = 3/2 × x + 1.
First the gradient
If A and B lie one directly above the other, there is no step to the right, and you cannot divide by : the line has no gradient. All its points have the same , for example ; then the equation is , in general .
Otherwise divide the difference in the -coordinates by the difference in the -coordinates, both from A to B:
From the lower point to the upper one it is to the right and up: the gradient is the way up divided by the way to the right.
Self-check
A line passes through the points and . What is its gradient ?
Show the solution
. For every step to the right the line rises by .
Example 1
A line passes through the points and . What is its equation?
- 01
Work out the gradient: the difference in the -coordinates divided by the difference in the -coordinates.
- 02
Substitute and the coordinates of A into .
- 03
Solve for : subtract from both sides.
- 04
Substitute and into the equation.
The equation is . Check with the point B: , which is right.
A point and the gradient
Sometimes you know one point and the gradient. Then only is missing: substitute the gradient and the coordinates of the point into and solve for .
In the figure the point lies to the right of the -axis: from it you go back along the line to the -axis. From a point on the left you would go forwards.
From the point at height you go down and to the left, twice: the line crosses the -axis at .
Example 2
A line has gradient and passes through the point . What is its equation?
- 01
Substitute and the coordinates of P into .
- 02
Work out the product.
- 03
Solve for : add to both sides.
- 04
Substitute and into the equation.
The equation is . Check with P: , which is right. Because is negative, the line falls.
Self-check
A line passes through the point and has gradient . What is its equation?
Show the solution
. The point lies on the -axis, so , and the gradient is . In the two numbers are swapped, and crosses the -axis at .
Self-check
A line has gradient and passes through the point . What is its -intercept ?
Show the solution
, so and . The equation is .
For teachers: a lesson plan (45 min)
- 5 min
Starter
First ask without the simulation: how many lines pass through one point, and how many through two? And does a vertical line have a gradient too? The class makes its guesses. Then open the simulation with ‘Full screen’: someone drags B straight above A.
- 10 min
First the gradient
The figure with the triangle on the line: what would the gradient be if the upper point were two squares lower? Then the first self-check, each pupil on their own.
- 10 min
From two points
Reveal Example 1 step by step together. Then the class substitutes B instead of A in the second step: does the same come out?
- 15 min
A point and the gradient
The figure with the arrows back to the -axis: where would the line cross the -axis if the given point were one square higher? Discuss the ‘Watch out’ box. Let pupils try Example 2 on their own first, then reveal it and compare. The second and third self-checks, alone or in pairs.
- 5 min
Plenary
Read the ‘Remember’ box together. Ask: why do you get the same gradient when you swap A and B?
What you need first
Got an exercise on paper?
Take a photo of it and Math Explainer turns it into an explainer video with every step of the solution.