Algebra · Topic 4 of 12
Straight line
Theory
Gradient
The gradient (m) defines the steepness of a line. The formula is .
Equation of a Line
A straight line is usually written as , where is the gradient and is the -intercept. When given the gradient and any point , use instead.
The General Form
Lines are often given in the general form (for example ). You cannot read the gradient off this directly — you must rearrange it into first, and then and the -intercept can be read off. This is one of the most frequently examined straight-line skills.
To find where any line crosses the axes: set to find the -axis crossing, and set to find the -axis crossing.
Special Lines
A horizontal line has gradient and equation . A vertical line has an undefined gradient and equation . Parallel lines have equal gradients.
The Golden Rule: to write the equation of a line you always need a gradient and a point. Given two points, find the gradient first, then use . Given a line in general form, rearrange to before reading off anything.
⚠️ Common Examiner Traps
- Reading the gradient off the general form: in the gradient is not 3. You must rearrange into first — this is the single most common mistake here.
- Gradient formula order: subtract the coordinates in the same order on top and bottom. Flipping one gives the wrong sign.
- Sign of a negative point: in , a point with gives .
- Special gradients: a horizontal line has gradient (equation ); a vertical line has an undefined gradient (equation ).
Worked examples
Example 1
Finding the Gradient
Calculate the gradient of the line passing through (−2, 4) and (4, 16).
Step 1: Apply the formula: .
Answer: .
Example 2
Finding the Equation
Find the equation of the line passing through (3, 5) with a gradient of −2.
Step 1: Substitute into : .
Step 2: Expand and rearrange: .
Example 3
🔗 Bringing it together
Find the equation of the line passing through the points and .
Step 1: Two points, no gradient given — so find the gradient first: .
Step 2: Now use with the gradient and either point. Taking : .
Step 3: Expand and rearrange:
Answer: .
Example 4
Gradient from the General Form
A straight line has equation . Find its gradient and the coordinates of its -intercept.
Step 1: You cannot read anything off yet — rearrange into . Move the other terms to the right:
Step 2: Divide every term by 2 to leave on its own:
Step 3: Now read off the values: and .
Answer: gradient , -intercept .
Example 5
🎯 Exam-style
A straight line has equation . Find the coordinates of the points where it crosses the -axis and the -axis.
Step 1: A line crosses the -axis where . Substitute:
So it crosses the -axis at .
Step 2: It crosses the -axis where . Substitute:
So it crosses the -axis at .
Answer: on the -axis and on the -axis.