Skip to content
Topos Uranos

Summary

This lesson defines the logarithm to base aa as the inverse function of the exponential with base aa, and with it the natural logarithm and the common logarithm. It proves the laws of logarithms (for products, quotients and powers) and the change-of-base formula with its consequences, studies the monotonicity, the sign and the graph of the logarithm function, with its vertical asymptote, and proves that log⁡23\log_2 3, and in general the logarithm of a natural number greater than one to a natural base coprime with it, is irrational. It then applies the common logarithm to count the digits of a number without writing it out, describes the logarithmic scales of acoustics, chemistry and seismology, and explains the principle of the slide rule, which multiplies numbers by adding lengths.

Learning objectives

  1. Define the logarithm as the inverse function of the exponential, compute simple logarithms and recognize the domain, the range and the graph of the logarithm function.
  2. Prove and apply the laws of logarithms and the change-of-base formula.
  3. Determine the monotonicity and the sign of a logarithm according to its base, and bound logarithms by means of inequalities between integer powers.
  4. Use the common logarithm to count digits and to interpret logarithmic scales, and prove the irrationality of certain logarithms.

The logarithm as the inverse function of the exponential

In the lesson on the exponential function and powers with real exponents it was proved that, if a>0a > 0 and a≠1a \neq 1, the function that assigns to each real number xx the power axa^x is strictly increasing if a>1a > 1 and strictly decreasing if 0<a<10 < a < 1; and, by the theorem on the range of the exponential function, proved there with the completeness of the reals and Bernoulli’s inequality, it moreover takes each positive value exactly once, and is therefore a bijection from R\mathbb{R} onto the interval (0,∞)\ioo{0}{\infty}. By the theorem on the inverse of a strictly monotonic function, proved in the lesson on function operations, this function has an inverse. If this is so, for each positive number xx there is a unique exponent yy such that ay=xa^y = x, and the definition below makes sense.

Let a>0a > 0, with a≠1a \neq 1, and x>0x > 0. The logarithm to base aa of xx, written log⁡ax\log_a x, is the unique real number yy such that ay=xa^y = x. The function log⁡a\log_a, defined on (0,∞)\ioo{0}{\infty} and with real values, is the inverse of the exponential with base aa.
log⁡ax=y↔ay=x\log_a x = y \leftrightarrow a^y = x

The logarithm therefore answers the question of the exponent: log⁡ax\log_a x is the number to which aa must be raised to obtain xx. Thus, since 23=82^3 = 8, 3−2=193^{-2} = \frac{1}{9}, 103=100010^3 = 1000 and, by the lesson on powers with rational exponents and radicals, 412=4=24^{\frac{1}{2}} = \sqrt{4} = 2, we have:

log⁡28=3,log⁡319=−2,log⁡101000=3,log⁡42=12\log_2 8 = 3, \qquad \log_3 \frac{1}{9} = -2, \qquad \log_{10} 1000 = 3, \qquad \log_4 2 = \frac{1}{2}

Since log⁡a\log_a and the exponential with base aa are inverses of each other, each undoes what the other does: the first identity holds for every positive xx, and the second for every real yy.

alog⁡ax=x,log⁡a(ay)=ya^{\log_a x} = x, \qquad \log_a\left(a^y\right) = y

In particular, from a0=1a^0 = 1 and a1=aa^1 = a follow log⁡a1=0\log_a 1 = 0 and log⁡aa=1\log_a a = 1 for every base. Neither zero nor the negative numbers have a logarithm, because every power with a positive base is positive: there is no yy such that 2y=−42^y = -4. Two bases have names of their own. The base ee, the number studied in the lesson on the number e and the natural exponential, gives the natural logarithm, written ln⁡x\ln x; the base 1010 gives the common logarithm, written log⁡10x\log_{10} x. Many texts and calculators write log⁡x\log x without a base, sometimes for the natural one and sometimes for the common one; in this course the base is always written.

ln⁡x=y↔ey=x,log⁡10x=y↔10y=x\ln x = y \leftrightarrow e^y = x, \qquad \log_{10} x = y \leftrightarrow 10^y = x

Logarithms were published by John Napier in 1614, and a few years later Henry Briggs computed the first tables of common logarithms. For more than three centuries they served to shorten the computations of astronomy, navigation and engineering because, as is proved below, they turn products into sums. The graph of the logarithm is obtained from that of the exponential by the theorem on the graph of the inverse function, from the same lesson on the inverse function: the graph of a bijective function and that of its inverse are symmetric with respect to the line y=xy = x.

ExampleThe graph of the logarithm to base two

We construct the graph of log⁡2\log_2 from the graph of the exponential 2x2^x, reflecting it in the line y=xy = x.

Proof

  1. 2−1=12,20=1,21=2,22=4\resaltar{2^{-1}} = \frac{1}{2}, \quad \resaltar{2^0} = 1, \quad \resaltar{2^1} = 2, \quad \resaltar{2^2} = \resaltar{4}

    We compute some points of the graph of y=2xy = 2^x: for xx equal to −1-1, 00, 11 and 22, the power equals 12\frac{1}{2}, 11, 22 and 44.

  2. log⁡212=−1,log⁡21=0,log⁡22=1,log⁡24=2\dato{p}{\resaltar{\log_2 \frac{1}{2}} = -1, \quad \log_2 1 = 0, \quad \log_2 2 = 1, \quad \resaltar{\log_2 4} = 2}

    By the definition, each equality 2y=x2^y = x says that log⁡2x=y\log_2 x = y: the points of the graph of the logarithm are obtained by swapping the coordinates.

  3. y=log⁡2x↔x=2y\resaltar{y = \log_2 x} \leftrightarrow \resaltar{x = 2^y}

    The same holds for all points: the point (x,y)(x, y) lies on the graph of log⁡2\log_2 exactly when (y,x)(y, x) lies on that of 2x2^x. The two graphs are symmetric with respect to the line y=xy = x, and the graph of log⁡2\log_2 is the reflection of that of the exponential.

  4. x∈(0,∞)→log⁡2x∈Rx \in \resaltar{\ioo{0}{\infty}} \rightarrow \log_2 x \in \resaltar{\mathbb{R}}

    Reflecting swaps the domain and the range: the logarithm is defined only for positive numbers and takes all real values. The xx-axis, which the graph of 2x2^x approaches toward the left, becomes the yy-axis, which the graph of log⁡2\log_2 approaches near 00.