Study Guide

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.

πŸ“˜ Definition

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)

πŸ“ Worked Example

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. 1

    We have two points on the line: and . First calculate the gradient:

  2. 2
    m=n2βˆ’n1p2βˆ’p1=80βˆ’1206βˆ’4=βˆ’20m = \frac{n_2 - n_1}{p_2 - p_1} = \frac{80 - 120}{6 - 4} = -20
  3. 3

    Substitute and one point into to find the intercept :

  4. 4
    120=(βˆ’20)(4)+cβ€…β€ŠβŸΉβ€…β€Šc=200120 = (-20)(4) + c \implies c = 200
  5. 5

    State the full model with defined variables:

  6. 6
    n=βˆ’20p+200where n=number sold,p=price (USD)n = -20p + 200 \quad \text{where } n = \text{number sold}, p = \text{price (USD)}

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 .

πŸ“ Worked Example

Plant height (cm) after weeks: . Use GDC to fit a linear model and comment on fit.

  1. 1

    Enter data into GDC linear regression. The output gives:

  2. 2
    h=2.01t+0.05,R2=0.999h = 2.01t + 0.05, \quad R^2 = 0.999
  3. 3

    Interpret the result: is almost 1, so the linear model is an excellent fit for this observed data.

βœ“ Quick check

Test your understanding of :

  1. 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.

πŸ“˜ Definition

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.

πŸ“ Worked Example

Using the plant model , predict height after 10 weeks and comment on reliability. Original data is for to .

  1. 1

    Substitute into the model:

  2. 2
    h=2.01(10)+0.05=20.15 cmh = 2.01(10) + 0.05 = 20.15 \text{ cm}
  3. 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.

πŸ“ Worked Example

A linear model for car value is , where is value (USD) and is age (years). Interpret the gradient and intercept in context.

  1. 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. 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.

πŸ“˜ Definition

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.

πŸ“ Worked Example

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. 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. 2
    H=βˆ’0.4t3+2t2+3t+2,R2=1.00H = -0.4t^3 + 2t^2 + 3t + 2, \quad R^2 = 1.00
  3. 3

    To estimate the height at , substitute into the fitted model (or use the GDC's table/value feature):

  4. 4
    H=βˆ’0.4(2.5)3+2(2.5)2+3(2.5)+2=15.75β‰ˆ15.8 mH = -0.4(2.5)^3 + 2(2.5)^2 + 3(2.5) + 2 = 15.75 \approx 15.8 \text{ m}
  5. 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).

πŸ“˜ Definition

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).

πŸ“ Worked Example

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. 1

    Inverse variation means . Use the known pair to find :

  2. 2
    6=a20β€…β€ŠβŸΉβ€…β€Ša=1206 = \frac{a}{20} \implies a = 120
  3. 3

    So the model is:

  4. 4
    t=120rt = \frac{120}{r}
  5. 5

    Substitute to find the new filling time:

  6. 6
    t=12030=4 hourst = \frac{120}{30} = 4 \text{ hours}
βœ“ Quick check

Test your understanding of inverse variation:

  1. 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.

πŸ“ Worked Example

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. 1

    The plans cost the same when the two models are equal. Set up the equation:

  2. 2
    15+0.10m=25+0.05m15 + 0.10m = 25 + 0.05m
  3. 3

    Enter both expressions as and on the GDC and find the intersection (or use the equation solver). The GDC gives:

  4. 4
    m=200 minutesm = 200 \text{ minutes}
  5. 5

    Check in context: at 200 minutes both plans cost , confirming the solution.

πŸ“ Worked Example

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. 1

    Translate the three orders into a system of three linear equations in three unknowns:

  2. 2
    {2s+m+l=16s+3m+2l=273s+2m+l=23\begin{cases} 2s + m + l = 16 \\ s + 3m + 2l = 27 \\ 3s + 2m + l = 23 \end{cases}
  3. 3

    Enter the coefficients into the GDC's simultaneous-equation (3Γ—3 linear system) solver. The GDC returns:

  4. 4
    s=3,m=4,l=6s = 3, \quad m = 4, \quad l = 6
  5. 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.