Coordinates: naming every point in the plane
Two number lines crossing at right angles — the horizontal x-axis and the vertical y-axis — turn a flat page into a grid where every point has an address. The axes cross at the origin O, the point (0, 0), and they split the plane into four quadrants.
Four points, one in each quadrant
Check each one against the rule: A (3, 2) is 3 right, 2 up. B (−3, 1) is 3 left, 1 up. C (−2, −2) is 2 left, 2 down, and D (1, −3) is 1 right, 3 down. Points on the axes are easy to misread: (0, 3) sits on the y-axis, and (3, 0) sits on the x-axis.
Gradient: how steep, and which way
The gradient of a line, written m, measures its steepness: how far the line climbs for every one step you take to the right. A gradient of 3 means “up 3 for every 1 across”; a gradient of −3 means “down 3 for every 1 across”. A straight line has the same gradient everywhere — that is exactly what makes it straight.
To find a gradient from two points, subtract the y-coordinates, subtract the x-coordinates in the same order, and divide. It does not matter which point you call first, as long as you are consistent top and bottom.
Rise over run: the gradient triangle for the line through A (1, 1) and B (4, 3)
Positive gradient
Uphill from left to right. The bigger m is, the steeper the climb: y = 3x is steeper than y = x.
Negative gradient
Downhill from left to right. y = 7 − 4x drops 4 units for every 1 across, so m = −4.
Horizontal lines: y = k
Every point has the same y-coordinate, so rise = 0 and m = 0. The line through (1, 3) and (5, 3) is y = 3.
Vertical lines: x = k
Run = 0, and you cannot divide by zero: the gradient is undefined, not 0. The vertical line through (2, 0) is x = 2 — it cannot be written as y = mx + c.
Example 1Find the gradient of the straight line through A (−2, 4) and B (4, 1).
Length and midpoint of a line segment
A line segment is the piece of line between two endpoints. Two questions come up constantly: how long is it, and where is its middle? Both answers come straight from the horizontal gap x₂ − x₁ and the vertical gap y₂ − y₁ between the endpoints.
The segment from P (−3, 2) to Q (5, 8): run 8, rise 6, length 10
Example 2P is (−3, 2) and Q is (5, 8). Find (a) the coordinates of the midpoint of PQ and (b) the length of PQ.
The equation y = mx + c — and how to read any line
Every non-vertical straight line has an equation of the form y = mx + c. The two letters tell you everything about the line:
Exams deliberately serve equations in different costumes. Whatever the form, rearrange to make y the subject and then read off m and c:
| Form | Example | Gradient | y-intercept |
|---|---|---|---|
| y = mx + c | y = −2x + 5 | −2 | (0, 5) |
| Terms swapped round | y = 7 − 4x | −4 | (0, 7) |
| ax + by = d | 3x + 2y = 5 → y = −32x + 52 | −32 | (0, 52) |
| Horizontal | y = 3 | 0 | (0, 3) |
| Vertical | x = 2 | undefined | never crosses the y-axis |
Drawing a line from its equation
Method 1: table of values
Pick three x-values (three, so the third checks the other two), work out y for each, plot, and rule a line through them. For y = −2x + 5: (0, 5), (1, 3), (2, 1) — all in a line. ✓
Method 2: start at c, step the gradient
Mark the y-intercept (0, c), then from there go 1 across, m up (down if m is negative) and repeat. For 3x + 2y = 5, rearrange first, start at (0, 2.5) and step 1 across, 1.5 down.
Example 3Find the gradient and the y-intercept of the graph with equation 5x + 4y = 8.
Line explorer
Slide m and c to steer the orange line. Then edit the points A and B — the read-out computes gradient, midpoint and length exactly as you should on paper. Try m = −1 (perpendicular to AB), then move B to (3, 6) for a fraction gradient.
Finding the equation of a line
Every “find the equation” question is the same two-step hunt: find m, then find c. Once you know the gradient, substitute any known point into y = mx + c and solve for c.
Given the gradient and one point
- Write y = mx + c with the known m.
- Substitute the point’s x and y.
- Solve for c and state the equation.
Given two points
- Find m = y₂ − y₁x₂ − x₁ first.
- Substitute either point to find c.
- Check the equation with the other point.
Example 4Find the equation of the straight line through (1, 5) and (3, 11).
Parallel and perpendicular lines
Gradient is the key to comparing two lines. Lines with the same steepness never meet; lines at right angles have gradients locked together in a precise way.
So a line perpendicular to one with gradient ⅔ has gradient −&frac32;; perpendicular to gradient −4 is gradient ¼. Check: ⅔ × (−&frac32;) = −1. ✓
Parallel pair y = ½x + 1 and y = ½x − 2, with the perpendicular y = −2x + 2
Before comparing gradients, get every equation into the form y = mx + c. The table shows four lines that look unrelated until you rearrange:
| Equation as given | Rearranged | Gradient | Verdict vs y = ½x + 1 |
|---|---|---|---|
| y = ½x + 1 | — | ½ | the reference line |
| 2y = x − 4 | y = ½x − 2 | ½ | parallel (equal gradients) |
| y = −2x + 3 | — | −2 | perpendicular: ½ × (−2) = −1 |
| 2x + 4y = 1 | y = −½x + ¼ | −½ | neither: gradients differ, product is −¼ |
More worked examples
Example 5(a) Find the equation of the line parallel to y = 4x − 1 that passes through (1, −3). (b) Find the gradient of a line perpendicular to 2y = 3x + 1.
Example 6Find the equation of the perpendicular bisector of the line joining A (−3, 8) and B (9, −2).
Your turn
Practice set
- Write down the gradient and the y-intercept of y = 7 − 4x.
- Find the gradient of the straight line through (2, 3) and (6, 11).
- Find the midpoint and the length of the line segment from (−1, −2) to (5, 6).
- Find the equation of the line through (4, 1) that is parallel to 3x + 2y = 5.
- Find the equation of the perpendicular bisector of the line joining A (1, 2) and B (7, 10).
- Compare with y = mx + c: m = −4, y-intercept (0, 7)
- m = (11 − 3)/(6 − 2) = 8/4 → m = 2
- Midpoint ((−1+5)/2, (−2+6)/2) = (2, 2); gaps 6 and 8, so length √(36 + 64) = √100: M (2, 2), length 10
- 3x + 2y = 5 → y = −(3/2)x + 5/2, so m = −3/2; through (4, 1): 1 = −6 + c → c = 7: y = 7 − (3/2)x, i.e. 3x + 2y = 14
- Midpoint (4, 6); m₁ = 8/6 = 4/3, so m⊥ = −3/4; 6 = −3 + c → c = 9: y = 9 − (3/4)x, i.e. 3x + 4y = 36
Key points to remember
- Coordinates are (x, y): across first, up second — and the order is not negotiable.
- Gradient: m = rise ÷ run = (y₂ − y₁)/(x₂ − x₁), subtracting in the same order top and bottom.
- Horizontal lines are y = k with m = 0; vertical lines are x = k with undefined gradient.
- Length = √((x-gap)² + (y-gap)²); midpoint = average of the coordinates.
- In y = mx + c, m is the gradient, c the y-intercept — rearrange any other form to make y the subject before reading them off.
- To find an equation: find m first, then substitute one point to find c.
- Parallel: m₁ = m₂. Perpendicular: m₁ × m₂ = −1. A perpendicular bisector uses the flipped gradient and the midpoint.
Where next?
🎥 Take the interactive module
Coordinate Geometry & Straight-Line Graphs — the full teaching module for this topic, with real past-paper questions and mark schemes.
✏️ Practise exam questions
Lines — 25 exam-style questions worth 94 marks, with full answers and the mark scheme.
Progress is saved on this device only and appears on the notes home page.