Sketch exponential and logarithmic graphs with their asymptotes and intercepts, use logarithms as the inverse of exponentials, and model growth and decay with N = N₀e^(kt), half-life and doubling time.
IB Mathematics: Analysis and Approaches
Part of 2 Functions
SL and HL
Key terms introduced here
Each is in the Maths AA glossary, with every other term in the subject.
Compound interest in the limit where the number of compounding periods per year increases without bound. A principal P at nominal annual rate r grows to A=Pert after t
Notes on 2.9 Exponential and logarithmic functions
26 min readLast reviewed
Questions on 2.9
112 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Question 1 · AA-0036515 marks
Let f(x)=esinx, for x∈R
Try a quick-fire question
One of 34 short multiple-choice questions on 2.9. Pick an answer to see why it's right or wrong.
Which expression is equal to 5x for all real x?
From the formula booklet
The entries of the mathematics: analysis and approaches formula booklet that 2.9 uses. Each opens in the explained booklet.
Decrease in which a quantity is multiplied by the same factor between 0 and 1 over each equal time interval, as in N=N0ekt with k<0. The time taken to halve, ∣k∣ln2, is the half-life.
A function of the form f(x)=ax, where the base a is a positive constant and a=1, so that the variable is in the exponent. The natural exponential function is f(x)=ex.
Growth in which a quantity is multiplied by the same factor greater than 1 over each equal time interval, as in N=N0ekt with k>0. The time taken to double, kln2, is the doubling time.
A function of the form f(x)=logax, x>0, where a>0 and a=1. It is the inverse of the exponential function ax; with base e it is lnx.
and transformed exponentials such as
y=kax+c
and
y=ka−x
, stating the asymptote and intercepts.
Determine whether an exponential function shows growth or decay, and write ax in the form exlna.
Sketch the graphs of y=logax and y=lnx and state their domain, range and asymptote.
Explain why the logarithmic function is the inverse of the exponential function, and find inverses of exponential and logarithmic functions.
Use the model N=N0ekt to describe exponential growth and decay, and find half-lives and doubling times.
Calculate amounts under continuous compounding.
Interpret the parameters, asymptotes and limitations of exponential models in context.
Some quantities change by a fixed amount in each time interval; others change by a fixed percentage. A bacterial colony that grows by 30% every hour, money that earns 5% interest a year and a radioactive sample that loses half of its atoms every 5730 years all change by the same factor in equal times. Functions in which the variable is an exponent, the exponential functions, describe this kind of change, and their inverses, the logarithmic functions, answer the question "how long until…?".
Exponential change starts slowly and then becomes very rapid (or, for decay, falls quickly and then levels off), which is why it is often underestimated. Recognising the shapes of exponential and logarithmic graphs, and the meaning of each parameter in an exponential model, is the basis for work on growth and decay throughout science, economics and later in calculus.
Exponential functions
Definition
In a power such as x2 the base varies and the exponent is fixed. In an exponential function the base is fixed and the exponent varies.
The restrictions on the base keep the exponential function defined and interesting for every real x. A negative base fails for many inputs: (−4)1/2=−4 is not a real number. The base a=1 gives 1x=1 for all x, which is a constant function, and a=0 gives 0x, which is undefined for x≤0.
A table of values for y=2x shows the characteristic pattern: each step of 1 in x multiplies y by 2.
x
−3
−2
−1
0
1
2
3
4
5
2x
81
41
Adding a constant to the input multiplies the output by a constant, which is the defining property of exponential change. In a linear function, equal steps in x add the same amount to y; in an exponential function, equal steps in x multiply y by the same factor.
The graph of y = a^x when a > 1
The graph of y=ax for a>1 has these key features.
y-intercept (0,1), because a0=1 for every base. The graph also passes through (1,a).
Horizontal asymptote y=0. As x→−∞, ax→0: for example, 2−10=10241
Increasing everywhere, and increasing ever more steeply: as x→∞, ax→∞.
Domainx∈R and rangey>0. There is no x-intercept, because ax is never 0.
The larger the base, the faster the graph rises for x>0 and the faster it approaches the asymptote for x<0. All the curves cross at (0,1).
y = 2ˣ
y = 3ˣ
y = (½)ˣ
Every graph y = aˣ passes through (0, 1) and has the asymptote y = 0. A larger base rises more steeply; y = (½)ˣ is the reflection of y = 2ˣ in the y-axis.
Growth and decay
When 0<a<1, the function y=ax decreases. For example, (21)x halves with every step of 1 in x. Since (21)x=2x1=2−x, the graph of y=(21)x is the reflection of y=2x in the y-axis. It still passes through (0,1) and still has the asymptote y=0, but now the curve approaches the asymptote as x→∞.
So the base decides between exponential growth (a>1) and exponential decay (0<a<1), and a negative sign in the exponent turns growth into decay: 5−x=(51)x is a decay function.
The natural exponential function
One base is used far more than any other: Euler's number e=2.71828… (see 1.5). The function f(x)=ex is the natural exponential function, and it appears on a graphic display calculator (GDC) as a dedicated key. Since 2<e<3, the graph of y=ex lies between y=2x and y=3x, with the same intercept (0,1) and asymptote y=0.
What makes e special is the gradient of its graph. The gradient of y=ex at any point is equal to the y-coordinate of that point, so at (0,1) the gradient is exactly 1. This property, studied in 5.6, makes ex the simplest exponential function to differentiate and integrate, and the natural choice for modelling continuous change.
y = eˣ
y = e⁻ˣ
y = x + 1
The graph of y = eˣ has gradient 1 where it crosses the y-axis, so the line y = x + 1 touches it at (0, 1). The decay curve y = e⁻ˣ is its reflection in the y-axis.
Writing any exponential with base e
Every positive number can be written as a power of e: since lna is the power of e that gives a, a=elna. Raising both sides to the power x gives a result that is in the formula booklet:
ax=exlna
So every exponential function is the natural exponential function with a horizontal stretch: ax=ekx with k=lna. Growth and decay can then be read from the sign of k: if a>1 then lna>0 (growth), and if 0<a<1 then lna<0 (decay). This equivalence is why scientists write almost every exponential model in base e.
Transformed exponential functions
Exponential models rarely have the plain form ax. Functions such as f(x)=kax+c and f(x)=ka−x+c are transformations of y=ax (see 2.11), and their key features follow from those of the basic graph.
Feature
y=ax
y=kax+c
Horizontal asymptote
y=0
y=c
y-intercept
(0,1)
(0,k+c)
Range (k>0)
y>0
y>c
Range (k<0)
not applicable
y<c
The constant c moves the asymptote, because kax tends to 0 and so f(x) tends to c. The sign of k decides whether the curve lies above the asymptote (k>0) or below it (k<0). The x-intercept, if there is one, is found by solving f(x)=0 with logarithms.
A graph's features also allow the constants in a model to be found. The asymptote gives c directly, and the intercept or another point gives k.
Logarithmic functions
The logarithm as the inverse of the exponential
The function f(x)=ax (a>0, a=1) is one-to-one, since it is always increasing or always decreasing, so it has an inverse function. To find it, write y=ax and swap x and y: x=ay. By the definition of a logarithm, x=ay means y=logax. So
f(x)=ax⟺f−1(x)=logax
For base e, the inverse of ex is the natural logarithm lnx.
Because the two functions are inverses, applying one after the other returns the starting value. This gives the identities in the formula booklet:
logaax=xandalogax=x
The first holds for every real x; the second only for x>0, because logax is defined only for positive x. With base e: lnex=x for all x, and elnx=x for x>0.
Key features of the graph of y = log_a x
Reflecting y=ax in the line y=x swaps the roles of x and y, so every feature of the exponential graph has a partner on the logarithmic function's graph.
Feature
y=ax (a>1)
y=logax (a>1)
Domain
x∈R
x>0
Range
y>0
y∈R
Asymptote
horizontal, y=0
vertical, x=0
Intercept
(0,1)
(1,0)
Another point
(1,a)
(a,1)
Behaviour
increasing, ever more steeply
increasing, ever more slowly
The graph of y=logax for a>1 rises without limit, but very slowly. For example, log10x reaches only 6 when x=1000000. As x→0+, logax→−∞, so the y-axis is a vertical asymptote.
y = eˣ
y = ln x
y = x
The graphs of y = eˣ and y = ln x are reflections of each other in y = x. The horizontal asymptote y = 0 of the exponential becomes the vertical asymptote x = 0 of the logarithm.
Different bases give graphs with the same intercept (1,0) and asymptote x=0. A larger base gives a flatter curve for x>1: log10x<lnx<log2x for every x>1. When 0<a<1, the function logax is decreasing, as the reflection of a decaying exponential, but such bases are rarely used.
y = log₂ x
y = ln x
y = log₁₀ x
Every graph y = logₐ x passes through (1, 0) and (a, 1) and has the asymptote x = 0. The larger the base, the more slowly the graph rises.
Transformed logarithmic functions
Functions such as y=ln(x−2)+1 and y=log3(x+9) are transformations of the basic logarithmic graph. The most important feature to find first is the domain: the expression inside the logarithm must be positive. The vertical asymptote is where that expression equals zero.
When the variable has a negative coefficient inside the logarithm, as in ln(3−2x), the domain lies to the left of the asymptote. Here 3−2x>0 gives x<1.5, and the graph is a decreasing curve with vertical asymptote x=1.5.
Finding inverses of exponential and logarithmic functions
Since exponentials and logarithms undo each other, the inverse of a transformed exponential function is a logarithmic function, and the inverse of a transformed logarithmic function is an exponential one. The method is the one used for every inverse (see 2.5): swap x and y, then isolate the exponential or logarithmic part before applying its inverse.
The reverse direction works the same way. For g(x)=ln(x+4)−1, x>−4: swap to get x=ln(y+4)−1, so x+1=ln(y+4), ex+1=y+4 and g−1(x)=ex+1−4, x∈R. The vertical asymptote x=−4 of g becomes the horizontal asymptote y=−4 of g−1.
Exponential models
The model N = N₀e^(kt)
A quantity N that grows or decays exponentially over time t is modelled by
N=N0ekt
where N0 and k are constants with these meanings.
N0 is the initial value: when t=0, N=N0e0=N0.
k is the growth constant (or rate constant). If k>0 the model shows exponential growth; if k<0, exponential decay.
In each unit of time, N is multiplied by ek. So the model can also be written N=N0at
The value of k is usually found from one further measurement, by substituting it into the model and solving with natural logarithms.
Doubling time and half-life
A feature of exponential change is that the time taken to multiply by a given factor is always the same, wherever you start. A colony that doubles from 500 to 1000 in some time T also doubles from 1000 to 2000 in the same time T. This time can be found from k.
For growth, solve N0ekT=2N0: the N0 cancels, ekT=2, and so
doubling time T=kln2
For decay (k<0), solve N0ekT=21N0: ekT=21, so kT=ln21=−ln2 and
half-life T=−kln2=∣k∣ln2
These formulas are not in the formula booklet, and the derivation takes only a line, so many people prefer to set up ekT=2 or ekT=21 each time. In terms of the half-life T, a decay model can also be written N=N0(21)t/T, which shows directly that N halves every T units of time.
For the bacteria in the last example, the doubling time is 0.29182…ln2≈2.38 hours.
N = 100e^(−0.1386t)
A decay with half-life 5 units, k = −ln 2 / 5 ≈ −0.1386. Every 5 units of time the amount halves, whatever its current value.
Radioactive decay is the classic example of a constant half-life. Carbon-14 is formed in the atmosphere and absorbed by living things; after an organism dies, the carbon-14 in it decays with a half-life of about 5730 years. Measuring the fraction that remains in a sample gives its age, a method called radiocarbon dating.
Continuous compounding
When interest is compounded n times a year at a nominal annual rate r, a principal P grows to P(1+nr)nt after t years (see 1.4). Compounding more often gives slightly more interest, but the amount does not grow without limit. As n→∞, the amount approaches Pert, which is the definition of continuous compounding.
The table shows the value after 10 years of USD 1000 invested at a nominal annual rate of 5% with different compounding frequencies.
Compounding
n
Value after 10 years (USD)
Yearly
1
1628.89
Quarterly
4
1643.62
Monthly
12
1647.01
Daily
365
1648.66
Continuously
→∞
1000e0.5=1648.72
Moving from yearly to monthly compounding adds about USD 18, but moving from daily to continuous compounding adds only 6 cents: the values approach a limit. Continuous compounding is the model N=N0ekt with N0=P and k=r, so all the methods for growth models apply.
Models of the form y = ke^(−at) + c
When a quantity decays towards a value other than zero, the model has the form y=ke−at+c, with horizontal asymptote y=c. A familiar case is a hot drink cooling in a room. The temperature does not fall to 0 °C; it approaches the room temperature. Newton's law of cooling gives the model
T=Troom+(T0−Troom)e−kt,k>0
in which the difference between the drink's temperature and the room temperature decays exponentially. Here T0 is the starting temperature and the asymptote T=Troom is the long-term temperature.
Logarithmic scales
When a quantity varies over many powers of 10, it is often measured on a logarithmic scale, where each step of 1 means multiplication by a fixed factor. The moment magnitude scale for earthquakes is an example. The magnitude Mw is calculated from the seismic moment M0 (in newton metres), a measure of the size of the fault slip, by
Mw=32(log10M0−9.1)
This is a logarithmic function of M0, so equal steps in magnitude correspond to equal factors in M0. An increase of 1 in Mw means log10M0 increases by 23, so M0 is multiplied by 101.5≈31.6.
Exam-style questions on exponential and logarithmic functions
The first question is a typical non-calculator question on graphs and inverses; the second is a growth and decay model with a GDC.
Self-check
To do:
I can sketch y=ax for a>1 and 0<a<1, and y=ex, with the intercept and asymptote labelled.
To do:
I can find the asymptote, intercepts and range of y=kax+c and similar transformed exponentials.
To do:
I can rewrite ax as exlna and use the sign of k in ekx
To do:
I can sketch y=logax and transformed logarithmic graphs, stating the domain and vertical asymptote.
To do:
I can explain why logax is the inverse of ax, and find inverses of exponential and logarithmic functions.
To do:
I can find N0 and k in N=N0ekt
To do:
I can find a doubling time or half-life, and use a given half-life to find k.
To do:
I can calculate amounts with continuous compounding using A=Pert.
.
(a)
Solve the equation f(x)=2, for 0≤x≤2π.
[3]3 marks
Markscheme (a)
sinx=ln2(M1)
x=0.766(0.765846…)A1
x=2.38(2.37574…)A1
Note: Accept a graphical solution from a GDC.
(b)
Find f′(x).
[2]2 marks
Markscheme (b)
f′(x)=cosxesinx
(c)
Hence, find the exact coordinates of the local maximum point and the local minimum point on the graph of f, for 0≤x≤2π.
[3]3 marks
Markscheme (c)
cosx=0, since esinx>0
(d)
Find the area of the region bounded by the curve y=f(x), the lines x=0 and x=2π, and the x
(e)
Show that f(x)f(x+π)=1.
[2]2 marks
Markscheme (e)
sin(x+π)=−sinx
(f)
Hence, solve the equation f(x)=2f(x+π), for 0≤x≤2π.
[3]3 marks
Markscheme (f)
Question 2 · AA-00469HL only · 9 marks
A continuous random variable X has probability density function
. The values are always positive, so the curve approaches the
x
-axis from above without reaching it.
, so
k=ln5≈1.61
(1.6094…).
(b) 0.8x=exln0.8, so k=ln0.8≈−0.223. Since k<0 (equivalently, 0<0.8<1), the function shows decay.
(c) Use the laws of exponents in reverse: e0.4x=(e0.4)x, so a=e0.4≈1.49 (1.4918…). Each increase of 1 in x multiplies y by about 1.49, an increase of about 49%.
.
(b) y-intercept: f(0)=3−2e0=3−2=1, giving (0,1).
x-intercept: solve 3−2e−x=0.
e−x=23⟹−x=ln23⟹x=−ln23=ln32
The x-intercept is (ln32,0), about (−0.405,0).
(c) Here k=−2<0, so the curve lies below the asymptote y=3. As x decreases, e−x grows rapidly, so f(x)→−∞. The graph increases from left to right and levels off towards y=3. The range is y<3.
y = 3 − 2e⁻ˣ
The curve rises towards its asymptote y = 3 from below and never reaches it, so the range is y < 3.
. At
(0,5)
:
5=k×20+2=k+2
, so
k=3
.
(b) Solve 3×2x+2=26:
3×2x=24⟹2x=8⟹x=3
-intercept:
g(0)=log39=2
, since
32=9
. The point is
(0,2)
.
x-intercept: log3(x+9)=0 means x+9=30=1, so x=−8. The point is (−8,0).
(c) The graph is y=log3x translated 9 units left. It rises steeply from the asymptote, crosses the x-axis at (−8,0) and the y-axis at (0,2), then continues to rise slowly.
y = log₃(x + 9)
The graph exists only for x > −9 and falls without limit as x approaches the asymptote x = −9 from the right.
. The range is
y>3
; the horizontal asymptote is
y=3
.
(b) Write y=2ex−1+3 and swap x and y:
x2x−3y−1y=2ey−1+3=ey−1=ln(2x−3)=1+ln(2x−3)
So f−1(x)=1+ln(2x−3). Its domain is the range of f, x>3, which is also exactly where the argument 2x−3 is positive.
Check: f(1)=2e0+3=5, and f−1(5)=1+ln1=1.
with
a=ek
, the form used for discrete percentage changes in 1.3 and 1.4. A growth constant of
k=0.05
per year, for example, multiplies the quantity by
e0.05≈1.0513
each year, an increase of about 5.13%.
:
1200=500e3k⟹e3k=2.4⟹3k=ln2.4⟹k=3ln2.4
So k=31ln2.4≈0.292 (0.291 82…).
(b) N=500e8k=500e38ln2.4≈5163. Store the unrounded value of k; using k=0.292 would give 5170. The model predicts about 5160 cells.
(c) Solve 500ekt=10000:
ekt=20⟹t=kln20=ln2.43ln20≈10.3 hours
So k=−5730ln2, which is about −1.21×10−4.
(b) Solve N=0.35N0:
ekt=0.35⟹t=kln0.35=−ln25730ln0.35≈8680
The wood is about 8680 years old. As a check, 35% lies between 50% (one half-life, 5730 years) and 25% (two half-lives, 11 460 years), and the answer lies between these ages.
, a rate of about 6.93% per year.
(b) T=20+70e−10k≈55.7 °C. (Exactly, e−10k=(75)2=4925, so T=20+7250=55.71…)
(c) Solve 20+70e−kt=40: e−kt=72, so t=kln3.5≈18.6 minutes.
(d) As t→∞, e−kt→0 and T→20. The asymptote T=20 means the tea cools towards room temperature but, according to the model, never quite reaches it.
T = 20 + 70e^(−0.0673t)
The tea cools quickly at first, while it is much hotter than the room, then more and more slowly as it approaches the room temperature of 20 °C.
means
2x−4=e0=1
, so
x=2.5
. The
x
-intercept is
(2.5,0)
.
(c) Swap x and y in y=ln(2x−4):
x=ln(2y−4)⟹ex=2y−4⟹y=2ex+4
So f−1(x)=2ex+4, x∈R.
(d) The range of f−1 is the domain of f: y>2. The horizontal asymptote is y=2, since 2ex→0 as x→−∞.
(e) The graph of f−1 has y-intercept f−1(0)=21+4=2.5, so it passes through (0,2.5), the reflection of (2.5,0) in y=x.
y = f(x)
y = f⁻¹(x)
y = x
The logarithmic graph and its exponential inverse are reflections in y = x; the vertical asymptote x = 2 of f matches the horizontal asymptote y = 2 of its inverse.
So k=0.0864 to 3 significant figures. In a "show that" question, give the unrounded value before the rounded one.
(b) A=400e−0.086427…×30≈29.9 MBq. Use the stored value of k from part (a), not 0.0864.
(c) Solve 400e−kt=5 with the GDC or by logarithms: e−kt=801, so t=kln80≈50.7 days. The activity is still above 5 MBq after 50 days, so the sample can be disposed of after 51 complete days.
(d) The graph starts at (0,400), halves every 8.02 days and approaches the asymptote A=0.
A = 400e^(−0.0864t)
The activity halves every 8.02 days and approaches zero but never reaches it.
to decide between growth and decay.
from data, and use the model to make predictions.
A2
Note: Award A1 for a correct expression with one error, for example ecosx in place of esinx.