Sub topic 1
Exponentials and Logarithms as Inverses
Prerequisites
This chapter assumes you can solve linear and quadratic equations, apply integer and rational exponent rules, use function notation, and evaluate powers and logarithms on a calculator.
Inverse functions
An exponential function $f(x) = b^x$ (with $b > 0$ and $b \neq 1$) and a logarithm $g(x) = \log_b(x)$ undo each other. Applying one and then the other returns the original input:
- $\log_b(b^x) = x$ for every real $x$
- $b^{\log_b(x)} = x$ for every $x > 0$
You use this to isolate a variable in an exponent. To solve $2^x = 40$, take $\log2$ of both sides to get $x = \log2(40)$.
Common and natural logarithms
The common logarithm has base 10 and is written $\log(x)$. The natural logarithm has base $e \approx 2.71828$ and is written $\ln(x)$. The number $e$ appears in continuous growth, and $\ln$ undoes $e^x$: $\ln(e^x) = x$.
The product, quotient, and power rules
For positive $M$ and $N$:
| Rule | Formula |
|---|---|
| Product | $\log_b(MN) = \log_b(M) + \log_b(N)$ |
| Quotient | $\log_b(M/N) = \log_b(M) - \log_b(N)$ |
| Power | $\log_b(M^p) = p\,\log_b(M)$ |
Changing the base
For any positive base $c \neq 1$, $\logb(x) = \logc(x) / \log_c(b)$. Calculators usually provide only base 10 and base $e$, so you convert with $\ln$ or $\log$.
import math
# Inverse check: exp(log(x)) returns x
x = 5.0
print(math.isclose(math.exp(math.log(x)), x)) # True
# Change of base: log base 2 of 10
print(math.log(10) / math.log(2)) # about 3.3219
print(math.log2(10)) # about 3.3219
# Power rule: log(8) equals 3 * log(2)
print(math.isclose(math.log(8), 3 * math.log(2))) # TrueThe one-to-one property
If $b^M = b^N$ with $b > 0$ and $b \neq 1$, then $M = N$. Likewise, if $\logb(M) = \logb(N)$ with $M, N > 0$, then $M = N$. You use this to match exponents or arguments when the bases or logarithm bases agree.
Exercise
Solve $2^x = 40$ and give the answer as a decimal to four places.
Show answer
$x = \log_2(40) = \ln(40)/\ln(2) \approx 5.3219$. Check: $2^{5.3219} \approx 40$.