Derivatives of eˣ, ln x, and other exponential and log functions
7 min readUpdated
Quick answer
The derivative of is , and the derivative of is (for ). For other bases, and . With an inside function , the chain rule gives and .
Key points
is its own derivative: at every point, its slope equals its height.
, and .
Other bases bring in a factor : .
Use logarithm rules to simplify before differentiating, and logarithmic differentiation for functions like .
What is the derivative of e^x?
The derivative of is . To see why the number is special, look at any exponential (a fixed base raised to the variable power ). Its derivative from the definition is
because , so factors out. The remaining limit is a number that depends only on the base: about for and about for . The number is defined as the base for which this limit is exactly . So for the derivative is : the function is its own derivative.
Derivative of the natural exponential
On a graph, this says that at every point of , the slope equals the height. At the height is , so the tangent line there has slope .
with its tangent line of slope at , and , the mirror image of across the line .
What is the derivative of ln x?
The natural logarithm is the logarithm with base : is the power you raise to in order to get . So means . Differentiating both sides of with respect to (using implicit differentiation) gives , so .
Derivative of the natural logarithm
for , and more generally for .
How do you differentiate other bases, like 2^x and log base 2?
Rewrite the base in terms of : since , we have , and the chain rule gives . For logarithms, the change-of-base rule turns every log into a natural log divided by a constant.
Function
Derivative
Example
Common mistake
Using the power rule on an exponential. In the variable is in the base; in it's in the exponent. is not; it is , by the chain rule.
How do you use the chain rule with e and ln?
Most exponential and log derivatives in practice have an inside function, so they need the chain rule. For , the outside is its own derivative, so the result is the same exponential times . For , the outside has derivative , so the result is times .
Worked example: An exponential with an inside
Differentiate .
Inside: , with derivative . Outside: , its own derivative.
Outside's derivative, inside unchanged: .
Times the inside's derivative: .
Answer:
Worked example: A logarithm with an inside
Differentiate .
Inside: , with derivative .
, so .
Answer:
Worked example: A product with a logarithm
Differentiate .
Product rule with () and ().
.
Simplify : , which factors as .
Answer:
Should you use log rules before differentiating?
Yes, whenever a logarithm contains a product, a quotient or a power. The rules , and turn one hard derivative into several easy ones.
Worked example: Log rules first
Differentiate .
Write the root as a power: .
Split the product, then bring the powers down: .
Differentiate each term: .
Tidy: .
Answer:
Common mistake
Splitting a log of a sum. There is no rule for ; in particular . Log rules only split products, quotients and powers.
What is logarithmic differentiation?
Some functions fit none of the rules directly, most famously , which has the variable in both the base and the exponent (so neither the power rule nor the exponential rule applies). Logarithmic differentiation takes of both sides, uses log rules to bring the exponent down, and then differentiates implicitly. It is also a shortcut for long products and quotients of many factors.
Worked example: A variable base and exponent
Differentiate for .
Take of both sides: .
Differentiate both sides with respect to . Left: (chain rule). Right, by the product rule: .
So . Multiply both sides by : .
Replace by : .
Answer:
Why do exponential functions describe growth and decay?
Because , the function has a rate of change proportional to its own size: . That's exactly how populations, investments with continuous interest, and radioactive material behave: the more there is, the faster it changes. A positive gives growth and a negative gives decay.
Learn it step by step
The full lessons in the course explain this from the ground up, with graphs, worked examples, and practice problems that each have a complete worked solution.