Straight lines
Gradients, the three forms of the equation of a line, parallel and perpendicular lines, and where lines meet. In AI SL, lines are usually models, so you also need to say what the gradient and the intercept mean, and use the GDC to find intersections.
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 through two pointsSL 2.1
- Use the forms , and SL 2.1
- Find the intercepts of a line with the axesSL 2.1
- Use parallel lines (equal gradients) and perpendicular lines ()SL 2.1
- Find where two lines intersect, on the GDCSL 2.1
- Interpret the gradient and intercept of a linear model in contextSL 2.1, 2.5
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 a constant rate of change: every step of 1 in changes by the same amount, the gradient. That is why lines model so many real situations: a fixed charge plus a cost per kilometre, a phone plan, a steady fall in temperature. Read every line as "starting value plus rate".
2.1 Gradient and the three forms of a line
Gradient–intercept form:
General form:
Point–gradient form:
2.2 Parallel and perpendicular lines
Parallel lines have equal gradients: .
Perpendicular lines have gradients that multiply to : , so . Flip the fraction and change the sign: the perpendicular to a gradient of has gradient .
2.3 Where lines meet
The intersection of two lines is the solution of their equations together. On the GDC you can graph both lines and use Intersection, or solve the two equations as a system. Graphing has the advantage that you can see the answer makes sense.
2.4 Lines as models
Graphing a line: on a Graphs page, type the equation after f1(x)= and press enter. Lines in the form must be rearranged to first. Intersection: menu → Analyze Graph → Intersection, then click to the left and to the right of the crossing point. If you can not see the crossing, change the window (menu → Window/Zoom → Zoom – Fit is a good start).
3Explore it
Change the gradient and intercept of each line. The readout tells you whether the lines are parallel or perpendicular, and where they meet.
4Common mistakes & exam tips
Common mistakes
- Subtracting the coordinates in a different order on the top and the bottom of the gradient formula.
- Reading the gradient of as 3. Rearrange to first: it is .
- Taking the perpendicular gradient as or . It is .
- Giving with fractions when the question asks for integers.
- Interpreting the gradient as "the slope" with no context or units.
Exam tips
- The gradient formula and the three forms of a line are in the formula booklet; is not.
- "Hence find the point of intersection": write the two equations you solved, then the answer from the GDC.
- For a perpendicular bisector (Topic 3), you need the midpoint and the perpendicular gradient: practise both here.
- In a linear model, is the value when the input is 0: often a fixed charge or a starting amount.
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 Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The points and lie on the line .
- (a)Find the gradient of .[2]
- (b)The line is perpendicular to and passes through . Find the equation of in the form , where .[3]
- (c)Find the coordinates of the point where and intersect.[2]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| gradient | (A1) |
| (M1) | |
| A1 | |
| (c) | |
| : ; attempt to solve with | (M1) |
| A1 | |
Taxi company A charges euros for a journey of km.
- (a)Interpret the value 1.8 in context.[1]
- (b)Find the cost of a 12 km journey.[1]
- (c)Company B charges . Find the distance for which the two companies charge the same.[2]
- (d)Determine which company is cheaper for a 20 km journey, and by how much.[2]
| (a) | |
| the cost per km is €1.80 | A1 |
| (b) | |
| €25.10 | A1 |
| (c) | |
| (M1) | |
| km | A1 |
| (d) | |
| A: €39.50; B: €45.50 | (M1) |
| A is cheaper, by €6 | A1 |
A straight road passes through the towns and . A farm is at . Distances are in km.
- (a)Find the equation of the road in the form .[2]
- (b)Find the equation of the line through perpendicular to the road.[2]
- (c)Find the point on the road that is closest to the farm.[2]
- (d)Find the shortest distance from the farm to the road.[1]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| gradient | (M1) |
| A1 | |
| (c) | |
| solving | (M1) |
| A1 | |
| (d) | |
| 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 these real IB Maths AI SL questions. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| Nov 2021 · Paper 1 | Q4 | Kite on axes: gradients, a perpendicular line, an intercept | ★★☆ |
| May 2022 · TZ1 · Paper 1 | Q4 | Road through two towns: equation of the line, coordinate of a third town | ★★☆ |
| May 2026 · TZ1 · Paper 1 | Q13 | Point on a road closest to a factory: perpendicular line and intersection | ★★☆ |
| May 2023 · TZ1 · Paper 2 | Q1 | Earth temperatures: line through two points, then regression and r | ★★★ |
