A-level · Coordinate geometry
Straight-line equations and graphs
Compare gradient, intercept and point-gradient form; explore parallel, perpendicular and vertical lines.
Drag I to move the intercept; drag G up or down to change the gradient.
Tab to a handle, then use the arrow keys. Use the sliders for precise values.
Changing c moves the line while keeping its gradient. Changing m changes its direction.
- Blue line
- General form
- Gradient
- Y-intercept
- Point Q on the line
- Point-gradient form
The blue point Q satisfies the line equation. Both graph axes use the same scale. A perpendicular line needs the negative reciprocal of a finite nonzero gradient.
Predict, test and explain
Step 1 of 3
Predict
A line has gradient 2. What gradient should a perpendicular line have?
Explore and compare
Choose the investigation above. Predict what will change before you move a control.
Try it in the simulation. Change one thing at a time.
Notes and saved values stay in this tab. They disappear when you reload.
Hints, self-check and connections
Try a self-check
Fixed values, separate from the diagram controls.
Find the equation of the line through (2, −1) perpendicular to y = 2x + 3.
Hint
Use the negative reciprocal of 2, then substitute the given point into point-gradient form.
Reveal answer
The perpendicular gradient is −1/2. With point (2, −1), y + 1 = −(x − 2)/2, which simplifies to y = −x/2.
Build an explanation
Hint 1
Gradient is change in y divided by change in x. A vertical line has no finite gradient.
Hint 2
Use y − y₁ = m(x − x₁) for a line through a given point. Rearrange to y = mx + c to read its y-intercept.
Hint 3
Distinct parallel nonvertical lines have the same gradient. Perpendicular lines with finite nonzero gradients have m₁m₂ = −1; a horizontal line is perpendicular to a vertical line.
Worked example
This example uses fixed values, separate from the diagram controls.
Find the equation of the line through (−1, 4) and (3, −4), then state the gradient of a perpendicular line.
- m = (−4 − 4) ÷ (3 − (−1)) = −8 ÷ 4 = −2.
- Using (−1, 4): y − 4 = −2(x + 1).
- Expand and simplify to y = −2x + 2. A perpendicular gradient is −1 ÷ (−2) = 1/2.
Answer: y = −2x + 2; equivalently 2x + y − 2 = 0. A perpendicular line has gradient 1/2.
Connect this idea
Watch out: Changing the sign alone does not give a perpendicular gradient: use the negative reciprocal. Treat horizontal and vertical lines separately.
Specification and learning route
AQA C1 · Edexcel Pure 3.1
AS and A-level. This model illustrates selected content; references are not a claim of full coverage or exam-board endorsement.
Useful starting knowledge: Coordinates; Gradient; Linear equations.