Derivatives of Exponential and Logarithmic Functions
Unit 3, lesson 27
Derivatives of Exponential and Logarithmic Functions
Why the natural exponential function is its own derivative, how that gives the derivatives of other exponentials and of logarithms, and on which domains each formula holds.
A population that grows by a fixed percentage each year grows faster when it is larger. In other words, its rate of change is proportional to its size. Exponential functions are exactly the functions with that property, and one base, the number e, makes the constant of proportionality equal to 1. Logarithms, as their inverses, then get derivatives that are just as simple.
Key terms
The natural exponential function
Definition The number e≈2.71828 is the unique base a>0 for which
h→0limhah−1=1.
For this base, the function ex is differentiable at every real x and
dxdex=ex,
because as h→0
hex+h−ex=ex⋅heh−1→ex⋅1=ex.
In plain words At every point the slope of y=ex equals its height. At x=0 the graph crosses the y axis with slope exactly 1.
Example The tangent line to y=ex at x=0 is y=1+x. At x=0.1 the line gives 1.1, while e0.1≈1.10517. For f(x)=xex the product rule gives f′(x)=ex+xex=(1+x)ex.
Exponentials with base a
Definition For a constant a>0, the exponential with base a is defined for every real x by ax=exlna. The function ax is differentiable on R and
dxdax=axlna.
This is the chain rule applied to exlna.
In plain words Every exponential has a slope proportional to its height. The constant is lna, which is positive when a>1, zero when a=1 and negative when 0<a<1.
Example For f(x)=2x the slope at 3 is f′(3)=23ln2=8ln2≈5.545. For g(x)=(21)x the constant is ln21=−ln2, so
g′(x)=−(21)xln2<0
for every x, and g is decreasing.
Natural logarithm
Definition The natural logarithm lnx is the inverse of ex. It is defined for x>0, with elnx=x for x>0 and ln(ex)=x for all real x. It is differentiable on (0,∞) and
dxdlnx=x1,x>0.
Since ln is differentiable (it is the inverse of a function with nonzero derivative), differentiating elnx=x by the chain rule gives elnx⋅(lnx)′=1, so (lnx)′=x1.
In plain words The logarithm always increases, but more and more slowly. At x=100 its slope is only 0.01.
Example For f(x)=xlnx with x>0 the product rule gives
f′(x)=lnx+x⋅x1=lnx+1.
This is zero at lnx=−1, that is at x=e1≈0.368, where the graph has a horizontal tangent.
Logarithms with other bases
Definition For a constant a>0 with a=1, logax is the inverse of ax, defined for x>0. The change of base formula
logax=lnalnx
shows that it is differentiable on (0,∞) with
dxdlogax=xlna1,x>0.
The base a=1 is excluded because 1x=1 has no inverse, and ln1=0 would sit in the denominator.
In plain words Every logarithm is a constant multiple of lnx, so its derivative is the same x1 scaled by lna1.
Example For log10x at x=10 the slope is 10ln101≈0.04343.
Logarithm of an absolute value
Definition The function ln∣x∣ is defined for every real x=0, and on that set
dxdln∣x∣=x1.
For x>0 this is the rule for lnx. For x<0 we have ln∣x∣=ln(−x), and the chain rule gives
dxdln(−x)=−x1⋅(−1)=x1.
In plain words The formula x1 works on both sides of zero once you put absolute value bars inside the logarithm. This is the version you need when x can be negative.
Example At x=−2 the graph of y=ln∣x∣ has slope −21=−21. The graph is a mirror image of y=lnx, so a negative slope on the left matches the positive slope 21 at x=2.
Derivative formulas and domains
Definition The basic formulas, each valid exactly on the domain shown, are collected here. Combined with the chain rule, for a differentiable function u of x and a constant a>0, they give
dxdeu=euu′,dxdau=aulna⋅u′,dxdln∣u∣=uu′,
where the last formula holds wherever u=0.
Function
Derivative
Valid for
ex
ex
all real x
ax, a>0
axlna
all real x
lnx
x1
x>0
logax, a>0, a=1
xlna1
x>0
ln∣x∣
x1
x=0
In plain words Use a formula only where both the function and the formula make sense. Simplifying a logarithm can quietly change the domain.
Example The functions f(x)=ln(x2) and g(x)=2lnx look the same, but f is defined for all x=0 and g only for x>0. On its domain
f′(x)=x22x=x2.
Similarly the formula
dxdln(x2+1)=x2+12x
holds for every real x, since x2+1>0 always.
Check yourself
Differentiate f(x)=5x and find f′(0).
Show the answer
The derivative is f′(x)=5xln5, so f′(0)=ln5≈1.609.
Differentiate y=ln(cosx) and say where your answer holds.
Show the answer
By the chain rule
y′=cosx−sinx=−tanx.
This holds wherever cosx>0, for example on (−2π,2π), since ln needs a positive input.
Find the slope of y=e3x at x=0.
Show the answer
By the chain rule y′=3e3x, so the slope at 0 is 3.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details