mathsGrade 9-102 min read
Straight-line graphs: everything from y = mx + c
One equation describes every straight line. Learn to read the gradient and intercept off it — and to find the equation of a line from two points — and the whole topic opens up.
Every straight line in the plane can be written as
and the entire topic is reading meaning into those two letters: and . Get what each one does and you can sketch any line, or find its equation, in seconds.
What m and c tell you
- is the -intercept — where the line crosses the -axis. It's the value of when , so it's literally where the line starts.
- is the gradient — how steep the line is. It's the "rise over run": how far up you go for each step to the right.
A positive slopes uphill; a negative slopes down; a bigger number is steeper.
Finding the equation from two points
Given two points, say and :
- Gradient first: .
- Then the intercept: sub one point into . Using : .
- Write it out: .
Parallel and perpendicular
| Relationship | Gradient rule |
|---|---|
| Parallel lines | Same gradient |
| Perpendicular lines | Gradients multiply to (negative reciprocals) |
So a line perpendicular to has gradient — flip it and change the sign.
Gradient before intercept, always. Find from the two points first, then substitute a point to get . Trying to eyeball from a sketch is where the marks leak away.
Last revised 15 May 2025.