Skip to main content

Section 4.2 Logarithmic Functions and Their Applications

  • The inverses of the exponential functions are called logarithmic functions.
  • The inverse of \(f(x)=a^x\) is \(\log_a(x)\text{,}\) a logarithm.
  • \(\log_a(x)\) is the exponent to which the base \(a\) must be raised to obtain the value \(x\text{.}\)

Example 4.2.1.

Evaluate the following logarithms.
\begin{equation*} \log_2(16) \quad \quad \quad \log_3(27) \quad \quad \quad \log_3 \left( \frac{1}{27} \right) \quad \quad \quad \log_{\frac{1}{2}}(8) \end{equation*}
Solution
  1. \(\log_2(16)\)
    What power of \(2\) equals \(16\text{?}\)
    \begin{equation*} 2^4 = 16 \end{equation*}
    Therefore, \(\log_2(16) = 4\text{.}\)
  2. \(\log_3(27)\)
    What power of \(3\) equals \(27\text{?}\)
    \begin{equation*} 3^3 = 27 \end{equation*}
    Therefore, \(\log_3(27) = 3\text{.}\)
  3. \(\log_3 \left( \frac{1}{27} \right) \)
    What power of \(3\) equals \(\frac{1}{27}\text{?}\)
    Since \(\frac{1}{27} = \frac{1}{3^3} = 3^{-3}\text{,}\)
    \begin{equation*} 3^{-3} = \frac{1}{27} \end{equation*}
    Therefore, \(\log_3 \left( \frac{1}{27} \right) = -3\text{.}\)
  4. \(\log_{\frac{1}{2}}(8) \)
    What power of \(\frac{1}{2}\) equals \(8\text{?}\)
    Since
    \begin{equation*} \frac{1}{2}=2^{-1}, \end{equation*}
    it follows that
    \begin{equation*} 8=2^3 = \left( \frac{1}{2} \right)^{-3}\text{.} \end{equation*}
    Therefore, \(\log_{\frac{1}{2}}(8)=-3\text{.}\)
Definition of a Logarithmic Function: Β  For \(a \gt 0\text{,}\) \(a\not = 1\)
\begin{equation*} y=\log_a(x) \quad \text{ if and only if } \quad a^y=x \end{equation*}

Subsection 4.2.1 Graphing Logarithmic Functions

Example 4.2.2.

Graph \(y=\log_2(x)\) alongside \(y=\log_2(x-1)\text{.}\) Are these functions increasing or decreasing?
Solution: Β  We will graph \(y=\log_2(x)\) by plotting points and sketching a curve through them. Then the graph of \(y=\log_2(x-1)\) is obtained by translating the graph of \(y=\log_2(x)\) to the right one unit.
Figure 4.2.3. The graphs of \(y=\log_2(x)\) and \(y=\log_2(x-1)\text{,}\) two curves in the right half of the plane.
\(x\) \(\log_2(x)\)
\(1/2\) \(-1\)
\(1\) \(0\)
\(2\) \(1\)
\(4\) \(2\)
Looking from left to right, both graphs rise. Therefore, both functions are increasing.

Example 4.2.4.

Graph \(f(x)=\log_{\frac{1}{2}}(x)\text{.}\) Is \(f(x)\) increasing or decreasing?
Solution
Figure 4.2.5. The graph of \(f(x)=\log_{\frac{1}{2}}(x)\text{,}\) a single curve in the right half of the plane.
\(x\) \(\log_{\frac{1}{2}}(x)\)
\(1/2\) \(1\)
\(1\) \(0\)
\(2\) \(-1\)
\(4\) \(-2\)
Looking from left to right, the graph falls. Therefore, \(f\) is decreasing over its domain.

Subsection 4.2.2 Properties of Logarithmic Functions

\(f(x)=\log_a(x)\) has the following properties.
  1. \((1,0)\) is the \(x\)-intercept of the graph of \(f(x)\text{.}\)
  2. The \(y\)-axis is a vertical asymptote of the graph.
  3. Domain: all positive real numbers \((0,\infty)\text{.}\)
  4. Range: all real numbers \((-\infty, \infty)\text{.}\)
  5. \(f(x)\) is one-to-one.
  6. \(f(x)\) is increasing for \(a \gt 1\) and decreasing for \(0 \lt a \lt 1\text{.}\)
Figure 4.2.6. Graph of an increasing logarithmic function.
Figure 4.2.7. Graph of a decreasing logarithmic function.

Subsection 4.2.3 Common and Natural Logarithms

  • Common logarithms are logarithms with base \(10\text{.}\) Most calculators use \(\log\) for \(\log_{10}\text{.}\) So,
    \begin{equation*} \log(x) \quad \text{means} \quad \log_{10}(x). \end{equation*}
  • Natural logarithms are logarithms with base \(e\text{.}\) This is usually written as \(\ln\) instead of \(\log_e\text{.}\) So,
    \begin{equation*} \ln(x) \quad \text{means} \quad \log_e(x). \end{equation*}

Example 4.2.8.

Evaluate:
\begin{equation*} \text{(a) } \log(10^6) \quad \quad \quad \text{(b) }\log(-5) \quad \quad \quad \text{(c) }\ln(e) \quad \quad \quad \quad \quad \quad \end{equation*}
Solution
(a) Since \(\log(x)\) means \(\log_{10}(x)\text{,}\) ask: What power of \(10\) equals \(10^6\text{?}\)
The exponent is \(6\text{.}\) Therefore, \(\log(10^6)=6\text{.}\)
(b) \(\log(-5)\) is undefined since \(-5\) isn’t in the domain \((0, \infty)\text{.}\)
(c) Since \(\ln(x)=\log_e(x)\text{,}\) ask: What power of \(e\) equals \(e\text{?}\)
Since \(e=e^1\text{,}\) \(\ln(e)=1\text{.}\)

Subsection 4.2.4 Rewriting Logarithmic and Exponential Equations

Recall the definition of logarithms
\begin{equation*} y=\log_a(x) \quad \text{if and only if} \quad a^y=x \end{equation*}

Example 4.2.9.

Write each equation as an equivalent exponential equation.
(a) \(\log_3(81)=4\) Β  Β  Β  Β  Β  Β  Β  Β  (b) \(\log_2(x)=-3\)
Solution
(a) The given equation matches \(y=\log_a(x)\) for \(y=4\text{,}\) \(a=3\text{,}\) \(x=81\text{.}\)
Substitute these values into \(a^y=x\text{:}\)
\begin{equation*} 3^4=81. \end{equation*}
(b) The given equation matches \(y=\log_a(x)\) for \(a=2\text{,}\) \(y=-3\text{.}\)
Substitute these values into \(a^y=x\text{:}\)
\begin{equation*} x=2^{-3}. \end{equation*}

Example 4.2.10.

Write each equation as an equivalent logarithmic equation.
(a) \(2^7=128\) Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  Β  (b) \(10^5=w\)
Solution
(a) The given equation matches \(a^y=x\) for \(a=2\text{,}\) \(y=7\text{,}\) \(x=128\text{.}\)
Substitute these values into \(y=\log_a(x)\text{:}\)
\begin{equation*} 7=\log_2(128) \end{equation*}
(b) The given equation matches \(a^y=x\) for \(a=10\text{,}\) \(y=5\text{,}\) \(x=w\text{.}\)
Substitute these values into \(y=\log_a(x)\text{:}\)
\begin{align*} 5 \amp =\log_{10}(w) \\ 5 \amp =\log(w) \end{align*}

Example 4.2.11.

Rewrite the equation \(x=7^{y+2}\) as a logarithmic equation.
Solution: Β  Recall that \(z=\log_a(x) \quad\) if and only if \(\quad a^z=x\text{.}\)
The given equation matches \(x=a^z\) for \(a=7\text{,}\) \(z=y+2\text{.}\)
Substitute these values into \(z=\log_a(x)\text{:}\)
\begin{equation*} \log_7(x)=y+2. \end{equation*}

Subsection 4.2.5 Finding Inverse Functions

Example 4.2.12.

Find \(f^{-1}\) for \(f(x)=7^{x+2}\text{.}\)
Solution: Β  Use the switch and solve method.
Step \(1\): Replace \(f(x)\) with \(y\text{.}\)
\begin{equation*} y=7^{x+2} \end{equation*}
Step \(2\): Interchange the variables.
\begin{equation*} x=7^{y+2} \end{equation*}
Step \(3\): Solve for \(y\text{.}\)
First, use the result from ExampleΒ 4.2.11 to rewrite the equation as a logarithmic equation so that \(y\) is no longer in an exponent.
\begin{equation*} \log_7(x)=y+2 \end{equation*}
Now, solve for \(y\text{:}\)
\begin{align*} \log_7(x)-\underline{2} \amp =y+2-\underline{2} \\ \log_7(x)-2 \amp =y \end{align*}
Step \(4\): Replace \(y\) with \(f^{-1}(x)\)
\begin{equation*} f^{-1}(x)=\log_7(x)-2 \end{equation*}

Example 4.2.13.

Let \(f(x)=\log_2(x-1) +4\text{.}\) Find \(f^{-1}(x)\text{.}\)
Solution
Step \(1\): \(y=\log_2(x-1) +4\)
Step \(2\): Interchange \(x\) and \(y\text{.}\)
\begin{equation*} x=\log_2(y-1) +4 \end{equation*}
Step \(3\): Solve for \(y\text{.}\)
\begin{align*} x-\underline{4} \amp =\log_2(y-1)+4-\underline{4} \\ x-4 \amp =\log_2(y-1) \end{align*}
\(\log_2(y-1)\) is the exponent to which \(2\) must be raised to obtain \(y-1\text{.}\)
\begin{align*} 2^{x-4} \amp =y-1 \quad \quad \quad \text{ by definition of logarithm } \\ y-1 \amp = 2^{x-4} \\[0.25em]\\ y-1+\underline{1} \amp = 2^{x-4}+\underline{1} \\ y \amp = 2^{x-4}+1 \end{align*}
Step \(4\): \(f^{-1}(x)= 2^{x-4}+1\)

Subsection 4.2.6 One-to-One Property of Logarithms

For \(a \gt 0\) and \(a \not= 1\text{,}\) if \(\log_a(x_1)=\log_a(x_2)\text{,}\) then \(x_1=x_2\text{.}\)
Note: Make sure the base is the same on both sides.

Example 4.2.14.

Solve each equation.
\begin{equation*} \text{(a) } \log_5(x)=3 \quad \quad \text{ (b) } \log_2(4x)=\log_2(x+6) \quad \quad \text{ (c) }\log_x(9)=\frac{1}{2} \quad \quad \end{equation*}
Solution
(a) \(\log_5(x)\) is the exponent to which \(5\) must be raised to obtain \(x\text{.}\)
\begin{align*} x \amp =5^{\log_5(x)} \\ x \amp =5^3 \quad \quad \quad \text{since $\log_5(x)=3$} \\ x \amp =125 \end{align*}
(b) Both sides of the equation are a logarithm with base \(2\text{,}\) so we can apply the one-to-one property.
\begin{align*} \log_2(4x) \amp =\log_2(x+6) \\ 4x \amp =x+6 \quad \quad \quad \text{ by one-to-one property} \\[0.25em]\\ 4x-\underline{x} \amp =x+6-\underline{x} \\ 3x \amp =6 \end{align*}
Therefore, \(x=2\text{.}\)
(c) \(\log_x(9)\) is the exponent to which \(x\) must be raised to obtain \(9\text{.}\)
\begin{align*} x^{\log_x(9)} \amp =9 \\ x^{1/2} \amp =9 \quad \quad \quad \text{ since $\log_x(9)=\frac{1}{2}$} \\[0.25em]\\ \left( x^{1/2} \right)^2 \amp = 9^2 \\ x \amp =81 \end{align*}
Note: Since \(x\) was the base of a logarithm in part (c), the inequality \(x \gt 0\) was true. This allowed us to state that \(\left( x^{1/2} \right)^2=x\text{.}\)

Subsection 4.2.7 Application: Continuous Compounding

Example 4.2.15.

If \(\$8,000\) is invested at \(9\%\) compounded continuously, then how long will it take for the investment to grow to \(\$20,000\) ?
Solution: Β  Use the formula \(A=Pe^{rt}\) to find \(t\text{.}\)
We’re given:
Substitute these values into the formula:
\begin{align*} 20,000 \amp =8,000e^{0.09t} \\[0.25em]\\ \frac{20,000}{8,000} \amp =\frac{8,000e^{0.09t}}{8,000} \\[0.25em]\\ 2.5 \amp =e^{0.09t} \end{align*}
Now, rewrite the equation as a logarithmic equation so that \(t\) is no longer in an exponent.
Our current equation matches \(a^y=x\) for \(a=e\text{,}\) \(y=0.09t\text{,}\) \(x=2.5\text{.}\)
Substitute these values into \(y=\log_a(x)\) and solve for \(t\text{:}\)
\begin{align*} 0.09t \amp = \log_e(2.5) \\ 0.09t \amp = \ln(2.5) \\[0.25em]\\ t \amp =\frac{\ln(2.5)}{0.09}\approx 10.181 \text{ years.} \end{align*}
Multiply \(365\) by \(0.181 \implies \text{ about $66$ days}\text{.}\)
Therefore, \(t \approx 10\) years \(66\) days.