James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Functions › Further models

Further models: logistic, logarithmic & piecewise

At HL you meet three more families of models. Logistic models grow quickly at first and then level off at a carrying capacity. Natural logarithmic models keep increasing but ever more slowly. Piecewise models use different rules on different intervals, like tax bands or tariffs. You choose a model, interpret its parameters and use the GDC to answer questions.

AHL 2.9HL onlyPaper 1Paper 2GDC allowed≈ 50 min to work through
Before you start: exponential and sinusoidal models and the modelling cycle (Exponential & sinusoidal models, Variation & the modelling cycle).

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 logistic models f(x)=L1+Ce−kx, including the carrying capacity LAHL 2.9
  • Use natural logarithmic models f(x)=a+blnxAHL 2.9
  • Use and interpret piecewise models, including checking continuityAHL 2.9
  • Choose an appropriate model from the shape of data or a descriptionAHL 2.9
  • Find parameters and answer questions with the GDC, including logistic regressionAHL 2.9

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

No population grows exponentially forever: food, space or customers run out. A logistic model starts like exponential growth and then levels off at a maximum L, the carrying capacity. A logarithmic model never levels off but slows down for ever. A piecewise model changes its rule at fixed points. Matching the shape of the data to the right family is the first step in modelling.

2.1 Logistic models

Logistic model In formula booklet
f(x)=L1+Ce−kx,L,C,k>0

f(0)=L1+C; as x→∞, f(x)→L, so y=L is a horizontal asymptote. The growth is fastest when f(x)=L2.

Worked example 1Paper 1
The number of people who have heard a rumour, t days after it starts, is modelled by N(t)=12001+19e−0.4t. Find (a) the initial number (b) N(5) (c) the long-term number (d) when 600 people have heard it.
(a) N(0)=120020=60
(b) N(5)=336
(c) As t→∞, e−0.4t→0, so N→1200.
The carrying capacity: the whole community.
(d) 1+19e−0.4t=2⇒e−0.4t=119⇒t=ln190.4=7.36 days
Or solve N(t)=600 on the GDC.

2.2 Natural logarithmic models

f(x)=a+blnx (x>0) increases without limit when b>0, but each increase in x adds less than the one before. It suits learning curves, perceived loudness or the growth of a child’s vocabulary.

Worked example 2Paper 1
The height of a sapling, in metres, t years after planting is modelled by H(t)=3+2lnt, for t≥1. Find the height after 10 years and the time when the height reaches 10 m.
H(10)=3+2ln10=7.61 m
3+2lnt=10⇒lnt=3.5⇒t=e3.5=33.1 years

2.3 Piecewise models

A piecewise model uses different formulas on different parts of the domain. Read the domain of each piece carefully. A model is continuous if the pieces join up: the two formulas give the same value at the boundary.

Worked example 3Paper 1
A taxi charges C(d)={3+1.5d,0≤d≤10k+1.2d,d>10 euros for d km. Find k so that C is continuous, and the fare for 25 km.
At d=10: 3+15=k+12⇒k=6
Both pieces must give the same fare at the boundary.
C(25)=6+1.2(25)= €36

2.4 Choosing a model

Shape of the dataModel
Constant ratio between equally spaced values; grows or decays towards an asymptoteexponential abx+c or aekx+c
S-shaped: slow, fast, then levels offlogistic
Rises quickly then keeps rising more and more slowly, no asymptotelogarithmic a+blnx
Repeats regularlysinusoidal
Different behaviour on different intervalspiecewise
Worked example 4Paper 2
A new app has 2000 users at launch. Usage first grows by about 30% a week, but the market is limited to about 50 000 people. Suggest a suitable model and explain why an exponential model is not suitable in the long term.
Logistic: U(t)=500001+Ce−kt with U(0)=2000⇒C=24
An exponential model 2000(1.3)t would exceed 50 000 after about 12 weeks and keep growing, which is impossible.
The logistic model levels off at the market size.
Worked example 5 (faded)Paper 1
Write down the carrying capacity and the initial value of P(t)=5001+4e−0.2t.
Carrying capacity: 500
Initial value: 5001+4= 100  ← you work this out
On your TI-Nspire Calculator tricks →

Solve model equations with nSolve, or graph the model and use menu → Analyze Graph → Intersection. To fit a logistic model to data, enter the data in a Lists & Spreadsheet page and use menu → Statistics → Stat Calculations → Logistic (d=0): it gives y=c1+ae−bx, so c is the carrying capacity. Piecewise functions can be entered in a Graphs page with the template from the math templates key (the curly bracket).

3Explore it

Compare a logistic model (navy) with the exponential model that has the same start and the same early growth (red, dashed). Change L, C and k: where do the two models separate?

4Common mistakes & exam tips

Common mistakes

  • Reading the carrying capacity as C instead of L.
  • Using a piecewise formula outside its own interval.
  • Saying a logarithmic model has an asymptote: a+blnx keeps increasing.
  • Forgetting that a logistic model never actually reaches L.
  • Choosing a model from a few points without looking at the overall shape or the context.

Exam tips

  • "In the long term" in a logistic question means find the limit L.
  • For continuity, set the two pieces equal at the boundary and solve.
  • When asked to criticise a model, test it at the extremes: very large or very small values of the variable.
  • Write the GDC regression output in full, with the model type, before using it.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
f(t)=901+8e−0.5t. Find f(0) and the limit as t→∞.
f(0)=10; limit 90
FluencyP2
Solve 5+3lnx=14.
x=e3=20.1
FluencyP3
g(x)={2x,x≤3x+a,x>3. Find a so that g is continuous.
6=3+a⇒a=3
FluencyP4
Which model suits data that rise steeply then level off at 400?
Logistic with L=400
Problem solvingP5
For f(t)=901+8e−0.5t, find when f(t)=80.
8e−0.5t=18⇒t=2ln64=8.32
Problem solvingP6
A child’s vocabulary is modelled by V(t)=150+400lnt words at age t years, t≥1. Find the age at which the vocabulary reaches 1000 words and comment on the model for t<1.
lnt=2.125⇒t=8.37 years. For t<1, lnt<0 so V drops below 150 and becomes negative near t=0: not realistic.

6Exam-style questions

Original questions in the style of the IB Maths AI HL 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[6 marks]

The population of deer in a forest t years after they were introduced is modelled by P(t)=80001+39e−0.25t.

  • (a)Find the number of deer introduced.[1]
  • (b)Find the population after 10 years.[2]
  • (c)Find the time it takes for the population to reach 6000.[2]
  • (d)Write down the long-term population.[1]
(a)
200A1
(b)
80001+39e−2.5(M1)
1904A1
(c)
P(t)=6000(M1)
19.0 yearsA1
(d)
8000A1
Question 2Paper 1[5 marks]

The height, h cm, of a plant t weeks after it is planted is modelled by h(t)=12+9ln(t+1), for t≥0.

  • (a)Find the height of the plant after 5 weeks.[2]
  • (b)Find the time taken for the plant to reach a height of 40 cm.[2]
  • (c)Give one reason why the model may not be valid for large values of t.[1]
(a)
12+9ln6(M1)
28.1 cmA1
(b)
ln(t+1)=289(M1)
21.4 weeksA1
(c)
the model keeps increasing without limit, but a plant stops growingR1
Question 3Paper 2[9 marks]

A water company charges a fixed fee of €12 per quarter. In addition, the first 15 m³ of water cost €1.40 per m³, the next 25 m³ cost €2.10 per m³, and any water above 40 m³ costs €3.20 per m³.

  • (a)Find the bill for a quarter in which 30 m³ of water are used.[2]
  • (b)Write down a piecewise function W(x) for the bill, in euros, when x m³ are used.[4]
  • (c)A household’s bill is €120. Find the amount of water used.[3]
(a)
12+15(1.40)+15(2.10)(M1)
€64.50A1
(b)
12+1.4x, 0≤x≤15A1
33+2.1(x−15), 15<x≤40A1A1
85.5+3.2(x−40), x>40A1
A1A1 for the middle piece: correct constant 33 and correct rate. Accept equivalent forms.
(c)
120>85.5, so x>40R1
85.5+3.2(x−40)=120(M1)
50.8 m³A1

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 are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
Nov 2024 · Paper 1Q13A logistic model for a beaver population★★☆
May 2025 · TZ1 · Paper 2Q3Comparing population models, including logistic★★★
Nov 2025 · Paper 2Q4A natural log model for distance walked★★☆
May 2023 · TZ1 · Paper 1Q10A piecewise model of a hook★★☆
Nov 2025 · Paper 3Q2Choosing the best model for a wolf population★★★
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