AP Calculus AB · Integration and accumulation of change
Antiderivatives and indefinite integrals
1Reversing differentiation
An antiderivative of $f$ is a function $F$ with $F'(x) = f(x)$.
Antiderivatives are not unique: $x^2$, $x^2 + 5$ and $x^2 - 3$ all have derivative $2x$. Any two antiderivatives differ by a constant. So we write the indefinite integral with a constant of integration $C$:
$$\int 2x\,dx = x^2 + C$$
The indefinite integral $\int f(x)\,dx$ is the whole family of antiderivatives. The definite integral $\int_a^b f(x)\,dx$ is a number.
Check yourself
Why is "+ C" needed in an indefinite integral?
Show the answer
Any constant differentiates to zero, so there are infinitely many antiderivatives
The family differs by a constant.
2Basic rules
Each rule reverses a derivative rule:
- Power rule ($n \neq -1$): $\int x^n\,dx = \frac{x^{n+1}}{n + 1} + C$. Raise the power by one, then divide by the new power.
- $\int \frac{1}{x}\,dx = \ln|x| + C$ (the case $n = -1$)
- $\int e^x\,dx = e^x + C$; $\int a^x\,dx = \frac{a^x}{\ln a} + C$
- $\int \cos x\,dx = \sin x + C$; $\int \sin x\,dx = -\cos x + C$
- $\int \sec^2 x\,dx = \tan x + C$; $\int \sec x\tan x\,dx = \sec x + C$
- $\int \frac{1}{1 + x^2}\,dx = \arctan x + C$; $\int \frac{1}{\sqrt{1 - x^2}}\,dx = \arcsin x + C$
- Constants and sums: $\int [kf + g]\,dx = k\int f\,dx + \int g\,dx$
Always check by differentiating your answer.
Check yourself
∫ x⁵ dx =
Show the answer
x⁶/6 + C
Raise the power, divide by the new power.
3Rewriting first
As with derivatives, rewrite roots and fractions as powers. There is no product or quotient rule for integrals, so expand or divide first.
$\int \left(3\sqrt{x} - \frac{4}{x^3}\right)dx$
- Rewrite: $\int (3x^{1/2} - 4x^{-3})\,dx$.
- Integrate: $3 \cdot \frac{x^{3/2}}{3/2} - 4 \cdot \frac{x^{-2}}{-2} + C$.
- Simplify: $2x^{3/2} + 2x^{-2} + C = 2x^{3/2} + \frac{2}{x^2} + C$.
$\int \frac{x^2 + 1}{x}\,dx = \int \left(x + \frac{1}{x}\right)dx = \frac{x^2}{2} + \ln|x| + C$.
$\int (x + 2)^2\,dx = \int (x^2 + 4x + 4)\,dx = \frac{x^3}{3} + 2x^2 + 4x + C$.
Check yourself
∫ (1/√x) dx =
Show the answer
2√x + C
x^(−1/2) integrates to x^(1/2)/(1/2).
4Initial conditions
If you know one point on $F$, you can find $C$. This is an initial value problem.
$f'(x) = 6x^2 - 2$ and $f(1) = 5$. Find $f(x)$.
- $f(x) = 2x^3 - 2x + C$.
- $f(1) = 2 - 2 + C = 5$, so $C = 5$.
- $f(x) = 2x^3 - 2x + 5$.
Worked example (motion): $a(t) = 6t$, $v(0) = 2$, $s(0) = 1$.
- $v(t) = 3t^2 + C_1$; $v(0) = 2$ gives $v(t) = 3t^2 + 2$.
- $s(t) = t^3 + 2t + C_2$; $s(0) = 1$ gives $s(t) = t^3 + 2t + 1$.
Every antiderivative of 2x is x² + C; an initial condition picks out one curve
Check yourself
f′(x) = 2x and f(0) = 3. Then f(x) =
Show the answer
x² + 3
C = 3.
5Antiderivatives and definite integrals
Combining with the FTC:
$$\int_a^b f(x)\,dx = F(b) - F(a)$$
The constant cancels in the subtraction, so you can leave $C$ out of definite integrals.
$\int_1^e \frac{3}{x}\,dx = [3\ln x]_1^e = 3(1) - 3(0) = 3$.
$\int_0^{\pi/4} \sec^2 x\,dx = [\tan x]_0^{\pi/4} = 1 - 0 = 1$.
Check yourself
Why can C be omitted when evaluating a definite integral?
Show the answer
It cancels in F(b) − F(a)
(F(b) + C) − (F(a) + C).
6Going deeper: the basic rules, rewriting before integrating, and using initial conditions
An antiderivative of f is a function F with F′ = f. The indefinite integral $\int f(x)\,dx = F(x) + C$ is the whole family of antiderivatives; they differ by a constant.
Basic rules
- $\int x^n\,dx = \frac{x^{n+1}}{n + 1} + C$ (n ≠ −1).
- $\int\frac{1}{x}\,dx = \ln|x| + C$.
- $\int e^x\,dx = e^x + C$; $\int a^x\,dx = \frac{a^x}{\ln a} + C$.
- $\int\cos x\,dx = \sin x + C$; $\int\sin x\,dx = -\cos x + C$.
- $\int\sec^2x\,dx = \tan x + C$; $\int\sec x\tan x\,dx = \sec x + C$.
- $\int\csc^2x\,dx = -\cot x + C$; $\int\csc x\cot x\,dx = -\csc x + C$.
- $\int\frac{1}{1 + x^2}\,dx = \arctan x + C$; $\int\frac{1}{\sqrt{1 - x^2}}\,dx = \arcsin x + C$.
- Constants factor out; sums integrate term by term.
There is no product or quotient rule for integrals: rewrite first.
Worked examples (rewriting)
- $\int\frac{x^2 + 1}{\sqrt{x}}\,dx = \int\left(x^{3/2} + x^{-1/2}\right)dx = \frac{2}{5}x^{5/2} + 2x^{1/2} + C$.
- $\int(2x - 3)^2\,dx = \int(4x^2 - 12x + 9)\,dx = \frac{4}{3}x^3 - 6x^2 + 9x + C$.
- $\int\frac{3}{x^4}\,dx = \int 3x^{-4}\,dx = -x^{-3} + C = -\frac{1}{x^3} + C$.
- $\int\frac{x^3 - 2x}{x}\,dx = \int(x^2 - 2)\,dx = \frac{x^3}{3} - 2x + C$.
- $\int\left(5e^x - \frac{2}{x} + 4\cos x\right)dx = 5e^x - 2\ln|x| + 4\sin x + C$.
Check by differentiating: the derivative of your answer must be the integrand.
Initial conditions: a given point fixes C, producing a particular solution.
f′(x) = 3x² − 4x + 1 and f(1) = 5.
- $f(x) = x^3 - 2x^2 + x + C$.
- f(1) = 1 − 2 + 1 + C = 5, so C = 5.
- $f(x) = x^3 - 2x^2 + x + 5$.
Worked example (two integrations): acceleration a(t) = 6t, with v(0) = 2 and s(0) = 1.
- $v(t) = 3t^2 + C_1$; v(0) = 2 gives $C_1 = 2$.
- $s(t) = t^3 + 2t + C_2$; s(0) = 1 gives $C_2 = 1$.
- $s(t) = t^3 + 2t + 1$. Find each constant as soon as it appears.
Worked example (vertical motion): an object is thrown upward at 20 m/s from a height of 15 m, with a = −9.8 m/s².
- v(t) = −9.8t + 20.
- h(t) = −4.9t² + 20t + 15.
- Highest point when v = 0: t = 2.04 s; h = 35.4 m.
Using the net-change form (often quicker): $f(b) = f(a) + \int_a^b f'(x)\,dx$.
Why the constant matters: $x^2$, $x^2 + 5$ and $x^2 - 3$ all have derivative 2x. Without more information, the antiderivative is known only up to a vertical shift. On the exam, omitting + C in an indefinite integral or a differential equation costs marks.
Antiderivatives that cannot be written with elementary functions: $\int e^{-x^2}dx$ and $\int\sin(x^2)dx$ exist, but must be handled as definite integrals numerically or as accumulation functions.
Common mistakes
- Forgetting + C.
- Integrating a product or quotient factor by factor.
- $\int\frac{1}{x}dx = \frac{x^0}{0}$ (use ln|x|).
- Sign errors: the integral of sin x is −cos x.
- Dividing by the old exponent in place of the new one.
- Finding both constants only at the end.
Check yourself
If f′(x) = 6x + 2 and f(0) = 3, what is f(x)?
Show the answer
3x² + 2x + 3
Integrating gives 3x² + 2x + C, and f(0) = 3 fixes C = 3.
7For top marks
- Write + C on every indefinite integral; leaving it out loses a point.
- Rewrite into powers before integrating; there is no product rule for integration.
- Check answers by differentiating.
- Use initial conditions immediately after each integration step.
"$\int (4x^3 - \cos x)\,dx = x^4 - \sin x + C$. Check: $\frac{d}{dx}(x^4 - \sin x) = 4x^3 - \cos x$ ✓."
Check yourself
∫ sin x dx =
Show the answer
−cos x + C
Since d/dx(−cos x) = sin x.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera