Sub topic 4
Changing the Base of a Logarithm
Prerequisites and the change-of-base formula
Assume you can use exponent rules, solve basic equations, and evaluate logarithms with a calculator.
A logarithm asks for an exponent:
\[ \log_b(x)=y \quad \Longleftrightarrow \quad b^y=x \]
Here, \(b\) is the base, \(x\) is the argument, and \(b>0\), \(b\ne1\), \(x>0\).
Most calculators have buttons for \(\log\), meaning base \(10\), and \(\ln\), meaning base \(e\). They may not have a button for every base. The change-of-base formula lets you rewrite a logarithm using any convenient base:
\[ \boxed{\logb(x)=\frac{\logk(x)}{\log_k(b)}} \]
The new base \(k\) can be any valid base. In practice, choose \(10\) or \(e\):
\[ \logb(x)=\frac{\log(x)}{\log(b)} \qquad\text{or}\qquad \logb(x)=\frac{\ln(x)}{\ln(b)} \]
Both forms give the same result.
Why the formula works
Let
\[ y=\log_b(x). \]
This means \(b^y=x\). Take a logarithm with base \(k\) of both sides:
\[ \logk(b^y)=\logk(x). \]
Using the power rule, \(\logk(b^y)=y\logk(b)\). Therefore,
\[ y\logk(b)=\logk(x). \]
Divide by \(\log_k(b)\):
\[ y=\frac{\logk(x)}{\logk(b)}. \]
Since \(y=\log_b(x)\), the change-of-base formula follows.
Evaluating a logarithm
To approximate \(\log_3(17)\), use base \(10\):
\[ \log_3(17)=\frac{\log(17)}{\log(3)} \approx\frac{1.2304}{0.4771} \approx2.5789. \]
This result is reasonable because \(3^2=9\) and \(3^3=27\), so the exponent should be between \(2\) and \(3\).
The same calculation with natural logarithms gives the same value:
\[ \log_3(17)=\frac{\ln(17)}{\ln(3)}\approx2.5789. \]
A calculator or a short Python program can perform the calculation.
import math
value = math.log(17) / math.log(3)
print(value) # 2.578891...
# The two common forms agree
print(math.log10(17) / math.log10(3))
print(math.log(17) / math.log(3))Common errors
| Error | Why it is wrong | Correct form |
|---|---|---|
| \(\log_b(x)=\frac{\log(b)}{\log(x)}\) | The numerator must contain the argument | \(\frac{\log(x)}{\log(b)}\) |
| Changing only the numerator base | Both logarithms must use the same new base | \(\frac{\ln(x)}{\ln(b)}\) |
| Using \(x\le0\) | Real logarithms require positive arguments | \(x>0\) |
| Treating \(\log_b(x)\) as \(\log(bx)\) | A logarithm's base is not multiplied by its argument | Keep the base as a subscript |
> callout note > The new base is a tool for calculation. It does not change the value of the logarithm. You may use \(10\), \(e\), or any other valid base, as long as the same base appears in the numerator and denominator.
Using change of base in equations
Change of base is useful when an equation contains logarithms with unfamiliar bases. For example:
\[ \log_5(x)=2.4 \]
can be evaluated or checked as
\[ \frac{\ln(x)}{\ln(5)}=2.4. \]
To solve for \(x\), it is usually simpler to rewrite the original equation in exponential form:
\[ x=5^{2.4}. \]
Use change of base mainly to approximate logarithms, compare values, or work with a calculator that lacks the required base.
Exercise
Approximate \(\log_7(50)\) to three decimal places using natural logarithms.
Show answer
Use \(\log_7(50)=\frac{\ln(50)}{\ln(7)}\), which gives approximately \(2.013\).