Equation of a Straight Line
Grade 5y = mx + c
Every straight line on a coordinate grid has an equation of the form:
where m is the gradient and c is the y-intercept (where the line crosses the y-axis). Read the gradient and y-intercept straight from the equation once it is in this form.
Finding the equation from two points
Step 1: calculate the gradient using the two points. Step 2: substitute one point and the gradient into y = mx + c to find c. Step 3: write the full equation.
Parallel and perpendicular lines
Parallel lines have equal gradients. Perpendicular lines have gradients that are negative reciprocals of each other — if one has gradient m, the perpendicular has gradient −1/m. Their product is always −1.
Worked example
Try this one
The diagram shows a straight line on a coordinate grid.
The line L passes through (0, 1) and (5, -2).
(a) Work out the gradient of line L. [2]
(b) Write down the equation of line L in the form \( y = mx + c \). [1]
To find the gradient, divide the change in y by the change in x between the two given points.
Ask yourself: 'does y increase or decrease as x increases, and by how much per step?' Once you have the gradient m and you know a point the line passes through, you can find c.