Learning Outcomes
- Find the derivative of logarithmic functions
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
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
Proof
If x>0 and y=lnx, then ey=x. Differentiating both sides of this equation results in the equation
Solving for dydx yields
Finally, we substitute x=ey to obtain
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
Using this result and applying the chain rule to h(x)=ln(g(x)) yields
■
The graph of y=lnx and its derivative dydx=1x are shown in Figure 3.

Figure 3. The function y=lnx is increasing on (0,+∞). Its derivative y′=1x is greater than zero on (0,+∞).
Example: Taking a Derivative of a Natural Logarithm
Find the derivative of f(x)=ln(x3+3x−4)
Example: Using Properties of Logarithms in a Derivative
Find the derivative of f(x)=ln(x2sinx2x+1)
Try It
Differentiate: f(x)=ln(3x+2)5.
Watch the following video to see the worked solution to the above Try It.
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,b≠1.
Derivatives of General Exponential and Logarithmic Functions
Let b>0,b≠1, and let g(x) be a differentiable function.
- 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
- 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
The derivative from above 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
The more general derivative follows from the chain rule.
■
Example: Applying Derivative Formulas
Find the derivative of h(x)=3x3x+2
Example: 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.
Try It
Find the slope for the line tangent to y=3x at x=2.
Watch the following video to see the worked solution to the above Try It.
Try It
Candela Citations
- 3.9 Derivatives of Exponential and Logarithmic Functions. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 1. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction