Real-world modeling with functions
IB Mathematics: Applications and Interpretation SLΒ· Unit 2: Functions, Topic 2.8 ApplicationsΒ· 15 min read
1. Translating Context to Function Modelsβ β ββββ± 4 min
The first step in any modeling problem is to clearly define your variables. All variables must be stated in context with units to meet exam marking requirements.
Function model
A function that describes the relationship between variables in a real-world scenario, usually fitted to observed data.
Example:
, where = distance (km) and = time (hours)
A cafΓ© sells 120 sandwiches at $4 each, and 80 sandwiches at $6 each. Assume the relationship between price and number sold is linear. Write the model for in terms of .
- 1
We have two points on the line: and . First calculate the gradient:
- 2
- 3
Substitute and one point into to find the intercept :
- 4
- 5
State the full model with defined variables:
- 6
Exam tip:
Always define your variables with units before writing the model β this is almost always worth 1 mark.
2. Fitting Models and Checking Validityβ β β βββ± 5 min
Most IB modeling questions require you to use your GDC to fit a function to given data. After fitting, you check how well the model matches data using the coefficient of determination .
Plant height (cm) after weeks: . Use GDC to fit a linear model and comment on fit.
- 1
Enter data into GDC linear regression. The output gives:
- 2
- 3
Interpret the result: is almost 1, so the linear model is an excellent fit for this observed data.
Test your understanding of :
Which value shows the best model fit?
0.5
0.92
0.99
-0.2
Reveal answer
0.99 βCorrect! ranges from 0 to 1, with 1 being a perfect fit to existing data.
3. Interpolation vs Extrapolationβ β β βββ± 4 min
Once you have a model, you can use it to estimate unknown values. The reliability of your prediction depends on whether the estimate falls inside or outside the range of your original data.
Prediction reliability
How confident we can be that a model's prediction matches the real-world value. Interpolation within the data range is almost always more reliable than extrapolation outside the range.
Example:
Predicting a 25-year-old's height from data for 1-18 year olds is extrapolation, and likely unreliable.
Using the plant model , predict height after 10 weeks and comment on reliability. Original data is for to .
- 1
Substitute into the model:
- 2
- 3
Comment on reliability: is outside the original data range, so this is extrapolation. Plant growth slows and stops over time, so the linear trend will not continue. This prediction is unreliable.
Exam tip:
Always explicitly name your prediction as interpolation or extrapolation when asked to comment on reliability.
4. Interpreting Model Parameters in Contextβ β β βββ± 4 min
IB exams very frequently ask you to interpret the gradient, intercept, or growth factor of a model in context. You must always reference the variables and context to earn full marks.
A linear model for car value is , where is value (USD) and is age (years). Interpret the gradient and intercept in context.
- 1
Interpret the intercept (when , the car is new): The intercept is 20000, so the original value of the new car is $20,000.
- 2
Interpret the gradient (rate of change of value with age): The gradient is -2500, so the value of the car decreases by $2,500 per year on average.
5. Cubic Modelsβ β β βββ± 4 min
Some real-world data rises, falls, then rises again β for example a company's monthly revenue that grows, dips, then recovers. When a linear, quadratic, or exponential model cannot capture this repeated change of direction, a cubic model is often a good choice.
Cubic model
A degree-3 polynomial model with four parameters . It can have up to two turning points, so it suits data that changes direction twice. You fit the parameters using cubic regression on your GDC.
Example:
, modelling a drone's height (metres) seconds into a test flight.
During a test flight a drone's height (metres) is recorded at time seconds: . Use your GDC to fit a cubic model, then estimate the height at s.
- 1
Enter the six data points into the GDC statistics editor, with in one list and in another. Select cubic regression. The GDC returns:
- 2
- 3
To estimate the height at , substitute into the fitted model (or use the GDC's table/value feature):
- 4
- 5
Since lies inside the data range , this is interpolation, so the estimate is reliable.
Exam tip:
For a cubic model, enter the data into your GDC and use cubic (degree 3) regression β you are never expected to find the four coefficients by hand.
6. Direct and Inverse Variation Modelsβ β β βββ± 4 min
Many quantities relate as 'one is a power of the other'. These are modelled by , where is an integer. When the output grows with the input (direct variation); when the output shrinks as the input grows (inverse variation).
Direct and inverse variation
A power model where the output varies as the -th power of the input. If (e.g. ) the output increases as increases β direct variation. If (e.g. ) the output decreases as increases β inverse variation.
Example:
, i.e. , modelling gas pressure (kPa) against volume (litres).
The time (hours) to fill a tank varies inversely with the pump rate (litres/min), so . A pump running at 20 L/min fills the tank in 6 hours. Find the model, then find the time if the rate is increased to 30 L/min.
- 1
Inverse variation means . Use the known pair to find :
- 2
- 3
So the model is:
- 4
- 5
Substitute to find the new filling time:
- 6
Test your understanding of inverse variation:
What happens to the graph of near ?
It crosses the y-axis at
It has a vertical asymptote at (the y-axis)
It has a turning point at
It is a straight line through the origin
Reveal answer
It has a vertical asymptote at $x = 0$ (the y-axis) βCorrect! For with , the y-axis is a vertical asymptote and the model is undefined at .
Exam tip:
For an inverse-variation model such as , remember the graph has the y-axis () as a vertical asymptote β the model can never be evaluated at .
7. Solving Equations and Systems with Technologyβ β β βββ± 4 min
Once you have a model, exam questions often ask you to solve an equation β for example to find when two models are equal, or which input gives a target output. In AI SL you are expected to do this with technology rather than by hand.
Two phone plans charge a monthly cost (dollars) for minutes: Plan A is and Plan B is . Use technology to find the number of minutes for which both plans cost the same.
- 1
The plans cost the same when the two models are equal. Set up the equation:
- 2
- 3
Enter both expressions as and on the GDC and find the intersection (or use the equation solver). The GDC gives:
- 4
- 5
Check in context: at 200 minutes both plans cost , confirming the solution.
A shop sells small, medium, and large boxes at fixed prices , , dollars. Three orders are recorded: 2 small + 1 medium + 1 large costs $16; 1 small + 3 medium + 2 large costs $27; 3 small + 2 medium + 1 large costs $23. Use technology to find each price.
- 1
Translate the three orders into a system of three linear equations in three unknowns:
- 2
- 3
Enter the coefficients into the GDC's simultaneous-equation (3Γ3 linear system) solver. The GDC returns:
- 4
- 5
State the answer in context: a small box costs $3, a medium box $4, and a large box $6.
Exam tip:
When a modelling question asks you to 'solve' or 'find when', let the GDC do the work: use the equation solver or graph intersection for one equation, or the simultaneous-equation solver for a system.
8. Common Pitfalls
Wrong move:
Forgetting to define variables with units before writing the model
Why:
Examiners almost always allocate 1 mark for clear variable definition, which you will lose if you skip this step
Correct move:
Always start your answer by stating what each variable represents, including its units
Wrong move:
Claiming extrapolation is always unreliable without justification
Why:
Extrapolation can be reliable if the trend is known to continue beyond the data range; you need to reference the context
Correct move:
Explicitly name the prediction as extrapolation, then explain whether the trend is likely to continue in context
Wrong move:
Interpreting a negative gradient as an error
Why:
A negative gradient simply means the dependent variable decreases as the independent variable increases, which is often correct
Correct move:
Interpret the sign according to context: a negative gradient for car value means the value depreciates (decreases) over time, which makes logical sense
Wrong move:
Assuming a high means extrapolation is reliable
Why:
A high only confirms the model fits the existing data, it does not guarantee the trend continues beyond the data range
Correct move:
Always judge extrapolation reliability based on the context of the problem, not just
9. Quick Reference Cheatsheet
Step | Required Action | Exam Tip |
|---|---|---|
1 | Define variables with units | Almost always worth 1 mark |
2 | Find/fit the function equation | Double-check GDC data input |
3 | Check fit with | = good fit to data |
4 | Make prediction | State if interpolation/extrapolation |
5 | Comment on reliability | Extrapolation needs context justification |
6 | Interpret parameters | Always reference context and units |
10. Frequently Asked
Is extrapolation always unreliable?
No, but it requires justification. Extrapolation assumes the trend you observed continues beyond your data range. Always comment on whether this assumption makes sense for the context.
Going deeper
What's Next
Real-world modeling with functions is a core skill that appears in every paper of IB AI SL, and forms the foundation for future topics including statistical regression, sequences and series growth models, and calculus applications to rates of change. This skill is also frequently assessed in internal assessment (IA) projects, where you will be expected to create your own model for a real-world dataset you choose. Mastering the process of translating context to a mathematical model, checking fit, and commenting on prediction reliability will earn you easy marks on almost every exam paper, and set you up for success in your IA.
