Skip to main content

Section 10.1 Logarithmic Functions

In this section we study logarithmic functions. For example,

\begin{equation*} f(x)=\log_2 {x} \end{equation*}

is a logarithmic function. In order to understand logarithmic functions better, we first investigate how they are related to more familiar functions, the exponential functions.

Subsection Inverse of a Function

You know that raising to the \(n\)th power and taking \(n\)th roots are inverse operations. For example, if we first cube a number and then take its cube root, we return to the original number.

\begin{align*} x \amp = \alert{5}~~~~~~\rightarrow~~~~~~x^3=125~~~~~~\rightarrow~~~~~~\sqrt[3]{x^3}=\sqrt[3]{125}=\alert{5}\\ \amp \blert{\text{Cube the number}}~~~~~~~~\blert{\text{Take the cube root}}~~~~~~~~\blert{\text{Original number}} \end{align*}

Now consider the functions that describe those operations: The graphs of \(f(x)=x^3\) and \(g(x)=\sqrt[3]{x}\) are related in an interesting way, as shown below.

cube root and cube funcions

If we place a mirror along the line \(y=x\text{,}\) each graph is the reflection of the other. We say that the graphs are "symmetric about the line \(y=x\text{.}\)"

The two functions \(f(x)=x^3\) and \(g(x)=\sqrt[3]{x}\) are called inverse functions. Look at the tables of values for the two functions.

\(x\) \(-2\) \(-1\) \(\dfrac{-1}{2}\) \(0\) \(\dfrac{1}{2}\) \(1\) \(2\)
\(f(x)\) \(-8\) \(-1\) \(\dfrac{-1}{8}\) \(0\) \(\dfrac{1}{8}\) \(1\) \(8\)
\(x\) \(-8\) \(-1\) \(\dfrac{-1}{8}\) \(0\) \(\dfrac{1}{8}\) \(1\) \(8\)
\(g(x)\) \(-2\) \(-1\) \(\dfrac{-1}{2}\) \(0\) \(\dfrac{1}{2}\) \(1\) \(2\)

By interchanging the rows in the table for \(f(x)\text{,}\) we get the table for \(g(x)\text{.}\) This makes sense when we recall that each function undoes the effect of the other. In fact, we define the cube root function by

\begin{equation*} y=\sqrt[3]{x}~~~~\text{if and only if}~~~~x=y^3 \end{equation*}

In other words, if we interchange the variables in the cubing function, \(y=x^3\text{,}\) to get \(x=y^3\text{,}\) we have an equivalent formula for the cube root function, \(y=\sqrt[3]{x}\text{.}\)

Subsection Inverse of an Exponential Function

A similar rule relates the operations of raising a base \(b\) to a power and taking a base \(b\) logarithm.

\begin{equation*} y = \log_b {x}~~~~\text{if and only if}~~~~x=b^y \end{equation*}

So the function \(g(x)=\log_b {x}\) is the inverse function for \(f(x)=b^x\text{.}\) Each function undoes the effect of the other. For example, let \(f(x)=2^x\) and \(g(x)=\log_2 {x}\text{.}\) Start with \(x=3\text{,}\) apply \(f\text{,}\) and then apply \(g\) to the result.

\begin{equation*} x = \alert{3}~~~~~~\rightarrow~~~~~~f(3)=2^3=8~~~~~~\rightarrow~~~~~~g(8)=\log_2{8} = \alert{3} \end{equation*}

We return to the original number, 3.

We can write these operations in one expression as

\begin{equation*} \log_2(2^{\alert{3}}) = \alert{3} \end{equation*}

(Remember the order of operations: do what's inside of parentheses first.) Because the log and the exponential are inverse functions, this identity holds for any value of \(x\) and any base \(b \gt 0\text{.}\) That is

\begin{equation*} \blert{\log_b(b^{x}) = x} \end{equation*}

We can also apply the two functions in the opposite order, so that

\begin{equation*} 2^{\log_2{\alert{8}}} = \alert{8} \end{equation*}

(This one is harder to see, but we compute the exponent, \(\log_2{8}\text{,}\) first.) And in general

\begin{equation*} \blert{b^{\log_b{x}} = x} \end{equation*}

Subsection Graphs of Logarithmic Functions

What does the graph of a log function look like? We can use exponential functions to help us.

Example 10.3.

Graph \(g(x)=\log_2{x}\)

Solution

We can make a table of values for \(g(x)=\log_2{x}\) by interchanging the columns in a table for \(f(x)=2^x\text{.}\)

\(x\) \(f(x)=2^x\)
\(-2\) \(\dfrac{1}{4}\)
\(-1\) \(\dfrac{1}{2}\)
\(0\) \(1\)
\(1\) \(2\)
\(2\) \(4\)
\(3\) \(8\)
\(x\) \(g(x)=\log_2{x}\)
\(\dfrac{1}{4}\) \(-2\)
\(\dfrac{1}{2}\) \(-1\)
\(1\) \(0\)
\(2\) \(1\)
\(4\) \(2\)
\(8\) \(3\)

We plot the points for each function, connecting them with smooth curves, as shown below. You can see that the two graphs are symmetric about the line \(y=x\text{.}\)

2 to x and log base 2

The same technique works for graphing a log function with any base.

\(f(x)=10^x\) and its inverse function \(g(x)=\log_{10}{x}\text{:}\)

10 to x and common log

Did you notice that the graphs of the log functions do not have any points with negative \(x\)-coordinates? This is because an exponential function has no negative (or zero) output values, so a log function has no negative or zero input values. In other words,

We cannot take the log of a negative number or zero.

In addition, the logarithmic function has the following properties.

Properties of Log Functions.

For any base \(b \gt 0, b \ne 1\text{:}\)

  1. The logarithmic function \(y = \log_b x\) is defined for positive \(x\) only.
  2. The \(x\)-intercept of its graph is \((1,0)\text{.}\)
  3. The graph has a vertical asymptote at \(x=0\text{.}\)
  4. The graphs of \(y = \log_b x\) and \(y=b^x\) are symmetric about the line \(y=x\text{.}\)

You can also see that while an exponential growth function increases very rapidly for positive input values, its inverse, the logarithmic function, grows extremely slowly.

Subsection Using Logarithmic Functions

We can use the LOG key on a calculator to evaluate the function \(f(x) = \log_{10}{x}\text{.}\)

Example 10.7.

Let \(f(x) = \log_{10}{x}\text{.}\) Evaluate the following expressions.

  1. \(\displaystyle f(35)\)
  2. \(\displaystyle f(-8)\)
  3. \(\displaystyle 2 f(16) + 1\)
Solution
  1. \(\displaystyle f (35) = \log_{10}{35}\approx 1.544\)
  2. \(f(-8)\text{,}\) or \(\log_{10}{(-8)}\text{,}\) is undefined.
  3. \(\displaystyle 2 f(16) + 1 = 2(\log_{10}{16}) + 1 \approx 2(1.204) + 1 = 3.408\)
Example 10.9.

Evaluate the expression \(~~T=\dfrac{1}{k}\log_{10}{\left(\dfrac{M_f}{M_0}+1\right)}~\) for \(k=0.028, ~M_f=1832\text{,}\) and \(M_0=15.3\text{.}\)

Solution

Follow the order of operations and calculate

\begin{align*} T \amp =\dfrac{1}{0.028}\log_{10}{\left(\dfrac{1832}{15.3}+1\right)} = \dfrac{\log_{10}{120.739}}{0.028}\\ \amp \approx \dfrac{2.082}{0.028} \approx 74.35 \end{align*}

A calculator keying sequence for the calculation is

\(\qquad\qquad\)LOG \(1832\) ÷ \(15.3\) + \(1\) ) ÷ \(0.028\) ENTER

Logarithmic functions are useful for modeling increasing functions that slow down as the input increases.

Example 10.11.

In 1900, the average life expectancy at birth in the U.S. was 47.3 years. Since then, life expectancy has increased according to the formula

\begin{equation*} L(x)=18.53 + 28.92 \log {x} \end{equation*}

where \(x\) is the number of years after 1900.

  1. Graph the life expectancy function for the years 1900 to 2010.
  2. The life expectancy in 1950 was 68.2 years. What does the function \(L(x)\) predict for life expectancy in 1950?
  3. How much did life expectancy increase between 1920 and 1930? How much did it increase between 1990 and 2000?
Solution
  1. We can make a table of values and plot points to obtain the graph below.

    \(x\) \(0\) \(20\) \(40\) \(60\) \(80\) \(100\)
    \(L(x)\) \(47.3\) \(56.2\) \(64.9\) \(70.0\) \(73.6\) \(76.4\)
    average life expectancy
  2. We substitute \(x=50\) into the function to find

    \begin{equation*} L(50) = 18.53 + 28.92 \log {50} \approx 67.7 \end{equation*}

    The function predicts a life expectancy of 67.7 years in 1950.

  3. Between 1920 and 1930, life expectancy increased from 56.2 to 61.2, or 5 years. Between 1990 and 2000 it increased from 75.0 to 76.4, or 1.4 years.

Graph for part (a):

curve

Subsection Solving Logarithmic Equations

A logarithmic equation is one in which the variable appears inside of a logarithm. For example,

\begin{equation*} \log_4 x = 3 \end{equation*}

is a log equation.

If there is only one log involved, we can use the conversion formula to write the equation in exponential form.

Example 10.14.

Solve \(~\log_4{(2x-8)}=3\text{.}\)

Solution

We use the conversion formula to write the equation in exponential form.

\begin{align*} 2x-8 \amp = 4^3 \amp \amp \blert{\text{Evaluate the power.}}\\ 2x-8 \amp = 64 \amp \amp \blert{\text{Solve for}~x.}\\ x \amp = 36 \end{align*}

The solution is 36.

Caution 10.16.

Remember that we cannot take a logarithm of a negative number or zero, because the output of an exponential function is always positive.

For example suppose that \(\log_5{(-25)} = x\text{.}\) Then \(5^x = -25\text{.}\) But this is impossible, because \(5^x\) cannot be negative. Thus, the log of a negative number (or zero) is undefined.

Because of this fact, extraneous solutions can arise when we solve logarithmic equations.

If the equation contains more than one log, we must first combine any expressions involving logs into a single logarithm.

Example 10.17.

Solve \(~~\log_{10}{(x + 1)} + \log_{10}{(x - 2)}= 1\text{.}\)

Solution

We use Property (1) of logarithms (see Properties of Logarithms) to rewrite the left-hand side as a single logarithm:

\begin{equation*} \log_{10}{(x + 1)(x - 2)} = 1 \end{equation*}

Once the left-hand side is expressed as a single logarithm, we can rewrite the equation in exponential form as

\begin{equation*} (x + 1)(x - 2) = 10^1 \end{equation*}

Simplifying the right side gives us a quadratic equation to solve.

\begin{align*} x^2 - x - 2 \amp = 10 \amp \amp \blert{\text{Subtract 10 from both sides.}}\\ x^2 - x - 12 \amp = 0 \amp \amp \blert{\text{Factor the left side.}}\\ (x - 4)(x + 3) \amp= 0 \amp \amp \blert{\text{Apply the zero-factor principle.}} \end{align*}

We find \(x = 4\) or \(x = -3\text{.}\) But we must check the original equation for extraneous solutions. The number \(-3\) is not a solution of the original equation, because neither \(\log_{10}{(x + 1)}\) nor \(\log_{10}{(x - 2)}\) is defined for \(x = -3\text{.}\) The apparent solution \(x=-3\) is extraneous, and the solution of the original equation is \(4\text{.}\)

Exercises Problem Set 10.1

Warm Up

For Problems 1–4, convert the logarithmic equation into exponential form.

1.

\(\log_9{729}=y\)

2.

\(\log_b{8}=-3\)

3.

\(\log_{10}{C}=-4.5\)

4.

\(\log_m{n}=p\)

For Problems 5–8, write the expression as a single log with a coefficient of 1.

5.

\(\dfrac{1}{2}\log_b{16}+2\left(\log_b{2}-\log_b{8}\right)\)

6.

\(\dfrac{1}{2}\left(\log_5{6}+2\log_5{4}\right)-\log_5{2}\)

7.

\(\dfrac{1}{2}\left(\log_{10}{y}+\log_{10}{x}-3\log_{10}{z}\right)\)

8.

\(\dfrac{1}{3}\left(\log_{10}{x}-2\log_{10}{y}-\log_{10}{z}\right)\)

Skills Practice

For Problems 9 and 10,

  1. Make a table of values for each function.
  2. Graph both functions on the same set of axes.
9.

\(f(x) = 3^x\text{,}\) \(\quad g(x) = \log_3{x}\)

grid
10.

\(f(x) = \left(\dfrac{1}{2}\right)^x\text{,}\) \(g(x) = \log_{1/2}{x}\)

grid

For Problems 11 and 12, \(f(x)=\log_{10}{x}\text{.}\) Evaluate the expression, and round the answer to four decimal places.

11.
  1. \(\displaystyle 18-5f(3)\)
  2. \(\displaystyle \dfrac{2}{5+f(0.6)}\)
12.
  1. \(\displaystyle 15-4f(7)\)
  2. \(\displaystyle \dfrac{3}{2+f(0.2)}\)

For Problems 13 and 14, evaluate the expression.

13.

\(R=\dfrac{1}{L}\log_{10}{\left(\dfrac{P}{L-P}\right)}~\text{,}\) for \(L=8500\) and \(P=3600\)

14.

\(M=\sqrt{\dfrac{\log_{10}H}{k\log_{10}H_0}}~\text{,}\) for \(H=0.93,~H_0 = 0.02\text{,}\) and \(k=0.006\)

For Problems 15 and 16, \(f(x)=\log_{10}{x}\text{.}\) Solve for \(x\text{.}\)

15.
  1. \(\displaystyle f(x)=1.41\)
  2. \(\displaystyle f(x)=0.52\)
16.
  1. \(\displaystyle f(x)=0.8\)
  2. \(\displaystyle f(x)=-1.3\)

For Problems 17 and 18, solve for the unknown variable.

17.
  1. \(\displaystyle \log_2{y}=-1\)
  2. \(\displaystyle \log_b{0.1}=-1\)
18.
  1. \(\displaystyle 3(\log_7{x})+5=7\)
  2. \(\displaystyle 5(\log_2{x})+6=-14\)
19.

Let \(f(x)=3^x\) and \(g(x)=\log_3{x}\)

  1. Compute \(f(4)\)
  2. Compute \(g\left[f(4)\right]\)
  3. Compute \(\log_3{3^{1.8}}\)
  4. Compute \(\log_3{3^{a}}\)
20.

Let \(f(x)=\log_2{x}\) and \(g(x)=2^x\)

  1. Compute \(f(32)\)
  2. Compute \(g\left[f(32)\right]\)
  3. Compute \(2^{\log_2{6}}\)
  4. Compute \(2^{\log_2{Q}}\)
21.

Each figure shows a portion of the graph of one of the following functions. Match each function with its graph.

six curves
  1. \(\displaystyle f(x)=2^x\)
  2. \(\displaystyle f(x)=x^2\)
  3. \(\displaystyle f(x)=\dfrac{2}{x}\)
  4. \(\displaystyle f(x)=\sqrt{x}\)
  5. \(\displaystyle f(x)=\log_2{x}\)
  6. \(\displaystyle f(x)=\left(\dfrac{1}{2}\right)^x\)
22.

Choose the graph for each function described below.

  1. The area, \(A\text{,}\) of a pentagon is a quadratic function of the length \(l\text{,}\) of its side.
  2. The strength, \(F\text{,}\) of a hurricane varies inversely with its speed, \(s\text{.}\)
  3. The price of food has increased 3% every year for a decade.
  4. The magnitude, \(M\text{,}\) of a star is a logarithmic function of its brightness, \(I\text{.}\)
  5. The speed of the train increased at a constant rate.
  6. if you don't practice a foreign language, you lose \(\dfrac{1}{8}\) of the words in your working vocabulary each year.
six curves
23.
  1. How large must \(x\) be before the graph of \(y=\log_{10}{x}\) reaches a height of 4?
  2. How large must \(x\) be before the graph of \(y=\log_{10}{x}\) reaches a height of 8?
24.
  1. How large must \(x\) be before the graph of \(y=\log_2{x}\) reaches a height of 5?
  2. How large must \(x\) be before the graph of \(y=\log_2{x}\) reaches a height of 10?

For Problems 25–28, solve the logarithmic equation.

25.

\(\log_{10} x + \log_{10}(x + 21) = 2\)

26.

\(\log_{8} (x+5) - \log_{8}2 = 1\)

27.

\(\log_{10} (x+2) + \log_{10}(x-1) = 1\)

28.

\(\log_{3} (x-2) - \log_{3}(x+1) = 3\)

Applications
29.

In a psychology experiment, volunteers were asked to memorize a list of nonsense words, and 24 hours later they were tested to see how many of the words they recalled. On average, the subjects had forgotten 20% of the words. The researchers found that the more lists their volunteers memorized, the larger the fraction of words they were unable to recall. (Source: Underwood, Scientific American, vol. 210, no. 3)

Number of lists, \(n\) \(1\) \(4\) \(8\) \(12\) \(16\) \(20\)
Percent forgotten, \(F\) \(20\) \(40\) \(55\) \(66\) \(74\) \(80\)
  1. Plot the data. What sort of function seems to fit the data points?

  2. Psychologists often describe rates of forgetting by logarithmic functions. Graph the function

    \begin{equation*} f(n) = 16.6 + 46.3 \log {n} \end{equation*}

    on the same graph with your data. Comment on the fit.

  3. What happens to the values of \(f(n)\) as \(n\) grows increasingly large? Does this behavior accurately reflect the situation being modeled?

30.

The water velocity at any point in a stream or river is related to the logarithm of the depth at that point. For the Hoback River near Bondurant, Wyoming,

\begin{equation*} v = 2.63 + 1.03 \log {d} \end{equation*}

where \(v\) is the velocity of the water, in feet per second, and \(d\) is the vertical distance from the stream bed, in feet, at that point. For Pole Creek near Pinedale, Wyoming,

\begin{equation*} v = 1.96 + 0.65 \log {d} \end{equation*}

Both streams are \(1.2\) feet deep at the locations mentioned. (Source: Leopold, Luna, Wolman, and Gordon, 1992)

  1. Complete the table of values for each stream.

    Distance from bed (feet) \(0.2\) \(0.4\) \(0.6\) \(0.8\) \(1.0\) \(1.2\)
    Velocity, Hoback
    River, (ft/sec)
    Velocity, Pole Creek (ft/sec)
  2. If you double the distance from the bed, by how much does the velocity increase in each stream?

  3. Plot both functions on the same graph.

  4. The average velocity of the entire stream can be closely approximated as follows: Measure the velocity at 20% of the total depth of the stream from the surface and at 80% of the total depth, then average these two values. Find the average velocity for the Hoback River and for Pole Creek.

31.

In Example 10.11 of this section, we considered a formula for the average life expectancy in the U.S. as a function of years after 1900,

\begin{equation*} L(x)=18.53+28.92 \log {x} \end{equation*}

According to the formula, in what year was the life expectancy 70 years?

32.

In Practice 5 of this section, we considerd a formula for the average height, in centimeters, of girls between the ages of 2 and 20.

\begin{equation*} H(t) = 49.29+91.3 \log {t} \end{equation*}

According to the formula, at what age should a girl expect to be 152.4 centimeters (5 feet) tall?