Chapter 5: Integration and the Fundamental Theorem of Calculus
Integration is one of the two central ideas in calculus, alongside differentiation. While derivatives measure instantaneous rates of change, integrals accumulate quantities over intervals. In this chapter, we develop the theory and technique of integration from the ground up: starting with antiderivatives, building toward Riemann sums and definite integrals, arriving at the Fundamental Theorem of Calculus, and finally learning the essential technique of u-substitution. This material accounts for a significant portion of both the AP Calculus AB and BC exams.
Chapter Contents
5.1 Antiderivatives and Indefinite Integrals
Differentiation answers the question: given a function, what is its rate of change? Integration reverses the question: given a rate of change, what was the original function? This reversal is the starting point for everything that follows.
Why the constant $C$? Because the derivative of any constant is zero. If $F'(x) = f(x)$, then $(F(x) + 7)' = f(x)$ as well. Geometrically, the family of antiderivatives $F(x) + C$ represents an infinite collection of curves, each a vertical shift of the others, all sharing the same slope at every $x$-value.
Notation for Indefinite Integrals
We write the general antiderivative of $f(x)$ using integral notation:
$$\int f(x)\,dx = F(x) + C$$Here, $\int$ is the integral sign, $f(x)$ is the integrand, $dx$ indicates the variable of integration, and $C$ is the constant of integration. The expression $\int f(x)\,dx$ is called the indefinite integral of $f(x)$. The word "indefinite" reflects the fact that the result is a family of functions rather than a single number.
Basic Antiderivative Rules
Each differentiation rule has a corresponding antiderivative rule. The following table lists the most important ones for the AP exam.
- Power Rule: $\displaystyle\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)$
- Reciprocal: $\displaystyle\int \frac{1}{x}\,dx = \ln|x| + C$
- Exponential: $\displaystyle\int e^x\,dx = e^x + C$
- General Exponential: $\displaystyle\int a^x\,dx = \frac{a^x}{\ln a} + C \quad (a > 0,\, a \neq 1)$
- Sine: $\displaystyle\int \sin x\,dx = -\cos x + C$
- Cosine: $\displaystyle\int \cos x\,dx = \sin x + C$
- Secant Squared: $\displaystyle\int \sec^2 x\,dx = \tan x + C$
- Cosecant Squared: $\displaystyle\int \csc^2 x\,dx = -\cot x + C$
- Secant Tangent: $\displaystyle\int \sec x \tan x\,dx = \sec x + C$
- Cosecant Cotangent: $\displaystyle\int \csc x \cot x\,dx = -\csc x + C$
- Constant Multiple: $\displaystyle\int k\,f(x)\,dx = k\int f(x)\,dx$
- Sum/Difference: $\displaystyle\int [f(x) \pm g(x)]\,dx = \int f(x)\,dx \pm \int g(x)\,dx$
Find $\displaystyle\int (3x^4 - 5x^2 + 2x - 7)\,dx$.
Solution. Apply the power rule term by term and the constant multiple rule:
$$\int (3x^4 - 5x^2 + 2x - 7)\,dx = 3 \cdot \frac{x^5}{5} - 5 \cdot \frac{x^3}{3} + 2 \cdot \frac{x^2}{2} - 7x + C = \frac{3x^5}{5} - \frac{5x^3}{3} + x^2 - 7x + C$$You can verify this by differentiating the result: $\frac{d}{dx}\!\left(\frac{3x^5}{5} - \frac{5x^3}{3} + x^2 - 7x + C\right) = 3x^4 - 5x^2 + 2x - 7$. This check always works and is a reliable way to confirm your answer.
Find $\displaystyle\int \left(\frac{4}{\sqrt{x}} + e^x - 3\sin x\right)\,dx$.
Solution. Rewrite $\frac{4}{\sqrt{x}}$ as $4x^{-1/2}$ and integrate each term:
$$\int \left(4x^{-1/2} + e^x - 3\sin x\right)\,dx = 4 \cdot \frac{x^{1/2}}{1/2} + e^x - 3(-\cos x) + C = 8\sqrt{x} + e^x + 3\cos x + C$$Note how $\frac{x^{1/2}}{1/2} = 2x^{1/2} = 2\sqrt{x}$, which when multiplied by 4 gives $8\sqrt{x}$.
Find $\displaystyle\int \frac{x^3 + 2x - 1}{x^2}\,dx$.
Solution. Since there is no quotient rule for integration, we first divide each term in the numerator by $x^2$:
$$\int \frac{x^3 + 2x - 1}{x^2}\,dx = \int \left(x + 2x^{-1} - x^{-2}\right)\,dx = \frac{x^2}{2} + 2\ln|x| + \frac{1}{x} + C$$This technique of algebraic simplification before integrating is essential. Always look for ways to rewrite the integrand as a sum of terms you can integrate individually.
5.2 Riemann Sums and Definite Integrals
Indefinite integrals give us families of functions. But integration also answers a concrete geometric question: what is the area under a curve? To make "area under a curve" precise, we need Riemann sums.
The Area Problem
Consider a continuous function $f(x) \geq 0$ on the interval $[a,b]$. We want to compute the area of the region between the graph of $f$ and the $x$-axis. The strategy is to approximate this region using rectangles, then take a limit as the rectangles become infinitely thin.
Partition $[a,b]$ into $n$ equal subintervals of width $\Delta x = \frac{b-a}{n}$. A Riemann sum is any expression of the form:
$$\sum_{i=1}^{n} f(x_i^*)\,\Delta x$$where $x_i^*$ is a sample point in the $i$-th subinterval. Common choices for $x_i^*$ yield:
- Left Riemann Sum (LRS): $x_i^* = a + (i-1)\Delta x$ (left endpoint of each subinterval)
- Right Riemann Sum (RRS): $x_i^* = a + i\,\Delta x$ (right endpoint of each subinterval)
- Midpoint Riemann Sum (MRS): $x_i^* = a + (i - \tfrac{1}{2})\Delta x$ (midpoint of each subinterval)
For a function that is increasing on $[a,b]$, the left Riemann sum underestimates the area and the right Riemann sum overestimates it. For a decreasing function, the roles reverse. The midpoint sum generally gives a better approximation than either endpoint sum for the same number of rectangles.
Adjust n to increase the number of rectangles. Watch how the Riemann sum approximation improves as n grows.
If $f$ is continuous on $[a,b]$, the definite integral of $f$ from $a$ to $b$ is defined as:
$$\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*)\,\Delta x$$This limit exists and is the same regardless of the choice of sample points $x_i^*$. The numbers $a$ and $b$ are called the lower and upper limits of integration, respectively.
Properties of Definite Integrals
Let $f$ and $g$ be integrable on $[a,b]$ and let $c$ be a constant. Then:
- $\displaystyle\int_a^a f(x)\,dx = 0$
- $\displaystyle\int_a^b f(x)\,dx = -\int_b^a f(x)\,dx$
- $\displaystyle\int_a^b c\,f(x)\,dx = c\int_a^b f(x)\,dx$ (constant multiple)
- $\displaystyle\int_a^b [f(x) \pm g(x)]\,dx = \int_a^b f(x)\,dx \pm \int_a^b g(x)\,dx$ (linearity)
- $\displaystyle\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx$ for any $c$ in $[a,b]$ (additivity over intervals)
- If $f(x) \geq 0$ on $[a,b]$, then $\displaystyle\int_a^b f(x)\,dx \geq 0$
- If $f(x) \geq g(x)$ on $[a,b]$, then $\displaystyle\int_a^b f(x)\,dx \geq \int_a^b g(x)\,dx$ (comparison)
Use a right Riemann sum with $n = 4$ to approximate $\displaystyle\int_0^2 x^2\,dx$.
Solution. We have $a = 0$, $b = 2$, $n = 4$, so $\Delta x = \frac{2-0}{4} = 0.5$.
The right endpoints are $x_1 = 0.5$, $x_2 = 1.0$, $x_3 = 1.5$, $x_4 = 2.0$.
$$\text{RRS} = \sum_{i=1}^{4} f(x_i)\,\Delta x = [f(0.5) + f(1.0) + f(1.5) + f(2.0)] \cdot 0.5$$ $$= [(0.5)^2 + (1.0)^2 + (1.5)^2 + (2.0)^2] \cdot 0.5 = [0.25 + 1 + 2.25 + 4] \cdot 0.5 = 7.5 \cdot 0.5 = 3.75$$The exact value (which we will compute later using the FTC) is $\frac{8}{3} \approx 2.667$. The right Riemann sum overestimates because $f(x) = x^2$ is increasing on $[0,2]$. With more subintervals, the approximation improves: with $n = 100$, the right sum gives approximately $2.7068$.
The velocity $v(t)$ of a car (in feet per second) is measured at 2-second intervals. Estimate the total distance $\int_0^{10} v(t)\,dt$ using a left Riemann sum.
| $t$ (sec) | 0 | 2 | 4 | 6 | 8 | 10 |
|---|---|---|---|---|---|---|
| $v(t)$ (ft/s) | 0 | 15 | 28 | 44 | 52 | 60 |
Solution. With $\Delta t = 2$ and using left endpoints ($t = 0, 2, 4, 6, 8$):
$$\text{LRS} = [v(0) + v(2) + v(4) + v(6) + v(8)] \cdot \Delta t = [0 + 15 + 28 + 44 + 52] \cdot 2 = 139 \cdot 2 = 278 \text{ ft}$$The left sum underestimates here because $v(t)$ is increasing. The right sum would use $t = 2, 4, 6, 8, 10$ and give $[15 + 28 + 44 + 52 + 60] \cdot 2 = 398$ ft. The true distance lies between these two estimates.
5.3 The Fundamental Theorem of Calculus
The Fundamental Theorem of Calculus (FTC) is the most important result in introductory calculus. It establishes that differentiation and integration are inverse operations, and it transforms the computation of definite integrals from a limit-of-sums problem into a straightforward evaluation of antiderivatives. Without the FTC, computing $\int_0^2 x^2\,dx$ would require evaluating a limit of Riemann sums every time. With the FTC, we simply find an antiderivative and subtract.
The theorem comes in two parts. Part 1 tells us that integration followed by differentiation returns us to the original function. Part 2 tells us how to evaluate definite integrals using antiderivatives. Together, they reveal a deep structural connection: the accumulation of a quantity (integration) and the rate of change of a quantity (differentiation) are two sides of the same coin.
If $f$ is continuous on $[a,b]$, then the function $g$ defined by
$$g(x) = \int_a^x f(t)\,dt \quad \text{for } a \leq x \leq b$$is continuous on $[a,b]$, differentiable on $(a,b)$, and satisfies
$$g'(x) = \frac{d}{dx}\int_a^x f(t)\,dt = f(x)$$FTC Part 1 says something remarkable: if you define a function by accumulating the values of $f$ from a fixed starting point $a$ up to a variable endpoint $x$, then the rate at which this accumulated quantity changes is exactly $f(x)$ itself. Think of it this way: if $f(t)$ represents the rate at which water flows into a tank, then $g(x) = \int_a^x f(t)\,dt$ is the total amount of water that has entered the tank from time $a$ to time $x$. The rate of change of the total amount is the current flow rate, which is $f(x)$. This is almost self-evident physically, but it requires proof mathematically.
FTC Part 1 also guarantees that every continuous function has an antiderivative. Even if you cannot write the antiderivative in closed form (as with $e^{-x^2}$), the function $g(x) = \int_0^x e^{-t^2}\,dt$ is a perfectly valid antiderivative of $e^{-x^2}$.
The Fundamental Theorem of Calculus: F(x) = ∫₀ˢ f(t) dt. The blue curve is f(x), the green curve is the accumulation function F(x). Notice F'(x) = f(x).
If $f$ is continuous on $[a,b]$ and $F$ is any antiderivative of $f$ (that is, $F' = f$), then
$$\int_a^b f(x)\,dx = F(b) - F(a)$$We use the notation $\Big[F(x)\Big]_a^b$ or $F(x)\Big|_a^b$ to mean $F(b) - F(a)$.
FTC Part 2 is what makes integration computationally tractable. Instead of computing limits of Riemann sums, we find any antiderivative $F$ of $f$, evaluate it at the endpoints, and subtract. The constant of integration $C$ cancels in the subtraction, so we do not need to include it when evaluating definite integrals.
The Deep Connection
It is worth pausing to appreciate what the FTC achieves. On one hand, the definite integral $\int_a^b f(x)\,dx$ is defined as a limit of sums — a fundamentally additive, accumulative process. On the other hand, finding an antiderivative is about reversing differentiation — a fundamentally local, rate-of-change process. The FTC says these two very different-looking operations are intimately connected. The total accumulated change in a quantity equals the integral of its rate of change. This insight unifies the two branches of calculus and has far-reaching consequences in physics, engineering, economics, and every field that models continuous change.
Evaluate $\displaystyle\int_0^2 x^2\,dx$.
Solution. An antiderivative of $x^2$ is $F(x) = \frac{x^3}{3}$. By FTC Part 2:
$$\int_0^2 x^2\,dx = \left[\frac{x^3}{3}\right]_0^2 = \frac{2^3}{3} - \frac{0^3}{3} = \frac{8}{3} - 0 = \frac{8}{3}$$Compare this exact answer of $\frac{8}{3} \approx 2.667$ with the right Riemann sum approximation of $3.75$ from Example 5.2.1. The FTC gives us the exact value with minimal computation.
Evaluate $\displaystyle\int_0^{\pi} (2\sin x + 3)\,dx$.
Solution. An antiderivative is $F(x) = -2\cos x + 3x$. Then:
$$\int_0^{\pi} (2\sin x + 3)\,dx = \left[-2\cos x + 3x\right]_0^{\pi} = \left(-2\cos\pi + 3\pi\right) - \left(-2\cos 0 + 0\right)$$ $$= (-2(-1) + 3\pi) - (-2(1)) = (2 + 3\pi) - (-2) = 4 + 3\pi$$The exact answer is $4 + 3\pi \approx 13.42$. Notice that we do not need to approximate — the FTC gives us the precise value in terms of $\pi$.
Find $\displaystyle\frac{d}{dx}\int_1^{x^3} \sqrt{t^2 + 1}\,dt$.
Solution. FTC Part 1 tells us that $\frac{d}{dx}\int_a^x f(t)\,dt = f(x)$. But here the upper limit is $x^3$, not $x$. We need the chain rule.
Let $g(u) = \int_1^u \sqrt{t^2+1}\,dt$, so our expression is $g(x^3)$. By the chain rule:
$$\frac{d}{dx}\,g(x^3) = g'(x^3) \cdot \frac{d}{dx}(x^3)$$By FTC Part 1, $g'(u) = \sqrt{u^2 + 1}$, so $g'(x^3) = \sqrt{(x^3)^2 + 1} = \sqrt{x^6 + 1}$. Therefore:
$$\frac{d}{dx}\int_1^{x^3} \sqrt{t^2 + 1}\,dt = \sqrt{x^6 + 1} \cdot 3x^2 = 3x^2\sqrt{x^6 + 1}$$This type of problem — FTC Part 1 combined with the chain rule — appears frequently on the AP exam. The general pattern is:
$$\frac{d}{dx}\int_a^{h(x)} f(t)\,dt = f\!\left(h(x)\right) \cdot h'(x)$$5.4 U-Substitution
The basic integration rules from Section 5.1 handle simple integrands, but many functions require a technique to transform them into a recognizable form. U-substitution is the integration counterpart of the chain rule for differentiation. Just as the chain rule allows us to differentiate compositions of functions, u-substitution allows us to integrate them.
If $u = g(x)$ is a differentiable function whose range is an interval $I$, and $f$ is continuous on $I$, then:
$$\int f(g(x))\,g'(x)\,dx = \int f(u)\,du$$where $u = g(x)$ and $du = g'(x)\,dx$.
How to Use U-Substitution
- Identify the inner function. Look for a composition $f(g(x))$ in the integrand. The inner function $g(x)$ is your candidate for $u$.
- Compute $du$. Differentiate: $du = g'(x)\,dx$. Check that $g'(x)\,dx$ (or a constant multiple of it) appears in the integrand.
- Substitute. Replace all instances of $g(x)$ with $u$ and $g'(x)\,dx$ with $du$. The result should be an integral entirely in terms of $u$.
- Integrate. Evaluate $\int f(u)\,du$.
- Back-substitute. Replace $u$ with $g(x)$ to express the answer in terms of $x$.
For definite integrals, you have a choice: either back-substitute and use the original $x$-limits, or convert the limits to $u$-values and evaluate directly in terms of $u$ (without back-substituting). The second approach is often cleaner.
Find $\displaystyle\int 2x\cos(x^2)\,dx$.
Solution. The integrand contains $\cos(x^2)$, a composition where the inner function is $x^2$. Let $u = x^2$, so $du = 2x\,dx$.
$$\int 2x\cos(x^2)\,dx = \int \cos(u)\,du = \sin(u) + C = \sin(x^2) + C$$Verification: $\frac{d}{dx}[\sin(x^2)] = \cos(x^2) \cdot 2x = 2x\cos(x^2)$.
Find $\displaystyle\int \tan x\,dx$.
Solution. Rewrite $\tan x = \frac{\sin x}{\cos x}$. Let $u = \cos x$, so $du = -\sin x\,dx$, which means $\sin x\,dx = -du$.
$$\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx = \int \frac{-du}{u} = -\ln|u| + C = -\ln|\cos x| + C$$This can also be written as $\ln|\sec x| + C$, since $-\ln|\cos x| = \ln\left(\frac{1}{|\cos x|}\right) = \ln|\sec x|$. This is a standard result worth memorizing.
Evaluate $\displaystyle\int_0^2 x\,e^{x^2}\,dx$.
Solution. Let $u = x^2$, so $du = 2x\,dx$, which gives $x\,dx = \frac{1}{2}\,du$.
Now change the limits: when $x = 0$, $u = 0^2 = 0$; when $x = 2$, $u = 2^2 = 4$.
$$\int_0^2 x\,e^{x^2}\,dx = \int_0^4 e^u \cdot \frac{1}{2}\,du = \frac{1}{2}\left[e^u\right]_0^4 = \frac{1}{2}(e^4 - e^0) = \frac{e^4 - 1}{2}$$The exact value is $\frac{e^4 - 1}{2} \approx 26.80$. By changing the limits to $u$-values, we avoid the need to back-substitute entirely.
5.5 Practice Problems
Work through these problems to solidify your understanding of the integration techniques covered in this chapter. Each problem has a detailed solution you can reveal after attempting it yourself.
Show Solution
Show Solution
Show Solution
Show Solution
Show Solution
Here $f(t) = \frac{1}{1+t^3}$ and $h(x) = x^2$, so $h'(x) = 2x$. $$\frac{d}{dx}\int_2^{x^2} \frac{1}{1+t^3}\,dt = \frac{1}{1+(x^2)^3} \cdot 2x = \frac{2x}{1+x^6}$$
Show Solution
Show Solution
Change limits: when $x = 0$, $u = 0$; when $x = 1$, $u = 1$. $$\int_0^1 \frac{e^{\sqrt{x}}}{\sqrt{x}}\,dx = \int_0^1 e^u \cdot 2\,du = 2\left[e^u\right]_0^1 = 2(e^1 - e^0) = 2(e - 1)$$
Note: Strictly speaking, the integrand is undefined at $x = 0$. This is an improper integral that converges. For AP purposes, the substitution handles it cleanly.
Show Solution
Show Solution
Show Solution
At $x = 0$: $g''(0) = -6 < 0$ (local maximum).
At $x = 2$: $g''(2) = 6 > 0$ (local minimum).
Therefore $g(x)$ has a local minimum at $x = 2$.
We can verify: $g(2) = \int_0^2 (3t^2 - 6t)\,dt = \left[t^3 - 3t^2\right]_0^2 = (8 - 12) - 0 = -4$.
Also $g(0) = 0$ and $g(4) = \left[t^3 - 3t^2\right]_0^4 = (64 - 48) - 0 = 16$. Indeed, $g(2) = -4$ is the minimum value on $[0,4]$.