Unit 3, lesson 38

Logarithmic Functions as Inverses

What a logarithm is, why its base must be positive and not 1 and its input positive, how it undoes an exponential, and the domain and range of common and natural logarithms.

  • Theory part 75
  • Practice part 76
  • Exponentials, e, and Logarithms

Many questions ask for an exponent. Which power of 2 is 1024? At a steady 5 percent growth rate, after how many years has an amount doubled? An exponential function takes an exponent and returns a value. A logarithm runs the machine backwards. It takes the value and returns the exponent.

Key terms

Logarithm as an exponent

Definition Let b>0b > 0 with b≠1b \ne 1, and let x>0x > 0. The logarithm of xx with base bb, written log⁡bx\log_b x, is the unique real number yy such that by=xb^y = x. In other words,

y=log⁡bxmeans exactlyby=x.\begin{gathered} y = \log_b x \\[0.4em] \text{means exactly} \\[0.4em] b^y = x. \end{gathered}

Such a yy exists and is unique because the exponential function y↦byy \mapsto b^y is one-to-one and takes every positive value.

In plain words The expression log⁡bx\log_b x answers the question “to what power must bb be raised to give xx?” A logarithm is an exponent.

Example Each value comes from rewriting the question in exponential form.

LogarithmExponential formValue
log⁡232\log_2 3225=322^5 = 3255
log⁡319\log_3 \frac{1}{9}3−2=193^{-2} = \frac{1}{9}−2-2
log⁡51\log_5 150=15^0 = 100
log⁡93\log_9 391/2=39^{1/2} = 312\frac{1}{2}
log⁡1/28\log_{1/2} 8(12)−3=8\left(\frac{1}{2}\right)^{-3} = 8−3-3

Positive base other than one

Definition The base of a logarithm must satisfy b>0b > 0 and b≠1b \ne 1. These are exactly the bases for which byb^y is a real number for every real yy and the function y↦byy \mapsto b^y is one-to-one onto (0,∞)(0, \infty). The other bases fail for different reasons.

  • For the base 11, the power 1y1^y equals 11 for every yy, so the equation 1y=11^y = 1 has every real number as a solution and 1y=51^y = 5 has none.
  • For the base 00, the power 0y0^y is 00 when y>0y > 0 and is undefined when y≤0y \le 0.
  • For a negative base, the power is not a real number for many exponents, for example (−4)1/2(-4)^{1/2}.

In plain words The base must be a positive number other than 1. Any other choice either gives no answer, too many answers, or answers that are not real numbers.

Example Is log⁡−24=2\log_{-2} 4 = 2, since (−2)2=4(-2)^2 = 4? No. The function y↦(−2)yy \mapsto (-2)^y is undefined at y=12y = \frac{1}{2}, because −2-2 has no real square root, and at many other inputs, so negative bases are left out entirely and log⁡−24\log_{-2} 4 is undefined.

Positive argument

Definition The number xx in log⁡bx\log_b x is called the argument. For a valid base bb, the power byb^y is positive for every real yy, so the equation by=xb^y = x has a solution only when x>0x > 0. Therefore log⁡bx\log_b x is defined exactly for x>0x > 0. The logarithm of 00 and the logarithm of a negative number are undefined in the real numbers.

In plain words The input of a logarithm must be positive. The output can be any real number, including zero and negative numbers.

Example The expression log⁡10(−100)\log_{10}(-100) is undefined, because 10y10^y is never negative, and log⁡20\log_2 0 is undefined, because 2y2^y is never 00. On the other hand log⁡20.25=−2\log_2 0.25 = -2 is fine, a negative output from a positive input. For the expression log⁡3(x−4)\log_3(x - 4) to make sense, the argument must be positive, so x−4>0x - 4 > 0 and x>4x > 4.

Inverse relationship

Definition For b>0b > 0 with b≠1b \ne 1, the function f(x)=bxf(x) = b^x is one-to-one with domain R\mathbb{R} and range (0,∞)(0, \infty). Its inverse is the logarithmic function f−1(x)=log⁡bxf^{-1}(x) = \log_b x. The two functions undo each other,

log⁡b(bx)=x for every real x,blog⁡bx=x for every x>0.\begin{gathered} \log_b\left(b^x\right) = x \text{ for every real } x, \\[0.4em] b^{\log_b x} = x \text{ for every } x > 0. \end{gathered}

A point (a,c)(a, c) lies on the graph of y=bxy = b^x exactly when (c,a)(c, a) lies on the graph of y=log⁡bxy = \log_b x, so the two graphs are mirror images in the line y=xy = x.

In plain words Raising bb to a power and taking log⁡b\log_b cancel each other, as long as every logarithm you write has a positive argument.

Example By the first identity log⁡7(72.5)=2.5\log_7\left(7^{2.5}\right) = 2.5, and by the second 10log⁡1042=4210^{\log_{10} 42} = 42. The points (−1,13)\left(-1, \frac{1}{3}\right), (0,1)(0, 1) and (2,9)(2, 9) lie on y=3xy = 3^x, so the points (13,−1)\left(\frac{1}{3}, -1\right), (1,0)(1, 0) and (9,2)(9, 2) lie on y=log⁡3xy = \log_3 x. The second identity does not apply to x=−5x = -5, since log⁡b(−5)\log_b(-5) is undefined.

Common logarithm

Definition The common logarithm is the logarithm with base 1010, written without a base,

log⁡x=log⁡10x,x>0.\log x = \log_{10} x, \qquad x > 0.

So log⁡x=y\log x = y means 10y=x10^y = x, and log⁡(10k)=k\log\left(10^k\right) = k for every real kk. Calculators use this convention. Some advanced texts and software write log⁡\log for the natural logarithm instead, so check the convention when you switch sources.

In plain words The common logarithm counts powers of ten. A positive whole number with dd digits has a common logarithm that is at least d−1d - 1 and less than dd.

Example From the powers of ten, log⁡1000=3\log 1000 = 3 and log⁡0.001=−3\log 0.001 = -3. Since 10<50<10010 < 50 < 100, the value log⁡50\log 50 lies between 11 and 22, and a calculator gives log⁡50≈1.69897\log 50 \approx 1.69897. The number 36000003600000 has 77 digits, and indeed log⁡3600000≈6.556\log 3600000 \approx 6.556 lies between 66 and 77.

Natural logarithm

Definition The natural logarithm is the logarithm with base e≈2.71828e \approx 2.71828,

ln⁡x=log⁡ex,x>0.\ln x = \log_e x, \qquad x > 0.

It is the inverse of the natural exponential function, so ln⁡x=y\ln x = y means ey=xe^y = x. In particular ln⁡1=0\ln 1 = 0 and ln⁡e=1\ln e = 1, and

eln⁡x=x for every x>0,ln⁡(ex)=x for every real x.\begin{gathered} e^{\ln x} = x \text{ for every } x > 0, \\[0.4em] \ln\left(e^x\right) = x \text{ for every real } x. \end{gathered}

In plain words The value ln⁡x\ln x is the exponent you put on ee to get xx. It is the logarithm that shows up in continuous growth and throughout calculus.

Example An amount grows continuously at 5 percent per year, so it is multiplied by e0.05te^{0.05t} after tt years. It has doubled when e0.05t=2e^{0.05t} = 2. By the definition of ln⁡\ln this means 0.05t=ln⁡20.05t = \ln 2, so

t=ln⁡20.05≈13.86 years.t = \frac{\ln 2}{0.05} \approx 13.86 \text{ years.}

Domain and range

Definition For b>0b > 0 with b≠1b \ne 1, the function log⁡bx\log_b x has domain (0,∞)(0, \infty) and range R\mathbb{R}, the set of all real numbers. These are the domain and range of bxb^x with the roles swapped, as for every inverse function. When the argument is an expression g(x)g(x), the natural domain of log⁡bg(x)\log_b g(x) is the set of all xx in the domain of gg with g(x)>0g(x) > 0.

In plain words Inputs must be positive, and outputs can be anything. Every real number yy is a logarithm of something, namely y=log⁡b(by)y = \log_b\left(b^y\right).

Example For f(x)=log⁡2(6−2x)f(x) = \log_2(6 - 2x) the argument must be positive, so 6−2x>06 - 2x > 0, which gives x<3x < 3. The domain is (−∞,3)(-\infty, 3). To see that the range is all of R\mathbb{R}, pick any output yy and solve 6−2x=2y6 - 2x = 2^y, which gives

x=6−2y2,x = \frac{6 - 2^y}{2},

a number below 33. For instance the output 55 comes from x=−13x = -13, and the output −1-1 comes from x=114x = \frac{11}{4}.

Check yourself

  1. Evaluate log⁡464\log_4 64, log⁡0.01\log 0.01, ln⁡(e−3)\ln\left(e^{-3}\right) and log⁡82\log_8 2.
Show the answer

The values are 33, −2-2, −3-3 and 13\frac{1}{3}, because 43=644^3 = 64, 10−2=0.0110^{-2} = 0.01, ln⁡(ex)=x\ln\left(e^x\right) = x for every real xx, and 81/3=28^{1/3} = 2.

  1. Find the domain of f(x)=ln⁡(5−x)+log⁡(x+2)f(x) = \ln(5 - x) + \log(x + 2).
Show the answer

Both arguments must be positive. The first needs x<5x < 5 and the second needs x>−2x > -2, so the domain is the interval (−2,5)(-2, 5).

  1. Solve e2t=7e^{2t} = 7 exactly, then give a decimal value.
Show the answer

By the definition of the natural logarithm 2t=ln⁡72t = \ln 7, so

t=ln⁡72≈0.973.t = \frac{\ln 7}{2} \approx 0.973.

How this lesson connects