Tutorials › Calculus I › Change of Base and Calculator Evaluation

Exponential and Logarithmic Models · Tutorial 92 of 1495

Change of Base and Calculator Evaluation

Learn why a logarithm in any valid base can be evaluated using common or natural logarithms, and how to verify the calculator result.

Beginner 9 min read

What You'll Learn

  • State the conditions on the base and argument of a logarithm.
  • Derive the change-of-base formula from the inverse relationship between exponentials and logarithms.
  • Evaluate an unfamiliar-base logarithm using common logarithms.
  • Evaluate the same type of logarithm using natural logarithms.
  • Retain precision through a calculation and round only the final result.
  • Check an approximate logarithm by raising its base to the calculated power.

Why Change the Base?

A logarithm asks for an exponent. For example, \(\log_7(20)\) is the exponent to which \(7\) must be raised to obtain \(20\). The answer is not an integer, and a typical calculator may not have a key for every possible logarithm base.

Most scientific calculators do provide common logarithms, written \(\log(x)\), and natural logarithms, written \(\ln(x)\). A formula connecting these familiar functions to logarithms in other bases lets us evaluate many logarithms directly. It is called the change-of-base formula.

Definition: For \(b>0\), \(b\ne 1\), and \(x>0\), \(\log_b(x)\) is the unique real number \(y\) such that \(b^y=x\). The logarithm’s base must be positive and not equal to \(1\), and its argument must be positive.

The conditions are essential. A positive base other than \(1\) gives an exponential function that can be inverted to define a logarithm. A logarithm of a nonpositive real argument is not defined as a real number. The bases \(10\) and \(e\), used for common and natural logarithms respectively, satisfy the required base conditions.

Deriving the Change-of-Base Formula

Suppose \(b>0\), \(b\ne 1\), and \(x>0\). Let \(y=\log_b(x)\). By the definition of a logarithm, this means \(b^y=x\). We want to express \(y\) using logarithms that a calculator can evaluate.

For common logarithms, write \(u=\log(b)\). The inverse relationship between the common logarithm and the exponential function with base \(10\) gives \(b=10^u\). Substituting this into \(b^y=x\), and using the exponent identity \((10^u)^y=10^{uy}\), gives \(10^{uy}=x\). Taking the common logarithm of both sides and using that \(\log\) and \(10^x\) are inverse functions gives \(\log(x)=uy\). Since \(u=\log(b)\ne 0\), division by \(u\) yields the formula.

$$ \log_b(x)=\frac{\log(x)}{\log(b)}. $$

The denominator is not zero: \(\log(b)=0\) would mean \(b=10^0=1\), which the conditions exclude. This also explains why the formula cannot be used with base \(1\).

The same reasoning works with natural logarithms. If \(v=\ln(b)\), then \(b=e^v\). From \(b^y=x\), we obtain \(e^{vy}=x\), so taking \(\ln\) gives \(vy=\ln(x)\). Since \(b\ne1\), \(\ln(b)\ne0\), and therefore:

$$ \log_b(x)=\frac{\ln(x)}{\ln(b)}. $$
Theorem: Change-of-base formula. For \(b>0\), \(b\ne1\), and \(x>0\), either of the following expressions gives the same logarithm: $$ \log_b(x)=\frac{\log(x)}{\log(b)} =\frac{\ln(x)}{\ln(b)}. $$

The formula does not depend on choosing common rather than natural logarithms. The numerator and denominator must use the same kind of logarithm. The conversion works because each ratio equals the same number \(y=\log_b(x)\).

Using Common Logarithms on a Calculator

When a calculator has a \(\log\) key but no key for the required base, enter the argument’s common logarithm divided by the base’s common logarithm. Use parentheses so that the calculator evaluates the entire numerator and denominator before dividing.

Worked Example: Evaluate \(\log_7(20)\)

Here \(b=7\) and \(x=20\). Both satisfy the conditions: \(7>0\), \(7\ne1\), and \(20>0\). Apply change of base using common logarithms:

$$ \log_7(20)=\frac{\log(20)}{\log(7)}. $$

Using calculator values to ten decimal places, \(\log(20)\approx1.3010299957\) and \(\log(7)\approx0.8450980400\). Divide the numerator by the denominator:

$$ \frac{1.3010299957}{0.8450980400}\approx1.53950185. $$

Rounded to six decimal places, \(\log_7(20)\approx1.539502\). Check the result by raising the base to this exponent:

$$ 7^{1.539502}\approx20.0000. $$

The small difference from exactly \(20\) is due to rounding the logarithm. The check is consistent with the original question: the computed exponent makes \(7\) raised to that power approximately \(20\).

In practice, keep extra calculator digits during the division, then round only the final answer. If the calculator display is rounded before the division, that rounding can affect the quotient. Parentheses also help avoid entering a different expression from the intended ratio.

Worked Example: Evaluate \(\log_3(10)\)

The base \(3\) is positive and not \(1\), and the argument \(10\) is positive, so the logarithm is defined. Use common logarithms:

$$ \log_3(10)=\frac{\log(10)}{\log(3)}. $$

The calculator gives \(\log(10)=1\) and \(\log(3)\approx0.4771212547\). Thus:

$$ \frac{1}{0.4771212547}\approx2.095903274. $$

To six decimal places, \(\log_3(10)\approx2.095903\). Check by exponentiation:

$$ 3^{2.095903274}\approx10.000000. $$

The check confirms that the calculated exponent is consistent with the defining equation \(3^y=10\).

Using Natural Logarithms

If a calculator provides an \(\ln\) key, the natural-logarithm version of the formula works just as well. Do not mix \(\ln\) in the numerator with \(\log\) in the denominator: use the same key for both parts of the ratio.

Worked Example: Evaluate \(\log_6(15)\) Using Natural Logarithms

The base \(6\) and argument \(15\) meet the logarithm conditions. Use \(\ln\) for both:

$$ \log_6(15)=\frac{\ln(15)}{\ln(6)}. $$

To nine decimal places, \(\ln(15)\approx2.708050201\) and \(\ln(6)\approx1.791759469\). Dividing gives:

$$ \frac{2.708050201}{1.791759469}\approx1.511391595. $$

Rounded to six decimal places, \(\log_6(15)\approx1.511392\). Check the defining relationship by raising \(6\) to the unrounded quotient:

$$ 6^{1.511391595}\approx15.000000. $$

Thus the exponent found by the calculator reproduces the argument to the displayed precision.

Why the Quotient Works

The derivation can also be viewed as a conversion of units for exponents. The number \(\log_b(x)\) measures the exponent using powers of \(b\). Taking \(\log\) of \(b^y=x\) expresses that same exponent in powers of \(10\): both \(\log(x)\) and \(\log(b)\) are measured in the same common-logarithm scale, so their ratio gives \(y\). Using \(\ln\) changes the scale but not the ratio.

This is why changing the logarithm base in both places leaves the result unchanged. For example, the expressions \(\log(x)/\log(b)\) and \(\ln(x)/\ln(b)\) need not have equal numerators or denominators individually, but each ratio recovers the exponent that satisfies \(b^y=x\).

The calculator result can always be checked against that defining equation. If the calculated value is \(y\), evaluate \(b^y\). A value close to \(x\), with a difference consistent with the number of digits retained, supports the calculation. It is a check rather than a separate proof, since a rounded calculator result is only an approximation.

Common Mistakes and How to Avoid Them

Reversing the ratio. A frequent error is to divide the base logarithm by the argument logarithm. For instance, for \(\log_7(20)\), writing \(\log(7)/\log(20)\) gives approximately \(0.649\), not approximately \(1.540\). That reversed value fails the defining check: \(7^{0.649}\) is approximately \(3.6\), not \(20\). The correct order is always argument logarithm over base logarithm:

$$ \log_b(x)=\frac{\log(x)}{\log(b)}. $$

Mixing calculator keys. An expression such as \(\log(15)/\ln(6)\) does not follow either version of the formula. Use \(\log(15)/\log(6)\) or \(\ln(15)/\ln(6)\).

Ignoring the conditions. Before entering values, check that the base is positive and not \(1\), and that the argument is positive. For example, \(\log_1(5)\) is not defined because every power of \(1\) equals \(1\), and there is no real exponent \(y\) for which \(1^y=5\).

Rounding too early. If you round both logarithms heavily before dividing, the final quotient may be less accurate than the calculator can provide. Keep the displayed precision through the division and round the final answer to the requested number of decimal places.

A Reliable Calculator Procedure

1
Check the domain conditions.
Confirm that \(b>0\), \(b\ne1\), and \(x>0\).
2
Choose one logarithm key.
Use either \(\log\) for both values or \(\ln\) for both values.
3
Enter argument over base.
Calculate \(\log(x)/\log(b)\) or \(\ln(x)/\ln(b)\), using parentheses if needed.
4
Round at the end.
Retain the calculator’s intermediate digits and round the quotient to the requested precision.
5
Check the exponent.
Raise \(b\) to the approximate answer and confirm that the result is close to \(x\).

Why Change of Base Matters

Change of base makes logarithms practical even when a calculator has only a small number of logarithm keys. It also lets different calculations use a consistent scale: a problem can be written in the base that best matches its meaning, while the numerical evaluation uses \(\log\) or \(\ln\).

The main idea is compact: a logarithm is an exponent, and the ratio of two logarithms in the same base recovers that exponent. Remember the domain conditions, keep the argument on top and the base below, and verify the result by exponentiating.

Check Your Understanding

Answer these questions using the definition of a logarithm and the change-of-base formula.

  1. State the conditions on \(b\) and \(x\) required for \(\log_b(x)\) to be a real logarithm.
  2. Write \(\log_5(18)\) as a quotient of common logarithms and as a quotient of natural logarithms.
  3. Why must the numerator and denominator in a change-of-base quotient use the same logarithm key?
  4. A calculator gives an approximate value \(y\) for \(\log_4(11)\). What calculation checks whether \(y\) is plausible?
  5. Explain why the expression \(\log(7)/\log(20)\) does not evaluate \(\log_7(20)\).

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon