AP Precalculus · Study guide

Inverses of Exponential Functions

AP® Precalculus · Unit 2 · Exponential and Logarithmic Functions

Logarithms as Inverses of Exponentials

The logarithmic function with base b undoes the exponential function with base b. This guide shows that relationship in pairs of points, in the way inputs and outputs change, in graphs reflected across y = x, and in simplifying expressions.

The idea in one paragraph

For \(b \gt 0\), \(b \ne 1\), the functions \(g(x) = b^x\) and \(f(x) = \log_b x\) are inverses: \(\log_b(b^x) = x\) and \(b^{\log_b x} = x\). If \((s, t)\) is on the exponential, then \((t, s)\) is on the logarithm, and the two graphs are reflections across \(y = x\). Their patterns are reversed too: an exponential’s outputs multiply as its inputs go up in equal steps, while a logarithm’s inputs multiply as its outputs go up in equal steps.

1Each undoes the other

Worked Example 1 Swapping points

\((3, 8)\) and \(\left(-1, \frac12\right)\) are on \(y = 2^x\). Give matching points on \(y = \log_2 x\).

  1. 1
    Inverse functions swap inputs and outputs: \((s, t)\) on \(2^x\) means \((t, s)\) on \(\log_2 x\).
  2. 2
    \((8, 3)\): indeed \(\log_2 8 = 3\). \(\left(\frac12, -1\right)\): indeed \(\log_2 \frac12 = -1\).
Answer: \((8, 3)\) and \(\left(\frac12, -1\right)\)
Worked Example 2 Undoing each other

Simplify \(10^{\log 7}\), \(\log_5\!\left(5^{x + 1}\right)\), \(e^{\ln 4}\) and \(\ln\!\left(e^{-2}\right)\).

  1. 1
    A function followed by its inverse gives back the input: \(b^{\log_b x} = x\) for \(x \gt 0\), and \(\log_b(b^x) = x\) for every \(x\).
  2. 2
    \(10^{\log 7} = 7\). \(\log_5\!\left(5^{x + 1}\right) = x + 1\).
  3. 3
    \(\ln\) is \(\log_e\): \(e^{\ln 4} = 4\) and \(\ln\!\left(e^{-2}\right) = -2\).
Answer: 7, \(x + 1\), 4, \(-2\)
Write it like this

“Because \(\log_5 x\) and \(5^x\) are inverse functions, \(\log_5\!\left(5^{x + 1}\right) = x + 1\).”

Common Mistake 1 · Canceling when the bases differ

\(\log_2(10^x)\) is not \(x\). The cancellation only works when the base of the logarithm matches the base of the power.

2Adding versus multiplying, turned around

InputsOutputs
Exponential \(b^x\)Go up by equal steps (add)Are multiplied by b each step
Logarithm \(\log_b x\)Are multiplied by b each stepGo up by equal steps (add)
Worked Example 3 Spotting a logarithmic pattern

Which function fits the table?

\(x\)1392781
\(y\)01234
  1. 1
    The outputs go up by equal steps of 1 while the inputs are multiplied by 3 each time.
  2. 2
    That is the reverse of an exponential, whose outputs multiply while inputs add. Inputs multiplying while outputs add is the logarithmic pattern.
  3. 3
    Each output counts the factors of 3 in the input.
Answer: \(y = \log_3 x\)
Common Mistake 2 · Expecting equal output steps from equal input steps

For \(\log_3 x\), going from \(x = 1\) to \(x = 2\) raises the output by about 0.63, but going from \(x = 80\) to \(x = 81\) raises it by only about 0.011. Equal output steps need equal factors in the input.

3The graphs

Figure 1. Equal scales on both axes, so the mirror across y = x is true to shape. Every point (s, t) on y = 2ˣ has a partner (t, s) on y = log₂ x.

Reflection trades every feature for its mirror image: the exponential’s horizontal asymptote \(y = 0\) becomes the logarithm’s vertical asymptote \(x = 0\); the exponential’s domain (all real numbers) becomes the logarithm’s range; its range \((0, \infty)\) becomes the logarithm’s domain.

Worked Example 4 Finding the base from one point

The graph of \(y = b^x\) passes through \((2, 9)\). Find \(b\) and a point on its inverse.

  1. 1
    \(b^2 = 9\) with \(b \gt 0\), so \(b = 3\).
  2. 2
    The inverse is \(y = \log_3 x\), which passes through the swapped point \((9, 2)\).
Answer: \(b = 3\); \((9, 2)\) is on \(y = \log_3 x\).

4Finding an inverse

Swap \(x\) and \(y\), isolate the power, then apply the logarithm with the same base to bring the exponent down.

Worked Example 5 Inverse of a stretched exponential

Find the inverse of \(f(x) = 3 \cdot 2^x\).

  1. 1
    Swap: \(x = 3 \cdot 2^y\). Divide by 3: \(2^y = \frac x3\).
  2. 2
    Take \(\log_2\) of both sides, which undoes the power: \(y = \log_2 \frac x3\).
  3. 3
    Check: \(f\!\left(\log_2 \frac x3\right) = 3 \cdot 2^{\log_2(x/3)} = 3 \cdot \frac x3 = x\).
Answer: \(f^{-1}(x) = \log_2 \dfrac x3\), for \(x \gt 0\).
Common Mistake 3 · Taking the log before isolating the power

In \(x = 3 \cdot 2^y\), writing \(y = \log_2(3x)\) or \(3\log_2 x\) skips a step. Divide by 3 first so that the power \(2^y\) stands alone.

Quick reference

\(y = b^x\)\(y = \log_b x\)
DomainAll real numbers\(x \gt 0\)
Range\(y \gt 0\)All real numbers
Asymptote\(y = 0\)\(x = 0\)
Key points\((0, 1)\), \((1, b)\)\((1, 0)\), \((b, 1)\)
Undo\(\log_b(b^x) = x\)\(b^{\log_b x} = x\)