Section 1.5 Exponential and Logarithmic Functions
Learning Objectives.
Identify the form of an exponential function.
Explain the difference between the graphs of \(x^b\) and \(b^x.\)
Recognize the significance of the number \(e.\)
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 exponential and logarithmic functions. We use the properties of these functions to solve equations involving exponential or logarithmic terms, and we study the meaning and importance of the number \(e.\) We also define hyperbolic and inverse hyperbolic functions, which involve combinations of exponential and logarithmic functions. (Note that we present alternative definitions of exponential and logarithmic functions in the chapter Applications of Integrations , and prove that the functions have the same properties with either definition.)
Subsection 1.5.1 Exponential Functions
Exponential functions arise in many applications. One common example is population growth.
For example, if a population starts with \(P_0\) individuals and then grows at an annual rate of \(2\%,\) its population after 1 year is
Its population after 2 years is
In general, its population after \(t\) years is
which is an exponential function. More generally, any function of the form \(f(x)=b^x,\) where \(b\gt 0,b\neq 1,\) is an exponential function with base \(b\) and exponent \(x\text{.}\) Exponential functions have constant bases and variable exponents. Note that a function of the form \(f(x)=x^b\) for some constant \(b\) is not an exponential function but a power function.
To see the difference between an exponential function and a power function, we compare the functions \(y=x^2\) and \(y=2^x.\) In Table 1.119, we see that both \(2^x\) and \(x^2\) approach infinity as \(x\to \infty.\) Eventually, however, \(2^x\) becomes larger than \(x^2\) and grows more rapidly as \(x\to \infty.\) In the opposite direction, as \(x\to -\infty,x^2\to \infty,\) whereas \(2^x\to 0.\) The line \(y=0\) is a horizontal asymptote for \(y=2^x.\)
\(x\) | \(−3\) | \(−2\) | \(−1\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) |
\(x^2\) | \(9\) | \(4\) | \(1\) | \(0\) | \(1\) | \(4\) | \(9\) | \(16\) | \(25\) | \(36\) |
\(2^x\) | \(1/8\) | \(1/4\) | \(1/2\) | \(1\) | \(2\) | \(4\) | \(8\) | \(16\) | \(32\) | \(64\) |
In Figure 1.120, we graph both \(y=x^2\) and \(y=2^x\) to show how the graphs differ.
Subsubsection 1.5.1.1 Evaluating Exponential Functions
Recall the properties of exponents: If \(x\) is a positive integer, then we define \(b^x=b\cdot b\cdots b\) (with \(x\) factors of \(b).\) If \(x\) is a negative integer, then \(x=.y\) for some positive integer \(y,\) and we define \(b^x=b^{-y}=1/b^y.\) Also, \(b^0\) is defined to be \(1.\) If \(x\) is a rational number, then \(x=p/q,\) where \(p\) and \(q\) are integers and \(b^x=b^{p/q}=\sqrt[q]{b^p}.\) For example, \(9^{3/2}=\sqrt{9^3}=27.\) However, how is \(b^x\) defined if \(x\) is an irrational number? For example, what do we mean by \(2^\sqrt{2}\) This is too complex a question for us to answer fully right now; however, we can make an approximation. In Table 1.121, we list some rational numbers approaching \(\sqrt{2},\) and the values of \(2^x\) for each rational number \(x\) are presented as well. We claim that if we choose rational numbers \(x\) getting closer and closer to \(\sqrt{2},\) the values of \(2^x\) get closer and closer to some number \(L.\) We define that number \(L\) to be \(2^\sqrt{2}.\)
\(x\) | \(1.4\) | \(1.41\) | \(1.414\) | \(1.4142\) | \(1.41421\) | \(1.414213\) |
\(2^x\) | \(2.639\) | \(2.65737\) | \(2.66475\) | \(2.665119\) | \(2.665138\) | \(2.665143\) |
Example 1.122. Bacterial Growth.
Suppose a particular population of bacteria is known to double in size every \(4\) hours. If a culture starts with \(1000\) bacteria, the number of bacteria after \(4\) hours is \(n(4)=1000\cdot 2.\) The number of bacteria after \(8\) hours is \(n(8)=n(4)\cdot 2=1000\cdot 2^2.\) In general, the number of bacteria after \(4m\) hours is \(n(4m)=1000\cdot 2^m.\) Letting \(t=4m,\) we see that the number of bacteria after \(t\) hours is \(n(t)=1000\cdot 2^{t/4}.\) Find the number of bacteria after \(6\) hours, \(10\) hours, and \(24\) hours.
The number of bacteria after 6 hours is given by \(n(6)=1000\cdot 2^{6/4} \approx 2828\) bacteria. The number of bacteria after \(10\) hours is given by \(n(10)=1000\cdot 2^{10/4}≈5657\) bacteria. The number of bacteria after \(24\) hours is given by \(n(24)=1000\cdot 2^6=64,000\) bacteria.
Checkpoint 1.123.
Given the exponential function \(f(x)=100\cdot 3^{x/2},\) evaluate \(f(4)\) and \(f(10).\)
\(f(4)=900;f(10)=24,300.\)
Note 1.124. Media.
Go to World Population Balance 1 for another example of exponential population growth.
Subsubsection 1.5.1.2 Graphing Exponential Functions
For any base \(b\gt 0,b\neq 1,\) the exponential function \(f(x)=b^x\) is defined for all real numbers \(x\) and \(b^x\gt 0.\) Therefore, the domain of \(f(x)=b^x\) is \((-\infty,\infty)\) and the range is \((0,\infty).\) To graph \(b^x,\) we note that for \(b\gt 1,b^x\) is increasing on \((-\infty,\infty)\) and \(b^x\to \infty\) as \(x\to \infty,\) whereas \(b^x\to 0\) as \(x\to -\infty.\) On the other hand, if \(0\lt b\lt 1,f(x)=b^x\) is decreasing on \((-\infty,\infty)\) and \(b^x\to 0\) as \(x\to \infty\) whereas \(b^x\to \infty\) as \(x\to -\infty\) (Figure 1.125).
Note 1.126. Media.
Visit this site 2 for more exploration of the graphs of exponential functions.
Note that exponential functions satisfy the general laws of exponents. To remind you of these laws, we state them as rules.
Note 1.127. Rule: Laws of Exponents.
For any constants \(a\gt 0,b\gt 0,\) and for all \(x\) and y,
\(\displaystyle b^x\cdot b^y=b^{x+y}\)
\(\displaystyle \frac{b^x}{b^y}=b^{x−y}\)
\(\displaystyle (b^x)^y=b^{xy}\)
\(\displaystyle (ab)^x=a^xb^x\)
\(\displaystyle \frac{a^x}{b^x}=\left(\frac{a}{b}\right)^x\)
Example 1.128. Using the Laws of Exponents.
Use the laws of exponents to simplify each of the following expressions.
\(\displaystyle \frac{(2x^{2/3})^3}{(4x^{−1/3})^2}\)
\(\displaystyle \frac{(x^3y^{−1})^2}{(xy^2)^{−2}}\)
We can simplify as follows:
\begin{equation*} \frac{(2x^{2/3})^3}{(4x^{−1/3})^2}= \frac{2^3(x^{2/3})^3}{4^2(x^{−1/3})^2}= \frac{8x^2}{16x^{−2/3}}= \frac{x^2x^{2/3}}{2}= \frac{x^{8/3}}{2}. \end{equation*}We can simplify as follows:
\begin{equation*} \frac{(x^3y^{−1})^2}{(xy^2)^{−2}}=\frac{(x^3)^2(y^{−1})^2}{x^{−2}(y^2)^{−2}}= \frac{x^6y^{−2}}{x^{−2}y^{−4}}=x^6x^2y^{−2}y^4=x^8y^2. \end{equation*}
Checkpoint 1.129.
Use the laws of exponents to simplify \((6x^{−3}y^2)/(12x^{−4}y^5).\)
Subsection 1.5.2 The Number \(e \)
A special type of exponential function appears frequently in real-world applications. To describe it, consider the following example of exponential growth, which arises from compounding interest in a savings account. Suppose a person invests \(P\) dollars in a savings account with an annual interest rate \(r,\) compounded annually. The amount of money after 1 year is
The amount of money after \(2\) years is
More generally, the amount after \(t\) years is
If the money is compounded 2 times per year, the amount of money after half a year is
The amount of money after \(1\) year is
After \(t\) years, the amount of money in the account is
More generally, if the money is compounded \(n\) times per year, the amount of money in the account after \(t\) years is given by the function
What happens as \(n\to \infty?\) To answer this question, we let \(m=n/r\) and write
and examine the behavior of \(\left(1+1/m\right)^m\) as \(m\to \infty,\) using a table of values (Table 1.130).
\(m\) | \(10\) | \(100\) | \(1000\) | \(10,000\) | \(100,000\) | \(1,000,000\) |
\(\left(1+ \frac{1}{m}\right)^m\) | \(2.5937\) | \(2.7048\) | \(2.71692\) | \(2.71815\) | \(2.718268\) | \(2.718280\) |
Looking at this table, it appears that \((1+1/m)^m\) is approaching a number between \(2.7\) and \(2.8\) as \(m\to \infty.\) In fact, \((1+1/m)^m\) does approach some number as \(m\to \infty.\) We call this number \(e\). To six decimal places of accuracy,
The letter \(e\) was first used to represent this number by the Swiss mathematician Leonhard Euler during the 1720s. Although Euler did not discover the number, he showed many important connections between \(e\) and logarithmic functions. We still use the notation \(e\) today to honor Euler’s work because it appears in many areas of mathematics and because we can use it in many practical applications.
Returning to our savings account example, we can conclude that if a person puts \(P\) dollars in an account at an annual interest rate \(r,\) compounded continuously, then \(A(t)=Pe^{rt}.\) This function may be familiar. Since functions involving base \(e\) arise often in applications, we call the function \(f(x)=e^x\) the natural exponential function. Not only is this function interesting because of the definition of the number \(e,\) but also, as discussed next, its graph has an important property.
Since \(e\gt 1,\) we know \(e^x\) is increasing on \((-\infty,\infty).\) In Figure 1.131, we show a graph of \(f(x)=e^x\) along with a tangent line to the graph of at \(x=0.\) We give a precise definition of tangent line in the next chapter; but, informally, we say a tangent line to a graph of \(f\) at \(x=a\) is a line that passes through the point \((a,f(a))\) and has the same "slope" as \(f\) at that point \(.\) The function \(f(x)=e^x\) is the only exponential function \(b^x\) with tangent line at \(x=0\) that has a slope of 1. As we see later in the text, having this property makes the natural exponential function the most simple exponential function to use in many instances.
Example 1.132. Compounding Interest.
Suppose \(.500\) is invested in an account at an annual interest rate of \(r=5.5%,\) compounded continuously.
Let \(t\) denote the number of years after the initial investment and \(A(t)\) denote the amount of money in the account at time \(t.\) Find a formula for \(A(t).\)
Find the amount of money in the account after \(10\) years and after \(20\) years.
If \(P\) dollars are invested in an account at an annual interest rate \(r,\) compounded continuously, then \(A(t)=Pe^{rt}.\) Here \(P=.500\) and \(r=0.055.\) Therefore, \(A(t)=500e^{0.055t}.\)
After \(10\) years, the amount of money in the account is
\begin{equation*} A(10)=500e^{0.055\cdot 10}=500e^{0.55}≈.866.63. \end{equation*}After \(20\) years, the amount of money in the account is\begin{equation*} A(20)=500e^{0.055\cdot 20}=500e^{1.1}≈.1,502.08. \end{equation*}
Checkpoint 1.133.
If \(.750\) is invested in an account at an annual interest rate of \(4%,\) compounded continuously, find a formula for the amount of money in the account after \(t\) years. Find the amount of money after \(30\) years.
Subsection 1.5.3 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.134).
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.135. Media.
At this site 3 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.136).
Before solving some equations involving exponential and logarithmic functions, let’s review the basic properties of logarithms.
Note 1.137. Rule: Properties of Logarithms.
If \(a,b,c\gt 0,b\neq 1,\) and \(r\) is any real number, then
Example 1.138. 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.139.
Solve \(e^{-x}/(3+e^{-x})=1/2.\)
Example 1.140. 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.141.
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.142. 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.143. 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.144.
Use the change-of-base formula and a calculating utility to evaluate \(\log_{4}6.\)
Example 1.145. 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.147.
Compare the relative severity of a magnitude \(8.4\) earthquake with a magnitude \(7.4\) earthquake.
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. 4
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-1-review-of-functions
openstax.org/l/20_exponengrow
openstax.org/1/20_inverse
openstax.org/l/20_logscale
https://openstax.org/details/books/calculus-volume-1