Sub topic 7
Solving Exponential Equations by Taking Logarithms
Assume you can solve linear equations, use exponent rules, and evaluate powers and logarithms with a calculator. This chapter focuses on equations where the variable appears in an exponent and the bases cannot be matched easily.
Why logarithms isolate an exponent
A logarithm is the inverse of an exponential function. For a positive base \(b\), where \(b \ne 1\),
\[ \log_b(b^x)=x \]
Taking a logarithm of both sides can therefore bring an exponent down where ordinary algebra can isolate it.
For example:
\[ 3^{2x-1}=20 \]
The bases 3 and 20 do not match conveniently. Take the natural logarithm, written \(\ln\), of both sides:
\[ \ln(3^{2x-1})=\ln(20) \]
Use the power rule for logarithms:
\[ (2x-1)\ln(3)=\ln(20) \]
Now solve the resulting linear equation:
\[ 2x-1=\frac{\ln(20)}{\ln(3)} \]
\[ x=\frac{1+\frac{\ln(20)}{\ln(3)}}{2} \]
This exact form is usually the best algebraic answer. A decimal approximation is
\[ x\approx 1.8634 \]
A general procedure
For an equation of the form
\[ b^{mx+n}=A \]
where \(b>0\), \(b\ne1\), and \(A>0\):
- Take \(\ln\) of both sides.
- Use the power rule to move the exponent in front of the logarithm.
- Solve the resulting linear equation.
- Substitute the answer into the original equation to check it.
The formula is
\[ x=\frac{\frac{\ln(A)}{\ln(b)}-n}{m} \]
You can use any logarithm base. Natural logarithms are common because calculators have an \(\ln\) key, but common logarithms also work.
When a coefficient is outside the exponential
First isolate the exponential expression. Consider
\[ 5(2^x)=17 \]
Divide both sides by 5:
\[ 2^x=\frac{17}{5} \]
Take \(\ln\) of both sides:
\[ \ln(2^x)=\ln\left(\frac{17}{5}\right) \]
Apply the power rule:
\[ x\ln(2)=\ln\left(\frac{17}{5}\right) \]
Therefore,
\[ x=\frac{\ln(17/5)}{\ln(2)}\approx 1.7655 \]
Do not take the logarithm of only part of an equation. The logarithm must be applied to both sides, and an outside coefficient should usually be removed first.
Checking an approximation
Rounding can make the two sides differ slightly. Use the unrounded value when checking, or compare the sides with a small tolerance in a calculator or program.
import math
# Solve 3**(2*x - 1) = 20
# Take 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.0Exercise
Solve 7^(x + 2) = 15. Give an exact answer and a decimal approximation.
Show answer
Take ln of both sides: (x + 2)ln(7) = ln(15). Thus x = ln(15)/ln(7) - 2, which is approximately -0.6073.