Changing the base of the logarithm

Using the calculator we can determine the logarithms with bases 1010 and ee, e.g. log(5)\log(5) and ln(5)\ln(5), but what about other bases? For example, what is

log2(5)=?\log_2(5)=?

Actually, it is possible to convert the base 22 to a base 1010 or a base ee, and then we can use the calculator. Indeed, we have the following useful theorem:

Theorem 1: Change of base (logarithm)
Proof

Here is the proof. We just show that

logb(c)=log(c)log(b)\log_b(c)=\frac{\log(c)}{\log(b)}

The proof for the ln\ln is similar. To make things a bit less abstract, let us insert a number of cc, e.g. c=7c=7. So can we show that

logb(7)=log(7)log(b)\log_b(7)=\frac{\log(7)}{\log(b)}

This is correct if

log(b)logb(7)=log(7)\log(b)\cdot\log_b(7)=\log(7)

and this is correct if

10log(b)logb(7)=10log(7)=710^{\log(b)\cdot \log_b(7)} = \underbrace{10^{\log(7)}}_{=7}

The left side can be written as

(10log(b))logb(7)=blogb(7)=7\left(10^{\log(b)}\right)^{\log_b(7)}=b^{\log_b(7)}=7

So we see that the left side equals the right side.

And this concludes the proof!

It is

logb(c)=log(c)log(b)=ln(c)ln(b)\log_b(c)=\frac{\log(c)}{\log(b)}=\frac{\ln(c)}{\ln(b)}

Thus, applying this conversion, we have

log2(5)=log(5)log(2)=0.698...0.301...=2.321...\log_2(5)=\frac{\log(5)}{\log(2)}=\frac{0.698...}{0.301...}=2.321...

or if you prefer the natural logarithm

log2(5)=ln(5)ln(2)=1.609...0.693...=2.321...\log_2(5)=\frac{\ln(5)}{\ln(2)}=\frac{1.609...}{0.693...}=2.321...
Exercise 1

Without calculator, find a lower and upper bound (both integers) for the logarithm below. Verify your estimate using the calculator.

  1. log8(20)\log_8(20)

  2. log5(124.5)\log_5(124.5)

  3. log2(0.121)\log_2(0.121)

Solution
  1. Estimate: We have to find a number aa such that 8a208^a\approx 20. a=1a=1 is too low, a=2a=2 is too large, so log8(20)]1,2[\log_8(20)\in \underline{]1,2[}. The exact value is

    log8(20)=log(20)log(8)=1.440...\log_8(20)=\frac{\log(20)}{\log(8)}=\underline{1.440...}
  2. Estimate: We have to find a number aa such that 5a124.55^a\approx 124.5. a=3a=3 is too high, a=2a=2 is too low, so log5(124.5)]2,3[\log_5(124.5)\in \underline{]2,3[}. The exact value is

    log5(124.5)=log(124.5)log(5)=2.997...\log_5(124.5)=\frac{\log(124.5)}{\log(5)}=\underline{2.997...}
  3. Estimate: We have to find a number aa such that 2a0.1212^a\approx 0.121. For a=3a=-3 it is 23=18=0.1252^{-3}=\frac{1}{8}=0.125 is too hight, so a=3a=-3 is the upper bound, and a=a=-4 therefore the lower bound. Thus log2(0.121)]4,3[\log_2(0.121)\in \underline{]-4,-3[}. The exact value is

    log2(0.121)=log(0.121)log(2)=3.046...\log_2(0.121)=\frac{\log(0.121)}{\log(2)}=\underline{-3.046...}