Math Core

Lesson 3.2 · Exponential and Logarithmic Functions

Logarithmic functions

An exponential function answers "what do I get if I raise bb to this power?" The reverse question, "what power of bb gives this number?", is answered by a logarithm. Logarithms let you solve for exponents, and they turn quantities that span enormous ranges (acidity, loudness, earthquake energy) into manageable numbers.

Logarithms as exponents

Since y=bxy = b^x is one-to-one, it has an inverse function. That inverse is the logarithm with base bb.

Definition

Logarithm

For b>0b > 0, b≠1b \ne 1 and x>0x > 0,

y=log⁡bxmeansby=x.y = \log_b x \quad\text{means}\quad b^{y} = x.

Read log⁡bx\log_b x as "log base bb of xx." It is the exponent you put on bb to get xx.

So every logarithm statement is an exponential statement in disguise:

Logarithmic formExponential form
log⁡232=5\log_2 32 = 525=322^5 = 32
log⁡100.001=−3\log_{10} 0.001 = -310−3=0.00110^{-3} = 0.001
log⁡93=12\log_9 3 = \frac{1}{2}91/2=39^{1/2} = 3
log⁡b1=0\log_b 1 = 0b0=1b^0 = 1

In both forms the base stays the base. The logarithm is the exponent.

Two bases get their own notation because calculators have keys for them:

  • The common logarithm log⁡x\log x means log⁡10x\log_{10} x.
  • The natural logarithm ln⁡x\ln x means log⁡ex\log_e x.

Evaluating logarithms

To evaluate log⁡bx\log_b x by hand, write xx as a power of bb.

Worked example: Evaluate without a calculator

Evaluate (a) log⁡381\log_3 81, (b) log⁡5125\log_5 \dfrac{1}{25}, (c) log⁡84\log_{8} 4, (d) ln⁡e7\ln e^{7}.

Solution.

(a) 81=3481 = 3^4, so log⁡381=4\log_3 81 = 4.

(b) 125=5−2\dfrac{1}{25} = 5^{-2}, so log⁡5125=−2\log_5 \dfrac{1}{25} = -2.

(c) Write both numbers as powers of 22: 8=238 = 2^3 and 4=224 = 2^2. You need 8y=48^y = 4, so 23y=222^{3y} = 2^2, giving 3y=23y = 2 and log⁡84=23\log_8 4 = \dfrac{2}{3}.

(d) ln⁡e7\ln e^7 asks what power of ee gives e7e^7. The answer is 77.

Part (d) is an instance of the inverse relationship. Because bxb^x and log⁡bx\log_b x undo each other:

Inverse properties

For b>0b > 0, b≠1b \ne 1:

log⁡b(bx)=x for every real x,blog⁡bx=x for every x>0.\log_b\left(b^{x}\right) = x \text{ for every real } x, \qquad b^{\log_b x} = x \text{ for every } x > 0.

In particular, log⁡b1=0\log_b 1 = 0, log⁡bb=1\log_b b = 1, ln⁡ex=x\ln e^x = x and eln⁡x=xe^{\ln x} = x.

For instance, 10log⁡6=610^{\log 6} = 6 and eln⁡2.5=2.5e^{\ln 2.5} = 2.5 without any computation.

Common mistake

You cannot take the log of 00 or of a negative number. No power of a positive base equals 00 or a negative number, so expressions like log⁡2(−8)\log_2(-8) and ln⁡0\ln 0 are undefined. The output of a log can be negative, though: log⁡100.01=−2\log_{10} 0.01 = -2 is perfectly fine.

Graphs of logarithmic functions

The graph of an inverse function is the reflection of the original graph across the line y=xy = x. Every point (a,c)(a, c) on y=2xy = 2^x becomes (c,a)(c, a) on y=log⁡2xy = \log_2 x. For example, (3,8)(3, 8) becomes (8,3)(8, 3).

y = log₂ x is the reflection of y = 2ˣ across y = x.Open in grapher →

Swapping xx and yy swaps every feature: the domain and range trade places, and the horizontal asymptote becomes a vertical one.

Features of y = log_b x

  • Domain: x>0x > 0. Range: all real numbers.
  • xx-intercept: (1,0)(1, 0). There is no yy-intercept.
  • Vertical asymptote: x=0x = 0.
  • Increasing if b>1b > 1; decreasing if 0<b<10 < b < 1.
  • The graph also passes through (b,1)(b, 1).

Logarithms grow extremely slowly. For y=log⁡xy = \log x to reach 66, xx must reach 1,000,0001{,}000{,}000.

y = ln x (base e) and y = log x (base 10). Both cross the x-axis at x = 1.Open in grapher →

Transformations and domain

For f(x)=alog⁡b(x−h)+kf(x) = a\log_b(x - h) + k, the vertical asymptote moves with the horizontal shift to x=hx = h, and the domain is x>hx > h. More generally, the domain of any logarithmic function is found by requiring the argument to be positive.

Worked example: Domain, asymptote and intercept

Let f(x)=ln⁡(2x−6)+1f(x) = \ln(2x - 6) + 1. Find the domain, the vertical asymptote and the xx-intercept.

Solution. The argument must be positive: 2x−6>02x - 6 > 0, so x>3x > 3. The domain is x>3x > 3 and the vertical asymptote is x=3x = 3.

For the xx-intercept, set f(x)=0f(x) = 0:

ln⁡(2x−6)=−1⟹2x−6=e−1⟹x=6+e−12≈3.184.\ln(2x - 6) = -1 \quad\Longrightarrow\quad 2x - 6 = e^{-1} \quad\Longrightarrow\quad x = \frac{6 + e^{-1}}{2} \approx 3.184.

The intercept is just to the right of the asymptote, as the graph suggests.

y = ln(2x - 6) + 1x = 3Open in grapher →

Tip

To convert a log equation, use the "spiral": in log⁡bx=y\log_b x = y, start at the base bb, go to the other side for the exponent yy, and come back for xx. That reads by=xb^y = x.

Logarithmic scales

When a quantity varies over many powers of ten, it is often reported on a logarithmic scale, where each step of 11 means a factor of 1010.

  • Acidity: pH=−log⁡[H+]\text{pH} = -\log\left[\text{H}^+\right], where [H+]\left[\text{H}^+\right] is the hydrogen-ion concentration in moles per liter.
  • Loudness: L=10log⁡II0L = 10\log\dfrac{I}{I_0} decibels, where I0=10−12I_0 = 10^{-12} watts per square meter is the quietest sound a person can hear.
  • Earthquakes: each whole-number step on the magnitude scale means 1010 times the ground motion.

Worked example: pH and decibels

(a) A sample of tomato juice has [H+]=6.3×10−5\left[\text{H}^+\right] = 6.3 \times 10^{-5}. Find its pH.

(b) One sound is 10001000 times as intense as another. How many decibels louder is it?

Solution.

(a) pH=−log⁡(6.3×10−5)≈−(−4.20)=4.20\text{pH} = -\log\left(6.3 \times 10^{-5}\right) \approx -(-4.20) = 4.20. The juice is acidic (below 77).

(b) If I2=1000I1I_2 = 1000I_1, then

L2=10log⁡1000I1I0=10(log⁡1000+log⁡I1I0)=30+L1.L_2 = 10\log\frac{1000I_1}{I_0} = 10\left(\log 1000 + \log\frac{I_1}{I_0}\right) = 30 + L_1.

It is 3030 decibels louder. Multiplying intensity by 1000=1031000 = 10^3 adds 33 steps of 1010 dB.

Part (b) previews the next lesson: the log of a product is the sum of the logs. That property is exactly why log scales turn multiplication into addition.

Practice

Practice 1

Evaluate log⁡4164\log_4 \dfrac{1}{64}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Evaluate log⁡279\log_{27} 9.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which equation is equivalent to 6−2=1366^{-2} = \dfrac{1}{36}?

Practice 4

Simplify 5log⁡5115^{\log_5 11}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

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

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 6

Find the xx-intercept of g(x)=ln⁡(x+4)−2g(x) = \ln(x + 4) - 2. Round to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Seawater that has been contaminated has a hydrogen-ion concentration of [H+]=4.0×10−9\left[\text{H}^+\right] = 4.0 \times 10^{-9} moles per liter. Find its pH using pH=−log⁡[H+]\text{pH} = -\log\left[\text{H}^+\right]. Round to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

A rock concert produces sound that is 100100 times as intense as a busy street. Using L=10log⁡II0L = 10\log\dfrac{I}{I_0}, how many decibels louder is the concert than the street?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.