"

5.5 Differentiation of Log Functions

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 the following figure.

Graph of the function ln x along with its derivative 1/x.
Figure 5.10 The function y=lnx is increasing on (0,+). Its derivative y=1x is greater than zero on (0,+)

Long description: The function ln x is increasing on (0, + ∞). Its derivative is decreasing but greater than 0 on (0, + ∞).

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, h(x)=bg(x)g(x)lnb,
follows from the chain rule.

 

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).

 

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Techniques of Calculus 1 Copyright © 2021 by Larry Musolino is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.