25
Learning Objectives
- Find the derivative of all 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.
Applying the Natural Exponential Function
A colony of mosquitoes has an initial population of 1000. After [latex]t[/latex] days, the population is given by [latex]A(t)=1000e^{0.3t}[/latex]. Show that the ratio of the rate of change of the population, [latex]A^{\prime}(t)[/latex], to the population size, [latex]A(t)[/latex] is constant.
Solution
First find [latex]A^{\prime}(t)[/latex]. By using the chain rule, we have [latex]A^{\prime}(t)=300e^{0.3t}[/latex]. Thus, the ratio of the rate of change of the population to the population size is given by
The ratio of the rate of change of the population to the population size is the constant 0.3.
If [latex]A(t)=1000e^{0.3t}[/latex] describes the mosquito population after [latex]t[/latex] days, as in the preceding example, what is the rate of change of [latex]A(t)[/latex] after 4 days?
Hint
Find [latex]A^{\prime}(4)[/latex].
Solution
996
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 [latex]x \symbol{"3E} 0[/latex] and [latex]y=\ln x[/latex], then
More generally, let [latex]g(x)[/latex] be a differentiable function. For all values of [latex]x[/latex] for which [latex]g^{\prime}(x) \symbol{"3E} 0[/latex], the derivative of [latex]h(x)=\ln(g(x))[/latex] is given by
Proof
If [latex]x \symbol{"3E} 0[/latex] and [latex]y=\ln x[/latex], then [latex]e^y=x[/latex]. Differentiating both sides of this equation results in the equation
Solving for [latex]\frac{dy}{dx}[/latex] yields
Finally, we substitute [latex]x=e^y[/latex] to obtain
We may also derive this result by applying the inverse function theorem, as follows. Since [latex]y=g(x)=\ln x[/latex] is the inverse of [latex]f(x)=e^x[/latex], by applying the inverse function theorem we have
Using this result and applying the chain rule to [latex]h(x)=\ln(g(x))[/latex] yields
The graph of [latex]y=\ln x[/latex] and its derivative [latex]\frac{dy}{dx}=\frac{1}{x}[/latex] are shown in (Figure) .
Taking a Derivative of a Natural Logarithm
Find the derivative of [latex]f(x)=\ln(x^3+3x-4)[/latex].
Solution
Use (Figure) directly.
Using Properties of Logarithms in a Derivative
Find the derivative of [latex]f(x)=\ln(\frac{x^2 \sin x}{2x+1})[/latex].
Solution
At first glance, taking this derivative appears rather complicated. However, by using the properties of logarithms prior to finding the derivative, we can make the problem much simpler.
Differentiate: [latex]f(x)=\ln (3x+2)^5[/latex].
Hint
Use a property of logarithms to simplify before taking the derivative.
Solution
[latex]f^{\prime}(x)=\frac{15}{3x+2}[/latex]
Now that we can differentiate the natural logarithmic function, we can use this result to find the derivatives of [latex]y=\log_b x[/latex] and [latex]y=b^x[/latex] for [latex]b \symbol{"3E} 0, \, b\ne 1[/latex].
Derivatives of General Exponential and Logarithmic Functions
Let [latex]b \symbol{"3E} 0, \, b\ne 1[/latex], and let [latex]g(x)[/latex] be a differentiable function.
- If [latex]y=\log_b x[/latex], then
[latex]\frac{dy}{dx}=\frac{1}{x \ln b}[/latex].
More generally, if [latex]h(x)=\log_b (g(x))[/latex], then for all values of [latex]x[/latex] for which [latex]g(x) \symbol{"3E} 0[/latex],
[latex]h^{\prime}(x)=\frac{g^{\prime}(x)}{g(x) \ln b}[/latex].
- If [latex]y=b^x[/latex], then
[latex]\frac{dy}{dx}=b^x \ln b[/latex].
More generally, if [latex]h(x)=b^{g(x)}[/latex], then
[latex]h^{\prime}(x)=b^{g(x)} g^{\prime}(x) \ln b[/latex].
Proof
If [latex]y=\log_b x[/latex], then [latex]b^y=x[/latex]. It follows that [latex]\ln(b^y)=\ln x[/latex]. Thus [latex]y \ln b = \ln x[/latex]. Solving for [latex]y[/latex], we have [latex]y=\frac{\ln x}{\ln b}[/latex]. Differentiating and keeping in mind that [latex]\ln b[/latex] is a constant, we see that
The derivative in (Figure) now follows from the chain rule.
If [latex]y=b^x[/latex], then [latex]\ln y=x \ln b[/latex]. Using implicit differentiation, again keeping in mind that [latex]\ln b[/latex] is constant, it follows that [latex]\frac{1}{y}\frac{dy}{dx}=\text{ln}b.[/latex] Solving for [latex]\frac{dy}{dx}[/latex] and substituting [latex]y=b^x[/latex], we see that
The more general derivative ( (Figure) ) follows from the chain rule. [latex]_\blacksquare[/latex]
Applying Derivative Formulas
Find the derivative of [latex]h(x)=\large \frac{3^x}{3^x+2}[/latex].
Solution
Use the quotient rule and (Figure) .
Finding the Slope of a Tangent Line
Find the slope of the line tangent to the graph of [latex]y=\log_2 (3x+1)[/latex] at [latex]x=1[/latex].
Solution
To find the slope, we must evaluate [latex]\frac{dy}{dx}[/latex] at [latex]x=1[/latex]. Using (Figure) , we see that
By evaluating the derivative at [latex]x=1[/latex], we see that the tangent line has slope
Find the slope for the line tangent to [latex]y=3^x[/latex] at [latex]x=2[/latex].
Hint
Evaluate the derivative at [latex]x=2[/latex].
Solution
[latex]9 \ln (3)[/latex]
Logarithmic Differentiation
At this point, we can take derivatives of functions of the form [latex]y=(g(x))^n[/latex] for certain values of [latex]n[/latex], as well as functions of the form [latex]y=b^{g(x)}[/latex], where [latex]b \symbol{"3E} 0[/latex] and [latex]b\ne 1[/latex]. Unfortunately, we still do not know the derivatives of functions such as [latex]y=x^x[/latex] or [latex]y=x^{\pi}[/latex]. These functions require a technique called logarithmic differentiation , which allows us to differentiate any function of the form [latex]h(x)=g(x)^{f(x)}[/latex]. It can also be used to convert a very complex differentiation problem into a simpler one, such as finding the derivative of [latex]y=\frac{x\sqrt{2x+1}}{e^x \sin^3 x}[/latex]. We outline this technique in the following problem-solving strategy.
Problem-Solving Strategy: Using Logarithmic Differentiation
- To differentiate [latex]y=h(x)[/latex] using logarithmic differentiation, take the natural logarithm of both sides of the equation to obtain [latex]\ln y=\ln (h(x))[/latex].
- Use properties of logarithms to expand [latex]\ln (h(x))[/latex] as much as possible.
- Differentiate both sides of the equation. On the left we will have [latex]\frac{1}{y}\frac{dy}{dx}[/latex].
- Multiply both sides of the equation by [latex]y[/latex] to solve for [latex]\frac{dy}{dx}[/latex].
- Replace [latex]y[/latex] by [latex]h(x)[/latex].
Using Logarithmic Differentiation
Find the derivative of [latex]y=(2x^4+1)^{\tan x}[/latex].
Solution
Use logarithmic differentiation to find this derivative.
Using Logarithmic Differentiation
Find the derivative of [latex]y=\large \frac{x\sqrt{2x+1}}{e^x \sin^3 x}[/latex].
Solution
This problem really makes use of the properties of logarithms and the differentiation rules given in this chapter.
Extending the Power Rule
Find the derivative of [latex]y=x^r[/latex] where [latex]r[/latex] is an arbitrary real number.
Solution
The process is the same as in (Figure) , though with fewer complications.
Use logarithmic differentiation to find the derivative of [latex]y=x^x[/latex].
Hint
Follow the problem solving strategy.
Solution
[latex]\frac{dy}{dx}=x^x(1+\ln x)[/latex]
Solution
[latex]y^{\prime}=\pi (\tan x)^{\pi -1} \sec^2 x[/latex]
Key Concepts
- On the basis of the assumption that the exponential function [latex]y=b^x, \, b \symbol{"3E} 0[/latex] 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 [latex]y=\ln x[/latex], and the relationship [latex]\log_b x=\frac{\ln x}{\ln b}[/latex] allows us to extend our differentiation formulas to include logarithms with arbitrary bases.
- Logarithmic differentiation allows us to differentiate functions of the form [latex]y=g(x)^{f(x)}[/latex] 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
[latex]\frac{d}{dx}(e^{g(x)})=e^{g(x)} g^{\prime}(x)[/latex] - Derivative of the natural logarithmic function
[latex]\frac{d}{dx}(\ln (g(x)))=\frac{1}{g(x)} g^{\prime}(x)[/latex] - Derivative of the general exponential function
[latex]\frac{d}{dx}(b^{g(x)})=b^{g(x)} g^{\prime}(x) \ln b[/latex] - Derivative of the general logarithmic function
[latex]\frac{d}{dx}(\log_b (g(x)))=\frac{g^{\prime}(x)}{g(x) \ln b}[/latex]
For the following exercises, find the first derivative for each function.
1. [latex]f(x)=2^{4x}+4x^2[/latex]
Solution
[latex]f^{\prime}(x) = 2^{4x+2} \cdot \ln 2+8x[/latex]
2. [latex]f(t)=3^{\sin {3t}}[/latex]
3. [latex]f(x)=x^{\pi} \cdot \pi^x[/latex]
Solution
[latex]f^{\prime}(x) = \pi x^{\pi -1} \cdot \pi^x + x^{\pi} \cdot \pi^x \ln \pi[/latex]
4. [latex]g(x)=\ln(4x^3+x)[/latex]
5. [latex]f(x)=\ln \sqrt{5x-7}[/latex]
Solution
[latex]f^{\prime}(x) = \frac{5}{2(5x-7)}[/latex]
6. [latex]f(x)=x^2 \ln 9x[/latex]
7. [latex]f(x)=\log(\sec x)[/latex]
Solution
[latex]f^{\prime}(x) = \frac{\tan x}{\ln 10}[/latex]
8. [latex]f(x)=\log_7 (6x^4+3)^5[/latex]
9. [latex]f(x)=2^x \cdot \log_3 7^{x^2-4}[/latex]
Solution
[latex]f^{\prime}(x) = 2^x \cdot \ln 2 \cdot \log_3 7^{x^2-4} + 2^x \cdot \frac{2x \ln 7}{\ln 3}[/latex]
10. [latex]h(z)=\ln (\frac{2z^2}{\sqrt[3]{z+8}})[/latex]
11. [latex]f(x)= \ln |x^4 - 9x^2|[/latex]
Solution
[latex]f^{\prime}(x) = \frac{4x^3 - 18x}{x^4 - 9x^2}[/latex] for [latex]x \ne -3,0,3[/latex]
12. [latex]f(x)=\frac{\ln (x^2)}{2e^{3x} - \pi^7}[/latex]
13. [latex]f(x)= \ln (e^{x^3} + \sqrt[5]{x^4})[/latex]
Solution
[latex]f^{\prime}(x) = \frac{3x^2 e^{x^3} + \frac{4}{5} x^{-\frac{1}{4}}}{e^{x^3} + \sqrt[5]{x^4}}[/latex]
14. [latex]f(x)= \log_8 (5^x - e^{2x} + \sqrt{x})[/latex]
15. [latex]f(x)= 6 ^ {2x^2 -\pi x}[/latex]
Solution
[latex]f^{\prime}(x) = 6 ^ {2x^2 -\pi x} (\ln 6) (4x - \pi)[/latex]
For the following exercises, use logarithmic differentiation to find [latex]\frac{dy}{dx}[/latex].
16. [latex]y=x^{\sqrt{x}}[/latex]
17. [latex]y=(\sin 2x)^{4x}[/latex]
Solution
[latex]\frac{dy}{dx} = (\sin 2x)^{4x} [4 \cdot \ln(\sin 2x) + 8x \cdot \cot 2x][/latex]
18. [latex]y=(\ln x)^{\ln x}[/latex]
19. [latex]y=x^{\log_2 x}[/latex]
Solution
[latex]\frac{dy}{dx} = x^{\log_2 x} \cdot \frac{2 \ln x}{x \ln 2}[/latex]
20. [latex]y=(x^2-1)^{\ln x}[/latex]
21. [latex]y=x^{\cot x}[/latex]
Solution
[latex]\frac{dy}{dx} = x^{\cot x} \cdot [-\csc^2 x \cdot \ln x+\frac{\cot x}{x}][/latex]
22. [latex]y= \large \frac{x+11}{\sqrt[3]{x^2-4}}[/latex]
23. [latex]y=x^{-1/2}(x^2+3)^{2/3}(3x-4)^4[/latex]
Solution
[latex]\frac{dy}{dx} = x^{-1/2}(x^2+3)^{2/3}(3x-4)^4 \cdot [\frac{-1}{2x}+\frac{4x}{3(x^2+3)}+\frac{12}{3x-4}][/latex]
24. [T] Find an equation of the tangent line to the graph of [latex]f(x)=4xe^{x^2-1}[/latex] at the point where
[latex]x=-1[/latex]. Graph both the function and the tangent line.
25. [T] Find the equation of the line that is normal to the graph of [latex]f(x)=x \cdot 5^x[/latex] at the point where [latex]x=1[/latex]. Graph both the function and the normal line.
Solution
[latex]y=\frac{-1}{5+5 \ln 5}x+(5+\frac{1}{5+5 \ln 5})[/latex]
26. [T] Find the equation of the tangent line to the graph of [latex]x^3-x \ln y+y^3=2x+5[/latex] at the point where [latex]x=2[/latex]. ( Hint : Use implicit differentiation to find [latex]\frac{dy}{dx}[/latex].) Graph both the curve and the tangent line.
27. Consider the function [latex]y=x^{1/x}[/latex] for [latex]x \symbol{"3E} 0[/latex].
- Determine the points on the graph where the tangent line is horizontal.
- Determine the intervals where [latex]y^{\prime} \symbol{"3E} 0[/latex] and those where [latex]y^{\prime}<0[/latex].
Solution
a. [latex]x=e \approx 2.718[/latex]
b. [latex]y^{\prime} \symbol{"3E} 0[/latex] on [latex](e,\infty)[/latex], and [latex]y^{\prime}<0[/latex] on [latex](0,e)[/latex]
28. The formula [latex]I(t)=\frac{\sin t}{e^t}[/latex] is the formula for a decaying alternating current.
- Complete the following table with the appropriate values.
[latex]t[/latex] [latex]\frac{\sin t}{e^t}[/latex] 0 (i) [latex]\frac{\pi}{2}[/latex] (ii) [latex]\pi[/latex] (iii) [latex]\frac{3\pi}{2}[/latex] (iv) [latex]2\pi[/latex] (v) [latex]2\pi[/latex] (vi) [latex]3\pi[/latex] (vii) [latex]\frac{7\pi}{2}[/latex] (viii) [latex]4\pi[/latex] (ix) - Using only the values in the table, determine where the tangent line to the graph of [latex]I(t)[/latex] 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.
- Write the exponential function that relates the total population as a function of [latex]t[/latex].
- Use a. to determine the rate at which the population is increasing in [latex]t[/latex] years.
- Use b. to determine the rate at which the population is increasing in 10 years.
Solution
a. [latex]P=500,000(1.05)^t[/latex] individuals
b. [latex]P^{\prime}(t)=24395 \cdot (1.05)^t[/latex] individuals per year
c. 39,737 individuals per year
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.
- Write the exponential function that relates the amount of substance remaining as a function of [latex]t[/latex], measured in hours.
- Use a. to determine the rate at which the substance is decaying in [latex]t[/latex] hours.
- Use b. to determine the rate of decay at [latex]t=4[/latex] 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
[latex]N(t)=5.3e^{0.093t^2-0.87t}, \, (0\le t\le 4)[/latex],
where [latex]N(t)[/latex] gives the number of cases (in thousands) and [latex]t[/latex] is measured in years, with [latex]t=0[/latex] corresponding to the beginning of 1960.
- Show work that evaluates [latex]N(0)[/latex] and [latex]N(4)[/latex]. Briefly describe what these values indicate about the disease in New York City.
- Show work that evaluates [latex]N^{\prime}(0)[/latex] and [latex]N^{\prime}(3)[/latex]. Briefly describe what these values indicate about the disease in New York City.
Solution
a. At the beginning of 1960 there were 5.3 thousand cases of the disease in New York City. At the beginning of 1963 there were approximately 723 cases of the disease in New York City.
b. At the beginning of 1960 the number of cases of the disease was decreasing at rate of -4.611 thousand per year; at the beginning of 1963, the number of cases of the disease was decreasing at a rate of -0.2808 thousand per year.
32. [T] The relative rate of change of a differentiable function [latex]y=f(x)[/latex] is given by [latex]\frac{100 \cdot f^{\prime}(x)}{f(x)}\%[/latex]. One model for population growth is a Gompertz growth function, given by [latex]P(x)=ae^{-b \cdot e^{-cx}}[/latex] where [latex]a, \, b[/latex], and [latex]c[/latex] are constants.
- Find the relative rate of change formula for the generic Gompertz function.
- Use a. to find the relative rate of change of a population in [latex]x=20[/latex] months when [latex]a=204,b=0.0198,[/latex] and [latex]c=0.15.[/latex]
- 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.
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 [latex]p=ab^t[/latex].
Solution
[latex]p=35741(1.045)^t[/latex]
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.
Solution
Years since 1790 | [latex]P''[/latex] |
---|---|
0 | 69.25 |
10 | 107.5 |
20 | 167.0 |
30 | 259.4 |
40 | 402.8 |
50 | 625.5 |
60 | 971.4 |
70 | 1508.5 |
36. [T] Using the tables of first and second derivatives and the best fit, answer the following questions:
- Will the model be accurate in predicting the future population of New York City? Why or why not?
- 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