2.9 · SLPaper 1Paper 2

Exponential and logarithmic functions

In a minute

An such as 2x2^{x} or ex\mathrm{e}^{x} has the variable in the power, so it grows or decays by the same factor at every step. A such as log⁡2x\log_{2} x or ln⁡x\ln x undoes it, so the two graphs are mirror images in y=xy = x. Together they model interest, depreciation and anything that changes by a fixed percentage.

You'll be able to

  • Sketch y=axy = a^{x} and y=exy = \mathrm{e}^{x}, and state their , , intercept and .
  • Sketch y=log⁡axy = \log_{a} x and y=ln⁡xy = \ln x, and find the and asymptote of a log function.
  • Use ax=exln⁡aa^{x} = \mathrm{e}^{x\ln a} and log⁡aax=x=alog⁡ax\log_{a} a^{x} = x = a^{\log_{a} x} to rewrite expressions and solve equations.
  • Find the inverse of an exponential or log function, and explain why their graphs are reflections in y=xy = x.
  • Model and with exponential functions, and find when a value is reached.
Before you start3 quick questions on what this builds on
Check yourself
Write down the value of log⁡381\log_{3} 81.
Check yourself
Simplify (5x)2\left(5^{x}\right)^{2}.
Check yourself
The point (3,8)(3, 8) lies on the graph of y=f(x)y = f(x), and ff has an inverse. Which point lies on the graph of y=f−1(x)y = f^{-1}(x)?

Revise first: 1.5 Exponents and introductory logarithms, 1.7 Rational exponents and logarithm laws, 2.3 Graphs of functions and 2.5 Composite and inverse functions

Exponential functions and their graphs

Start with 11 and keep doubling: 1,2,4,8,16,…1, 2, 4, 8, 16, \ldots After xx doublings you have 2x2^{x}. Going backwards halves instead: 2−1=122^{-1} = \tfrac{1}{2} and 2−2=142^{-2} = \tfrac{1}{4}.

So on the graph of y=2xy = 2^{x}, each step of 11 to the right multiplies yy by 22. The halves to the left get tiny but never reach 00. This is an .

The base 11 is left out because 1x=11^{x} = 1 for every xx, which is just a flat line. Negative bases are left out because powers such as (−2)1/2(-2)^{1/2} are not real numbers.

One base matters more than any other: e=2.71828…\mathrm{e} = 2.71828\ldots, the number behind ln⁡\ln in 1.5. The function f(x)=exf(x) = \mathrm{e}^{x} is often called simply the exponential function.

The graphs of y equals 2 to the power x, y equals e to the power x, and y equals one half to the power x. All three pass through the point (0, 1) and approach the x-axis without touching it. yx (0, 1) asymptote y = 0 y = 2ˣ y = eˣ y = (½)ˣ all pass through (0, 1); none reaches the x-axis
Every graph y=axy = a^{x} crosses the yy-axis at (0,1)(0, 1), because a0=1a^{0} = 1.

A base between 00 and 11 gives decay. Since (12)x=2−x\left(\tfrac{1}{2}\right)^{x} = 2^{-x}, the graph of y=(12)xy = \left(\tfrac{1}{2}\right)^{x} is the graph of y=2xy = 2^{x} reflected in the yy-axis.

Worked exampleLet f(x)=(13)xf(x) = \left(\tfrac{1}{3}\right)^{x}, for x∈Rx \in \mathbb{R}. Find f(−2)f(-2), and describe the main features of the graph of y=f(x)y = f(x).

Try it first, then reveal one step at a time.

  1. A negative power means flip the fraction: f(−2)=(13)−2=32=9f(-2) = \left(\tfrac{1}{3}\right)^{-2} = 3^{2} = 9.
Check yourself
Each function has domain x∈Rx \in \mathbb{R}. Which one is decreasing?

Exam functions often add or multiply by a constant. To find the asymptote, ask what the function gets close to when the exponential part gets close to 00.

Worked exampleLet f(x)=6−2exf(x) = 6 - 2\mathrm{e}^{x}, for x∈Rx \in \mathbb{R}. Write down the equation of the horizontal asymptote of the graph of y=f(x)y = f(x), and find the exact coordinates of the point where the graph meets the xx-axis.

Try it first, then reveal one step at a time.

  1. As xx becomes very negative, ex\mathrm{e}^{x} gets closer and closer to 00. So f(x)f(x) gets close to 6−0=66 - 0 = 6, and the asymptote is y=6y = 6.
Check yourself
Let g(x)=2x+3g(x) = 2^{x} + 3, for x∈Rx \in \mathbb{R}. What is the range of gg?

Logarithmic functions and their graphs

In 1.5 you met logarithms: log⁡ax\log_{a} x is the power you raise aa to in order to get xx. For example, log⁡28=3\log_{2} 8 = 3 because 23=82^{3} = 8.

In the formula booklet
ax=b⇔x=log⁡ab,where a>0, b>0, a≠1a^{x} = b \Leftrightarrow x = \log_{a} b, \quad \text{where } a > 0,\ b > 0,\ a \ne 1

Drag the point along y=2xy = 2^{x} and watch its mirror image move along y=log⁡2xy = \log_{2} x. Then move the base slider below 11 to see a decreasing pair.

Inverse functions as a reflectionDrag the point or the sliders
−3−2−11234567−3−2−11234567y = aˣy = logₐxy = x (mirror)
2.00
1.0

P = (1.00, 2.00) on y = aˣ

Q = (2.00, 1.00) on y = logₐx

logₐ(2.00) = 1.00

a must be positive and not 1 (now 2).

Swapping x and y reflects the graph in the line y = x, so y = aˣ and y = logₐx are mirror images.

Reflecting swaps xx and yy, so every feature of y=axy = a^{x} swaps too.

With a base between 00 and 11, the log graph decreases instead. Its domain, intercept and asymptote stay the same.

The graphs of y equals log base 2 of x and y equals ln x. Both pass through the point (1, 0), rise slowly, and fall steeply towards the y-axis without touching it. yx (1, 0) asymptote x = 0 (2, 1) (e, 1) y = log₂x y = ln x both pass through (1, 0); neither reaches the y-axis
y=log⁡2xy = \log_{2} x passes through (2,1)(2, 1) and y=ln⁡xy = \ln x through (e,1)(\mathrm{e}, 1), because log⁡aa=1\log_{a} a = 1.
Worked exampleLet f(x)=log⁡10xf(x) = \log_{10} x, for x>0x > 0. Write down f−1(x)f^{-1}(x), and hence find f−1(−2)f^{-1}(-2).

Try it first, then reveal one step at a time.

  1. log⁡10x\log_{10} x and 10x10^{x} undo each other, so f−1(x)=10xf^{-1}(x) = 10^{x}.
Worked exampleLet f(x)=ln⁡(10−2x)f(x) = \ln(10 - 2x). Find the largest possible domain of ff, state the equation of the vertical asymptote of its graph, and find the coordinates of its xx-intercept.

Try it first, then reveal one step at a time.

  1. You can only take the log of a positive number, so 10−2x>010 - 2x > 0. This gives x<5x < 5, so the domain is x<5x < 5.
Check yourself
Find the largest possible domain of h(x)=ln⁡(3x+12)h(x) = \ln(3x + 12).

To find the inverse of a harder exponential or log function, use the method from 2.5. Write y=f(x)y = f(x), make xx the subject, then swap xx and yy. Logs undo exponentials, and exponentials undo logs.

Worked exampleLet f(x)=3e2xf(x) = 3\mathrm{e}^{2x}, for x∈Rx \in \mathbb{R}. Find f−1(x)f^{-1}(x) and state its domain.

Try it first, then reveal one step at a time.

  1. Write y=3e2xy = 3\mathrm{e}^{2x} and divide by 33: e2x=y3\mathrm{e}^{2x} = \tfrac{y}{3}.
Check yourself
Let g(x)=ln⁡(x+2)g(x) = \ln(x + 2), for x>−2x > -2. Find g−1(x)g^{-1}(x).

Changing the base and cancelling

Every positive number is a power of e\mathrm{e}. For example, eln⁡5=5\mathrm{e}^{\ln 5} = 5, because ln⁡5\ln 5 is the power of e\mathrm{e} that gives 55.

So any base aa can be written as eln⁡a\mathrm{e}^{\ln a}. The power law from 1.7 then gives ax=(eln⁡a)x=exln⁡aa^{x} = \left(\mathrm{e}^{\ln a}\right)^{x} = \mathrm{e}^{x\ln a}.

In the formula booklet
ax=exln⁡a,log⁡aax=x=alog⁡ax,where a,x>0, a≠1a^{x} = \mathrm{e}^{x\ln a}, \qquad \log_{a} a^{x} = x = a^{\log_{a} x}, \quad \text{where } a, x > 0,\ a \ne 1

You don't need to memorise these; they are in the formula booklet. You do need to know when to use them.

The first one rewrites any exponential with base e\mathrm{e}. The power ln⁡a\ln a is positive when a>1a > 1 and negative when 0<a<10 < a < 1, which matches growth and decay.

The second says log⁡a\log_{a} and axa^{x} undo each other, in either order. It is the rule (f−1∘f)(x)=(f∘f−1)(x)=x(f^{-1} \circ f)(x) = (f \circ f^{-1})(x) = x from 2.5, for this pair of functions.

Worked exampleWrite f(x)=0.5xf(x) = 0.5^{x} in the form f(x)=ekxf(x) = \mathrm{e}^{kx}, giving the exact value of kk.

Try it first, then reveal one step at a time.

  1. Use ax=exln⁡aa^{x} = \mathrm{e}^{x\ln a} with a=0.5a = 0.5: 0.5x=exln⁡0.50.5^{x} = \mathrm{e}^{x\ln 0.5}, so k=ln⁡0.5k = \ln 0.5.
Worked exampleSimplify 8log⁡2x8^{\log_{2} x}, for x>0x > 0.

Try it first, then reveal one step at a time.

  1. The bases 88 and 22 differ, so nothing cancels yet. Write 88 as a power of 22: 8=238 = 2^{3}.
Check yourself
Simplify e3ln⁡x\mathrm{e}^{3\ln x}, for x>0x > 0.

Cancelling also solves equations, because ln⁡\ln undoes ex\mathrm{e}^{x}. Just remember that ex\mathrm{e}^{x} is never 00 or negative: its is y>0y > 0.

Check yourself
Solve e2x=5ex\mathrm{e}^{2x} = 5\mathrm{e}^{x}.

Growth and decay: interest and depreciation

In 1.4 you worked with . If V0V_{0} is invested at rr% per year, added once a year, its value after tt years is V(t)=V0(1+r100)tV(t) = V_{0}\left(1 + \tfrac{r}{100}\right)^{t}.

As a function of tt, this is an with base 1+r1001 + \tfrac{r}{100}. The base is bigger than 11, so the value grows.

works the same way. If something loses rr% of its value each year, then V(t)=V0(1−r100)tV(t) = V_{0}\left(1 - \tfrac{r}{100}\right)^{t}. Now the base is between 00 and 11, so the value decays towards 00 but never reaches it.

Use ax=exln⁡aa^{x} = \mathrm{e}^{x\ln a} to rewrite a model with base e\mathrm{e}. Use logs, the inverse of exponentials, to find when a value is reached.

Worked exampleA machine costs 30 00030\,000 euros when new and loses 20% of its value each year. Its value after tt years is V(t)=30 000×0.8tV(t) = 30\,000 \times 0.8^{t}. This can also be written as V(t)=30 000 ektV(t) = 30\,000\,\mathrm{e}^{kt}. Find the exact value of kk.

Try it first, then reveal one step at a time.

  1. Losing 20% leaves 80% each year, so the yearly multiplier is 0.80.8.

On Paper 2, use your GDC to find when a model reaches a value. Write down the equation first: that line earns the method mark.

Worked exampleAna invests 24002400 euros at 3.5% per year, compounded yearly. Use your calculator to find the number of complete years until her investment is first worth more than 30003000 euros.

Try it first, then reveal one step at a time.

  1. The yearly multiplier is 1+3.5100=1.0351 + \tfrac{3.5}{100} = 1.035, so V(t)=2400×1.035tV(t) = 2400 \times 1.035^{t}.
Check yourself
A phone costs 900900 euros and loses 18% of its value each year. Find its value after 44 years, in euros, to 3 s.f.
Check yourself
Ben invests 500500 euros at 6% per year, compounded yearly. Which function gives the value of his investment after tt years?

Common mistakes

  • Reading f−1f^{-1} as one over ff. The inverse of axa^{x} is log⁡ax\log_{a} x, and it sends each output of ff back to its input.
  • Keeping a root from ex=−2\mathrm{e}^{x} = -2 or ex=0\mathrm{e}^{x} = 0. An exponential with a positive base is always positive, so reject it and say why.
  • Cancelling a power and a log with different bases, as in 8log⁡2x=x8^{\log_{2} x} = x. Rewrite the base first: 8=238 = 2^{3}, so the answer is x3x^{3}.
  • Using ≥\ge in a log domain. ln⁡0\ln 0 is undefined, so ln⁡(3x+12)\ln(3x + 12) needs x>−4x > -4, not x≥−4x \ge -4.
  • Rounding a time down when the question asks for complete years. If t=6.49t = 6.49, the target is reached during year 77, so the answer is 77.
  • Giving a decimal such as k=−0.223k = -0.223 when the exact value is asked for. Leave it as k=ln⁡(45)k = \ln\left(\tfrac{4}{5}\right).

Exam tips

  • "Write down the equation of the asymptote": give a full equation, such as y=6y = 6 or x=5x = 5, not just a number.
  • "Find the exact value": keep ln⁡\ln and fractions, as in k=ln⁡(45)k = \ln\left(\tfrac{4}{5}\right).
  • On Paper 2, write down the equation you solve, such as 2400×1.035t=30002400 \times 1.035^{t} = 3000, before the GDC answer. If the question asks for complete years, test the whole numbers either side.
  • "Sketch": label the intercept, (0,1)(0, 1) or (1,0)(1, 0), and draw the asymptote as a dashed line with its equation.

Key takeaways

In bookletax=exln⁡a,log⁡aax=x=alog⁡ax,where a,x>0, a≠1a^{x} = \mathrm{e}^{x\ln a}, \qquad \log_{a} a^{x} = x = a^{\log_{a} x}, \quad \text{where } a, x > 0,\ a \ne 1
Learn thisy=axy = a^{x} (a>0a > 0, a≠1a \ne 1): domain x∈Rx \in \mathbb{R}, range y>0y > 0, through (0,1)(0, 1), asymptote y=0y = 0. It grows if a>1a > 1 and decays if 0<a<10 < a < 1.
Learn thisy=log⁡axy = \log_{a} x: domain x>0x > 0, range y∈Ry \in \mathbb{R}, through (1,0)(1, 0) and (a,1)(a, 1), asymptote x=0x = 0.
Learn thisaxa^{x} and log⁡ax\log_{a} x are inverses, and so are ex\mathrm{e}^{x} and ln⁡x\ln x. Their graphs are reflections in y=xy = x.
Learn thisex>0\mathrm{e}^{x} > 0 for every xx, so ex=0\mathrm{e}^{x} = 0 or ex=−2\mathrm{e}^{x} = -2 has no solution.
Learn thisCompound interest: V(t)=V0(1+r100)tV(t) = V_{0}\left(1 + \tfrac{r}{100}\right)^{t}. Depreciation: V(t)=V0(1−r100)tV(t) = V_{0}\left(1 - \tfrac{r}{100}\right)^{t}.

Practise this

5 past-paper questions on 2.9 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 2.9 →