IB Diploma Mathematics AA · Functions
Exponential and logarithmic functions
1Exponential functions
An exponential function has the variable in the exponent: $f(x) = a^x$, with $a > 0$ and $a \neq 1$.
Exponential and logarithmic graphs
- The graph passes through $(0, 1)$, because $a^0 = 1$.
- If $a > 1$ it shows growth: it rises faster and faster.
- If $0 < a < 1$ it shows decay: it falls towards zero.
- It has a horizontal asymptote at $y = 0$. The graph never touches the $x$-axis.
- Domain: all real numbers. Range: $y > 0$.
The most important base is $e \approx 2.718$. The function $f(x) = e^x$ is the natural exponential function. It is special because its gradient at every point equals its value.
Any exponential can be written with base $e$: $a^x = e^{x \ln a}$.
Check yourself
Through which point does the graph of y = aˣ always pass?
Show the answer
(0, 1)
Any non-zero number to the power 0 is 1.
2Logarithmic functions
The logarithmic function $f(x) = \log_a x$ is the inverse of $a^x$. In particular, $\ln x$ is the inverse of $e^x$.
- Its graph is the reflection of $y = a^x$ in the line $y = x$.
- It passes through $(1, 0)$, because $\log_a 1 = 0$.
- It has a vertical asymptote at $x = 0$.
- Domain: $x > 0$. Range: all real numbers.
Because they are inverses:
$$e^{\ln x} = x \quad\text{and}\quad \ln(e^x) = x$$
Check yourself
What is the inverse of f(x) = eˣ?
Show the answer
ln x
The natural logarithm undoes the natural exponential.
3Modelling growth and decay
Many real quantities change exponentially: populations, investments, radioactive decay, cooling.
A common model is:
$$N = N_0 e^{kt}$$
- $N_0$ is the starting value, when $t = 0$.
- $k > 0$ gives growth. $k < 0$ gives decay.
A growing population
- A colony of bacteria is modelled by $N = 500e^{0.3t}$, with $t$ in hours.
- At the start, $N = 500$.
- After 5 hours: $N = 500e^{1.5} = 500 \times 4.48 = 2241$.
- When does it reach 5000? $e^{0.3t} = 10$, so $0.3t = \ln 10 = 2.303$, giving $t = 7.68$ hours.
Half-life
- A substance decays as $M = 80e^{-0.05t}$, with $t$ in years.
- Half the mass remains when $e^{-0.05t} = 0.5$.
- $-0.05t = \ln 0.5 = -0.693$, so $t = 13.9$ years.
Check yourself
In the model N = N₀e^(kt), what does a negative k mean?
Show the answer
The quantity is decaying
The exponential falls towards zero.
4Half-life and doubling time
Exponential models often use half-life or doubling time.
- Decay: $N = N_0 e^{-kt}$. Half-life: $t_{\frac{1}{2}} = \frac{\ln 2}{k}$.
- Growth: $N = N_0 e^{kt}$. Doubling time: $\frac{\ln 2}{k}$.
Carbon-14
- Carbon-14 has a half-life of about 5 730 years.
- $k = \frac{\ln 2}{5730} \approx 0.000121$ per year.
- A sample has 30% of its original carbon-14: $0.3 = e^{-0.000121t}$.
- $t = \frac{\ln 0.3}{-0.000121} \approx 9\,950$ years.
Check yourself
If $k = 0.05$ per year, what is the doubling time (to 1 d.p.)?
Show the answer
13.9 years
$\frac{\ln 2}{0.05}$.
5Graphs of exponentials and logarithms
Key features:
- $y = a^x$ (with $a > 1$): passes through $(0, 1)$, horizontal asymptote $y = 0$, always positive, increasing.
- $y = \log_a x$: passes through $(1, 0)$, vertical asymptote $x = 0$, defined only for $x > 0$.
- They are inverses, so each is the reflection of the other in $y = x$.
$y = e^{x - 2} + 3$
- Start from $y = e^x$.
- Translate 2 right and 3 up.
- Horizontal asymptote: $y = 3$.
- $y$-intercept: $e^{-2} + 3 \approx 3.14$.
Check yourself
What is the horizontal asymptote of $y = e^{x - 2} + 3$?
Show the answer
$y = 3$
Shifted up 3.
6Going deeper: two models worked in full, and analysing a transformed exponential
Worked example (growth): a culture has 500 bacteria at $t = 0$ and 2000 at $t = 3$ hours. Model it with $N = N_0 e^{kt}$.
- $N_0 = 500$.
- $2000 = 500e^{3k}$, so $e^{3k} = 4$ and $k = \frac{\ln 4}{3} \approx 0.462$.
- Doubling time: $\frac{\ln 2}{k} = \frac{3\ln 2}{\ln 4} = 1.5$ hours. This makes sense: multiplying by 4 in 3 hours is two doublings.
- Time to reach 10,000: $e^{kt} = 20$, so $t = \frac{\ln 20}{0.462} \approx 6.48$ hours.
- Limitation: growth cannot continue forever. A real population levels off as resources run out.
Worked example (decay): a drug has a half-life of 8 hours. A patient receives 120 mg.
- Model: $A = 120 \times \left(\frac{1}{2}\right)^{t/8}$.
- After 20 hours: $A = 120 \times 0.5^{2.5} \approx 120 \times 0.1768 \approx 21.2$ mg.
- Time until less than 5 mg remains: $0.5^{t/8} = \frac{5}{120} = \frac{1}{24}$.
- Take logs: $\frac{t}{8} = \log_2 24 \approx 4.585$, so $t \approx 36.7$ hours.
Worked example (analysing a function): $f(x) = 3e^{-2x} + 1$.
- As $x \to \infty$, $e^{-2x} \to 0$, so the horizontal asymptote is $y = 1$.
- $y$-intercept: $f(0) = 4$.
- The function is decreasing, with range $f(x) > 1$.
- Inverse: $y - 1 = 3e^{-2x}$, so $x = -\frac{1}{2}\ln\left(\frac{y - 1}{3}\right)$. Then $f^{-1}(x) = -\frac{1}{2}\ln\left(\frac{x - 1}{3}\right)$ with domain $x > 1$.
Links to remember
- $y = a^x$ and $y = \log_a x$ are inverses, so their graphs are reflections in $y = x$. The exponential has a horizontal asymptote; the logarithm has a vertical one.
- $a^x = e^{x \ln a}$, so every exponential can be written with base $e$.
- Growth by $r\%$ per period means multiplying by $1 + \frac{r}{100}$ each period.
- Percentage change over several periods compounds; it does not add.
Common mistakes
- Writing the asymptote of $y = 3e^{-2x} + 1$ as $y = 0$.
- Rounding $k$ too early. Keep the exact form or at least four significant figures until the final answer.
- Taking the logarithm of a sum: $\ln(a + b)$ is not $\ln a + \ln b$.
Check yourself
A substance has a half-life of 6 hours. What fraction remains after 18 hours?
Show the answer
1/8
Eighteen hours is three half-lives: ½ × ½ × ½.
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