6.7: Integrals, Exponential Functions, and Logarithms
 Page ID
 2525
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
We already examined exponential functions and logarithms in earlier chapters. However, we glossed over some key details in the previous discussions. For example, we did not study how to treat exponential functions with exponents that are irrational. The definition of the number e is another area where the previous development was somewhat incomplete. We now have the tools to deal with these concepts in a more mathematically rigorous way, and we do so in this section.
For purposes of this section, assume we have not yet defined the natural logarithm, the number \(e\), or any of the integration and differentiation formulas associated with these functions. By the end of the section, we will have studied these concepts in a mathematically rigorous way (and we will see they are consistent with the concepts we learned earlier). We begin the section by defining the natural logarithm in terms of an integral. This definition forms the foundation for the section. From this definition, we derive differentiation formulas, define the number \(e\), and expand these concepts to logarithms and exponential functions of any base.
The Natural Logarithm as an Integral
Recall the power rule for integrals:
\[ ∫ x^n dx = \dfrac{x^{n+1}}{n+1} + C , n≠−1. \]
Clearly, this does not work when \(n=−1,\) as it would force us to divide by zero. So, what do we do with \(∫\dfrac{1}{x}dx\)? Recall from the Fundamental Theorem of Calculus that \(∫^x_1\dfrac{1}{t}dt\) is an antiderivative of 1/x. Therefore, we can make the following definition.
Definition: The Natural Logarithm
For \(x>0\), define the natural logarithm function by
\[\ln x=∫^x_1\dfrac{1}{t}dt.\]
For \(x>1\), this is just the area under the curve \(y=1/t\) from \(1\) to \(x\). For \(x<1\), we have
\[ ∫^x_1\dfrac{1}{t}dt=−∫^1_x\dfrac{1}{t}dt,\]
so in this case it is the negative of the area under the curve from \(x\) to \(1\) (see the following figure).
Figure \(\PageIndex{1}\): (a) When \(x>1\), the natural logarithm is the area under the curve \(y=1/t\) from \(1\) to \(x\). (b) When \(x<1\), the natural logarithm is the negative of the area under the curve from \(x\) to \(1\).
Notice that \(\ln 1=0\). Furthermore, the function \(y=1/t>0\) for \(x>0\). Therefore, by the properties of integrals, it is clear that \(\ln x\) is increasing for \(x>0\).
Properties of the Natural Logarithm
Because of the way we defined the natural logarithm, the following differentiation formula falls out immediately as a result of to the Fundamental Theorem of Calculus.
Definition: Derivative of the Natural Logarithm
For \(x>0\), the derivative of the natural logarithm is given by
\[ \dfrac{d}{dx} \ln x = \dfrac{1}{x}. \]
Corollary to the Derivative of the Natural Logarithm
The function \(\ln x\) is differentiable; therefore, it is continuous.
A graph of \(\ln x\) is shown in Figure. Notice that it is continuous throughout its domain of \((0,∞)\).
Figure \(\PageIndex{2}\): The graph of \(f(x)=\ln x\) shows that it is a continuous function.
Example \(\PageIndex{1}\): Calculating Derivatives of Natural Logarithms
Calculate the following derivatives:
 \(\dfrac{d}{dx}\ln (5x^3−2)\)
 \(\dfrac{d}{dx}(\ln (3x))^2\)
Solution
We need to apply the chain rule in both cases.
 \(\dfrac{d}{dx}\ln (5x^3−2)=\dfrac{15x^2}{5x^3−2}\)
 \(\dfrac{d}{dx}(\ln (3x))^2=\dfrac{2(\ln (3x))⋅3}{3x}=\dfrac{2(\ln (3x))}{x}\)
Exercise \(\PageIndex{1}\)
Calculate the following derivatives:
 \(\dfrac{d}{dx}\ln (2x^2+x)\)
 \(\dfrac{d}{dx}(\ln (x^3))^2\)
 Hint

Apply the differentiation formula just provided and use the chain rule as necessary.
 Answer

a. \(\dfrac{d}{dx}\ln (2x^2+x)=\dfrac{4x+1}{2x^2+x}\)
b. \(\dfrac{d}{dx}(\ln (x^3))^2=\dfrac{6\ln (x^3)}{x}\)
Note that if we use the absolute value function and create a new function \(\ln x\), we can extend the domain of the natural logarithm to include \(x<0\). Then \((d/(dx))\ln x=1/x\). This gives rise to the familiar integration formula.
Integral of \(\frac{1}{u} \, du\)
The natural logarithm is the antiderivative of the function \(f(u)=1/u\):
\[∫\dfrac{1}{u}du=\ln u+C.\]
Example \(\PageIndex{2}\): Calculating Integrals Involving Natural Logarithms
Calculate the integral \[ ∫\dfrac{x}{x^2+4}dx.\]
Solution
Using \(u\)substitution, let \(u=x^2+4\). Then \(du=2xdx\) and we have
\[ ∫\dfrac{x}{x^2+4}dx=\dfrac{1}{2}∫\dfrac{1}{u}du\dfrac{1}{2}\ln u+C=\dfrac{1}{2}\ln ∣x^2+4∣+C=\dfrac{1}{2}\ln (x^2+4)+C.\]
Exercise \(\PageIndex{2}\)
Calculate the integral \[ ∫\dfrac{x^2}{x^3+6}dx.\]
 Hint

Apply the integration formula provided earlier and use usubstitution as necessary.
 Answer

\[ ∫\dfrac{x^2}{x^3+6}dx=\dfrac{1}{3}\ln ∣x^3+6∣+C\]
Although we have called our function a “logarithm,” we have not actually proved that any of the properties of logarithms hold for this function. We do so here.
Properties of the Natural Logarithm
If \(a,b>0\) and \(r\) is a rational number, then
 \(\ln 1=0\)
 \(\ln (ab)=\ln a+\ln b\)
 \(\ln (\dfrac{a}{b})=\ln a−\ln b\)
 \(\ln (a^r)=r\ln a\)
Proof
i. By definition, \(\ln 1=∫^1_1\dfrac{1}{t}dt=0.\)
ii. We have
\(\ln (ab)=∫^{ab}_1\dfrac{1}{t}dt=∫^a_1\dfrac{1}{t}dt+∫^{ab}_a\dfrac{1}{t}dt.\)
Use \(usubstitution\) on the last integral in this expression. Let \(u=t/a\). Then \(du=(1/a)dt.\) Furthermore, when \(t=a,u=1\), and when \(t=ab,u=b.\) So we get
\(\ln (ab)=∫^a_1\dfrac{1}{t}dt+∫^{ab}_a\dfrac{1}{t}dt=∫^a_1\dfrac{1}{t}dt+∫^{ab}_1\dfrac{a}{t}⋅\dfrac{1}{a}dt=∫^a_1\dfrac{1}{t}dt+∫^b_1\dfrac{1}{u}du=\ln a+\ln b.\)
iii. Note that
\(\dfrac{d}{dx}\ln (x^r)=\dfrac{rx^{r−1}}{x^r}=\dfrac{r}{x}\).
Furthermore,
\(\dfrac{d}{dx}(r\ln x)=\dfrac{r}{x}.\)
Since the derivatives of these two functions are the same, by the Fundamental Theorem of Calculus, they must differ by a constant. So we have
\(\ln (x^r)=r\ln x+C\)
for some constant \(C\). Taking \(x=1\), we get
\(\ln (1^r)=r\ln (1)+C\)
\(0=r(0)+C\)
\(C=0.\)
Thus \(\ln (x^r)=r\ln x\) and the proof is complete. Note that we can extend this property to irrational values of \(r\) later in this section.
Part iii. follows from parts ii. and iv. and the proof is left to you.
□
Example \(\PageIndex{3}\): Using Properties of Logarithms
Use properties of logarithms to simplify the following expression into a single logarithm:
\[ \ln 9−2 \ln 3+\ln (\dfrac{1}{3}).\]
Solution
We have
\[ \ln 9−2 \ln 3+\ln (\dfrac{1}{3})=\ln (3^2)−2 \ln 3+\ln (3^{−1})=2\ln 3−2\ln 3−\ln 3=−\ln 3.\]
Exercise \(\PageIndex{3}\)
Use properties of logarithms to simplify the following expression into a single logarithm:
\[ \ln 8−\ln 2−\ln (\dfrac{1}{4})\]
 Hint

Apply the properties of logarithms.
 Answer

\(4\ln 2\)
Defining the Number e
Now that we have the natural logarithm defined, we can use that function to define the number \(e\).
Definition: \(e\)
The number \(e\) is defined to be the real number such that
\[\ln e=1\]
To put it another way, the area under the curve \(y=1/t\) between \(t=1\) and \(t=e\) is \(1\) (Figure). The proof that such a number exists and is unique is left to you. (Hint: Use the Intermediate Value Theorem to prove existence and the fact that \(\ln x\) is increasing to prove uniqueness.)
Figure \(\PageIndex{3}\):The area under the curve from \(1\) to \(e\) is equal to one.
The number \(e\) can be shown to be irrational, although we won’t do so here (see the Student Project in Taylor and Maclaurin Series). Its approximate value is given by
\[ e≈2.71828182846.\]
The Exponential Function
We now turn our attention to the function \(e^x\). Note that the natural logarithm is onetoone and therefore has an inverse function. For now, we denote this inverse function by \(\exp x\). Then,
\[ \exp(\ln x)=x\]
for \(x>0\) and
\[ \ln (\exp x)=x\]
for all \(x\).
The following figure shows the graphs of \(\exp x\) and \(\ln x\).
Figure \(\PageIndex{4}\): The graphs of \(\ln x\) and \(\text{exp}\, x\).
We hypothesize that \(\exp x=e^x\). For rational values of \(x\), this is easy to show. If \(x\) is rational, then we have \(\ln (e^x)=x\ln e=x\). Thus, when \(x\) is rational, \(e^x=\exp x\). For irrational values of \(x\), we simply define \(e^x\) as the inverse function of \(\ln x\).
Definition
For any real number \(x\), define \(y=e^x\) to be the number for which
\[\ln y=\ln (e^x)=x.\]
Then we have \(e^x=\exp x\) for all \(x\), and thus
\(e^{\ln x}=x\) for \(x>0\) and \(\ln (e^x)=x\)
for all \(x\).
Properties of the Exponential Function
Since the exponential function was defined in terms of an inverse function, and not in terms of a power of \(e\) we must verify that the usual laws of exponents hold for the function \(e^x\).
Properties of the Exponential Function
If \(p\) and \(q\) are any real numbers and \(r\) is a rational number, then
 \(e^pe^q=e^{p+q}\)
 \(\dfrac{e^p}{e^q}=e^{p−q}\)
 \((e^p)^r=e^{pr}\)
Proof
Note that if \(p\) and \(q\) are rational, the properties hold. However, if \(p\) or \(q\) are irrational, we must apply the inverse function definition of \(e^x\) and verify the properties. Only the first property is verified here; the other two are left to you. We have
\[ \ln (e^pe^q)=\ln (e^p)+\ln (eq)=p+q=\ln (e^{p+q}).\]
Since \(\ln x\) is onetoone, then
\[ e^pe^q=e^{p+q}.\]
□
As with part iv. of the logarithm properties, we can extend property iii. to irrational values of \(r\), and we do so by the end of the section.
We also want to verify the differentiation formula for the function \(y=e^x\). To do this, we need to use implicit differentiation. Let \(y=e^x\). Then
\[ \begin{align} \ln y &=x \\ \dfrac{d}{dx}\ln y &=\dfrac{d}{dx}x \\ \dfrac{1}{y}\dfrac{dy}{dx}&=1 \\ \dfrac{dy}{dx} &=y. \end{align}\]
Thus, we see
\[ \dfrac{d}{dx}e^x=e^x\]
as desired, which leads immediately to the integration formula
\[ ∫e^x \,dx=e^x+C.\]
We apply these formulas in the following examples.
Example \(\PageIndex{4}\): Using Properties of Exponential Functions
Evaluate the following derivatives:
 \(\dfrac{d}{dt}e^{3t}e^{t^2}\)
 \(\dfrac{d}{dx}e^{3x^2}\)
Solution
We apply the chain rule as necessary.
 \(\dfrac{d}{dt}e^{3t}e^{t^2}=\dfrac{d}{dt}e^{3t+t^2}=e^{3t+t^2}(3+2t)\)
 \(\dfrac{d}{dx}e^{3x^2}=e^{3x^2}6x\)
Exercise \(\PageIndex{4}\)
Evaluate the following derivatives:
 \(\dfrac{d}{dx}(\dfrac{e^{x^2}}{e^{5x}})\)
 \(\dfrac{d}{dt}(e^{2t})^3\)
 Hint

Use the properties of exponential functions and the chain rule as necessary.
 Answer

a. \(\dfrac{d}{dx}(\dfrac{e^{x^2}}{e^{5x}})=e^{x^{2−5x}}(2x−5)\)
b. \(\dfrac{d}{dt}(e^{2t})^3=6e^{6t}\)
Example \(\PageIndex{5}\): Using Properties of Exponential Functions
Evaluate the following integral: \[ ∫2xe^{−x^2}\,dx.\]
Solution
Using \(u\)substitution, let \(u=−x^2\). Then \(du=−2x\,dx,\) and we have
\(∫2xe^{−x^2}\,dx=−∫e^u\,du=−e^u+C=−e^{−x^2}+C.\)
Exercise \(\PageIndex{5}\)
Evaluate the following integral: \[ ∫\dfrac{4}{e^{3x}}dx.\]
 Hint

Use the properties of exponential functions and \(usubstitution\) as necessary.
 Answer

\[ ∫\dfrac{4}{e^{3x}}\,dx=−\dfrac{4}{3}e^{−3x}+C\]
General Logarithmic and Exponential Functions
We close this section by looking at exponential functions and logarithms with bases other than \(e\). Exponential functions are functions of the form \(f(x)=a^x\). Note that unless \(a=e\), we still do not have a mathematically rigorous definition of these functions for irrational exponents. Let’s rectify that here by defining the function \(f(x)=a^x\) in terms of the exponential function \(e^x\). We then examine logarithms with bases other than e as inverse functions of exponential functions.
Definition: Exponential Function
For any \(a>0,\) and for any real number \(x\), define \(y=a^x\) as follows:
\[y=a^x=e^{x \ln a}.\]
Now \(a^x\) is defined rigorously for all values of \(x\). This definition also allows us to generalize property iv. of logarithms and property iii. of exponential functions to apply to both rational and irrational values of \(r\). It is straightforward to show that properties of exponents hold for general exponential functions defined in this way.
Let’s now apply this definition to calculate a differentiation formula for \(a^x\). We have
\[ \dfrac{d}{dx}a^x=\dfrac{d}{dx}e^{x\ln a}=e^{x\ln a}\ln a=a^x\ln a.\]
The corresponding integration formula follows immediately.
Derivatives and Integrals Involving General Exponential Functions
Let \(a>0.\) Then,
\[\dfrac{d}{dx}a^x=a^x\ \ln a\]
and
\[∫a^x\,dx=\dfrac{1}{\ln a}a^x+C.\]
If \(a≠1\), then the function \(a^x\) is onetoone and has a welldefined inverse. Its inverse is denoted by \(log_ax\). Then,
\( y=log_ax\) if and only if \(x=a^y.\)
Note that general logarithm functions can be written in terms of the natural logarithm. Let \(y=log_ax.\) Then, \(x=a^y\). Taking the natural logarithm of both sides of this second equation, we get
\[\ln x=\ln (a^y)\]
\[\ln x=y\ln a\]
\[y=\dfrac{\ln x}{\ln a}\]
\[log^ax=\dfrac{\ln x}{\ln a}.\]
Thus, we see that all logarithmic functions are constant multiples of one another. Next, we use this formula to find a differentiation formula for a logarithm with base \(a\). Again, let \(y=log_ax\). Then,
\[\dfrac{dy}{dx}=\dfrac{d}{dx}(log_ax)\]
\[=\dfrac{d}{dx}(\dfrac{\ln x}{\ln a})\]
\[=(\dfrac{1}{\ln a})\dfrac{d}{dx}(\ln x)\]
\[=\dfrac{1}{\ln a}⋅\dfrac{1}{x}=\dfrac{1}{x\ln a}\]
Derivatives of General Logarithm Functions
Let \(a>0.\) Then,
\[\dfrac{d}{dx}log_ax=\dfrac{1}{x\ln a}.\]
Example \(\PageIndex{6}\): Calculating Derivatives of General Exponential and Logarithm Functions
Evaluate the following derivatives:
 \(\dfrac{d}{dt}(4^t⋅2^{t^2})\)
 \(\dfrac{d}{dx}log_8(7x^2+4)\)
Solution: We need to apply the chain rule as necessary.
 \(\dfrac{d}{dt}(4^t⋅2^{t^2})=\dfrac{d}{dt}(2^{2t}⋅2^{t^2})=\dfrac{d}{dt}(2^{2t+t^2})=2^{2t+t^2}\ln (2)(2+2t)\)
 \(\dfrac{d}{dx}log_8(7x^2+4)=\dfrac{1}{(7x^2+4)(\ln 8)}(14x)\)
Exercise \(\PageIndex{6}\)
Evaluate the following derivatives:
 \(\dfrac{d}{dt}4^{t^4}\)
 \(\dfrac{d}{dx}log_3(\sqrt{x^2+1})\)
 Hint

Use the formulas and apply the chain rule as necessary.
 Answer

a. \(\dfrac{d}{dt}4^{t^4}=4^{t^4}(\ln 4)(4t^3)\)
b. \(\dfrac{d}{dx}log_3(\sqrt{x^2+1})=\dfrac{x}{(\ln 3)(x^2+1)}\)
Example \(\PageIndex{7}\): Integrating General Exponential Functions
Evaluate the following integral: \[∫\dfrac{3}{2^{3x}}\,dx.\]
Solution
Use \(usubstitution\) and let \(u=−3x\). Then \(du=−3\,dx\) and we have
\[ ∫\dfrac{3}{2^{3x}}\,dx=∫3⋅2^{−3x}\,dx=−∫2^u\,du=−\dfrac{1}{\ln 2}2^u+C=−\dfrac{1}{\ln 2}2^{−3x}+C.\]
Exercise \(\PageIndex{7}\)
Evaluate the following integral: \[∫x^22^{x^3}\,dx.\]
 Hint

Use the properties of exponential functions and usubstitution
 Answer

\[ ∫x^22^{x^3}\,dx=\dfrac{1}{3\ln 2}2^{x^3}+C\]
Key Concepts
 The earlier treatment of logarithms and exponential functions did not define the functions precisely and formally. This section develops the concepts in a mathematically rigorous way.
 The cornerstone of the development is the definition of the natural logarithm in terms of an integral.
 The function \(e^x\) is then defined as the inverse of the natural logarithm. General exponential functions are defined in terms of \(e^x\), and the corresponding inverse functions are general logarithms.
 Familiar properties of logarithms and exponents still hold in this more rigorous context.
Key Equations
 Natural logarithm function
 \(\displaystyle \ln x=∫^x_1\dfrac{1}{t}\,dt\)
 Exponential function \(y=e^x\)
 \(\ln y=\ln (e^x)=x\)
Contributors
Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CCBYSANC 4.0 license. Download for free at http://cnx.org.