IB Diploma Mathematics AI · Functions
Logarithmic and logistic models (HL)
1Logarithmic models
A logarithmic model has the form
$$f(x) = a + b\ln x, \quad x > 0$$
- It grows (if $b > 0$) quickly at first, then more and more slowly, without ever levelling off completely.
- It has a vertical asymptote at $x = 0$.
- It suits situations with diminishing returns: the extra benefit of each additional unit gets smaller.
The score on a skill test after $x$ hours of practice is modelled by $S = 5 + 2\ln x$. After 10 hours, $S = 5 + 2\ln 10 = 9.61$. Going from 10 to 20 hours adds only $2\ln 2 = 1.39$ points.
Check yourself
Which situation is best suited to a logarithmic model?
Show the answer
Improvement that slows with each extra hour of practice
Logarithms model diminishing returns.
2Logistic growth
Exponential growth cannot go on forever: resources run out. A logistic model starts like exponential growth, then slows and levels off at a maximum, the carrying capacity $L$.
$$f(x) = \frac{L}{1 + Ce^{-kx}}, \quad L, C, k > 0$$
- $L$ is the horizontal asymptote: the long-term value.
- Growth is fastest when the value is half of $L$, at the point of inflection.
- The initial value is $f(0) = \frac{L}{1 + C}$.
Logistic growth of the fish population, compared with unlimited exponential growth
Fish in a lake
- The number of fish is $P(t) = \frac{1000}{1 + 9e^{-0.5t}}$ after $t$ years.
- Initial population: $P(0) = \frac{1000}{10} = 100$.
- After 4 years: $P(4) = 451$.
- Carrying capacity: 1000 fish.
- When is the population 500 (fastest growth)? $9e^{-0.5t} = 1$, so $t = 2\ln 9 = 4.39$ years.
Check yourself
In a logistic model, what is the carrying capacity?
Show the answer
The long-term maximum value the model approaches
It is the horizontal asymptote L.
3Linearising data with logarithms
Some curved data become a straight line when logarithms are taken. This shows which model fits and helps find its parameters.
- Exponential $y = ka^x$: taking logs gives $\ln y = \ln k + x\ln a$. Plot $\ln y$ against $x$: a straight line.
- Power $y = ax^b$: taking logs gives $\ln y = \ln a + b\ln x$. Plot $\ln y$ against $\ln x$: a straight line with gradient $b$.
Recovering an exponential model
- A plot of $\ln y$ against $x$ is a straight line: $\ln y = 0.69x + 1.1$.
- So $y = e^{1.1} \times e^{0.69x} = 3.00 \times 1.99^x$.
- The data roughly double for each increase of 1 in $x$, starting from 3.
Recovering a power model
- A plot of $\ln y$ against $\ln x$ gives $\ln y = 0.4 + 1.5\ln x$.
- So $y = e^{0.4}x^{1.5} = 1.49x^{1.5}$.
Check yourself
A plot of ln y against ln x is a straight line. Which model fits the data?
Show the answer
A power model, y = axᵇ
Logs of both variables linearise a power law.
4Choosing and judging a model
In Maths AI you choose among many models: linear, quadratic, cubic, exponential, power, sinusoidal, logarithmic and logistic. Use:
- The context: is there a natural limit (logistic)? A repeating pattern (sinusoidal)? Diminishing returns (logarithmic)?
- The scatter plot shape.
- The coefficient of determination $R^2$ from the calculator's regression: the proportion of variation in $y$ explained by the model. Closer to 1 means a better fit for that data set.
- The residuals (observed minus predicted values): a good model leaves small residuals with no pattern.
The sum of squared residuals $SS_{\text{res}}$ measures the total error. The least squares method chooses the parameters that make it as small as possible.
A high $R^2$ alone is not enough: a model must make sense outside the data too.
Check yourself
What does R² = 0.96 tell you about a model?
Show the answer
It explains 96% of the variation in y for this data
R² measures goodness of fit to the given data.
5Linearising power models
If $y = ax^b$, taking logs gives $\ln y = \ln a + b\ln x$, which is linear in $\ln x$ and $\ln y$.
Worked example
- A data set appears to follow $y = ax^b$.
- Plot $\ln y$ against $\ln x$: the points lie close to a straight line.
- The regression line is $\ln y = 0.7 + 1.5\ln x$.
- So $b = 1.5$ and $a = e^{0.7} \approx 2.01$: $y \approx 2.01x^{1.5}$.
For exponential models $y = ka^x$, plot $\ln y$ against $x$ instead.
Check yourself
For $y = ax^b$, which graph is linear?
Show the answer
$\ln y$ against $\ln x$
Log–log plot.
6Logistic growth in context
Logistic model: $P = \frac{L}{1 + Ce^{-kt}}$, where $L$ is the carrying capacity.
Spread of a rumour in a school of 1 000 students
- $P = \frac{1000}{1 + 99e^{-0.5t}}$, $t$ in days.
- At $t = 0$: $P = \frac{1000}{100} = 10$ students.
- At $t = 10$: $P = \frac{1000}{1 + 99e^{-5}} \approx \frac{1000}{1.667} \approx 600$ students.
- As $t \to \infty$, $P \to 1000$.
Check yourself
What is the carrying capacity in $P = \frac{1000}{1 + 99e^{-0.5t}}$?
Show the answer
1000
Upper limit.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera