Logarithms with different bases

Compare three logarithms with different bases: y=log2xy = \log_2 x, y=lnxy = \ln x and y=log10xy = \log_{10} x. Each is defined for x>0x > 0 and equals 00 at x=1x = 1, so all pass through (1,0)(1, 0). Whatever the base, raising it to the power 00 gives 11, so loga1=0\log_a 1 = 0 always holds.

Where each reaches y=1y = 1

Each reaches y=1y = 1 when xx equals its base.

Functionxx with y=1y = 1Multiple of lnx\ln x
log2x\log_2 x221.4431.443
lnx\ln xe2.72e \approx 2.7211
log10x\log_{10} x10100.4340.434

The smaller the base, the faster the growth: log2x\log_2 x gains 11 every time xx doubles, while log10x\log_{10} x needs a tenfold increase for the same gain.

The shape is identical

In truth the three graphs have exactly the same shape, because the change-of-base formula writes every logarithm as a constant multiple of lnx\ln x.

logax=lnxlna\log_a x = \frac{\ln x}{\ln a}

Since log2x1.44lnx\log_2 x \approx 1.44 \ln x and log10x0.434lnx\log_{10} x \approx 0.434 \ln x, the three curves are one curve stretched or compressed vertically. At any xx whatsoever, the three values stand in the fixed ratio 1.44:1:0.4341.44 : 1 : 0.434.

Properties they share

Their properties therefore coincide. All increase monotonically, all diverge to -\infty as x0+x \to 0^{+}, all take the yy-axis as a vertical asymptote, and all pass through (1,0)(1, 0). Only the vertical scale differs. A base smaller than 11 flips things over: log1/2x=log2x\log_{1/2} x = -\log_2 x decreases instead.

Choosing a base

BaseWhere it is usedWhy
22information in bits, computational complexityit counts how often a choice between two is repeated
eecalculus(lnx)=1x(\ln x)' = \dfrac{1}{x} is as simple as it gets
1010digits, pH, decibelsit matches the digits of base 1010 directly

The large dots mark the common point (1,0)(1, 0) and the points (2,1)(2, 1) and (e,1)(e, 1) where log2x\log_2 x and lnx\ln x reach y=1y = 1.