Educerie · IB Diploma · Mathematics: analysis and approaches
Topic 2 Functions · 2.9 Exponential and logarithmic functions
What you must be able to do
| You must be able to | Level | What it looks like in the exam |
|---|---|---|
| Sketch f(x) = aˣ (a > 0) and f(x) = eˣ, with intercept and asymptote | SL, HL | "Sketch the graph of y = 2ˣ" (2 marks) |
| Sketch transformed exponentials such as y = Ae^(kx) + c, and state the asymptote and range | SL, HL | "Write down the equation of the horizontal asymptote" (1 mark); "State the range of f" (1 mark) |
| Sketch f(x) = logₐ x and f(x) = ln x, for x > 0, with intercept and asymptote | SL, HL | "Sketch the graph of y = ln x" (2 marks) |
| Know that exponential and logarithmic functions are inverses, and reflect one graph to get the other | SL, HL | "On the same axes, sketch the graph of f⁻¹" (2 marks) |
| Use logₐ aˣ = x = a^(logₐ x) and aˣ = e^(x ln a) (formula booklet) | SL, HL | "Find the exact value of e^(2 ln 3)" (2 marks); "Write 5ˣ in the form e^(kx)" (2 marks) |
| Find the domain, asymptote and inverse of a transformed logarithm such as ln(2x − 6) | SL, HL | "Find f⁻¹(x) and state its range" (4 marks) |
| Use exponential models of growth and decay, including half-life and doubling time | SL, HL | Paper 2: "Find the time taken for the level to halve" (3 marks) |
Before you start
You need the laws of exponents, the definition of a logarithm (logₐ x = b means aᵇ = x) and the number e, all from 1.5 and 1.7. You need inverse functions and the reflection in y = x from 2.2 and 2.5, and asymptotes from 2.4. Geometric sequences (1.3) and compound interest (1.4) are exponential functions seen only at whole-number inputs; this page fills in the curve between them.
1The idea in one paragraph
An exponential function f(x) = aˣ, with a > 0 and a ≠ 1, multiplies its output by the same factor a every time x goes up by 1. If a > 1 it grows ever faster; if 0 < a < 1 it decays towards zero. Every such graph passes through (0, 1) and has the x-axis as a horizontal asymptote. The most important base is the number e ≈ 2.718, giving eˣ. A logarithmic function f(x) = logₐ x undoes aˣ: it answers "what power of a gives x?". So the logarithm is the inverse of the exponential, and its graph is the exponential's graph reflected in y = x: it passes through (1, 0), has the y-axis as a vertical asymptote, and only exists for x > 0. The natural logarithm ln x is the inverse of eˣ. Two identities from the formula booklet tie them together: logₐ aˣ = x = a^(logₐ x), and aˣ = e^(x ln a).
2Exponential functions y = aˣ
Take y = 2ˣ and make a table:
| x | −3 | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|---|
| 2ˣ | ⅛ | ¼ | ½ | 1 | 2 | 4 | 8 |
Each step right doubles the output; each step left halves it. Halving forever never reaches zero, so on the left the graph gets closer and closer to the x-axis without touching it. That makes y = 0 a horizontal asymptote. Figure 1(a) shows y = 2ˣ and y = 3ˣ.
What every exponential y = aˣ has in common:
| Feature | For y = aˣ, a > 0, a ≠ 1 |
|---|---|
| y-intercept | (0, 1), since a⁰ = 1 |
| Another easy point | (1, a) |
| Horizontal asymptote | y = 0 |
| Domain | x ∈ ℝ |
| Range | y > 0 |
| a > 1 | increasing: exponential growth |
| 0 < a < 1 | decreasing: exponential decay |
Why a > 0 and a ≠ 1? With a = 1, 1ˣ = 1 for every x: a flat line, not a growth curve. With a negative base, many inputs make no sense: (−4)^(1/2) = √(−4) is not a real number. So the definition only allows positive bases other than 1.
Decay is growth backwards. Figure 1(b) shows y = (½)ˣ. Since (½)ˣ = 2⁻ˣ, its graph is the graph of 2ˣ reflected in the y-axis. Every decreasing exponential is an increasing one with x replaced by −x.
A bigger base is steeper to the right and flatter to the left. For x > 0, 3ˣ > 2ˣ; for x < 0, 3ˣ < 2ˣ. The two curves cross only at (0, 1).
3The number e and the function eˣ
The number e = 2.71828… is a constant like π. It appears when growth is compounded more and more often. Invest €1 at 100% interest a year. Compounded once, you have €2. Compounded n times a year, you have (1 + 1/n)ⁿ euros, and as n grows this settles towards e: with n = 1000 it is 2.7169, with a million it is 2.71828. So e is what €1 becomes after a year of continuous growth at 100%, which links this page to the compound interest of 1.4.
The exponential function f(x) = eˣ has all the features of section 2: through (0, 1), asymptote y = 0, range y > 0, and between 2ˣ and 3ˣ since 2 < e < 3. Its special property appears in calculus (5.6): the gradient of y = eˣ at any point equals its y-value. That is why eˣ, and not 2ˣ or 10ˣ, is the base used in almost every model. Your calculator has an eˣ key, and a question that gives e^(−0.2t) expects you to use it.
Transformed exponentials. Models usually look like y = A·e^(kx) + c. Each constant has a job:
- c moves the asymptote from y = 0 to y = c, and the range becomes y > c (if A > 0).
- A is a vertical stretch; the y-intercept is A + c.
- k sets the rate: k > 0 grows, k < 0 decays.
Figure 2 shows y = 2e⁻ˣ + 3. The asymptote is y = 3, the y-intercept is (0, 2 + 3) = (0, 5), and the range is y > 3. A cup of coffee cooling to room temperature follows exactly this shape, with c as the room temperature.
4Logarithmic functions y = logₐ x
The logarithmic function f(x) = logₐ x asks "to what power must I raise a to get x?". So log₂ 8 = 3, because 2³ = 8, and log₂ ½ = −1, because 2⁻¹ = ½. The natural logarithm ln x is log base e.
By its definition, the logarithm undoes the exponential: if y = aˣ then x = logₐ y. So logₐ x is the inverse function of aˣ, and ln x is the inverse of eˣ. The graph of an inverse is the reflection in y = x (2.2), so every feature of the exponential reappears with x and y swapped. Figure 3 shows y = eˣ and y = ln x.
| Exponential y = aˣ | Logarithm y = logₐ x |
|---|---|
| domain x ∈ ℝ | domain x > 0 |
| range y > 0 | range y ∈ ℝ |
| y-intercept (0, 1) | x-intercept (1, 0) |
| passes through (1, a) | passes through (a, 1) |
| horizontal asymptote y = 0 | vertical asymptote x = 0 |
logₐ x and aˣ are inverse functions. Their graphs are reflections of each other in y = x, and logₐ x only exists for x > 0.
The restriction x > 0 is the one that costs marks. There is no power of a that gives 0 or a negative number, so ln 0 and ln(−3) do not exist. Your calculator returns an error, and the graph has no points to the left of the y-axis.
The logarithm grows very slowly. ln x passes 1 at x = e ≈ 2.72, passes 2 at x = e² ≈ 7.39, and only reaches 10 at x ≈ 22 026. It keeps growing without limit, but it has no horizontal asymptote: that is a common wrong guess.
Different bases. Figure 4 shows log₂ x, ln x and log₁₀ x. All pass through (1, 0), since a⁰ = 1 for every base, and all have x = 0 as a vertical asymptote. Each passes through (a, 1), which tells you which curve is which: log₂ x reaches 1 at x = 2, ln x at x = e, log₁₀ x at x = 10. For a base between 0 and 1 the log graph decreases instead, but such bases are rare in exams.
5The identities that link them
Because the two functions are inverses, composing them in either order gives the identity function (2.5). The formula booklet states it:
These simplify expressions at a glance: e^(ln 7) = 7, ln(e^(3x)) = 3x, 5^(log₅ 9) = 9, log₂(2^(x+1)) = x + 1. Combined with the laws of logarithms from 1.7:
The second booklet identity turns any exponential into base e:
aˣ = e^(x ln a)
Here is why. By the identity above, a = e^(ln a). Raise both sides to the power x: aˣ = (e^(ln a))ˣ = e^(x ln a). So 2ˣ = e^(0.693x) and 1.06ᵗ = e^(0.0583t), since ln 1.06 = 0.0583 to 3 s.f. This is how a model written with a growth factor (a population rising 6% a year, 1.06ᵗ) is converted into the form e^(kt) used in the sciences and in calculus, and back again. It also shows every exponential is eˣ with a horizontal stretch, which is why they all share one shape.
6Transformed logarithms, and finding inverses
A logarithm can only take a positive input, so the domain comes from setting the inside of the log greater than zero, and the vertical asymptote is where the inside equals zero.
Take f(x) = ln(2x − 6).
Now the inverse, by swapping and rearranging (2.5). The step that undoes ln is "take e to the power of both sides".
Figure 5 shows both. The vertical asymptote x = 3 of f becomes the horizontal asymptote y = 3 of f⁻¹; the x-intercept (3.5, 0) becomes the y-intercept (0, 3.5). The domain of f⁻¹ is the range of f, which is all of ℝ, and the range of f⁻¹ is the domain of f, y > 3.
The other direction works the same way. For g(x) = 3e^(x−1) + 2: swap to x = 3e^(y−1) + 2, so e^(y−1) = (x − 2)/3, so y − 1 = ln((x − 2)/3), giving g⁻¹(x) = 1 + ln((x − 2)/3), for x > 2. The asymptote y = 2 of g has become the vertical asymptote x = 2 of g⁻¹.
7Exponential models: growth and decay
An exponential model y = A·e^(kt) (or A·bᵗ) describes any quantity that changes by the same percentage in each equal time step. With whole-number t, its values form a geometric sequence (1.3), with common ratio b = e^k.
A drug is given by injection. The concentration in the blood t hours later is modelled by C(t) = 12e^(−0.2t) mg per litre. Figure 6 shows the curve.
The half-life is the time for the level to halve. Solve e^(−0.2t) = ½: t = ln 2 / 0.2 = 3.47 hours. The striking thing about exponential decay is that this does not depend on the starting level: from 12 to 6 takes 3.47 hours, and from 6 to 3 takes another 3.47 hours, which is why 3 mg/L is reached at 2 × 3.47 = 6.93 hours. In the same way, a quantity growing as e^(kt) has a doubling time of ln 2 / k.
On Paper 2 you can solve C(t) = 3 by intersecting y = 12e^(−0.2x) with y = 3 on the GDC, which gives the same 6.93. On Paper 1 you would be asked for the exact answer, 5 ln 4.
A word on "exponential". In everyday speech "exponential growth" often just means "fast". Mathematically it means growth by a constant percentage per unit time, and it can look slow at first: a quantity growing 3% a year takes about 23 years to double. What makes it remarkable is that it never stops speeding up, not that it starts fast. The guide invites you to ask whether the popular phrase is a misleading use of a mathematical term; used carelessly, it usually is. A real population cannot grow exponentially for ever either: food and space run out, so an exponential model is only valid over a limited domain.
8Where marks are lost
Allowing a logarithm of zero or a negative number. ln(2x − 6) needs 2x − 6 > 0. State the domain before anything else, and reject solutions outside it.
Giving the logarithm a horizontal asymptote. ln x keeps growing, slowly, with no upper limit. Its only asymptote is vertical.
Forgetting the asymptote moves. y = 2e⁻ˣ + 3 has asymptote y = 3, not y = 0, and range y > 3.
Writing an asymptote as a number. Write y = 3 and x = 3, not "3".
Mixing up the intercepts. aˣ passes through (0, 1); logₐ x passes through (1, 0).
Undoing ln by dividing. ln(2y − 6) = x does not give 2y − 6 = x / ln. Take e to the power of both sides: 2y − 6 = eˣ.
Rounding the rate constant too early. Using k = 0.058 instead of ln 1.06 = 0.05827… can move a later answer off the mark scheme. Keep exact or stored values.
Using the model outside its domain. Negative times, or times far beyond the data, are not what the model describes.
9Work it right
- For y = A·e^(kx) + c: asymptote y = c, y-intercept (0, A + c), growth if k > 0, decay if k < 0; range y > c when A > 0.
- For y = ln(expression): domain from expression > 0, vertical asymptote where expression = 0, x-intercept where expression = 1.
- Sketch exponentials through (0, 1) and logs through (1, 0) (before any transformation), with the asymptote dashed and labelled as an equation.
- To sketch an inverse, reflect in y = x: intercepts swap, asymptotes swap, domain and range swap.
- To find an inverse algebraically: swap x and y; undo eˣ with ln and ln with e to the power.
- Simplify with ln(eˣ) = x and e^(ln x) = x; convert aˣ to e^(x ln a) when a base-e form is wanted.
- For models: half-life or doubling time is ln 2 / |k|; give exact answers on Paper 1, 3 s.f. on Paper 2, with units.
10Try it
Marks in brackets. Q1 to Q3 are Paper 1 style, no calculator. Q4 and Q5 are Paper 2 style, with a GDC.
Q1. Let f(x) = eˣ − 4, for x ∈ ℝ.
(a) Write down the y-intercept of the graph of f. 1 mark
(b) Find the exact x-intercept. 2 marks
(c) Write down the equation of the horizontal asymptote and the range of f. 2 marks
Q2. Let g(x) = ln(x + 3) − 1, for x > −3.
(a) Write down the equation of the vertical asymptote of the graph of g. 1 mark
(b) Find the exact coordinates of the point where the graph of g meets the x-axis. 2 marks
(c) Find g⁻¹(x). 3 marks
(d) State the range of g⁻¹. 1 mark
Q3. (a) Find the exact value of e^(2 ln 3). 2 marks
(b) Simplify log₂(8ˣ). 1 mark
(c) Write 5ˣ in the form e^(kx), giving the exact value of k. 2 marks
Q4. The number of birds in a colony t years after a survey is modelled by P(t) = 800e^(0.035t).
(a) Find the number of birds after 10 years. 2 marks
(b) Find the time it takes for the number of birds to double. 3 marks
(c) The model can be written P(t) = 800 × bᵗ. Find b, and hence the percentage increase in the population each year. 2 marks
Q5. A cup of tea cools in a room. Its temperature, in °C, t minutes after it is poured is T(t) = 22 + 68e^(−0.04t).
(a) Write down the temperature of the tea when it is poured. 1 mark
(b) Write down the equation of the horizontal asymptote of the graph of T, and state what it represents. 2 marks
(c) Find the time taken for the tea to cool to 50 °C. 3 marks
11In one breath
An exponential y = aˣ (a > 0, a ≠ 1) multiplies by a for every step of 1 in x: through (0, 1), asymptote y = 0, range y > 0, growing if a > 1 and decaying if 0 < a < 1. The base e ≈ 2.718 comes from continuous compounding and is the base of almost every model; in y = Ae^(kx) + c the asymptote is y = c. The logarithm logₐ x is the inverse of aˣ, and ln x the inverse of eˣ, so their graphs are reflections in y = x: through (1, 0), vertical asymptote x = 0, domain x > 0, no horizontal asymptote. They undo each other, logₐ aˣ = x = a^(logₐ x), and every exponential can be written in base e, aˣ = e^(x ln a). For a transformed log, the inside must be positive; for an inverse, swap, then undo ln with e-to-the-power and e with ln, and watch the asymptotes, intercepts, domain and range swap. In a model, half-life and doubling time are ln 2 / |k|, the same whatever the starting amount.
Answers
Q1. (a) f(0) = 1 − 4 = −3, so (0, −3). A1.
(b) eˣ − 4 = 0, so eˣ = 4 and x = ln 4. (ln 4, 0). M1 for setting f(x) = 0 and taking ln, A1 for ln 4 (or 2 ln 2). A decimal 1.39 scores A0 since exact was asked for.
(c) y = −4, and the range is f(x) > −4. A1 for the asymptote as an equation, A1 for the range with a strict inequality.
Q2. (a) x = −3. A1.
(b) ln(x + 3) − 1 = 0, so ln(x + 3) = 1, so x + 3 = e and x = e − 3. (e − 3, 0). M1 for ln(x + 3) = 1 leading to x + 3 = e, A1 for the point.
(c)
M1 for swapping x and y, M1 for taking e to the power of both sides, A1 for e^(x+1) − 3.
(d) g⁻¹(x) > −3, the domain of g. A1.
Q3. (a) 2 ln 3 = ln 9, so e^(2 ln 3) = e^(ln 9) = 9. M1 for using the power law, A1 for 9.
(b) log₂(8ˣ) = log₂(2^(3x)) = 3x. A1.
(c) Using aˣ = e^(x ln a), 5ˣ = e^(x ln 5), so k = ln 5. M1 for the identity or for writing 5 = e^(ln 5), A1 for k = ln 5.
Q4. (a) P(10) = 800e^(0.35) = 1135.25…, so about 1135 birds. M1 for substituting t = 10, A1 for 1135. Accept 1140 to 3 s.f.; a count may reasonably be given as a whole number.
(b) 800e^(0.035t) = 1600, so e^(0.035t) = 2, so t = ln 2 / 0.035 = 19.8 years (3 s.f.). M1 for setting P = 1600 or e^(0.035t) = 2, M1 for taking ln (or using the GDC intersect), A1 for 19.8.
(c) b = e^(0.035) = 1.0356…, so the population grows by about 3.56% a year. A1 for b = 1.04 (1.0356), A1 for 3.56%.
Q5. (a) T(0) = 22 + 68 = 90 °C. A1.
(b) T = 22. As t grows, e^(−0.04t) → 0, so the temperature approaches 22 °C: the temperature of the room. A1 for the equation, R1 for interpreting it as room temperature.
(c) 22 + 68e^(−0.04t) = 50, so e^(−0.04t) = 28/68, so t = ln(68/28) / 0.04 = 22.2 minutes (3 s.f.). M1 for setting T = 50, M1 for isolating the exponential and taking ln (or GDC intersect), A1 for 22.2.
Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 2.9 Exponential and logarithmic functions. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.