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.
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
\((3, 8)\) and \(\left(-1, \frac12\right)\) are on \(y = 2^x\). Give matching points on \(y = \log_2 x\).
- 1Inverse functions swap inputs and outputs: \((s, t)\) on \(2^x\) means \((t, s)\) on \(\log_2 x\).
- 2\((8, 3)\): indeed \(\log_2 8 = 3\). \(\left(\frac12, -1\right)\): indeed \(\log_2 \frac12 = -1\).
Simplify \(10^{\log 7}\), \(\log_5\!\left(5^{x + 1}\right)\), \(e^{\ln 4}\) and \(\ln\!\left(e^{-2}\right)\).
- 1A 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\(10^{\log 7} = 7\). \(\log_5\!\left(5^{x + 1}\right) = x + 1\).
- 3\(\ln\) is \(\log_e\): \(e^{\ln 4} = 4\) and \(\ln\!\left(e^{-2}\right) = -2\).
“Because \(\log_5 x\) and \(5^x\) are inverse functions, \(\log_5\!\left(5^{x + 1}\right) = x + 1\).”
\(\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
| Inputs | Outputs | |
|---|---|---|
| Exponential \(b^x\) | Go up by equal steps (add) | Are multiplied by b each step |
| Logarithm \(\log_b x\) | Are multiplied by b each step | Go up by equal steps (add) |
Which function fits the table?
| \(x\) | 1 | 3 | 9 | 27 | 81 |
|---|---|---|---|---|---|
| \(y\) | 0 | 1 | 2 | 3 | 4 |
- 1The outputs go up by equal steps of 1 while the inputs are multiplied by 3 each time.
- 2That is the reverse of an exponential, whose outputs multiply while inputs add. Inputs multiplying while outputs add is the logarithmic pattern.
- 3Each output counts the factors of 3 in the input.
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
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.
The graph of \(y = b^x\) passes through \((2, 9)\). Find \(b\) and a point on its inverse.
- 1\(b^2 = 9\) with \(b \gt 0\), so \(b = 3\).
- 2The inverse is \(y = \log_3 x\), which passes through the swapped point \((9, 2)\).
4Finding an inverse
Swap \(x\) and \(y\), isolate the power, then apply the logarithm with the same base to bring the exponent down.
Find the inverse of \(f(x) = 3 \cdot 2^x\).
- 1Swap: \(x = 3 \cdot 2^y\). Divide by 3: \(2^y = \frac x3\).
- 2Take \(\log_2\) of both sides, which undoes the power: \(y = \log_2 \frac x3\).
- 3Check: \(f\!\left(\log_2 \frac x3\right) = 3 \cdot 2^{\log_2(x/3)} = 3 \cdot \frac x3 = x\).
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\) | |
|---|---|---|
| Domain | All 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\) |