Variation & the modelling cycle
Direct and inverse variation, then the modelling cycle that runs through the whole AI course: choose a model from the data, fit it, test it, use it and question it. This is where Paper 2 questions ask you to comment on a model, not just calculate with it.
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.
- Use direct variation and inverse variation SL 2.5
- Find the constant of variation from a data pointSL 2.5
- Choose a model by looking at differences, ratios and the shape of the dataSL 2.6
- Fit a model to data, test it, and comment on how well it fitsSL 2.6
- Recognise the limitations of a model: its domain, extrapolation and assumptionsSL 2.6
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.
Every model is wrong; some are useful. The modelling cycle is the habit of asking whether a model is useful: choose a model that matches the shape of the data, find its parameters, check it against data you did not use, then decide where you can trust it. Exam questions that ask you to "comment on the validity" or "suggest a limitation" are testing this habit.
2.1 Direct and inverse variation
Direct variation: varies directly as means (written ). When increases, increases.
Inverse variation: varies inversely as means . When increases, decreases, and the graph has asymptotes on both axes.
To find , substitute one known pair of values.
2.2 Choosing a model
| What you notice in the data or the context | Model to try |
|---|---|
| Equal steps in give (roughly) equal differences in | linear |
| Differences change steadily; the data rises then falls (an arch) | quadratic |
| Equal steps in give (roughly) equal ratios in | exponential |
| The values level off towards a fixed value | exponential with an asymptote, |
| The pattern repeats | sinusoidal |
| One quantity halves when the other doubles | inverse variation |
2.3 Testing and using a model
Test a model by comparing its predictions with data, especially data that was not used to build it. The percentage error of a prediction is a good measure. Then state the limits of the model:
- Domain: where does the model make sense? A height cannot be negative; time starts at 0.
- Extrapolation: predictions outside the range of the data are less reliable.
- Assumptions: what does the model assume will stay the same (a constant growth rate, no limit on space)?
Testing a model against data: enter the data in a Lists & Spreadsheet page, then plot it on a Graphs page as a scatter plot (menu → Graph Entry/Edit → Scatter Plot), and graph your model on the same axes. You can see at once where it fits and where it does not. Finding : nSolve, or rearrange by hand.
3Which model fits?
The dots show the temperature of a cooling cup of coffee. Choose a model and adjust its parameters to fit the data as well as you can. The smaller the sum of squared errors, the better the fit. Then look at what each model predicts at 60 minutes.
4Common mistakes & exam tips
Common mistakes
- Writing for "varies as the square": it is .
- Forgetting that inverse variation means dividing: , not .
- Choosing a model from one or two points instead of checking differences or ratios for all the data.
- Saying a model is "accurate" without evidence. Quote a percentage error or compare with data.
- Trusting a prediction far outside the data without comment.
Exam tips
- Typical limitation answers: the domain (negative values make no sense), extrapolation beyond the data, and growth that cannot continue for ever.
- "Justify that a linear model is not appropriate": show that the differences are not constant.
- For a model with an asymptote, say what the asymptote means in context: room temperature, a long-term value, a maximum population.
- Keep to full accuracy on the GDC when you use it in later parts.
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 time, hours, taken to fill a swimming pool varies inversely with the number of hoses, , used. With 3 hoses it takes 8 hours.
- (a)Find an equation for in terms of .[2]
- (b)Find the time taken with 5 hoses.[1]
- (c)Find the least number of hoses needed to fill the pool in under 3 hours.[2]
| (a) | |
| , | (M1) |
| A1 | |
| (b) | |
| 4.8 hours | A1 |
| (c) | |
| (M1) | |
| 9 hoses | A1 |
The mass, kg, of a solid metal sphere varies directly as the cube of its radius, cm. A sphere of radius 5 cm has mass 2.4 kg.
- (a)Find the constant of variation.[2]
- (b)Find the mass of a sphere of radius 8 cm.[1]
- (c)Find the radius of a sphere of mass 5 kg.[2]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| 9.83 kg | A1 |
| (c) | |
| (M1) | |
| 6.39 cm | A1 |
The number of subscribers (thousands) to a streaming service years after launch is shown.
| 0 | 1 | 2 | 3 | |
| 12 | 18 | 27 | 40.5 |
- (a)Show that a linear model is not suitable.[2]
- (b)Show that the data fits an exponential model.[1]
- (c)Write down an exponential model for .[2]
- (d)Use your model to predict the number of subscribers after 8 years.[1]
- (e)Comment on the reliability of your prediction.[2]
| (a) | |
| differences 6, 9, 13.5 | M1 |
| not constant, so not linear | R1 |
| (b) | |
| ratios all equal 1.5 | R1 |
| (c) | |
| A1A1 | |
| (d) | |
| 308 thousand | A1 |
| (e) | |
| 8 years is well beyond the data (extrapolation) | R1 |
| and the growth rate is unlikely to stay at 50% a year, so the prediction is unreliable | R1 |
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 |
|---|---|---|---|
| May 2024 · TZ2 · Paper 1 | Q4 | Bricklaying: direct variation with the number of workers | ★★☆ |
| May 2021 · TZ1 · Paper 1 | Q11 | Siren intensity varies inversely with d²: find k, sketch, range | ★★☆ |
| May 2023 · TZ2 · Paper 1 | Q10 | Basketball quadratic: maximum, landing, limitations of the model | ★★★ |
| May 2022 · TZ1 · Paper 2 | Q1 | Daylight hours: why a quadratic fails, then a sinusoidal model | ★★★ |
