Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.9 · SL and HL
Exponential and logarithmic functions
What do the graphs of ax, ex, logax and lnx look like, and why is each exponential the mirror image of a logarithm?
What you will learn
Know the graphs of a^x, e^x, loga x and ln x, with their intercepts, asymptotes, domains and ranges
Understand that exponential and logarithmic functions are inverses, so their graphs reflect in y = x
Know the identities that turn any exponential into base e and let a log and a power cancel
Understand how exponential models describe growth and decay, and what their constants mean
You must be able to
Find the inverse of an exponential or logarithmic function and state its domain and range
Sketch a transformed exponential or logarithm, labelling the intercepts and the asymptote as an equation
Calculate a time, a value, a half-life or a doubling time from a growth or decay model
Find an unknown constant in a model from a point, two data values or a half-life
Write down exact values such as e to the power ln 5, and write a^x in the form e^(kx)
Interpret the asymptote of a model in context, for example as a room temperature
In the exam. Paper 1: "write down the equation of the asymptote", "find f−1(x)" for an exponential or logarithmic f, "state the domain", and exact simplifications such as eln5 (4 to 7 marks across a question). Paper 2: growth and decay models, where you find a value, a time or a rate with the GDC (5 to 8 marks). Most marks go to find and show that parts about a constant or a time, then state and sketch parts about asymptotes.
1Exponential functions y=ax
Plotted at rational inputs (1.5), ax joins into one smooth curve. This also gives irrational powers such as a2 a value.
Example: a table for y=2x.
x
−3
−2
−1
0
1
2
3
2x
81
41
21
1
2
4
8
Each step right doubles the output. Each step left halves it.
Halving never reaches zero, so on the left the graph approaches the x-axis without touching it. So y=0 is a horizontal asymptote.
Figure 1(a) shows y=2x and y=3x.
Figure 1 · Exponential functions y = aˣ
Every exponential y=ax shares these:
Feature
For y=ax, a>0, a=1
y-intercept
(0,1), since a0=1
Another easy point
(1,a)
Horizontal asymptote
y=0
Domain
x∈R
Range
y>0
a>1
increasing: exponential growth
0<a<1
decreasing: exponential decay
Why a>0 and a=1?
With a=1, 1x=1 for every x: a flat line, not a growth curve.
With a negative base, many inputs fail: (−4)1/2=−4 is not real.
Decay is growth backwards
Figure 1(b) shows y=(21)x. Since (21)x=2−x, its graph is that of 2x 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, 3x>2x. For x<0, 3x<2x.
The two curves cross only at (0,1).
Finding the base from a point
Suppose the graph of y=ax passes through (23,125). Then a3/2=125. Raise both sides to the power 32: a=1252/3=52=25.
The graph also passes through (1,25). The inverse is f−1(x)=log25x, so f−1(5)=21, because 251/2=5.
Equal bases. To solve 8x=32, write 23x=25, so x=35. Unmatched bases need logarithms (section 5).
2Transforming an exponential graph
A general exponential has the form y=pax−h+k. Each constant does one of the transformation jobs of 2.11:
k shifts the graph up by k, so the asymptote moves to y=k.
h shifts it right by h. This does not move the asymptote, because a horizontal shift cannot move a horizontal line.
p stretches it vertically by factor p, and flips it over the x-axis if p<0.
Replacing x by −x reflects it in the y-axis.
Models are usually written in base e, as y=Aekx+c. Then:
The asymptote is y=c.
The range is y>c when A>0.
The y-intercept is A+c.
k>0 means growth, k<0 decay.
If A<0, the graph is flipped about its asymptote and the range becomes y<c.
Quick readings:
y=3x+2 is 3x moved 2 left. The asymptote is still y=0. The y-intercept is (0,9).
y=−4x has range y<0.
y=5−4e−x/2 has A=−4, asymptote y=5, y-intercept (0,1) and range y<5. It rises towards 5, like a capacitor charging to its supply voltage.
Figure 2 shows y=2e−x+3. The asymptote is y=3, the y-intercept is (0,2+3)=(0,5), and the range is y>3. A cooling cup of coffee follows this shape, with c the room temperature.
Figure 2 · y = 2e⁻ˣ + 3: the asymptote moves with the constant
3The number e and continuous growth
e = 2.71828…, a constant like π. It appears when growth is compounded more and more often.
Example: invest 1 unit at 100% interest a year. Compounded once, you have 2. Compounded n times a year, you have (1+n1)n, which settles towards e as n grows:
Monthly (n=12) gives 2.613.
Daily gives 2.7146.
A million times gives 2.71828.
So e is what 1 becomes after a year of continuous growth at 100% (the limit of the compound interest of 1.4).
A sum P at annual rate r, compounded continuously, is worth Pert after t years. Compare 1500 at 4% for 10 years:
annual compounding: 1500×1.0410=2220.37continuous: 1500e0.4=2237.74slightly more, since interest earns interest at every instant
The exponential functionf(x)=ex has all the features of section 2. It passes through (0,1), has asymptote y=0 and range y>0. It lies between 2x and 3x, since 2<e<3.
In calculus (5.6), the gradient of y=ex at any point equals its y-value. That is why ex, not 2x or 10x, is the base of almost every model.
4Logarithmic functions y=logax
The logarithmic functionf(x)=logax asks "to what power must I raise a to get x?" Examples:
log28=3, because 23=8.
log221=−1, because 2−1=21.
log93=21, because 91/2=3.
The natural logarithmlnx is log base e, so lne=1 and ln1=0.
The logarithm undoes the exponential: if y=ax then x=logay. So logax is the inverse function of ax, and lnx is the inverse of ex.
An inverse graph is the reflection in y=x (2.2). So each feature of the exponential reappears with x and y swapped. Figure 3 shows y=ex and y=lnx.
Figure 3 · y = eˣ and y = ln x are reflections in y = x
Exponential y=ax
Logarithm y=logax
domain x∈R
domain x>0
range y>0
range y∈R
y-intercept (0,1)
x-intercept (1,0)
passes through (1,a)
passes through (a,1)
horizontal asymptote y=0
vertical asymptote x=0
logax and ax are inverse functions. Their graphs are reflections of each other in y=x, and logax only exists for x>0.
The restriction x>0 costs marks. No power of a gives 0 or a negative number, so ln0 and ln(−3) do not exist. The graph has no points left of the y-axis.
The logarithm grows very slowly. lnx passes 1 at x=e≈2.72 and 2 at x=e2≈7.39. It only reaches 10 at x≈22026. It grows without limit and has no horizontal asymptote, a common wrong guess.
Different bases
Figure 4 shows log2x, lnx and log10x.
All pass through (1,0), since a0=1 for every base.
All have x=0 as a vertical asymptote.
Each passes through (a,1), which tells the curves apart: log2x reaches 1 at x=2, lnx at x=e, log10x at x=10.
For a base between 0 and 1 the log graph decreases, but such bases are rare in exams. A base with no calculator key uses logax=lnalnx.
Figure 4 · Logarithms to different bases
5The identities that link them
Inverses composed in either order give the identity function (2.5). The formula booklet states it:
loga(ax)=xfor any real xalogax=xfor x>0ln(ex)=x,andelnx=xthe case a=e
These simplify at a glance: eln7=7, ln(e3x)=3x, 5log59=9, log2(2x+1)=x+1. With the laws of logarithms from 1.7, you can first bring a coefficient inside:
The second booklet identity turns any exponential into base e:
ax=exlna
Why: by the identity above, a=elna. Raise to the power x: ax=(elna)x=exlna.
2x=e0.693x.
0.9t=e−0.105t, since ln0.9=−0.1054 to 4 s.f. The exponent is negative, as it should be for decay.
A growth factor model, such as fish stocks rising 7% a year (1.07t), becomes the sciences' form ekt with k=ln1.07=0.0677.
Every exponential is ex with a horizontal stretch, so they share one shape.
Solving ax=b. Take logarithms of both sides. 5x=40 gives x=log540=ln5ln40=2.29. Exact form: log540.
6Transformed logarithms, and finding inverses
A logarithm takes only a positive input. So the domain comes from setting the inside of the log greater than zero. The vertical asymptote is where the inside equals zero.
Take f(x)=ln(2x−6).
domain: 2x−6>0,sox>3vertical asymptote: x=3where 2x−6=0x-intercept: ln(2x−6)=0,so2x−6=1,x=3.5ln1=0no y-intercept, since x=0 is not in the domain
Now the inverse (2.5). The step that undoes ln is "take e to the power of both sides".
x=ln(2y−6)swap x and yex=2y−6e to the power of both sidesy=2ex+6f−1(x)=2ex+6,x∈R
Figure 5 shows both. The vertical asymptote x=3 of f becomes the horizontal asymptote y=3 of f−1. The x-intercept (3.5,0) becomes the y-intercept (0,3.5).
Domain and range swap too: f−1 has domain R (the range of f) and range y>3 (the domain of f).
Figure 5 · f(x) = ln(2x − 6) and its inverse
The other direction uses ln as the undoing step. For g(x)=4e2x−1:
x=4e2y−1swape2y=4x+1isolate the exponential first2y=ln(4x+1)then take ln of both sidesg−1(x)=21ln(4x+1),x>−1
The asymptote y=−1 of g becomes the vertical asymptote x=−1 of g−1, so the domain is x>−1. Always isolate the exponential, or the log, before undoing it.
Reading a log graph from its transformations
y=pln(x−h)+k (or with loga) comes from y=lnx by:
a vertical stretch of factor p;
a shift of h to the right;
a shift of k up.
The vertical asymptote moves to x=h. The shift k cannot move a vertical line. The domain is x>h and the range is all of R. Take f(x)=2ln(x+4)−3, where h=−4:
To find an unknown constant, substitute a point and evaluate the log exactly. If h(x)=plog5(x+3) passes through (122,9): plog5125=9, so 3p=9 and p=3.
7Exponential models: growth and decay
An exponential model y=Aekt (or Abt) describes any quantity that changes by the same percentage in each equal time step, such as radioactive decay, a first-order reaction in chemistry or a growing culture.
With whole-number t, its values form a geometric sequence (1.3) with common ratio b=ek.
k>0 grows. k<0 decays.
The constant A is the value at t=0, because e0=1.
With an added constant, y=Aekt+c levels off at c, usually a room temperature or final voltage.
Example: 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.
Figure 6 · A drug leaving the blood: C(t) = 12e^(−0.2t)
The half-life = the time for the level to halve. Solve e−0.2t=21: t=0.2ln2=3.47 hours.
It does not depend on the starting level. From 12 to 6 takes 3.47 hours, and from 6 to 3 another 3.47. So 3mg/L is reached at 2×3.47=6.93 hours.
A quantity growing as ekt has a doubling time of kln2.
On Paper 2, C(t)=3 can also be solved by intersecting y=12e−0.2x with y=3 on the GDC. Paper 1 would ask for the exact answer, 5ln4.
Finding the constants from data. Substitute each given value to get one equation per unknown. Three cases cover almost every question.
Case 1: the starting value is given. A mould patch has area S=S0ekt after t days, in square centimetres. It starts at 40 and is 130 after 6 days.
S0=40t=0, e0=140e6k=130⇒e6k=3.25k=6ln3.25=0.196(3 s.f.)exact form 61ln3.25
Case 2: two values, neither at t=0. A model N=N0ekt gives N=300 at t=2 and N=480 at t=5. Divide one equation by the other, so N0 cancels:
N0e2kN0e5k=300480⇒e3k=1.6the ratio removes N0k=3ln1.6=0.1567N0=300e−2k=219back-substitute into the first equation
Case 3: a half-life T is given. Then e−kT=21, so k=Tln2. Keep k exact (or stored on the GDC) for later parts.
Percentage per period.b=ek. For e0.04t the yearly rise is e0.04−1=4.08%, not 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. It can look slow at first: 3% a year takes about 23.4 years to double.
What sets it apart is that it never stops speeding up, not that it starts fast. So the popular phrase often misuses a mathematical term (the guide's Aim 8 question).
No real population grows exponentially for ever, as food and space run out. A model is valid only over a limited domain.
Practice questions
31 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 2.9 Exponential and logarithmic functions