Section 1.8 Logarithmic Functions
Learning Objectives.
Identify the form of a logarithmic function.
Explain the relationship between exponential and logarithmic functions.
Describe how to calculate a logarithm to a different base.
In this section we examine logarithmic functions. We use the properties of these functions to solve equations involving exponential and logarithmic terms. Note: This the second half of section 1.5 in the original version of OpenStax Calculus.
Subsection 1.8.1 Logarithmic Functions
Using our understanding of exponential functions, we can discuss their inverses, which are the logarithmic functions. These come in handy when we need to consider any phenomenon that varies over a wide range of values, such as pH in chemistry or decibels in sound levels.
The exponential function \(f(x)=b^x\) is one-to-one, with domain \((-\infty,\infty)\) and range \((0,\infty).\) Therefore, it has an inverse function, called the logarithmic function with base \(b.\) For any \(b\gt 0,b\neq 1,\) the logarithmic function with base b, denoted \(\log_b ,\) has domain \((0,\infty)\) and range \((-\infty,\infty),\) and satisfies
For example,
Furthermore, since \(y=\log_b (x)\) and \(y=b^x\) are inverse functions,
The most commonly used logarithmic function is the function \(\log_e .\) Since this function uses natural \(e\) as its base, it is called the natural logarithm. Here we use the notation \(\ln(x)\) or \(\ln x\) to mean \(\log_e (x).\) For example,
Since the functions \(f(x)=e^x\) and \(g(x)=\ln(x)\) are inverses of each other,
and their graphs are symmetric about the line \(y=x\) (Figure 1.122).
Another frequently used logarithmic function is the function \(\log_{10} .\) It is called the common logarithm. Here we use the notation \(\log(x)\) or \(\log x\) to mean \(\log_{10} (x).\) For example,
Note 1.123. Media.
At this site 1 you can see an example of a base-10 logarithmic scale.
In general, for any base \(b\gt 0,b\neq 1,\) the function \(g(x)=\log_b (x)\) is symmetric about the line \(y=x\) with the function \(f(x)=b^x.\) Using this fact and the graphs of the exponential functions, we graph functions \(\log_b \) for several values of \(b\gt 1\) (Figure 1.124).
Before solving some equations involving exponential and logarithmic functions, let’s review the basic properties of logarithms.
Note 1.125. Rule: Properties of Logarithms.
If \(a,b,c\gt 0,b\neq 1,\) and \(r\) is any real number, then
Example 1.126. Solving Equations Involving Exponential Functions.
Solve each of the following equations for \(x.\)
\(\displaystyle 5^x=2\)
\(\displaystyle e^x+6e^{-x}=5\)
Applying the natural logarithm function to both sides of the equation, we have
\begin{equation*} \ln5^x=\ln 2. \end{equation*}Using the power property of logarithms,\begin{equation*} x\ln 5=\ln 2. \end{equation*}Therefore, \(x=\ln 2/\ln 5.\)Multiplying both sides of the equation by \(e^x,\) we arrive at the equation
\begin{equation*} e^{2x}+6=5e^x. \end{equation*}Rewriting this equation as\begin{equation*} e^{2x}−5e^x+6=0, \end{equation*}we can then rewrite it as a quadratic equation in \(e^x.\)\begin{equation*} (e^x)^2−5(e^x)+6=0. \end{equation*}Now we can solve the quadratic equation. Factoring this equation, we obtain\begin{equation*} (e^x−3)(e^x−2)=0. \end{equation*}Therefore, the solutions satisfy \(e^x=3\) and \(e^x=2.\) Taking the natural logarithm of both sides gives us the solutions \(x=\ln 3,\ln 2.\)
Checkpoint 1.127.
Solve \(e^{-x}/(3+e^{-x})=1/2.\)
Example 1.128. Solving Equations Involving Logarithmic Functions.
Solve each of the following equations for \(x.\)
\(\displaystyle \ln\left(\frac{1}{x}\right)=4\)
\(\displaystyle \log_{10}\sqrt{x}+\log_{10}x=2\)
\(\displaystyle \ln(2x)−3\ln(x^2)=0\)
By the definition of the natural logarithm function,
\begin{equation*} \ln\left(\frac{1}{x}\right)=4 \text{ if and only if } e^4=\frac{1}{2}. \end{equation*}Therefore, the solution is \(x=1/e^4.\)Using the product and power properties of logarithmic functions, rewrite the left-hand side of the equation as
\begin{equation*} \log_{10}\sqrt{x}+\log_{10}x=\log_{10}x\sqrt{x}=\log_{10}x^{3/2}=\frac{3}{2}\log_{10}x. \end{equation*}Therefore, the equation can be rewritten as\begin{equation*} \frac{3}{2}\log_{10}x=2 \text{ or } \log_{10}x=\frac{4}{3}. \end{equation*}The solution is \(x=10^{4/3}=10\sqrt[3]{10}.\)Using the power property of logarithmic functions, we can rewrite the equation as \(\ln(2x)−\ln(x^6)=0.\) Using the quotient property, this becomes
\begin{equation*} \ln\left(\frac{2}{x^5}\right)=0. \end{equation*}Therefore, \(2/x^5=1,\) which implies \(x=\sqrt[5]{2}.\) We should then check for any extraneous solutions.
Checkpoint 1.129.
Solve \(\ln(x^3)−4>\ln(x)=1.\)
When evaluating a logarithmic function with a calculator, you may have noticed that the only options are \(\log_{10}\) or log, called the common logarithm, or ln, which is the natural logarithm. However, exponential functions and logarithm functions can be expressed in terms of any desired base \(b.\) If you need to use a calculator to evaluate an expression with a different base, you can apply the change-of-base formulas first. Using this change of base, we typically write a given exponential or logarithmic function in terms of the natural exponential and natural logarithmic functions.
Note 1.130. Rule: Change-of-Base Formulas.
Let \(a\gt 0,b\gt 0,\) and \(a\neq 1,b\neq 1.\)
\(a^x=b^{\log_b a^x}\) for any real number \(x.\) If \(b=e,\) this equation reduces to \(a^x=e^{\log_e a^x}=e^{x\ln a}.\)
\(\log_a x=\frac{\log_b x}{\log_b a}\) for any real number \(x\gt 0.\) If \(b=e,\) this equation reduces to \(\log_a x=\frac{\ln x}{\ln a}.\)
Example 1.131. Changing Bases.
Use a calculating utility to evaluate \(\log_{3}7\) with the change-of-base formula presented earlier.
Use the second equation with \(a=3\) and \(e=3.\)
\(\log_{3}7=\frac{\ln 7}{\ln 3}≈1.77124.\)
Checkpoint 1.132.
Use the change-of-base formula and a calculating utility to evaluate \(\log_{4}6.\)
Example 1.133. Chapter Opener: The Richter Scale for Earthquakes.
In 1935, Charles Richter developed a scale (now known as the Richter scale) to measure the magnitude of an earthquake. The scale is a base-10 logarithmic scale, and it can be described as follows: Consider one earthquake with magnitude \(R_1\) on the Richter scale and a second earthquake with magnitude \(R_2\) on the Richter scale. Suppose \(R_1\gt R_2,\) which means the earthquake of magnitude \(R_1\) is stronger, but how much stronger is it than the other earthquake? A way of measuring the intensity of an earthquake is by using a seismograph to measure the amplitude of the earthquake waves. If \(A_1\) is the amplitude measured for the first earthquake and \(A_2\) is the amplitude measured for the second earthquake, then the amplitudes and magnitudes of the two earthquakes satisfy the following equation:
Consider an earthquake that measures 8 on the Richter scale and an earthquake that measures 7 on the Richter scale. Then,
Therefore,
which implies \(A_1/A_2=10\) or \(A_1=10A_2.\) Since \(A_1\) is 10 times the size of \(A_2,\) we say that the first earthquake is 10 times as intense as the second earthquake. On the other hand, if one earthquake measures 8 on the Richter scale and another measures 6, then the relative intensity of the two earthquakes satisfies the equation
Therefore, \(A_1=100A_2.\) That is, the first earthquake is 100 times more intense than the second earthquake.
How can we use logarithmic functions to compare the relative severity of the magnitude 9 earthquake in Japan in 2011 with the magnitude 7.3 earthquake in Haiti in 2010?
To compare the Japan and Haiti earthquakes, we can use an equation presented earlier:
\(9−7.3=\log_{10}\left(\frac{A_1}{A_2}\right).\)
Therefore, \(A_1/A_2=10^1.7,\) and we conclude that the earthquake in Japan was approximately \(50\) times more intense than the earthquake in Haiti.
Checkpoint 1.135.
Compare the relative severity of a magnitude \(8.4\) earthquake with a magnitude \(7.4\) earthquake.
Subsection 1.8.2 Key Concepts
The logarithmic function \(y=\log_b (x)\) is the inverse of \(y=b^x.\) Its domain is \((0,\infty)\) and its range is \((-\infty,\infty).\)
The natural logarithmic function is \(y=\ln x=\log_e x.\)
Given an exponential function or logarithmic function in base \(a,\) we can make a change of base to convert this function to any base \(b\gt 0,b\neq 1.\) We typically convert to base \(e.\)
This book is a custom edition based on OpenStax Calculus Volume 1. You can download the original for free at https://openstax.org/details/books/calculus-volume-1. 2
Additional practice exercises are available in at the bottom on this section in OpenStax Calculus Volume 1: https://openstax.org/books/calculus-volume-1/pages/1-5-exponential-and-logarithmic-functions
openstax.org/l/20_logscale
https://openstax.org/details/books/calculus-volume-1