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.
Theorem 3.15
The Derivative of the Natural Logarithmic Function
If \(x > 0\) and \(y = \text{ln} x ,\) then
More generally, let \(g \left(\right. x \left.\right)\) be a differentiable function. For all values of \(x\) for which \(g \left(\right. x \left.\right) > 0 ,\) the derivative of \(h \left(\right. x \left.\right) = \text{ln} \left(\right. g \left(\right. x \left.\right) \left.\right)\) is given by
Proof
If \(x > 0\) and \(y = \text{ln} x ,\) then \(e^{y} = x .\) Differentiating both sides of this equation results in the equation
Solving for \(\frac{d y}{d x}\) yields
Finally, we substitute \(x = e^{y}\) to obtain
We may also derive this result by applying the inverse function theorem, as follows. Since \(y = g \left(\right. x \left.\right) = \text{ln} x\) is the inverse of \(f \left(\right. x \left.\right) = e^{x} ,\) by applying the inverse function theorem we have
Using this result and applying the chain rule to \(h \left(\right. x \left.\right) = \text{ln} \left(\right. g \left(\right. x \left.\right) \left.\right)\) yields
□
The graph of \(y = \text{ln} x\) and its derivative \(\frac{d y}{d x} = \frac{1}{x}\) are shown in Figure 3.35.
Example 3.77
Taking a Derivative of a Natural Logarithm
Find the derivative of \(f \left(\right. x \left.\right) = \text{ln} \left(\right. x^{3} + 3 x - 4 \left.\right) .\)
Solution
Use Equation 3.31 directly.
Example 3.78
Using Properties of Logarithms in a Derivative
Find the derivative of \(f \left(\right. x \left.\right) = \text{ln} \left(\right. \frac{x^{2} \text{sin} x}{2 x + 1} \left.\right) .\)
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.
Checkpoint 3.52
Differentiate: \(f \left(\right. x \left.\right) = \text{ln} \left(\right. 3 x + 2 \left.\right)^{5} .\)
Now that we can differentiate the natural logarithmic function, we can use this result to find the derivatives of \(y = l o g_{b} x\) and \(y = b^{x}\) for \(b > 0 , b \neq 1 .\)
Theorem 3.16
Derivatives of General Exponential and Logarithmic Functions
Let \(b > 0 , b \neq 1 ,\) and let \(g \left(\right. x \left.\right)\) be a differentiable function.
- If, \(y = \text{log}_{b} x ,\) then
\[\frac{d y}{d x} = \frac{1}{x \text{ln} b} .\]
More generally, if \(h \left(\right. x \left.\right) = \text{log}_{b} \left(\right. g \left(\right. x \left.\right) \left.\right) ,\) then for all values of x for which \(g \left(\right. x \left.\right) > 0 ,\)
\[h^{'} \left(\right. x \left.\right) = \frac{g^{'} \left(\right. x \left.\right)}{g \left(\right. x \left.\right) \text{ln} b} .\] - If \(y = b^{x} ,\) then
\[\frac{d y}{d x} = b^{x} \text{ln} b .\]
More generally, if \(h \left(\right. x \left.\right) = b^{g \left(\right. x \left.\right)} ,\) then
\[h^{'} \left(\right. x \left.\right) = b^{g \left(\right. x \left.\right)} g ′ \left(\right. x \left.\right) \text{ln} b .\]
Proof
If \(y = \text{log}_{b} x ,\) then \(b^{y} = x .\) It follows that \(\text{ln} \left(\right. b^{y} \left.\right) = \text{ln} x .\) Thus \(y \text{ln} b = \text{ln} x .\) Solving for \(y ,\) we have \(y = \frac{\text{ln} x}{\text{ln} b} .\) Differentiating and keeping in mind that \(\text{ln} b\) is a constant, we see that
The derivative in Equation 3.32 now follows from the chain rule.
If \(y = b^{x} ,\) then \(\text{ln} y = x \text{ln} b .\) Using implicit differentiation, again keeping in mind that \(\text{ln} b\) is constant, it follows that \(\frac{1}{y} \frac{d y}{d x} = \text{ln} b .\) Solving for \(\frac{d y}{d x}\) and substituting \(y = b^{x} ,\) we see that
The more general derivative (Equation 3.35) follows from the chain rule.
□
Example 3.79
Applying Derivative Formulas
Find the derivative of \(h \left(\right. x \left.\right) = \frac{3^{x}}{3^{x} + 2} .\)
Solution
Use the quotient rule and Derivatives of General Exponential and Logarithmic Functions.
Example 3.80
Finding the Slope of a Tangent Line
Find the slope of the line tangent to the graph of \(y = \text{log}_{2} \left(\right. 3 x + 1 \left.\right)\) at \(x = 1 .\)
Solution
To find the slope, we must evaluate \(\frac{d y}{d x}\) at \(x = 1 .\) Using Equation 3.33, we see that
By evaluating the derivative at \(x = 1 ,\) we see that the tangent line has slope
Checkpoint 3.53
Find the slope for the line tangent to \(y = 3^{x}\) at \(x = 2 .\)
This lesson is part of:
Derivatives