Straight-line equations
In a minute
A straight line is fixed by its and one point on it. You'll write lines in three forms, find where they cross the axes, and tell parallel from perpendicular lines by their gradients. Tangents, normals and linear models later in the course all rely on this.
You'll be able to
- Find the of a line from two points, and recognise horizontal and vertical lines.
- Write a line in gradient–intercept, general or point–gradient form, and convert between them.
- Find where a line crosses the -axis and the -axis.
- Use for parallel lines and for perpendicular lines.
- Work out the gradient of a real slope such as a ramp, road or bridge.
Before you start3 quick questions on what this builds on
The gradient of a line
Walk along a straight line from left to right. For every step across, you go up (or down) by the same amount. That fixed rate is the line's , written .
Between any two points on the line, the change in is the rise and the change in is the run. Rise divided by run is the same for every pair of points.
This formula is in the formula booklet. Subtract in the same order on the top and the bottom: point 2 minus point 1 both times.
The sign tells you the direction. If the line rises to the right. If it falls. A bigger means a steeper line.
Try it first, then reveal one step at a time.
- Label the points: and .
- Rise: .
- Run: .
- Divide: .
- Check the sign: B is lower than A and to its right, so the line falls. A negative gradient fits.
Try it first, then reveal one step at a time.
- Write the gradient with the unknown in it: .
- Set it equal to : .
- Multiply both sides by : .
- Collect terms: , so .
- Check: P is and Q is . The gradient is , as required.
A horizontal line has no rise, so and its equation is : that is with . A vertical line has no run, so its gradient is undefined. Every point on it has the same , so its equation is , where is that shared -value.
Three forms of a line, and its intercepts
A line is fixed once you know its and one point on it. The three forms below just store that information in different ways.
These are in the formula booklet. You do need to know what each one shows.
1. Gradient–intercept form, . The gradient is . The line crosses the -axis at , because gives .
2. , . Every term sits on one side. Questions often ask for , and to be integers.
3. Point–gradient form, . It uses one point and the gradient . It is the fastest way to write down a line.
The is where the line meets the -axis, so put . The is where it meets the -axis, so put .
Try it first, then reveal one step at a time.
- Use point–gradient form with , and : .
- Tidy the left side and expand the bracket: .
- Subtract from both sides: .
- Check with the point: . It works.
Try it first, then reveal one step at a time.
- Gradient first: .
- Use B in point–gradient form: .
- Multiply both sides by to clear the fraction: .
- Move every term to one side: , so .
- Check with A: . A is on the line too.
To read the gradient from the general form, make the subject. From you get , so the gradient is .
For example, gives , so . Its gradient is and its -intercept is .
Try it first, then reveal one step at a time.
- For A, put : , so and A is .
- For B, put : , so and B is .
- The triangle has a right angle at O. Its base OA is and its height OB is .
- Area . The triangle area formula is in the prior-learning part of the booklet.
Parallel and perpendicular lines
Parallel lines never meet, so they must climb at the same rate. Two non-vertical lines are parallel exactly when their are equal.
Perpendicular lines meet at a right angle. Turn a line through and look at its rise-and-run triangle. The rise and run swap places, and one of them changes sign.
So a perpendicular gradient is the : flip the fraction and change the sign. becomes , and becomes .
The rule needs both gradients to exist. A horizontal line () and a vertical line are perpendicular, even though has no reciprocal.
Try it first, then reveal one step at a time.
- Find the given line's gradient. , so and .
- Parallel lines share a gradient, so the new line also has .
- Use point–gradient form: .
- Add : . Check: .
Try it first, then reveal one step at a time.
- Midpoint of AB: . The midpoint formula is in the prior-learning part of the booklet.
- Gradient of AB: .
- Perpendicular gradient: the negative reciprocal of is . Check: .
- Line through : .
- Multiply by : . Rearrange: .
On Paper 2 the numbers can be awkward. Write the two equations down, then let your calculator find where the lines meet.
Try it first, then reveal one step at a time.
- Gradient of : . So has gradient .
- Equation of : . Multiply by : , so .
- Write both lines in the same layout for the solver: and . Writing this down earns the method mark.
- The calculator gives and . Round only at the end.
- Check: , so the point is on .
Gradients of real slopes
Engineers describe ramps, roads and bridges by their . It is the same idea: vertical rise divided by horizontal distance.
Road signs often give a gradient as a percentage. A gradient means a rise of m for every m across, so .
Try it first, then reveal one step at a time.
- Rise m and horizontal distance m.
- Gradient .
- Multiply top and bottom by : . Divide both by : .
- So the ramp rises m for every m across.
Try it first, then reveal one step at a time.
- Use the same units: km m.
- The m is along the slope, not across. It is the hypotenuse of a right-angled triangle whose vertical side is m.
- Horizontal distance by Pythagoras: m.
- Gradient . Keep the full value until this last step.
- So , about a gradient.
Common mistakes
- Subtracting in a different order on the top and the bottom, such as . That flips the sign of the gradient. Take point 2 minus point 1 in both places.
- Putting the run on top. The gradient is rise over run, change in divided by change in .
- Reading the gradient of as . Make the subject first: the gradient is .
- Taking only the reciprocal, or only the negative, for a perpendicular gradient. Do both, then check that the product is .
- Setting to find the -intercept. On the -axis it is that is zero.
- Using the length along a slope as the run. A real gradient divides by the horizontal distance.
Exam tips
- "Write down the gradient" needs no working when the line is in the form . From the general form, show the rearrangement first.
- "Find the equation of the line" asks for an equation, such as , not just the expression . Any correct form earns the marks unless the question names one. If it says , clear every fraction.
- On Paper 1, keep gradients as exact fractions like . A rounded makes the rest of the line inexact.
- On Paper 2, write down the equations you put into your calculator before giving the point where lines meet. Give the coordinates to 3 s.f.
Key takeaways
Practise this
No HL questions on 2.1 yet; 1 in the SL bank.