Processing math: 98%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

6.7: Integrals, Exponential Functions, and Logarithms

  • Gilbert Strang & Edwin “Jed” Herman
  • OpenStax

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives
  • 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,n1.

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.

Definition: The Natural Logarithm

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).

This figure has two graphs. The first is the curve y=1/t. It is decreasing and in the first quadrant. Under the curve is a shaded area. The area is bounded to the left at x=1. The area is labeled “area=lnx”. The second graph is the same curve y=1/t. It has shaded area under the curve bounded to the right by x=1. It is labeled “area=-lnx”.
Figure 6.7.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 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.

Definition: Derivative of the Natural Logarithm

For x>0, the derivative of the natural logarithm is given by

ddx(lnx)=1x.

Corollary to the Derivative of the Natural Logarithm

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,).

This figure is a graph. It is an increasing curve labeled f(x)=lnx. The curve is increasing with the y-axis as an asymptote. The curve intersects the x-axis at x=1.
Figure 6.7.2: The graph of f(x)=lnx shows that it is a continuous function.
Example 6.7.1: Calculating Derivatives of Natural Logarithms

Calculate the following derivatives:

  1. ddx(ln(5x32))
  2. ddx((ln(3x))2)
Solution

We need to apply the chain rule in both cases.

  1. ddx(ln(5x32))=15x25x32
  2. ddx((ln(3x))2)=2(ln(3x))33x=2(ln(3x))x
Exercise 6.7.1

Calculate the following derivatives:

  1. ddx(ln(2x2+x))
  2. 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.

Integral of 1udu

The natural logarithm is the antiderivative of the function f(u)=1u:

1udu=ln|u|+C.

Example 6.7.2: Calculating Integrals Involving Natural Logarithms

Calculate the integral xx2+4dx.

Solution

Using u-substitution, let u=x2+4. Then du=2xdx and we have

xx2+4dx=121udu=12ln|u|+C=12ln|x2+4|+C=12ln(x2+4)+C.

Exercise 6.7.2

Calculate the integral x2x3+6dx.

Hint

Apply the integration formula provided earlier and use u-substitution as necessary.

Answer

x2x3+6dx=13lnx3+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

  1. ln1=0
  2. ln(ab)=lna+lnb
  3. ln(ab)=lnalnb
  4. ln(ar)=rlna
Proof

i. By definition, ln1=111tdt=0.

ii. We have

ln(ab)=ab11tdt=a11tdt+aba1tdt.

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)=a11tdt+aba1tdt=a11tdt+ab1at1adt=a11tdt+b11udu=lna+lnb.

iii. Note that

ddx(ln(xr))=rxr1xr=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.

Example 6.7.3: Using Properties of Logarithms

Use properties of logarithms to simplify the following expression into a single logarithm:

ln92ln3+ln(13).

Solution

We have

ln92ln3+ln(13)=ln(32)2ln3+ln(31)=2ln32ln3ln3=ln3.

Exercise 6.7.3

Use properties of logarithms to simplify the following expression into a single logarithm:

ln8ln2ln(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.

Definition: 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.)

This figure is a graph. It is the curve y=1/t. It is decreasing and in the first quadrant. Under the curve is a shaded area. The area is bounded to the left at x=1 and to the right at x=e. The area is labeled “area=1”.
Figure 6.7.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

e2.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.

This figure is a graph. It has three curves. The first curve is labeled exp x. It is an increasing curve with the x-axis as a horizontal asymptote. It intersects the y-axis at y=1. The second curve is a diagonal line through the origin. The third curve is labeled lnx. It is an increasing curve with the y-axis as an vertical axis. It intersects the x-axis at x=1.
Figure 6.7.4: The graphs of lnx and expx.

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.

Definition

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.

Properties of the Exponential Function

If p and q are any real numbers and r is a rational number, then

  1. epeq=ep+q
  2. epeq=epq
  3. (ep)r=epr
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 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.

Example 6.7.4: Using Properties of Exponential Functions

Evaluate the following derivatives:

  1. ddt(e3tet2)
  2. ddx(e3x2)
Solution

We apply the chain rule as necessary.

  1. ddt(e3tet2)=ddt(e3t+t2)=e3t+t2(3+2t)
  2. ddx(e3x2)=e3x26x
Exercise 6.7.4

Evaluate the following derivatives:

  1. ddx(ex2e5x)
  2. ddt((e2t)3)
Hint

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

Answer

a. ddx(ex2e5x)=ex25x(2x5)

b. ddt((e2t)3)=6e6t

Example 6.7.5: Using Properties of Exponential Functions

Evaluate the following integral: 2xex2dx.

Solution

Using u-substitution, let u=x2. Then du=2xdx, and we have

2xex2dx=eudu=eu+C=ex2+C.

Exercise 6.7.5

Evaluate the following integral: 4e3xdx.

Hint

Use the properties of exponential functions and usubstitution as necessary.

Answer

4e3xdx=43e3x+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.

Definition: Exponential Function

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.

Derivatives and Integrals Involving General Exponential Functions

Let a>0. Then,

ddx(ax)=axlna

and

axdx=1lnaax+C.

If a1, 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)=1lna1x=1xlna

Derivatives of General Logarithm Functions

Let a>0. Then,

ddx(logax)=1xlna.

Example 6.7.6: Calculating Derivatives of General Exponential and Logarithm Functions

Evaluate the following derivatives:

  1. ddt(4t2t2)
  2. ddx(log8(7x2+4))

Solution: We need to apply the chain rule as necessary.

  1. ddt(4t2t2)=ddt(22t2t2)=ddt(22t+t2)=22t+t2ln(2)(2+2t)
  2. ddx(log8(7x2+4))=1(7x2+4)(ln8)(14x)
Exercise 6.7.6

Evaluate the following derivatives:

  1. ddt(4t4)
  2. 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)

Example 6.7.7: Integrating General Exponential Functions

Evaluate the following integral: 323xdx.

Solution

Use usubstitution and let u=3x. Then du=3dx and we have

323xdx=323xdx=2udu=1ln22u+C=1ln223x+C.

Exercise 6.7.7

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

This page titled 6.7: Integrals, Exponential Functions, and Logarithms is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman (OpenStax) via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?