6.7: Integrals, Exponential Functions, and Logarithms
( \newcommand{\kernel}{\mathrm{null}\,}\)
- Write the definition of the natural logarithm as an integral.
- Recognize the derivative of the natural logarithm.
- Integrate functions involving the natural logarithmic function.
- Define the number e through an integral.
- Recognize the derivative and integral of the exponential function.
- Prove properties of logarithms and exponential functions using integrals.
- Express general logarithmic and exponential functions in terms of natural logarithms and exponentials.
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:
∫xndx=xn+1n+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 ∫1xdx? Recall from the Fundamental Theorem of Calculus that ∫x11tdt is an antiderivative of 1x. Therefore, we can make the following definition.
For x>0, define the natural logarithm function by
lnx=∫x11tdt.
For x>1, this is just the area under the curve y=1t from 1 to x. For x<1, we have
∫x11tdt=−∫1x1tdt,
so in this case it is the negative of the area under the curve from x to 1 (see the following figure).

Notice that ln1=0. Furthermore, the function y=1t>0 for x>0. Therefore, by the properties of integrals, it is clear that lnx 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.
For x>0, the derivative of the natural logarithm is given by
ddx(lnx)=1x.
The function lnx is differentiable; therefore, it is continuous.
A graph of lnx is shown in Figure. Notice that it is continuous throughout its domain of (0,∞).

Calculate the following derivatives:
- ddx(ln(5x3−2))
- ddx((ln(3x))2)
Solution
We need to apply the chain rule in both cases.
- ddx(ln(5x3−2))=15x25x3−2
- ddx((ln(3x))2)=2(ln(3x))⋅33x=2(ln(3x))x
Calculate the following derivatives:
- ddx(ln(2x2+x))
- ddx((ln(x3))2)
- Hint
-
Apply the differentiation formula just provided and use the chain rule as necessary.
- Answer
-
a. ddx(ln(2x2+x))=4x+12x2+x
b. ddx((ln(x3))2)=6ln(x3)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 ddx(lnx)=1x. This gives rise to the familiar integration formula.
The natural logarithm is the antiderivative of the function f(u)=1u:
∫1udu=ln|u|+C.
Calculate the integral ∫xx2+4dx.
Solution
Using u-substitution, let u=x2+4. Then du=2xdx and we have
∫xx2+4dx=12∫1udu=12ln|u|+C=12ln|x2+4|+C=12ln(x2+4)+C.
Calculate the integral ∫x2x3+6dx.
- Hint
-
Apply the integration formula provided earlier and use u-substitution as necessary.
- Answer
-
∫x2x3+6dx=13ln∣x3+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.
If a,b>0 and r is a rational number, then
- ln1=0
- ln(ab)=lna+lnb
- ln(ab)=lna−lnb
- ln(ar)=rlna
i. By definition, ln1=∫111tdt=0.
ii. We have
ln(ab)=∫ab11tdt=∫a11tdt+∫aba1tdt.
Use u−substitution 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)=∫a11tdt+∫aba1tdt=∫a11tdt+∫ab1at⋅1adt=∫a11tdt+∫b11udu=lna+lnb.
iii. Note that
ddx(ln(xr))=rxr−1xr=rx.
Furthermore,
ddx((rlnx))=rx.
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(xr)=rlnx+C
for some constant C. Taking x=1, we get
ln(1r)=rln(1)+C
0=r(0)+C
C=0.
Thus ln(xr)=rlnx 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.
□
Use properties of logarithms to simplify the following expression into a single logarithm:
ln9−2ln3+ln(13).
Solution
We have
ln9−2ln3+ln(13)=ln(32)−2ln3+ln(3−1)=2ln3−2ln3−ln3=−ln3.
Use properties of logarithms to simplify the following expression into a single logarithm:
ln8−ln2−ln(14)
- Hint
-
Apply the properties of logarithms.
- Answer
-
4ln2
Defining the Number e
Now that we have the natural logarithm defined, we can use that function to define the number e.
The number e is defined to be the real number such that
lne=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 lnx is increasing to prove uniqueness.)

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 ex. Note that the natural logarithm is one-to-one and therefore has an inverse function. For now, we denote this inverse function by expx. Then,
exp(lnx)=x
for x>0 and
ln(expx)=x
for all x.
The following figure shows the graphs of expx and lnx.

We hypothesize that expx=ex. For rational values of x, this is easy to show. If x is rational, then we have ln(ex)=xlne=x. Thus, when x is rational, ex=expx. For irrational values of x, we simply define ex as the inverse function of lnx.
For any real number x, define y=ex to be the number for which
lny=ln(ex)=x.
Then we have ex=expx for all x, and thus
elnx=x for x>0 and ln(ex)=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 ex.
If p and q are any real numbers and r is a rational number, then
- epeq=ep+q
- epeq=ep−q
- (ep)r=epr
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 ex and verify the properties. Only the first property is verified here; the other two are left to you. We have
ln(epeq)=ln(ep)+ln(eq)=p+q=ln(ep+q).
Since lnx is one-to-one, then
epeq=ep+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=ex. To do this, we need to use implicit differentiation. Let y=ex. Then
lny=xddx(lny)=ddx(x)1ydydx=1dydx=y.
Thus, we see
ddx(ex)=ex
as desired, which leads immediately to the integration formula
∫exdx=ex+C.
We apply these formulas in the following examples.
Evaluate the following derivatives:
- ddt(e3tet2)
- ddx(e3x2)
Solution
We apply the chain rule as necessary.
- ddt(e3tet2)=ddt(e3t+t2)=e3t+t2(3+2t)
- ddx(e3x2)=e3x26x
Evaluate the following derivatives:
- ddx(ex2e5x)
- ddt((e2t)3)
- Hint
-
Use the properties of exponential functions and the chain rule as necessary.
- Answer
-
a. ddx(ex2e5x)=ex2−5x(2x−5)
b. ddt((e2t)3)=6e6t
Evaluate the following integral: ∫2xe−x2dx.
Solution
Using u-substitution, let u=−x2. Then du=−2xdx, and we have
∫2xe−x2dx=−∫eudu=−eu+C=−e−x2+C.
Evaluate the following integral: ∫4e3xdx.
- Hint
-
Use the properties of exponential functions and u−substitution as necessary.
- Answer
-
∫4e3xdx=−43e−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)=ax. 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)=ax in terms of the exponential function ex. We then examine logarithms with bases other than e as inverse functions of exponential functions.
For any a>0, and for any real number x, define y=ax as follows:
y=ax=exlna.
Now ax 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 ax. We have
ddx(ax)=ddx(exlna)=exlnalna=axlna.
The corresponding integration formula follows immediately.
Let a>0. Then,
ddx(ax)=axlna
and
∫axdx=1lnaax+C.
If a≠1, then the function ax is one-to-one and has a well-defined inverse. Its inverse is denoted by logax. Then,
y=logax if and only if x=ay.
Note that general logarithm functions can be written in terms of the natural logarithm. Let y=logax. Then, x=ay. Taking the natural logarithm of both sides of this second equation, we get
lnx=ln(ay)lnx=ylnay=lnxlnalogax=lnxlna.
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=logax. Then,
dydx=ddx(logax)=ddx(lnxlna)=(1lna)ddx(lnx)=1lna⋅1x=1xlna
Let a>0. Then,
ddx(logax)=1xlna.
Evaluate the following derivatives:
- ddt(4t⋅2t2)
- ddx(log8(7x2+4))
Solution: We need to apply the chain rule as necessary.
- ddt(4t⋅2t2)=ddt(22t⋅2t2)=ddt(22t+t2)=22t+t2ln(2)(2+2t)
- ddx(log8(7x2+4))=1(7x2+4)(ln8)(14x)
Evaluate the following derivatives:
- ddt(4t4)
- ddx(log3(√x2+1))
- Hint
-
Use the formulas and apply the chain rule as necessary.
- Answer
-
a. ddt(4t4)=4t4(ln4)(4t3)
b. ddx(log3(√x2+1))=x(ln3)(x2+1)
Evaluate the following integral: ∫323xdx.
Solution
Use u−substitution and let u=−3x. Then du=−3dx and we have
∫323xdx=∫3⋅2−3xdx=−∫2udu=−1ln22u+C=−1ln22−3x+C.
Evaluate the following integral: ∫x22x3dx.
- Hint
-
Use the properties of exponential functions and u-substitution
- Answer
-
\displaystyle ∫x^2 2^{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