impera Open Impera

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

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?

  • The height of the tide over a whole day

  • The height of a ball thrown up into the air

  • Improvement that slows with each extra hour of practice

  • A savings account that earns compound interest every month

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

Worked example

Fish in a lake

  1. The number of fish is $P(t) = \frac{1000}{1 + 9e^{-0.5t}}$ after $t$ years.
  2. Initial population: $P(0) = \frac{1000}{10} = 100$.
  3. After 4 years: $P(4) = 451$.
  4. Carrying capacity: 1000 fish.
  5. 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?

  • The time taken to reach half the maximum value

  • The growth rate of the model at the beginning

  • The long-term maximum value the model approaches

  • The starting value of the model when t is zero

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$.
Worked example

Recovering an exponential model

  1. A plot of $\ln y$ against $x$ is a straight line: $\ln y = 0.69x + 1.1$.
  2. So $y = e^{1.1} \times e^{0.69x} = 3.00 \times 1.99^x$.
  3. The data roughly double for each increase of 1 in $x$, starting from 3.
Worked example

Recovering a power model

  1. A plot of $\ln y$ against $\ln x$ gives $\ln y = 0.4 + 1.5\ln x$.
  2. 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?

  • An exponential model, y = kaˣ

  • A power model, y = axᵇ

  • A sinusoidal model

  • A linear model, y = mx + c

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?

  • It will predict values outside the data perfectly

  • It is correct 96% of the time when predicting

  • 96% of the data points lie exactly on the curve

  • It explains 96% of the variation in y for this data

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

  1. A data set appears to follow $y = ax^b$.
  2. Plot $\ln y$ against $\ln x$: the points lie close to a straight line.
  3. The regression line is $\ln y = 0.7 + 1.5\ln x$.
  4. 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?

  • $\ln y$ against $x$ only

  • $y$ against $\ln x$

  • $y$ against $x$

  • $\ln y$ against $\ln x$

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.

Worked example

Spread of a rumour in a school of 1 000 students

  1. $P = \frac{1000}{1 + 99e^{-0.5t}}$, $t$ in days.
  2. At $t = 0$: $P = \frac{1000}{100} = 10$ students.
  3. At $t = 10$: $P = \frac{1000}{1 + 99e^{-5}} \approx \frac{1000}{1.667} \approx 600$ students.
  4. As $t \to \infty$, $P \to 1000$.
Check yourself

What is the carrying capacity in $P = \frac{1000}{1 + 99e^{-0.5t}}$?

  • 99.0

  • 10.0

  • 1000

  • 0.50

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