AP Calculus AB and BC
Derivative of ln x, e^x, and a^x: Answers and Proofs
The derivative of ln x is 1/x, the derivative of e^x is e^x itself, and the derivative of a^x is a^x times ln a (so d/dx of 2^x is 2^x ln 2). Each is proved below: e^x from the limit defining e, ln x by inverting x = e^y, and a^x by rewriting a^x as e^(x ln a).
Recognize the function before you pick a rule
Three rules hide behind functions that look nearly identical, and choosing the wrong one is the most common way to lose these points. Before you differentiate, ask two questions. First: is the variable in the exponent or in the base? Second: if the variable is in the exponent, is the base or some other constant ? Your answers pick the rule.
If the variable sits in the base with a constant exponent, like , that is the power rule from Topic 2.5, not an exponential rule at all. The functions on this page put the variable somewhere else: in the exponent, as in and , or inside a logarithm, as in . CED Topic 2.7 supplies the rules for and , and the result follows from a single rewrite that the later sections prove. The recognition habit worth building is to label the function by name (exponential, power, or logarithm) out loud before you write anything down, because the wrong label sends you to the wrong rule and no amount of careful algebra recovers from that.
| Function | What to notice | Derivative |
|---|---|---|
| variable exponent, base | ||
| variable exponent, constant base | ||
| natural logarithm | ||
| logarithm, base | ||
| constant exponent (power rule, not here) |
The and rows are the Topic 2.7 rules to memorize; the and rows are not separate CED rules but derived results, following from those two through the and change-of-base rewrites proved in the later sections.
The a^x versus x^n trap
and are not the same kind of function. In the exponent is constant, so the power rule gives . In the exponent is the variable, so the exponential rule gives . Reading which slot the variable sits in, base or exponent, decides everything. Writing applies the power rule to an exponential and is simply wrong.
Why e^x is its own derivative
Start from the limit definition of the derivative applied to .
Use the exponent law , then factor out of the numerator. That factor does not depend on , so it comes outside the limit.
Everything now hinges on that last limit. The number is defined to be the one base for which . For any other base the analogous limit is a different constant (it turns out to equal , which the section confirms). Because the base here is , the limit is exactly , and the derivative collapses to itself.
That self-reproducing property, a function equal to its own rate of change, is why runs through exponential growth, differential equations, and Taylor series. Topic 2.7 lists it as a rule to memorize; the limit above is where the rule comes from.
Proving d/dx ln x = 1/x with inverse functions (Topic 3.3)
The natural logarithm is the inverse of : and undo each other. Topic 3.3 says you can differentiate an inverse function using the chain rule together with the defining relationship, and is the cleanest example. Set . By the definition of the logarithm as an inverse, that is the same statement as this equation.
Differentiate both sides with respect to . The right side is just , whose derivative is . The left side is , where is a function of , so the chain rule applies: the derivative of is times .
Solve for , then replace with using from the setup.
So , valid for , the domain of . A useful extension, for all , covers negative inputs and shows up whenever you antidifferentiate . This inverse-function move (write the inverse relation, differentiate implicitly, solve) is exactly the method Topic 3.3 asks you to reuse for inverse trig functions in Topic 3.4.
a^x = e^(x ln a): one rewrite handles every base
You do not need a separate rule for ; you need one algebra step. Any positive number can be written as , because and are inverses. Raise both sides to the power and use the exponent law .
Now is an exponential with base and inner function , so the chain rule finishes it. Because is a constant, the derivative of the inner function is just .
This also settles the loose end from Section 2. Differentiating straight from the definition produces the factor , and the proof above shows that factor equals . For base , , which is precisely why carries no extra constant.
Logarithms with other bases yield to the same trick through the change-of-base identity . Since is a constant multiplier, differentiate using .
Where students lose points
Almost every error on these derivatives is one of a handful of predictable slips.
- Treating like a power. is , not . The exponent is the variable, so the power rule does not apply.
- Dropping the factor. ; writing just forgets the constant that every base other than carries.
- Forgetting the chain rule inside a logarithm. is , not . The rule is really times the derivative of the inside.
- Mixing up the two directions. The derivative of is , but the antiderivative of is ; keep which way you are going straight.
- Assuming differentiates to . Only is its own derivative. , because the chain rule contributes the inner derivative .
One-line check
After differentiating any exponential, ask whether the base was . If not, a factor must appear. After differentiating any logarithm, ask whether the inside was more complicated than ; if so, a chain-rule factor must appear.
Worked examples
Worked example
Separate exponential, power, and natural-exponential terms
Differentiate .
- Classify each term before touching a rule. is exponential (variable in the exponent, base ), is a power (variable in the base, constant exponent), and is the natural exponential. Three look-alike terms, three different rules.
- Differentiate with the exponential rule: the derivative of is . Here , giving .
- Differentiate with the power rule: the derivative of is . Here , giving .
- Differentiate : it is its own derivative, .
- Add the three results in order: .
Worked example
A logarithm that needs the chain rule
Differentiate .
- Recognize the structure: a natural log wrapped around . The inside is more complicated than , so the rule needs a chain-rule factor. Name the inner function .
- Apply the chain rule: if , then . The outer log gives , with the inside left intact.
- Differentiate the inside: .
- Multiply the outer and inner pieces: .
- Combine into a single fraction: .
Worked example
Read a limit as a known derivative (Topic 2.7)
Evaluate .
- This looks like an indeterminate limit, but Topic 2.7 flags a shortcut: sometimes a limit is exactly the definition of a derivative you already know. Compare it to the derivative definition .
- Match the pieces. If and , then and , so . The limit is therefore for .
- Differentiate with the exponential rule: .
- Evaluate at : .
Frequently asked questions
What is the derivative of 2^x?
. It follows the general exponential rule with . A frequent mistake is writing , but that is the power rule, which applies only when the variable is in the base, not the exponent.
Why does a^x differentiate to a^x ln a instead of just a^x?
Only base gives a derivative with no extra factor, because is defined so that . Rewriting and applying the chain rule produces the inner derivative , so . When , and the factor disappears.
What is the derivative of ln(x)?
for . If the logarithm wraps a more complicated expression, say , the chain rule adds the derivative of the inside: . For negative inputs, holds for all .