Skip to content
IB Diploma ProgrammeSL & HL

Modelling with functions

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Modelling with functions notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Modelling with functions notes as text: skim, search, and jump between subtopics.

~17 min read

1. Linear and piecewise linear models

A linear model has the form f(x) = mx + c. The gradient m is the change in the output for each one-unit increase in the input. The y-intercept c is the starting value, where x = 0.

A piecewise linear model uses a different linear rule for each part of the domain. The pieces join at the value where the rule changes. Examples are mobile phone charges and the depth of a swimming pool.

Write the rule for the second piece so that it counts only the part beyond the change, such as n - 15 for the hats beyond the first 15.

f(x) = mx + c

m = (change in output)/(change in input)

Worked example 17 marks

A manufacturer designs hats that businesses can order.

For an order of 15 hats or fewer, the price per hat is p euros (EUR). For larger orders, the price of each hat after the first 15 ordered is reduced by 5 EUR.

C(n) represents the total cost of purchasing n hats from the manufacturer.

(a) Write down an expression in terms of p for the total cost of ordering 15 hats.

(b) Write down an equation for C(n), in terms of p and n, for the total cost of ordering n hats when n > 15.

A company decides to order 100 hats. The mean price per hat for this order is 25.73 EUR.

(c)(i) Calculate the exact total cost of the order.(ii) Hence, determine the value of p, correct to 2 decimal places.

  1. 1

    (a) 15p (A1) [1]

  2. 2

    (b) (p - 5) or (n - 15) seen (A1) [1]

  3. 3

    adding a cost expression to their 15p (M1) [1]

  4. 4

    C(n) = 15p + (p - 5)(n - 15) or C(n) = np - 5n + 75 (A1) [1]

  5. 5

    (c)(i) 25.73 × 100 = 2573 EUR (A1). The answer must be exact. [1]

  6. 6

    (ii) substitute into their cost function: 2573 = 15p + (p - 5)(100 - 15) (A1) [1]

  7. 7

    p = 29.98 EUR (A1). The answer must be given to 2 decimal places. [1]

2. Quadratic models

A quadratic model has the form f(x) = ax² + bx + c with a ≠ 0. Its graph is symmetrical about a vertical line, the axis of symmetry. The vertex lies on that line.

The zeros of the function are the roots of f(x) = 0. They are the x-intercepts. The y-intercept is c.

Technology can be used to find roots. Two points at the same height are the same distance either side of the axis, so the axis is halfway between them.

x = (-b)/2a

f(0) = c

Worked example 17 marks

A dolphin jumps out of water. The path of its jump can be modelled by a quadratic function using the following variables:

d is the horizontal distance from the point where the dolphin leaves the water

h is the height of the dolphin above the surface of the water.

All distances are measured in metres, from the point where the dolphin leaves the water.

On a particular jump, the dolphin first reaches a height of 5.1 m above the surface of the water when the horizontal distance is 3 m and again when the horizontal distance is 8.5 m.

(a) Write down the equation of the axis of symmetry of the quadratic function.

The quadratic function that models the dolphin's jump is h(d) = -0.2d² + bd, where d > 0 and b is a constant.

(b) Calculate the value of b.

(c) Find the horizontal distance when the dolphin re-enters the water.

(d) Explain what a negative h-value would mean in this context.

  1. 1

    (a) (3 + 8.5)/2 = 5.75 seen (A1) [1]

  2. 2

    the axis of symmetry is d = 5.75 (A1) [1]

  3. 3

    (b) substitute into the axis of symmetry formula: 5.75 = (-b)/(2(-0.2)) (M1) [1]

  4. 4

    b = 2.3 (A1) [1]

  5. 5

    (c) indication of finding the zero: 0 = -0.2d² + 2.3d or 2 × 5.75 (M1) [1]

  6. 6

    d = 11.5 m (A1) [1]

  7. 7

    (d) the dolphin is below the surface of the water (R1) [1]

3. Exponential growth and decay models

An exponential model has the form f(x) = ka^(x) + c or f(x) = ke^(rx) + c. For f(x) = ka^(-x) + c the multiplier is 1/a. Here a > 0.

The graph gets closer and closer to the line y = c but does not cross it. This line is the horizontal asymptote.

The constant k is the distance from the asymptote at x = 0, so f(0) = k + c. To find x for a given value, use the GDC to solve f(x) = value.

Compound interest and geometric sequences are exponential models.

f(x) = ka^(x) + c

f(x) = ke^(rx) + c

horizontal asymptote: y = c

Worked example 16 marks

The temperature of a hot drink, T °C, t minutes after it is poured is modelled by T = 20 + 60 × 0.9^(t), t ≥ 0.

(a) State the equation of the horizontal asymptote and explain what it means in this context.

(b) Calculate the temperature after 10 minutes.

(c) Determine the time at which the temperature is 30 °C.

  1. 1

    (a) T = 20 (A1) [1]

  2. 2

    the temperature falls towards 20 °C but never goes below it (A1) [1]

  3. 3

    (b) substitute t = 10: T = 20 + 60 × 0.9¹⁰ (M1) [1]

  4. 4

    T = 40.9 °C (A1) [1]

  5. 5

    (c) set 20 + 60 × 0.9^(t) = 30 and solve on the GDC, or 0.9^(t) = 1/6 (M1) [1]

  6. 6

    t = 17.0 minutes (A1) [1]

4. Direct and inverse variation

A direct variation model is f(x) = axⁿ with n a positive whole number. The output is directly proportional to xⁿ.

When n < 0 the model is an inverse variation. The output is inversely proportional to x⁻ⁿ. The y-axis is a vertical asymptote, because x = 0 cannot be used.

Substitute the one known pair of values to find the constant of proportionality.

f(x) = axⁿ, n ∈ Z

Worked example 16 marks

A group of friends want to rent a beach house for their vacation. The cost per person, c, varies inversely with the total number of people, n, who will be sharing the cost.

If four people share the cost equally, then the cost per person is char36 187.50.

(a) Determine an equation for c in terms of n.

The group wants the cost per person to be less than char36 100.00.

(b)(i) Find the minimum number of people needed to share the cost to meet this requirement.(ii) Find the cost per person for this number of people.

  1. 1

    (a) attempt to calculate the constant of proportionality: k = 4 × 187.50 = 750 (M1) [1]

  2. 2

    c = 750/n (A1) [1]

  3. 3

    (b)(i) 750/n < 100 (M1) [1]

  4. 4

    n > 7.5, so n = 8 (A1) [1]

  5. 5

    (ii) c = 750/8 (M1) [1]

  6. 6

    c = 93.75 USD (A1). Do not award follow-through for an answer of 100 USD or more. [1]

5. Cubic models

A cubic model has the form f(x) = ax³ + bx² + cx + d. At x = 0 the output is d, so d is the y-intercept.

To find where the model reaches a given value k, solve f(x) = k on the GDC. Graph y = f(x) and y = k and read the x-coordinates of every intersection. There can be more than one.

Check each answer against the domain the question gives.

f(x) = ax³ + bx² + cx + d

f(0) = d

Worked example 15 marks

The height of a stunt-bike track above the ground, H metres, at a horizontal distance of x metres from the start is modelled by H(x) = x³ - 7x² + 14x + 2, for 0 ≤ x ≤ 5.

(a) State the height of the track at the start.

(b) Calculate the height when x = 4.

(c) Find all values of x for which the height is 10 m.

  1. 1

    (a) H(0) = 2 m, the constant term (A1) [1]

  2. 2

    (b) substitute x = 4: H(4) = 64 - 112 + 56 + 2 (M1) [1]

  3. 3

    H(4) = 10 m (A1) [1]

  4. 4

    (c) graph y = H(x) and y = 10 on the GDC, or solve H(x) = 10 (M1) [1]

  5. 5

    x = 1, 2, 4, all three inside the domain (A1) [1]

6. Sinusoidal models

A sinusoidal model has the form f(x) = asin(bx) + d or f(x) = acos(bx) + d. Questions ask you to predict or find three features.

The amplitude is |a|. The period is (360°)/b. The principal axis is the line y = d.

The maximum is d + |a| and the minimum is d - |a|. Put the GDC in degree mode when b is given for degrees.

amplitude = |a|

period = (360°)/b

principal axis: y = d

Worked example 18 marks

The human body temperature changes during the day, and these changes can be approximately modelled by a sine function.

Tom takes his temperature three times during a day and records the results in the table below.

Tom decides to model his body temperature, T °C, using an equation of the form T = asin(bt) + c, where t is the time in hours after 00:00 (midnight).

(a) Given that body temperature, T, has a period of 24 hours, find the value of b.

(b)(i) Use the value of T at 18:00 to show that 36.9 = -a + c.(ii) Use the value of T at 13:00 to find a second equation for a and c.(iii) Hence find the value for a and the value for c.

Time08:0013:0018:00
Body temperature (°C)36.236.636.9
  1. 1

    (a) attempt to divide 360 by 24 (M1) [1]

  2. 2

    b = 15 (A1) [1]

  3. 3

    (b)(i) 36.9 = asin(15 × 18) + c = asin(270°) + c (A1), so 36.9 = -a + c (AG) [1]

  4. 4

    (b)(ii) attempt to substitute t = 13, T = 36.6 into their equation (M1) [1]

  5. 5

    36.6 = asin(15 × 13) + c, or 36.6 = -0.259a + c (A1) [1]

  6. 6

    (iii) attempt to solve the two equations (M1) [1]

  7. 7

    a = -0.405 (A1) [1]

  8. 8

    c = 36.5 (A1) [1]

Recap

  • Linear: f(x) = mx + c. The gradient m is the change per unit, and c is the value at x = 0.
  • Piecewise linear: a different linear rule on each part of the domain. Count only the part beyond the change, such as n - 15.
  • Quadratic: f(x) = ax² + bx + c. The axis of symmetry is x = (-b)/2a, the zeros are the roots, and the y-intercept is c.
  • Exponential: f(x) = ka^(x) + c or ke^(rx) + c. The horizontal asymptote is y = c.
  • Direct and inverse variation: f(x) = axⁿ. Find a from the one known pair of values. For n < 0 the y-axis is a vertical asymptote.
  • Cubic: f(x) = ax³ + bx² + cx + d. Solve f(x) = k on the GDC and keep only the answers inside the domain.
  • Sinusoidal: amplitude |a|, period (360°)/b, principal axis y = d. Give the exact answer asked for and show the method.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. A mobile phone plan costs C dollars for m minutes of calls in a month, modelled by C = 30 + 0.12m. State the meaning of the gradient 0.12 in this context.1 mark
    Answer
    1. The cost of each extra minute of calls is char36 0.12.

    Trap: The 30 is the fixed charge, the value at m = 0. The gradient is the change in cost for each extra minute.

  2. A quantity starts at 80 units and halves every 3 years. Which equation gives the quantity Q after t years? A. Q = 80 × 0.5^(3t) B. Q = 80 × 0.5^(t/3) C. Q = 80 - 3t D. Q = 80 × (1/3)^(t)1 mark
    Answer
    1. B. At t = 3, 0.5^(3/3) = 0.5, so the quantity has halved.
    2. A halves every third of a year, C subtracts 3 units a year, and D multiplies by 1/3 each year.

    Trap: The exponent counts how many 3-year periods have passed, so it is t/3, not 3t.

  3. A car park charges char36 4 for the first 2 hours. Each further hour costs char36 1.50, charged in proportion for part of an hour. (a) Write down an expression for the charge C dollars when the time is t hours and t > 2. (b) Calculate the charge for 5.5 hours.3 marks
    Answer
    1. (a)
    2. C = 4 + 1.5(t - 2).
    3. (b)
    4. C = 4 + 1.5(5.5 - 2) = 4 + 5.25.
    5. C = char36 9.25.

    Trap: The char36 1.50 applies only to the time beyond 2 hours. Using 1.5t + 4 charges the first 2 hours twice and gives char36 12.25.

  4. The height of a ball is modelled by h = -5t² + 20t, where h is in metres and t is the time in seconds after it is thrown. Find the equation of the axis of symmetry and hence the maximum height of the ball.3 marks
    Answer
    1. t = (-20)/(2(-5)).
    2. The axis of symmetry is t = 2.
    3. h(2) = -5(4) + 20(2) = 20, so the maximum height is 20 m.

    Trap: Keep the sign of a: -20 ÷ (-10) = 2. Using a = 5 gives t = -2, a time before the throw.

  5. A company's weekly profit is modelled by P = -2x² + 24x - 54, where P is in thousands of dollars and x is the number of hundreds of items sold. Determine the numbers of items sold at which the company breaks even.3 marks
    Answer
    1. Break even means P = 0: -2x² + 24x - 54 = 0.
    2. On the GDC the roots are x = 3 and x = 9.
    3. The company breaks even at 300 items and at 900 items.

    Trap: x is in hundreds of items. The roots 3 and 9 must be converted to 300 and 900 items.

  6. The value of a machine, V dollars, after t years is modelled by V = 12 000 × 0.85^(t). (a) Calculate the value after 4 years, to the nearest dollar. (b) Write down the equation of the horizontal asymptote.3 marks
    Answer
    1. (a)
    2. V = 12 000 × 0.85⁴ = 6264.075.
    3. V = char36 6 264.
    4. (b)
    5. V = 0.

    Trap: The multiplier is 0.85, not the loss of 0.15. Using 0.15⁴ gives about char36 6.

  7. The stopping distance d metres of a car is directly proportional to the square of its speed v, so d = av². At a speed of 20 m s⁻¹ the stopping distance is 40 m. Calculate the stopping distance at 30 m s⁻¹.3 marks
    Answer
    1. 40 = a × 20², so a = 0.1.
    2. d = 0.1 × 30².
    3. d = 90 m.

    Trap: The distance depends on v². Treating it as proportional to v gives 40 × 1.5 = 60 m, which is too small.

  8. A box with no lid is made from a square sheet of card of side 20 cm. A square of side x cm is cut from each corner and the sides are folded up. The volume of the box is V cm³, for 0 < x < 10. (a) Show that V = 4x³ - 80x² + 400x. (b) Use your GDC to find the values of x for which V = 500.4 marks
    Answer
    1. (a)
    2. The base is a square of side 20 - 2x and the height is x.
    3. V = x(20 - 2x)² = x(400 - 80x + 4x²) = 4x³ - 80x² + 400x.
    4. (b)
    5. Graph y = 4x³ - 80x² + 400x and y = 500 on the GDC.
    6. The intersections are at x = 1.91, x = 5 and x = 13.1.
    7. x = 13.1 is outside 0 < x < 10, so x = 1.91 cm or x = 5 cm.

    Trap: A cubic can meet the line three times. The root 13.1 is not allowed by the domain given.

  9. The number of fish in a lake, N hundred, t years after the lake is restocked is modelled by N = ka^(t) + c, where a > 0. Just after restocking there are 1000 fish. After 4 years there are 3000 fish. In the long term the number of fish approaches 5000. (a) Write down the value of c. (b) Find the value of k. (c) Show that a = 0.841, correct to three significant figures. (d) Determine how many years after restocking the number of fish first reaches 4500.7 marks
    Answer
    1. (a)
    2. N is in hundreds, so the asymptote is N = 50 and c = 50.
    3. (b)
    4. At t = 0, N = 10: 10 = k × a⁰ + 50 = k + 50.
    5. k = -40.
    6. (c)
    7. At t = 4, N = 30: 30 = -40a⁴ + 50, so a⁴ = 0.5.
    8. a = 0.5^(1/4) = 0.840896… = 0.841.
    9. (d)
    10. 45 = -40a^(t) + 50, so a^(t) = 0.125.
    11. Solve on the GDC with the unrounded a: t = 12 years.

    Trap: At t = 0 the value is k + c, not k: taking k = 10, or c = 5000 when N counts hundreds, makes every later part wrong.

  10. The depth of water in a harbour, w metres, is modelled by w = acos(bt) + d, where t is the time in hours after the minimum depth of 2 m. The next maximum depth of 8 m occurs at t = 6. Set the GDC to degrees. (a) Find the value of b. (b) Find the values of a and d. (c) Find the first time after t = 0 at which the depth is 6.5 m. (d) A boat can enter the harbour only when the depth is at least 6.5 m. Determine how long, in the first 12 hours, the boat can enter.9 marks
    Answer
    1. (a)
    2. The time from a minimum to the next maximum is half a period, so the period is 12 hours.
    3. b = 360/12 = 30.
    4. (b)
    5. d = (8 + 2)/2 = 5.
    6. |a| = (8 - 2)/2 = 3.
    7. The minimum is at t = 0 and cos 0 = 1, so a = -3.
    8. (c)
    9. -3cos(30t) + 5 = 6.5, so cos(30t) = -0.5.
    10. 30t = 120, so t = 4 hours.
    11. (d)
    12. The depth is at least 6.5 m when cos(30t) ≤ -0.5, so 120 ≤ 30t ≤ 240.
    13. 4 ≤ t ≤ 8, so the boat can enter for 4 hours.

    Trap: Use a = -3, not 3, or the maximum falls at t = 0. The period is 12 hours, so b = 360 ÷ 12 = 30, not 12 or 6, and the second solution t = 8 is needed for the length of time.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
p = 30 EUR, rounded because the working looks tidyp = 29.98 EUR, given to the 2 decimal places the question asks for
n = 7.5 people, with no whole number givenn > 7.5, so the minimum is 8 people
The point is above the curve, with no value to support it36.2 > 36.1, hence above the curve
The answer 476 with no unit when it is in minutes476 minutes, with the unit shown

Frequently asked questions

What does the gradient mean in a linear model?
In a linear model f(x) = mx + c, the gradient m is the change in the output for each one-unit increase in the input. The y-intercept c is the starting value, where x = 0. For example, in C = 30 + 0.12m each extra minute of calls costs 0.12 dollars, and the 30 is the fixed charge.
How do I write the rule for a piecewise linear model?
A piecewise linear model uses a different linear rule for each part of the domain, and the pieces join where the rule changes. Write the rule for the second piece so that it counts only the part beyond the change, such as n - 15 for the hats beyond the first 15. The total cost is then C(n) = 15p + (p - 5)(n - 15).
How do I find the axis of symmetry of a quadratic?
For f(x) = ax² + bx + c the axis of symmetry is x = (-b)/2a, and the vertex lies on it. The zeros are the roots of f(x) = 0, and the y-intercept is c. Technology can find roots, and two points at the same height are the same distance either side of the axis.
How does an exponential model approach its asymptote?
An exponential model has the form f(x) = ka^(x) + c or f(x) = ke^(rx) + c. The graph gets closer and closer to the line y = c but does not cross it, so this line is the horizontal asymptote. The constant k is the distance from the asymptote at x = 0, so f(0) = k + c.
What is the difference between direct and inverse variation?
A direct variation model is f(x) = axⁿ with n a positive whole number, so the output is directly proportional to xⁿ. When n < 0 the model is an inverse variation, and the y-axis is a vertical asymptote because x = 0 cannot be used. Substitute one known pair of values to find the constant of proportionality.
Why can the minimum number of people not be 7.5?
The working gives n > 7.5, so the minimum is 8 people, a whole number. Giving n = 7.5 people, with no whole number given, is wrong.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters