Sub topic 2
Solving exponential equations with a common base
This chapter assumes you can apply integer and rational exponent rules, solve linear equations, and use a calculator for powers and logarithms.
Matching bases
If both sides of an exponential equation can be written with the same base, set the exponents equal. This works because the exponential function is one-to-one: each output comes from exactly one input.
For example, solve $2^{x+1} = 8^{x-2}$. Since $8 = 2^3$, rewrite the right side:
$$2^{x+1} = 2^{3(x-2)}$$
Set the exponents equal and solve: $x + 1 = 3x - 6$, so $x = 3.5$.
Taking logarithms when bases differ
When you cannot match bases, take the natural logarithm of both sides. The power rule, $\ln(a^b) = b\ln(a)$, moves the unknown out of the exponent.
import math
# Solve 3**(2*x - 1) = 20 by taking natural logs
# (2x - 1) * ln(3) = ln(20), so x = (1 + ln(20)/ln(3)) / 2
x = (1 + math.log(20) / math.log(3)) / 2
print(x) # about 1.8634
print(3 ** (2 * x - 1)) # about 20.0Where logarithms are defined
A logarithm $\log_b(x)$ is defined only when $b > 0$, $b \neq 1$, and $x > 0$. The argument must be positive. Check this before you accept any solution.
Solving logarithmic equations by rewriting in exponential form
Use the fact that $\log_b(x) = y$ is equivalent to $b^y = x$. Rewrite the equation in exponential form, then solve.
| Logarithmic form | Exponential form |
|---|---|
| $\log_2(x) = 3$ | $2^3 = x$ |
| $\log_5(y) = -1$ | $5^{-1} = y$ |
Solving $x^2 - 2x - 8 = 0$ gives $x = 4$ or $x = -2$. The value $x = -2$ makes $\log_2(x)$ undefined, so it is extraneous. Reject it and keep only $x = 4$.
Exercise
Solve $4^x = 32$ exactly.
Show answer
Write $4 = 2^2$ and $32 = 2^5$. Then $2^{2x} = 2^5$, so $2x = 5$ and $x = 2.5$.