AP Calculus AB and BC
Integral of a^x: Answer, Proof, and Mistakes
The integral of a^x is a^x divided by ln a, plus C, for any base a > 0 with a not equal to 1. So the integral of 2^x dx is 2^x/ln 2 + C. The rule reverses the derivative d/dx of a^x = a^x ln a: dividing by the constant ln a cancels the extra factor. When a = e, ln e = 1, so e^x integrates to itself.
How to prove the integral of a^x
Antidifferentiation is the reverse of differentiation, so the fastest route is to start from the derivative of and undo it. Rewriting and applying the chain rule, where is a constant multiplier on the inside, gives the derivative rule.
Differentiating therefore returns the original function times an unwanted constant factor of . Dividing by that constant before differentiating cancels it, since constant multiples pass straight through the derivative.
The derivative of is exactly the integrand, so it is an antiderivative of . Every other antiderivative differs from it by a constant, which is what records.
Why the base must be positive and not 1
The restriction keeps defined for every real , and keeps so the division is legal. If the integrand is just the constant function 1, and .
Where the integral of a^x shows up on the AP exam
Basic antiderivative rules like this one sit in Unit 6, Topic 6.8 (Finding Antiderivatives and Indefinite Integrals: Basic Rules and Notation). Unit 6 carries a weighting of 15 to 20 percent on both AB and BC, so it is one of the two most heavily weighted units on each exam.
The base is the case the College Board leans on hardest, because makes the denominator disappear. Reading the general rule with recovers the familiar result.
When the exponent is a linear function rather than bare , the integral needs substitution (Topic 6.9), and you divide by the inside coefficient as well as by .
On the multiple-choice section this usually appears as a one-step recall question or as one term inside a longer sum. On free response it turns up inside accumulation and area setups, where an exponential model with a base other than has to be antidifferentiated before the Fundamental Theorem is applied.
Common mistakes with the integral of a^x
Almost every error on this rule is a sign error in the sense of doing the derivative operation instead of the integral one, or reaching for the power rule when the variable is upstairs.
- Multiplying by instead of dividing. Multiplication is the derivative, ; division is the integral, . Sanity check with : only division gives back .
- Applying the power rule to get . The power rule needs a constant exponent and a variable base. Here the base is constant and the exponent is the variable, which is the exponential rule instead.
- Forgetting the inside coefficient on . Writing misses the factor of 2 from the substitution; the answer is .
- Writing or in the denominator. The denominator is the constant , evaluated once, and it does not carry the variable exponent.
- Dropping the constant of integration. An indefinite integral is a whole family of functions, and the missing is a routine point loss on free response.
Worked examples
Example 1. A plain base swap. Apply the rule with .
Example 2. A linear exponent. Let , so and .
Example 3. A sum with the natural base alongside another base. Integrate term by term, and note that only the term picks up a logarithm in the denominator.
Example 4. A substitution with a nonlinear exponent. Let , so and the stray out front is exactly what the substitution needs.
Example 5. A definite integral. Evaluate the antiderivative at the endpoints, and watch the survive as a constant in the exact answer.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you. The base is a parameter, so the numeric check fixes a = 2: the integrand 2^x is cross-checked against the antiderivative 2^x/ln(2) at the sample points. The general result a^x/ln(a) + C is derived the same way for every a > 0 with a not equal to 1.
Frequently asked questions
What is the integral of a^x?
, for any constant base with and . The base stays the same and picks up a denominator of .
Why does the integral of a^x divide by ln a instead of multiplying?
Because the derivative multiplies. Since , differentiating leaves an extra factor of , and the antiderivative has to divide it out so that the derivative of comes back to . Checking with settles it: only the dividing version returns .
What is the integral of 2^x?
. Numerically , so the antiderivative is roughly .
What is the integral of a^(kx)?
. The substitution contributes the extra , so you divide by the inside coefficient as well as by . For example, .
How is the integral of a^x different from the integral of x^a?
They use opposite rules. In the exponent is the variable, so the exponential rule applies and the answer is . In the base is the variable, so the power rule applies and the answer is for . Deciding which one you are looking at is the whole battle.