Money growing at a fixed rate, a cooling cup of coffee, a population of bacteria, the loudness of a sound in decibels: exponentials and logarithms are everywhere, and calculus is how you measure how fast they change. Two facts carry the whole topic. The derivative of
The Four Rules
| Function | Derivative | With an inside function |
|---|---|---|
The first two rows are exponentials, with the variable up in the exponent. That makes them a different animal from powers like
The Derivative of e^x
Here’s the headline:
The function is its own derivative. Look at what that means on the graph. Where the curve is at height 1, its tangent line has slope 1. Where it’s at height 6, the slope is 6. The higher it climbs, the faster it climbs, and the two numbers always match.
To see why, start from the limit definition of the derivative and use the exponent rule
The
That limit being 1 isn’t luck. It’s the reason the number
Why e? The Derivative of a^x
Run the same limit argument on any base
The derivative is always the function itself times a constant, the slope of the curve at
Those mystery constants, 0.693 and 1.099, are
Now the chain rule finishes it. The outside is
So
The Derivative of ln x
The natural log has the simplest derivative you could hope for:
The graph backs it up. Near
The proof uses the fact that
Differentiate both sides with respect to
The last step swaps
The mirror-image picture
There’s a second way to see the same result. The graph of
What about negative x?
The Derivative of log x in Any Base
For a log with some other base
For the common log that’s
One warning about notation. In algebra and on most calculators,
Exponential and Log Derivatives With the Chain Rule
Most problems put something more complicated than
So an exponential keeps its exact form and picks up the derivative of its exponent:
And the derivative of a log is “the derivative of the inside over the inside”:
Two short ones catch a lot of students out. The derivative of
Example 1: e to the 2x
Differentiate
The exponent is
The exponential itself doesn’t change. It gets multiplied by the derivative of what’s upstairs.
Example 2: The Derivative of ln 2x
Differentiate
With
The 2s cancel. The same thing happens for
Example 3: x e^x
Differentiate
This is a product, so use the product rule with
Factoring out
Example 4: ln of a Polynomial
Differentiate
Derivative of the inside over the inside:
No need to expand or simplify further; this is the answer.
Example 5: Other Bases
Differentiate
Each term uses its base-
The most common slip here is writing
Example 6: Use the Log Rules First
Differentiate
You could use the chain rule on the whole thing, but the quotient that comes out is ugly. Break the log apart first, using
Now each piece is easy:
Whenever a log has products, quotients or powers inside it, simplify before you differentiate. Pushing that idea further gives a technique called logarithmic differentiation, which turns messy products into sums.
Example 7: A Tangent Line to ln x
Find the tangent line to
The point is
The tangent line passes straight through the origin. That’s the dashed rose line in the mirror-image figure above, and its reflection is the tangent to
Common Mistakes
- Using the power rule on
. is , not . The power rule needs the variable in the base. - Forgetting the chain rule factor.
, not . - Writing
for the derivative of . The inside’s derivative, 2, cancels it back to . - Differentiating a constant log.
, and are numbers, so their derivatives are 0. - Dropping
. The derivative of is , and the derivative of is . Only base lets you skip it. - Mixing up
and . The first is , with derivative . The second needs the chain rule: .
Practice Problems
Work each one out before opening the answer. The practice set has 12 more with instant checking.
Problem 1. Differentiate
Show answer
Each term on its own:
Answer:
Problem 2. Differentiate
Show answer
Chain rule:
Answer:
Problem 3. Differentiate
Show answer
Product rule:
Answer:
Problem 4. Differentiate
Show answer
Derivative of the inside over the inside.
Answer:
Problem 5. Find the slope of
Show answer
Answer:
With exponentials and logs added, you can now differentiate almost every function you met in algebra. One family is left: the inverse trig functions, whose derivatives turn out to be fractions and square roots with no trig in them at all.