James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Functions › Variation & modelling

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.

SL 2.5SL 2.6Paper 1Paper 2GDC allowed≈ 55 min to work through

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 y=kxn and inverse variation y=kxnSL 2.5
  • Find the constant of variation k 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.

The big idea

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

Variation Not in booklet: learn it

Direct variation: y varies directly as xn means y=kxn (written y∝xn). When x increases, y increases.
Inverse variation: y varies inversely as xn means y=kxn=kx−n. When x increases, y decreases, and the graph has asymptotes on both axes.
To find k, substitute one known pair of values.

Worked example 1Paper 1
The stopping distance d m of a car varies directly as the square of its speed v km h−1. At 30 km h−1 the stopping distance is 18 m. (a) Find k. (b) Find the stopping distance at 50 km h−1. (c) Find the speed with a stopping distance of 40 m.
(a) d=kv2: 18=k(30)2⇒k=0.02
(b) d=0.02(50)2=50 m
(c) 0.02v2=40⇒v=44.7 km h−1 (3 s.f.)
Reject the negative root: speed is positive here.
Worked example 2Paper 1
The intensity I of a light varies inversely as the square of the distance d m from it. At 2 m, I=80 units. Find I at 5 m.
I=kd2: 80=k4⇒k=320
I=32025=12.8 units

2.2 Choosing a model

What you notice in the data or the contextModel to try
Equal steps in x give (roughly) equal differences in ylinear
Differences change steadily; the data rises then falls (an arch)quadratic
Equal steps in x give (roughly) equal ratios in yexponential
The values level off towards a fixed valueexponential with an asymptote, kax+c
The pattern repeatssinusoidal
One quantity halves when the other doublesinverse variation
Worked example 3Paper 2
Subscribers (thousands) to a new service are recorded each year: 12, 18, 27, 40.5 for years t=0,1,2,3. (a) Explain why a linear model is not suitable. (b) Find a suitable model. (c) Use it to predict year 8 and comment.
(a) The differences are 6, 9, 13.5: not constant, so not linear.
Always show the differences or ratios: they are your evidence.
(b) The ratios are 1812=2718=40.527=1.5, so exponential: S=12(1.5)t
(c) S(8)=12(1.5)8=308 thousand. This is a long way beyond the data (extrapolation), and growth like this cannot continue for ever, so it is unreliable.

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)?
Worked example 4Paper 2
A ball’s height is modelled by h=−4.9t2+20t+1.5. (a) Find a suitable domain for the model. (b) A measurement at t=2 s gives 20.3 m. Find the percentage error in the model’s prediction.
(a) Zeros at t=−0.0738 and t=4.16. Domain 0≤t≤4.16.
Before 0 the ball has not been thrown; after it lands the model gives negative heights.
(b) h(2)=−19.6+40+1.5=21.9 m
ε=|21.9−20.320.3|×100%=7.88%
Worked example 5 (faded)Paper 1
The time T hours to fill a pool varies inversely with the number of hoses n. Three hoses take 8 hours. Find the time with 5 hoses.
T=kn, k= 24  ← you work this out
T=245= 4.8 hours  ← you work this out
On your TI-Nspire Calculator tricks →

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 k: 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 y=kx for "varies as the square": it is y=kx2.
  • Forgetting that inverse variation means dividing: y=kx, not y=−kx.
  • 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 k 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.

FluencyP1
y varies directly as x. When x=4, y=10. Find y when x=7.
k=2.5; y=17.5
FluencyP2
y is inversely proportional to x. When x=3, y=12. Find y when x=9.
k=36; y=4
FluencyP3
The mass of a metal sphere varies directly as the cube of its radius. A sphere of radius 5 cm has mass 2.4 kg. Find the mass of a sphere of radius 8 cm.
k=0.0192; 9.83 kg
FluencyP4
The values 2, 6, 18, 54 are recorded at equal time steps. Which type of model fits, and why?
Exponential: each value is 3 times the one before.
Problem solvingP5
For the spheres above, find the radius of a sphere with mass 5 kg.
r=50.01923=6.39 cm
Problem solvingP6
The coffee data on this page levels off at about 20 °C. Explain why T=20+kbt is a better model than T=kbt for predicting the temperature after 2 hours.
kbt predicts the coffee cools towards 0 °C, which is impossible in a room at 20 °C; the asymptote T=20 matches room temperature.

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.

Question 1Paper 1[5 marks]

The time, T hours, taken to fill a swimming pool varies inversely with the number of hoses, n, used. With 3 hoses it takes 8 hours.

  • (a)Find an equation for T in terms of n.[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)
T=kn, 8=k3(M1)
T=24nA1
(b)
4.8 hoursA1
(c)
24n<3⇒n>8(M1)
9 hosesA1
Question 2Paper 1[5 marks]

The mass, m kg, of a solid metal sphere varies directly as the cube of its radius, r 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)
2.4=k(5)3(M1)
k=0.0192A1
(b)
9.83 kgA1
(c)
0.0192r3=5(M1)
6.39 cmA1
Question 3Paper 2[8 marks]

The number of subscribers S (thousands) to a streaming service t years after launch is shown.

t0123
S12182740.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 S.[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.5M1
not constant, so not linearR1
(b)
ratios all equal 1.5R1
(c)
S=12(1.5)tA1A1
(d)
308 thousand (307.5)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 unreliableR1

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.

PaperQuestionFocusDifficulty
May 2024 · TZ2 · Paper 1Q4Bricklaying: direct variation with the number of workers★★☆
May 2021 · TZ1 · Paper 1Q11Siren intensity varies inversely with d²: find k, sketch, range★★☆
May 2023 · TZ2 · Paper 1Q10Basketball quadratic: maximum, landing, limitations of the model★★★
May 2022 · TZ1 · Paper 2Q1Daylight hours: why a quadratic fails, then a sinusoidal model★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake