(1, 2) and (3, 8)
m = (8 − 2)/(3 − 1)
3.
The line through and has equation .
This page is easier if you are comfortable with:
Any point on the line must give the same gradient when joined to as the line itself has, which gives the equation above.
Alternatively, find the gradient first and use .
The two-point form works even for vertical lines if you cross-multiply. The gradient comes from the gradient between two points, after which the line is written with a point and gradient m, and the answer can be rearranged into the general form.
This page is part of Coordinate geometry in Geometry and measures. Topics that work alongside it: Gradient between two points, Line through a point with gradient m, Equation of a straight line, Circle: general form, Equation of a circle, Sector area and Distance from a point to a line (2D, coordinates).
To find the line through two points, find the gradient between them and then use y − y₁ = m(x − x₁).
The gradient is (9 − 3) ÷ (4 − 1) = 2, and the line meets the y-axis at 1.
These examples are worked by hand, step by step, so you can compare your own working.
Find the equation of the line through and .
Find the equation of the line through and .
Find the equation of the line through and .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
m = (8 − 2)/(3 − 1)
3.
2 − 3×1
−1: y = 3x − 1.
m
−2.
3×3 − 1
8.
The line through (x₁, y₁) and (x₂, y₂) has gradient m = (y₂ − y₁)/(x₂ − x₁) and equation y − y₁ = m(x − x₁), equivalently (y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁).
(1, 2), (3, 8).
c = y₁ − m x₁.
(0, 5), (2, 1): gradient.
y = 3x − 1 at x = 3.
Δx/Δy ✗
Δy/Δx ✓
Rise over run.
y₂ with x₁ ✗
consistent order ✓
Same order.
sign ✗
c = y − m x ✓
Minus.
unverified ✗
substitute the other point ✓
Verify.
Try each one on paper, then open the answer. Use the solver above to see the full working.
3
-2
3
7
11
1.5
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
Find m = Δy/Δx then use y − y₁ = m(x − x₁).
Substitute a point.
Substitute the other point.
The line is vertical.
general form.
More in Geometry and measures and the formula sheets.