<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
You are reading an older version of this FlexBook® textbook: CK-12 Calculus Go to the latest version.

# 6.3: Differentiation and Integration of Logarithmic and Exponential Functions

Difficulty Level: At Grade Created by: CK-12

## Learning Objectives

A student will be able to:

• Understand and use the rules of differentiation of logarithmic and exponential functions.
• Understand and use the rules of integration of logarithmic and exponential functions.

In this section we will explore the derivatives of logarithmic and exponential functions. We will also see how the derivative of a one-to-one function is related to its inverse.

## The Derivative of a Logarithmic Function

Our goal at this point to find an expression for the derivative of the logarithmic function y=logbx.\begin{align*}y = \log_b x.\end{align*} Recall that the exponential number e\begin{align*}e\end{align*} is defined as

e=lima 0(1+a)1/a

(where we have substituted a\begin{align*}a\end{align*} for x\begin{align*}x\end{align*} for convenience). From the definition of the derivative of f(x)\begin{align*}f(x)\end{align*} that you already studied in Chapter 2,

We want to apply this definition to get the derivative to our logarithmic function \begin{align*}y= \log_b x.\end{align*} Using the definition of the derivative and the rules of logarithms from the Lesson on Exponential and Logarithmic Functions,

At this stage, let \begin{align*}a =(w-x)/(x),\end{align*} the limit of \begin{align*}w\rightarrow x\end{align*} then becomes \begin{align*}a\rightarrow 0.\end{align*} Substituting, we get

Inserting the limit,

But by the definition \begin{align*}e = \lim_{a \to \ 0 }(1+a)^{1/a},\end{align*}

From the box above, we can express \begin{align*}\log_b{e}\end{align*} in terms of natural logarithm by the using the formula \begin{align*}\log_b{w} = \ln{w}/\ln{b}.\end{align*} Then

Thus we conclude

and in the special case where \begin{align*}b = e,\end{align*}

To generalize, if \begin{align*}u\end{align*} is a differentiable function of \begin{align*}x\end{align*} and if \begin{align*}u(x) > 0,\end{align*} then the above two equations, after the Chain Rule is applied, will produce the generalized derivative rule for logarithmic functions.

Derivatives of Logarithmic Functions

Remark: Students often wonder why the constant \begin{align*}e\end{align*} is defined the way it is. The answer is in the derivative of \begin{align*}f(x) = \ln x.\end{align*} With any other base the derivative of \begin{align*}f(x) = \log_b x\end{align*} would be equal \begin{align*} f'(x) = \frac {1}{x \ln b},\end{align*} a more complicated expression than \begin{align*}1/x.\end{align*} Thinking back to another unexpected unit, radians, the derivative of \begin{align*}f(x) = \sin(x)\end{align*} is the simple expression \begin{align*}f'(x) = \cos(x)\end{align*} only if \begin{align*}x\end{align*} is in radians. In degrees, \begin{align*}f'(x) = \frac {\pi}{180} \cos(x)\end{align*}, which is more cumbersome and harder to remember.

Example 1:

Find the derivative of \begin{align*}y = \ln(2x^2 - 4x + 3).\end{align*}

Solution:

Since \begin{align*} \frac {d}{dx} \left [ {{ \ln}u} \right ] = \frac {1}{u} \frac {du}{dx}\end{align*} , for \begin{align*}u = 2x^2 - 4x + 3,\end{align*}

Example 2:

Find \begin{align*} \frac {d}{dx} \left [ {\ln(\sin x)} \right ]\end{align*}.

Solution:

Example 3:

Find \begin{align*} \frac {d}{dx} \left [ {\ln(\cos 5x)^3} \right ].\end{align*}

Solution:

Here we use the Chain Rule:

Example 4:

Find the derivative of \begin{align*}y = x^3 \log_5 2x.\end{align*}

Solution:

Here we use the Product Rule along with \begin{align*} \frac{d} {dx} [\log_b u] = \frac{1} {u \ln b} \frac{du} {dx}:\end{align*}

Example 5:

Find the derivative of \begin{align*} y = \ln \frac{x} {x + 1} \cdot\end{align*}

Solution:

We use the Quotient Rule and the natural logarithm rule:

## Integrals Involving Natural Logarithmic Function

In the last section, we have learned that the derivative of \begin{align*}y = \ln u(x)\end{align*} is \begin{align*} y' = \frac{1} {u(x)} . u'(x)\end{align*}. The antiderivative is

If the argument of the natural logarithm is \begin{align*}x,\end{align*} then \begin{align*} \frac{d} {dx} [\ln x] = 1/x,\end{align*} thus

Example 6:

Evaluate \begin{align*} \int \frac{1} {x + 1} dx.\end{align*}

Solution:

In general, whenever you encounter an integral with an integrand as a rational function, it might be possible that it can be integrated with the rule of natural logarithm. To do so, determine the derivative of the denominator. If it is the numerator itself, then the integration is simply the \begin{align*}\ln\end{align*} of the absolute value of the denominator. Let’s test this technique.

Notice that the derivative of the denominator is \begin{align*}1\end{align*}, which is equal to the numerator. Thus the solution is simply the natural logarithm of the absolute value of the denominator:

The formal way of solving such integrals is to use \begin{align*}u-\end{align*}substitution by letting \begin{align*}u\end{align*} equal the denominator. Here, let \begin{align*}u = x + 1,\end{align*} and \begin{align*}du = dx.\end{align*} Substituting,

Remark: The integral must use the absolute value symbol because although \begin{align*}x\end{align*} may have negative values, the domain of \begin{align*}\ln(x)\end{align*} is restricted to \begin{align*}x \ge 0.\end{align*}

Example 7:

Evaluate \begin{align*} \int \frac{4x + 1} {4x^2 + 2x + 1} dx.\end{align*}

Solution:

As you can see here, the derivative of the denominator is \begin{align*}8x + 2.\end{align*} Our numerator is \begin{align*}4x + 1.\end{align*} However, when we multiply the numerator by \begin{align*}2,\end{align*} we get the derivative of the denominator. Hence

Again, we could have used \begin{align*}u-\end{align*}substitution.

Example 8:

Evaluate \begin{align*} \int \tan x dx\end{align*}.

Solution:

To solve, we rewrite the integrand as

Looking at the denominator, its derivative is \begin{align*} -\sin x\end{align*}. So we need to insert a minus sign in the numerator:

## Derivatives of Exponential Functions

We have discussed above that the exponential function is simply the inverse function of the logarithmic function. To obtain a derivative formula for the exponential function with base \begin{align*}b,\end{align*} we rewrite \begin{align*}y = b^x\end{align*} as

Differentiating implicitly,

Solving for \begin{align*} \frac{dy} {dx}\end{align*} and replacing \begin{align*}y\end{align*} with \begin{align*}b^x,\end{align*}

Thus the derivative of an exponential function is

In the special case where the base is \begin{align*}b^x = e^x,\end{align*} since \begin{align*}\ln e = 1\end{align*} the derivative rule becomes

To generalize, if \begin{align*}u\end{align*} is a differentiable function of \begin{align*}x,\end{align*} with the use of the Chain Rule the above derivatives take the general form

And if \begin{align*}b = e,\end{align*}

Derivatives of Exponential Functions

Example 9:

Find the derivative of \begin{align*}y = 2^{x^2}\end{align*}.

Solution:

Applying the rule for differentiating an exponential function,

Example 10:

Find the derivative of \begin{align*} y = e^{x^2}\end{align*}.

Solution:

Since

Example 11:

Find \begin{align*}f'(x)\end{align*} if

where \begin{align*}\sigma, \alpha, x_0 ,\end{align*} and \begin{align*}k\end{align*} are constants and \begin{align*}\sigma \neq 0.\end{align*}

Solution:

We apply the exponential derivative and the Chain Rule:

## Integrals Involving Exponential Functions

Associated with the exponential derivatives in the box above are the two corresponding integration formulas:

The following examples illustrate how they can be used.

Example 12:

Evaluate \begin{align*} \int 5^x dx\end{align*}.

Solution:

Example 13:

Solution:

In the next chapter, we will learn how to integrate more complicated integrals, such as \begin{align*} \int x^2 e^{x^3}dx\end{align*}, with the use of \begin{align*}u-\end{align*}substitution and integration by parts along with the logarithmic and exponential integration formulas.

For a video presentation of the derivatives of exponential and logarithmic functions (4.4), see Math Video Tutorials by James Sousa, The Derivatives of Exponential and Logarithmic Functions (8:26).

## Review Questions

1. Find \begin{align*}dy/dx\end{align*} of \begin{align*}y = e^{6x}\end{align*}
2. Find \begin{align*} dy/dx\end{align*} of \begin{align*} y = e^{3x^3 - 2x^2 + 6}\end{align*}
3. Find \begin{align*} dy/dx\end{align*} of \begin{align*} y = e^{x^2} \cdot \ln \left (\frac{1} {x}\right )\end{align*}
4. Find \begin{align*} dy/dx\end{align*} of \begin{align*} y = \frac{e^x - e^{-x}} {e^x + e^{-x}}\end{align*}
5. Find \begin{align*}dy/dx\end{align*} of \begin{align*}y = \cos(e^x)\end{align*}
6. Find \begin{align*}dy/dx\end{align*} of \begin{align*}y = \ln(\sin(\ln x))\end{align*}
7. Evaluate \begin{align*} \int \frac{1} {e^x} dx\end{align*}
8. Evaluate \begin{align*} \int \sqrt{e^x} dx\end{align*}
9. Evaluate \begin{align*} \int \frac{4x - 3} {4x^2 - 6x + 7} dx\end{align*}
10. Evaluate \begin{align*} \int \frac{e^x + e^{-x}} {e^x - e^{-x}} dx\end{align*}
11. Evaluate \begin{align*} \int_0^e \frac{dx} {x + e}\end{align*}
12. Evaluate \begin{align*} \int_{-\ln 3}^{\ln 3} \frac{e^x} {e^x + 4} dx\end{align*}

1. \begin{align*}y' = 6e^{6x}\end{align*}
2. \begin{align*} y' = (9x^2 - 4x)e^{3x^3 - 2x^2 + 6}\end{align*}
3. \begin{align*} y' = -e^{x^2} [2x \ln x + \frac{1}{x}] \end{align*}
4. \begin{align*} y' = \frac{4} {(e^x + e^{-x})^2}\end{align*}
5. \begin{align*}y' = -e^x \cot e^x\end{align*}
6. \begin{align*} y' = \frac{\cot(\ln x)} {x}\end{align*}
7. \begin{align*}-e^{-x} + C\end{align*}
8. \begin{align*}2e^{x/2} + C\end{align*}
9. \begin{align*} \frac{1} {2} \ln |4x^2 - 6x + 7| + C\end{align*}
10. \begin{align*} \ln |e^x - e^{-x}| + C\end{align*}
11. \begin{align*}\ln 2\end{align*}
12. \begin{align*} \ln \frac{21} {13}\end{align*}

Feb 23, 2012

Aug 19, 2015