AP Calculus AB and BC
Derivative of a^x: Answer, Proof, and Mistakes
The derivative of a^x is a^x times ln a, for any positive constant base a. So d/dx of 2^x is 2^x ln 2. It comes from rewriting a^x as e^(x ln a) and differentiating with the chain rule; when a = e the factor is ln e = 1, so the extra factor disappears, which is why e^x is its own derivative.
The proof: rewrite the base as a power of e
The rule is not a separate fact to memorize. Every positive number is a power of , since . Raise both sides to the and the exponents multiply, which turns any exponential into a base- exponential with a linear inner function.
Now differentiate with the chain rule. The outside is , whose derivative is ; the inside is , and because is a constant, .
The base comes back down unchanged and a constant factor of drops out front. That factor is the whole story: it is why every exponential except one carries an extra number when you differentiate it. The lone exception is base . Set and the factor becomes , so collapses to . That is the real reason is its own derivative, and the reason is the natural base to build on.
The one line to remember
, valid for any constant base . The base rides along unchanged and appears as a constant factor. Only base escapes the extra factor, because .
a^x is not x^a: the base-versus-exponent trap
The most common wrong turn is reaching for the power rule. The power rule applies when the variable is the base and the exponent is a constant. In the roles are swapped: the base is constant and the variable is the exponent, so the power rule does not apply at all. Read the position of before you pick a rule.
| Function | Where the variable sits | Rule | Derivative |
|---|---|---|---|
| in the base | power rule | ||
| in the exponent | exponential rule | ||
| in both | logarithmic differentiation |
The row is a reminder that when the variable appears in both places, neither rule alone works and you take of both sides first. That case is past what needs, but it shows why naming the base and the exponent out loud, before writing anything, is worth the two seconds it costs.
Where a^x shows up on the AP exam
The CED lists the derivatives you are expected to know cold in Topic 2.7, "Derivatives of cos x, sin x, e^x, and ln x." Notice is not on that list. The exam expects you to build it from two things that are: the rule in Topic 2.7 and the chain rule in Topic 3.1. Rewriting as is the bridge between them.
Unit 2 is 10-15% of the AB exam and 5-10% of BC; Unit 3, which owns the chain rule, is 5-10% of both. Topic 3.5, "Selecting Procedures for Calculating Derivatives," is where the exam checks that you recognize an exponential base and reach for rather than the power rule.
In practice arrives most often inside a composite such as , or in a table-of-values problem that hands you values of a function and asks for the derivative of at a point. Both reduce to the same rule plus one chain-rule factor.
Common mistakes
- Using the power rule: writing . This misapplies the power rule. The power rule is for , where the variable sits in the base, and gives ; here the variable is in the exponent, so the exponential rule applies instead.
- Dropping the factor: writing . That is true only for . Every other base leaves a constant factor of out front.
- Forgetting the inner derivative on a composite: is not . The chain rule multiplies by .
- Confusing with : the factor is of the constant base, a fixed number, not a function of . For it is the constant .
Two worked composites with the chain rule
Both use the same composite form. Writing gives : the base rule times the derivative of the exponent.
Example 1. Differentiate . Here , the base is , the inner function is , and .
Example 2. Differentiate . Here , the base is , the inner function is , and .
In each case the base stays put, of the base rides in front as a constant, and the chain rule tacks on the derivative of the exponent. If you can reproduce those three moves in order, the general exponential is no harder than .
Check yourself, not just the answer
Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.
Frequently asked questions
What is the derivative of 2^x?
, which is the general rule with . Numerically . Writing is the power rule and does not apply, because the variable is in the exponent.
Why does a^x keep a factor of ln a but e^x does not?
Both follow the same rule, . For base that factor is , which equals , so it disappears and differentiates to itself. Base is simply the base whose natural log is .
How is the derivative of a^x different from x^a?
has the variable in the base, so it uses the power rule: . has the variable in the exponent, so it uses the exponential rule: . Same symbols, opposite rules.
How do I differentiate a^x with a chain rule, like 4^(3x)?
Multiply by the derivative of the exponent: . In general, for , .