Straight lines
Gradients, the three forms of the equation of a line, parallel and perpendicular lines, and where lines meet.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Find the gradient of a line from two points or from its equationSL 2.1
- Use the forms , and SL 2.1
- Use for parallel lines and for perpendicular linesSL 2.1
- Find where two lines intersectSL 2.1
- Interpret the gradient and intercept in contextSL 2.1
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
A straight line has the same steepness everywhere. That steepness is its gradient, and once you know the gradient and one point on the line, you can write down its equation.
2.1 Gradient and the three forms
The gradient measures how much changes when increases by 1. It is "rise over run": the change in divided by the change in between any two points. A positive gradient slopes up from left to right, a negative gradient slopes down, and a horizontal line has gradient 0.
In context, the gradient is a rate. If a taxi fare is , where is the distance in km, then each extra km costs €1.50 (the gradient), and the fixed charge is €3 (the -intercept).
Use when you know a point and the gradient: it saves a step. To find the gradient from , rearrange to .
Take any point on the line and the known point . The gradient between them must be , so . Multiplying both sides by gives .
The three forms describe the same line. shows the gradient and -intercept; is the tidy form exam questions often ask for, with integer coefficients; is the quickest to write down.
2.2 Parallel and perpendicular lines
Parallel lines have equal gradients. Perpendicular lines have gradients that multiply to : if one gradient is , the other is .
Rotate a line through 90°. A step of "1 across, up" becomes " across, 1 back", so the new gradient is . For example, a line with gradient 2 is perpendicular to a line with gradient . Vertical lines ( constant) have no gradient, so this rule does not apply to them.
2.3 Intersections
Two lines meet where both equations are true: solve them simultaneously. On Paper 2, graph both and find the intersection.
A pair of lines in 2D either meet at exactly one point, are parallel and never meet (same gradient, different intercept), or are the same line. Solving simultaneously shows which: you get one solution, no solution, or infinitely many.
On a Graphs page, type each line as . Then menu → 6: Analyze Graph → 4: Intersection and click either side of the crossing point.
3Explore it
Change the gradient and intercept of the navy line. The green line is perpendicular to it through the point P: notice that the two gradients always multiply to −1.
★HL extension
Extra depth for HL: harder worked examples and HL-standard exam questions.
At HL, straight-line questions are usually one part of a longer problem: a parameter that makes two lines parallel or perpendicular, or a line used to build a shape. Lines in three dimensions use vectors: see Vector equation of a line.
Lines with a parameter
Lines that build a shape
HL exam-style questions
Consider the lines and , where , .
- (a)Find the values of for which and are parallel.[3]
- (b)Find the value of for which and are perpendicular.[2]
| (a) | |
| M1 | |
| A1 | |
| , | A1 |
| (b) | |
| M1 | |
| A1 | |
The points and are given. The point lies on the -axis and .
- (a)Find the equation of the line .[3]
- (b)Find the coordinates of .[1]
- (c)Find the area of triangle .[2]
| (a) | |
| gradient | A1 |
| gradient | M1 |
| A1 | |
| (b) | |
| A1 | |
| (c) | |
| M1 | |
| A1 | |
4Common mistakes & exam tips
Common mistakes
- Subtracting the coordinates in a different order on the top and bottom of the gradient formula.
- Reading the gradient of as : rearrange first.
- Using or for the perpendicular gradient instead of .
- Leaving fractions in when integers are asked for.
Exam tips
- If a question says "give your answer in the form ", the final mark depends on it.
- In context, the gradient is a rate (e.g. cost per km) and the intercept is a starting value.
- Check an intersection by substituting into both equations.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.
The line passes through and .
- (a)Find the gradient of .[2]
- (b)Find the equation of .[2]
- (c)The line is perpendicular to and passes through . Find the equation of in the form .[2]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| Gradient 1: | M1 |
| A1 | |
has equation and has equation .
- (a)Find the coordinates of the point where and intersect.[3]
- (b)Find the area of the triangle formed by , and the -axis.[3]
| (a) | |
| Attempt to solve simultaneously, e.g. | M1 |
| A1 | |
| : | A1 |
| (b) | |
| -intercepts and | A1 |
| Area | M1 |
| A1 | |
A taxi charges euros for a journey of km.
- (a)Interpret the numbers 3.5 and 1.2 in this context.[2]
- (b)Find the cost of a 12 km journey.[1]
- (c)A second company charges . Find the distance for which both companies charge the same.[2]
| (a) | |
| 3.5: fixed charge (€3.50) at the start | A1 |
| 1.2: cost per kilometre (€1.20) | A1 |
| (b) | |
| €17.90 | A1 |
| (c) | |
| M1 | |
| km | A1 |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| SL · May 2023 · TZ1 · Paper 1 | Q1 | Midpoint of PQ, gradient of perpendicular line, equation of that line | ★☆☆ |
| SL · May 2024 · TZ2 · Paper 1 | Q4 | Symmetric quadrilateral: midpoint, line OB equation, exact area | ★★☆ |
| SL · Nov 2024 · TZ1 · Paper 2 | Q5 | Roof cross section: angle from gradient 4/15, then lengths CE and BA | ★★☆ |
