3.9: Derivatives of Exponential and Logarithmic Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
- 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,b−n=1bn, for a positive integer n, and bs/t=(t√b)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 limx→rbx 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.
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 |
Approximating a Value of 4π
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 3.9.1 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.

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)=limx→0bx−b0x−0=limx→0bx−1x≈bx−1x
for values of x very close to zero. For our estimates, we choose x=0.00001 and x=−0.00001
to obtain the estimate
b−0.00001−1−0.00001<B′(0)<b0.00001−10.00001.
See the following table.
b | b−0.00001−1−0.00001<B′(0)<b0.00001−10.00001. | b | b−0.00001−1−0.00001<B′(0)<b0.00001−10.00001. |
---|---|---|---|
2 | 0.693145<B′(0)<0.69315 | 2.7183 | 1.000002<B′(0)<1.000012 |
2.7 | 0.993247<B′(0)<0.993257 | 2.719 | 1.000259<B′(0)<1.000269 |
2.71 | 0.996944<B′(0)<0.996954 | 2.72 | 1.000627<B′(0)<1.000637 |
2.718 | 0.999891<B′(0)<0.999901 | 2.8 | 1.029614<B′(0)<1.029625 |
2.7182 | 0.999965<B′(0)<0.999975 | 3 | 1.098606<B′(0)<1.098618 |
The evidence from the table suggests that 2.7182<e<2.7183.
The graph of E(x)=ex together with the line y=x+1 are shown in Figure 3.9.2. This line is tangent to the graph of E(x)=ex at x=0.

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)=limh→0b0+h−b0h=limh→0bh−1h
Turning to B′(x), we obtain the following.
B′(x)=limh→0bx+h−bxhApply the limit definition of the derivative.=limh→0bxbh−bxhNote that bx+h=bxbh.=limh→0bx(bh−1)hFactor out bx.=bxlimh→0bh−1hApply a property of limits.=bxB′(0)Use B′(0)=limh→0b0+h−b0h=limh→0bh−1h.
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.)
Let E(x)=ex be the natural exponential function. Then
E′(x)=ex.
In general,
ddx(eg(x))=eg(x)g′(x)
Find the derivative of f(x)=etan(2x).
Solution:
Using the derivative formula and the chain rule,
f′(x)=etan(2x)ddx(tan(2x))=etan(2x)sec2(2x)⋅2
Find the derivative of y=ex2x.
Solution
Use the derivative of the natural exponential function, the quotient rule, and the chain rule.
y′=(ex2⋅2)x⋅x−1⋅ex2x2Apply the quotient rule.=ex2(2x2−1)x2Simplify.
Find the derivative of h(x)=xe2x.
- Hint
-
Don’t forget to use the product rule.
- Answer
-
h′(x)=e2x+2xe2x
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, A(t) is constant.
Solution
First find A′(t). By using the chain rule, we have A′(t)=300e0.3t. Thus, the ratio of the rate of change of the population to the population is given by
A′(t)A(t)=300e0.3t1000e0.3t=0.3.
The ratio of the rate of change of the population to the population is the constant 0.3.
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).
- Answer
-
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.
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).
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 3.9.3.

Find the derivative of f(x)=ln(x3+3x−4).
Solution
Use Equation ??? directly.
f′(x)=1x3+3x−4⋅(3x2+3)Use g(x)=x3+3x−4 in h′(x)=1g(x)g′(x).=3x2+3x3+3x−4Rewrite.
Find the derivative of f(x)=ln(x2sinx2x+1).
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.
f(x)=ln(x2sinx2x+1)=2lnx+ln(sinx)−ln(2x+1)Apply properties of logarithms.f′(x)=2x+cotx−22x+1Apply sum rule and h′(x)=1g(x)g′(x).
Differentiate: f(x)=ln(3x+2)5.
- Hint
-
Use a property of logarithms to simplify before taking the derivative.
- Answer
-
f′(x)=153x+2
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.
Let b>0,b≠1, and let g(x) be a differentiable function.
i. 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.
ii. If y=bx, then
dydx=bxlnb.
More generally, if h(x)=bg(x), then
h′(x)=bg(x)g′(x)lnb
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 Equation ??? 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 (Equation ???) follows from the chain rule.
□
Find the derivative of h(x)=3x3x+2.
Solution
Use the quotient rule and Note.
h′(x)=3xln3(3x+2)−3xln3(3x)(3x+2)2Apply the quotient rule.=2⋅3xln3(3x+2)2Simplify.
Find the slope of the line tangent to the graph of y=log2(3x+1) at x=1.
Solution
To find the slope, we must evaluate dydx at x=1. Using Equation ???, we see that
dydx=3(3x+1)ln2.
By evaluating the derivative at x=1, we see that the tangent line has slope
dydx|x=1=34ln2=3ln16.
Find the slope for the line tangent to y=3x at x=2.
- Hint
-
Evaluate the derivative at x=2.
- Answer
-
9ln(3)
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 b≠1. 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=x√2x+1exsin3x. We outline this technique in the following problem-solving strategy.
- To differentiate y=h(x) using logarithmic differentiation, take the natural logarithm of both sides of the equation to obtain lny=ln(h(x)).
- Use properties of logarithms to expand ln(h(x)) as much as possible.
- Differentiate both sides of the equation. On the left we will have 1ydydx.
- Multiply both sides of the equation by y to solve for dydx.
- Replace y by h(x).
Find the derivative of y=(2x4+1)tanx.
Solution
Use logarithmic differentiation to find this derivative.
lny=ln(2x4+1)tanxStep 1. Take the natural logarithm of both sides.lny=tanxln(2x4+1)Step 2. Expand using properties of logarithms.1ydydx=sec2xln(2x4+1)+8x32x4+1⋅tanxStep 3. Differentiate both sides. Use the product rule on the right.dydx=y⋅(sec2xln(2x4+1)+8x32x4+1⋅tanx)Step 4. Multiply by y on both sides.dydx=(2x4+1)tanx(sec2xln(2x4+1)+8x32x4+1⋅tanx)Step 5. Substitute y=(2x4+1)tanx.
Find the derivative of y=x√2x+1exsin3x.
Solution
This problem really makes use of the properties of logarithms and the differentiation rules given in this chapter.
lny=lnx√2x+1exsin3x | Step 1. Take the natural logarithm of both sides. |
lny=lnx+12ln(2x+1)−xlne−3lnsinx | Step 2. Expand using properties of logarithms. |
1ydydx=1x+12x+1−1−3cosxsinx | Step 3. Differentiate both sides. |
dydx=y(1x+12x+1−1−3cotx) | Step 4. Multiply by y on both sides. |
dydx=x√2x+1exsin3x(1x+12x+1−1−3cotx) | Step 5. Substitute y=x√2x+1exsin3x. |
Use logarithmic differentiation to find the derivative of y=xx.
- Hint
-
Follow the problem solving strategy.
- Answer
-
Solution: dydx=xx(1+lnx)
Find the derivative of y=(tanx)π.
- Hint
-
Use the power rule (since the exponent π is a constant) and the chain rule.
- Answer
-
y′=π(tanx)π−1sec2x
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(lng(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(logbg(x))=g′(x)g(x)lnb
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