3.9 Derivatives of Exponential and Logarithmic Functions

Learning Objectives

  • Find the derivative of exponential functions.
  • Find the derivative of logarithmic functions.
  • Use logarithmic differentiation to determine the derivative of a function.

So far, we have learned how to differentiate a variety of functions, including trigonometric, inverse, and implicit functions. In this section, we explore derivatives of exponential and logarithmic functions. As we discussed in Introduction to Functions and Graphs, exponential functions play an important role in modeling population growth and the decay of radioactive materials. Logarithmic functions can help rescale large quantities and are particularly helpful for rewriting complicated expressions.

Derivative of the Exponential Function

Just as when we found the derivatives of other functions, we can find the derivatives of exponential and logarithmic functions using formulas. As we develop these formulas, we need to make certain basic assumptions. The proofs that these assumptions hold are beyond the scope of this course.

First of all, we begin with the assumption that the function B(x)=bx,b>0, is defined for every real number and is continuous. In previous courses, the values of exponential functions for all rational numbers were defined—beginning with the definition of bn, where n is a positive integer—as the product of b multiplied by itself n times. Later, we defined b0=1,bn=1bn for a positive integer n, and bs/t=(tb)s for positive integers s and t. These definitions leave open the question of the value of br where r is an arbitrary real number. By assuming the continuity of B(x)=bx,b>0, we may interpret br as limxrbx where the values of x as we take the limit are rational. For example, we may view 4π as the number satisfying

43<4π<44,43.1<4π<43.2,43.14<4π<43.15,43.141<4π<43.142,43.1415<4π<43.1416,

As we see in the following table, 4π77.88.

Approximating a Value of 4π
x 4x x 4x
43 64 43.141593 77.8802710486
43.1 73.5166947198 43.1416 77.8810268071
43.14 77.7084726013 43.142 77.9242251944
43.141 77.8162741237 43.15 78.7932424541
43.1415 77.8702309526 43.2 84.4485062895
43.14159 77.8799471543 44 256

We also assume that for B(x)=bx,b>0, the value B(0) of the derivative exists. In this section, we show that by making this one additional assumption, it is possible to prove that the function B(x) is differentiable everywhere.

We make one final assumption: that there is a unique value of b>0 for which B(0)=1. We define e to be this unique value, as we did in Introduction to Functions and Graphs. (Figure) provides graphs of the functions y=2x,y=3x,y=2.7x, and y=2.8x. A visual estimate of the slopes of the tangent lines to these functions at 0 provides evidence that the value of e lies somewhere between 2.7 and 2.8. The function E(x)=ex is called the natural exponential function. Its inverse, L(x)=logex=lnx is called the natural logarithmic function.

The graphs of 3x, 2.8x, 2.7x, and 2x are shown. In quadrant I, their order from least to greatest is 2x, 2.7x, 2.8x, and 3x. In quadrant II, this order is reversed. All cross the y-axis at (0, 1).

Figure 1. The graph of E(x)=ex is between y=2x and y=3x.

For a better estimate of e, we may construct a table of estimates of B(0) for functions of the form B(x)=bx. Before doing this, recall that

B(0)=limx0bxb0x0=limx0bx1xbx1x

for values of x very close to zero. For our estimates, we choose x=0.00001 and x=0.00001 to obtain the estimate

[latex]\frac{b^{-0.00001}-1}{-0.00001}

See the following table.

Estimating a Value of e
b [latex]\frac{b^{-0.00001}-1}{-0.00001} b [latex]\frac{b^{-0.00001}-1}{-0.00001}
2 [latex]0.693145 2.7183 [latex]1.000002
2.7 [latex]0.993247 2.719 [latex]1.000259
2.71 [latex]0.996944 2.72 [latex]1.000627
2.718 [latex]0.999891 2.8 [latex]1.029614
2.7182 [latex]0.999965 3 [latex]1.098606

The evidence from the table suggests that [latex]2.7182

The graph of E(x)=ex together with the line y=x+1 are shown in (Figure). This line is tangent to the graph of E(x)=ex at x=0.

Graph of the function ex along with its tangent at (0, 1), x + 1.

Figure 2. The tangent line to E(x)=ex at x=0 has slope 1.

Now that we have laid out our basic assumptions, we begin our investigation by exploring the derivative of B(x)=bx,b>0. Recall that we have assumed that B(0) exists. By applying the limit definition to the derivative we conclude that

B(0)=limh0b0+hb0h=limh0bh1h.

Turning to B(x), we obtain the following.

B(x)=limh0bx+hbxhApply the limit definition of the derivative.=limh0bxbhbxhNote thatbx+h=bxbh.=limh0bx(bh1)hFactor outbx.=bxlimh0bh1hApply a property of limits.=bxB(0)UseB(0)=limh0b0+hb0h=limh0bh1h.

We see that on the basis of the assumption that B(x)=bx is differentiable at 0,B(x) is not only differentiable everywhere, but its derivative is

B(x)=bxB(0).

For E(x)=ex,E(0)=1. Thus, we have E(x)=ex. (The value of B(0) for an arbitrary function of the form B(x)=bx,b>0, will be derived later.)

Derivative of the Natural Exponential Function

Let E(x)=ex be the natural exponential function. Then

E(x)=ex.

In general,

ddx(eg(x))=eg(x)g(x).

Derivative of an Exponential Function

Find the derivative of f(x)=etan(2x).

Combining Differentiation Rules

Find the derivative of y=ex2x.

Find the derivative of h(x)=xe2x.

Hint

Don’t forget to use the product rule.

Applying the Natural Exponential Function

A colony of mosquitoes has an initial population of 1000. After t days, the population is given by A(t)=1000e0.3t. Show that the ratio of the rate of change of the population, A(t), to the population size, A(t) is constant.

If A(t)=1000e0.3t describes the mosquito population after t days, as in the preceding example, what is the rate of change of A(t) after 4 days?

Hint

Find A(4).

Derivative of the Logarithmic Function

Now that we have the derivative of the natural exponential function, we can use implicit differentiation to find the derivative of its inverse, the natural logarithmic function.

The Derivative of the Natural Logarithmic Function

If x>0 and y=lnx, then

dydx=1x.

More generally, let g(x) be a differentiable function. For all values of x for which g(x)>0, the derivative of h(x)=ln(g(x)) is given by

h(x)=1g(x)g(x).

Proof

If x>0 and y=lnx, then ey=x. Differentiating both sides of this equation results in the equation

eydydx=1.

Solving for dydx yields

dydx=1ey.

Finally, we substitute x=ey to obtain

dydx=1x.

We may also derive this result by applying the inverse function theorem, as follows. Since y=g(x)=lnx is the inverse of f(x)=ex, by applying the inverse function theorem we have

dydx=1f(g(x))=1elnx=1x.

Using this result and applying the chain rule to h(x)=ln(g(x)) yields

h(x)=1g(x)g(x).◼

The graph of y=lnx and its derivative dydx=1x are shown in (Figure).

Graph of the function ln x along with its derivative 1/x. The function ln x is increasing on (0, + ∞). Its derivative is decreasing but greater than 0 on (0, + ∞).

Figure 3. The function y=lnx is increasing on (0,+). Its derivative y=1x is greater than zero on (0,+).

Taking a Derivative of a Natural Logarithm

Find the derivative of f(x)=ln(x3+3x4).

Using Properties of Logarithms in a Derivative

Find the derivative of f(x)=ln(x2sinx2x+1).

Differentiate: f(x)=ln(3x+2)5.

Hint

Use a property of logarithms to simplify before taking the derivative.

Now that we can differentiate the natural logarithmic function, we can use this result to find the derivatives of y=logbx and y=bx for b>0,b1.

Derivatives of General Exponential and Logarithmic Functions

Let b>0,b1, and let g(x) be a differentiable function.

  1. If y=logbx, then
    dydx=1xlnb.

    More generally, if h(x)=logb(g(x)), then for all values of x for which g(x)>0,

    h(x)=g(x)g(x)lnb.

  2. If y=bx, then
    dydx=bxlnb.

    More generally, if h(x)=bg(x), then

    h(x)=bg(x)g(x)lnb.

Proof

If y=logbx, then by=x. It follows that ln(by)=lnx. Thus ylnb=lnx. Solving for y, we have y=lnxlnb. Differentiating and keeping in mind that lnb is a constant, we see that

dydx=1xlnb.

The derivative in (Figure) now follows from the chain rule.

If y=bx, then lny=xlnb. Using implicit differentiation, again keeping in mind that lnb is constant, it follows that 1ydydx=lnb. Solving for dydx and substituting y=bx, we see that

dydx=ylnb=bxlnb.

The more general derivative ((Figure)) follows from the chain rule. ◼

Applying Derivative Formulas

Find the derivative of h(x)=3x3x+2.

Finding the Slope of a Tangent Line

Find the slope of the line tangent to the graph of y=log2(3x+1) at x=1.

Find the slope for the line tangent to y=3x at x=2.

Hint

Evaluate the derivative at x=2.

Logarithmic Differentiation

At this point, we can take derivatives of functions of the form y=(g(x))n for certain values of n, as well as functions of the form y=bg(x), where b>0 and b1. Unfortunately, we still do not know the derivatives of functions such as y=xx or y=xπ. These functions require a technique called logarithmic differentiation, which allows us to differentiate any function of the form h(x)=g(x)f(x). It can also be used to convert a very complex differentiation problem into a simpler one, such as finding the derivative of y=x2x+1exsin3x. We outline this technique in the following problem-solving strategy.

Problem-Solving Strategy: Using Logarithmic Differentiation

  1. To differentiate y=h(x) using logarithmic differentiation, take the natural logarithm of both sides of the equation to obtain lny=ln(h(x)).
  2. Use properties of logarithms to expand ln(h(x)) as much as possible.
  3. Differentiate both sides of the equation. On the left we will have 1ydydx.
  4. Multiply both sides of the equation by y to solve for dydx.
  5. Replace y by h(x).

Using Logarithmic Differentiation

Find the derivative of y=(2x4+1)tanx.

Using Logarithmic Differentiation

Find the derivative of y=x2x+1exsin3x.

Extending the Power Rule

Find the derivative of y=xr where r is an arbitrary real number.

Use logarithmic differentiation to find the derivative of y=xx.

Hint

Follow the problem solving strategy.

Find the derivative of y=(tanx)π.

Hint

Use the result from (Figure).

Key Concepts

  • On the basis of the assumption that the exponential function y=bx,b>0 is continuous everywhere and differentiable at 0, this function is differentiable everywhere and there is a formula for its derivative.
  • We can use a formula to find the derivative of y=lnx, and the relationship logbx=lnxlnb allows us to extend our differentiation formulas to include logarithms with arbitrary bases.
  • Logarithmic differentiation allows us to differentiate functions of the form y=g(x)f(x) or very complex functions by taking the natural logarithm of both sides and exploiting the properties of logarithms before differentiating.

Key Equations

  • Derivative of the natural exponential function
    ddx(eg(x))=eg(x)g(x)
  • Derivative of the natural logarithmic function
    ddx(ln(g(x)))=1g(x)g(x)
  • Derivative of the general exponential function
    ddx(bg(x))=bg(x)g(x)lnb
  • Derivative of the general logarithmic function
    ddx(logb(g(x)))=g(x)g(x)lnb

For the following exercises, find f(x) for each function.

1. f(x)=x2ex

2. f(x)=exx

3. f(x)=ex3lnx

4. f(x)=e2x+2x

5. f(x)=exexex+ex

6. f(x)=10xln10

7. f(x)=24x+4x2

8. f(x)=3sin3x

9. f(x)=xππx

10. f(x)=ln(4x3+x)

11. f(x)=ln5x7

12. f(x)=x2ln9x

13. f(x)=log(secx)

14. f(x)=log7(6x4+3)5

15. f(x)=2xlog37x24

For the following exercises, use logarithmic differentiation to find dydx.

16. y=xx

17. y=(sin2x)4x

18. y=(lnx)lnx

19. y=xlog2x

20. y=(x21)lnx

21. y=xcotx

22. y=x+113x24

23. y=x1/2(x2+3)2/3(3x4)4

24. [T] Find an equation of the tangent line to the graph of f(x)=4xex21 at the point where

x=1. Graph both the function and the tangent line.

25. [T] Find the equation of the line that is normal to the graph of f(x)=x5x at the point where x=1. Graph both the function and the normal line.

26. [T] Find the equation of the tangent line to the graph of x3xlny+y3=2x+5 at the point where x=2. (Hint: Use implicit differentiation to find dydx.) Graph both the curve and the tangent line.

27. Consider the function y=x1/x for x>0.

  1. Determine the points on the graph where the tangent line is horizontal.
  2. Determine the intervals where y>0 and those where y<0.

28. The formula I(t)=sintet is the formula for a decaying alternating current.

  1. Complete the following table with the appropriate values.
    t sintet
    0 (i)
    π2 (ii)
    π (iii)
    3π2 (iv)
    2π (v)
    2π (vi)
    3π (vii)
    7π2 (viii)
    4π (ix)
  2. Using only the values in the table, determine where the tangent line to the graph of I(t) is horizontal.

29. [T] The population of Toledo, Ohio, in 2000 was approximately 500,000. Assume the population is increasing at a rate of 5% per year.

  1. Write the exponential function that relates the total population as a function of t.
  2. Use a. to determine the rate at which the population is increasing in t years.
  3. Use b. to determine the rate at which the population is increasing in 10 years.

30. [T] An isotope of the element erbium has a half-life of approximately 12 hours. Initially there are 9 grams of the isotope present.

  1. Write the exponential function that relates the amount of substance remaining as a function of t, measured in hours.
  2. Use a. to determine the rate at which the substance is decaying in t hours.
  3. Use b. to determine the rate of decay at t=4 hours.

31. [T] The number of cases of influenza in New York City from the beginning of 1960 to the beginning of 1961 is modeled by the function

N(t)=5.3e0.093t20.87t,(0t4),

where N(t) gives the number of cases (in thousands) and t is measured in years, with t=0 corresponding to the beginning of 1960.

  1. Show work that evaluates N(0) and N(4). Briefly describe what these values indicate about the disease in New York City.
  2. Show work that evaluates N(0) and N(3). Briefly describe what these values indicate about the disease in New York City.

32. [T] The relative rate of change of a differentiable function y=f(x) is given by 100f(x)f(x)%. One model for population growth is a Gompertz growth function, given by P(x)=aebecx where a,b, and c are constants.

  1. Find the relative rate of change formula for the generic Gompertz function.
  2. Use a. to find the relative rate of change of a population in x=20 months when a=204,b=0.0198, and c=0.15.
  3. Briefly interpret what the result of b. means.

For the following exercises, use the population of New York City from 1790 to 1860, given in the following table.

New York City Population Over Time
Source: http://en.wikipedia.org/wiki/Largest_cities_in_the_United_States_by_population_by_decade
Years since 1790 Population
0 33,131
10 60,515
20 96,373
30 123,706
40 202,300
50 312,710
60 515,547
70 813,669

33. [T] Using a computer program or a calculator, fit a growth curve to the data of the form p=abt.

34. [T] Using the exponential best fit for the data, write a table containing the derivatives evaluated at each year.

35. [T] Using the exponential best fit for the data, write a table containing the second derivatives evaluated at each year.

36. [T] Using the tables of first and second derivatives and the best fit, answer the following questions:

  1. Will the model be accurate in predicting the future population of New York City? Why or why not?
  2. Estimate the population in 2010. Was the prediction correct from a.?

 

Glossary

logarithmic differentiation
is a technique that allows us to differentiate a function by first taking the natural logarithm of both sides of an equation, applying properties of logarithms to simplify the equation, and differentiating implicitly