Straight lines — y = mx + c
Maths · GCSE · The School
Two numbers describe every line
In y = mx + c, m is the GRADIENT (how much y climbs for each step right) and c is the Y-INTERCEPT (where the line cuts the y-axis). y = 2x − 3 climbs 2 per step and cuts the axis at (0, −3). Read both before you draw anything.
Gradient from two points
Between (1, 3) and (4, 12): the rise is 12 − 3 = 9, the run is 4 − 1 = 3, so m = 9/3 = 3. Then feed one point into y = 3x + c to find c: 3 = 3(1) + c gives c = 0, so y = 3x. Rise over run, then solve for c.
Parallel and perpendicular
Parallel lines share the same m and never meet — y = 2x + 1 and y = 2x − 5 are a pair. Perpendicular lines have gradients that multiply to −1: a line with m = 2 meets a line with m = −1/2 at a right angle.
Negative gradients, and lines that break the pattern
Find the line through (−2, 7) and (2, −1). Rise is −1 − 7 = −8; run is 2 − (−2) = 4; so m = −8/4 = −2. A negative gradient means the line falls as you go right, and getting the sign wrong is the single most common error here — subtract the coordinates in the SAME order on top and bottom, every time. Then find c: substitute (2, −1) into y = −2x + c, giving −1 = −4 + c, so c = 3 and the line is y = −2x + 3. Check with the OTHER point: −2(−2) + 3 = 7, which matches. Two lines refuse the y = mx + c form. A horizontal line is y = 4 (gradient 0). A vertical line is x = 4, whose gradient is undefined, because the run is zero and you cannot divide by it.