🧱 Shaky on the basics? Start with Foundations →
Integration & the Fundamental Theorem — Visual Lab
Module 4. Differentiation took curves apart; integration puts them back together. The area under a curve is built by stacking up thousands of thin rectangles — and the Fundamental Theorem of Calculus reveals the astonishing shortcut: that area is just an antiderivative, evaluated at the two ends. Slide the rectangle count and watch a crude estimate sharpen into the exact integral.
A definite integral \(\displaystyle\int_a^b f(x)\,dx\) is the signed area between a curve and the \(x\)-axis — defined as the limit of a Riemann sum, \(\sum f(x_i)\,\Delta x\), as the rectangles get infinitely thin. The Fundamental Theorem of Calculus is the bridge: it says integration and differentiation are inverse operations, so that exact area can be found by an antiderivative instead of an endless sum. Drive the lab below and watch the sum chase the true value.
Riemann Sums → Integral Lab
Choose a function and a method (left, right, midpoint, or trapezoid), then slide \(n\) from a few rectangles to many. Watch the shaded approximating sum converge to the exact definite integral, with the running value and the numeric error displayed live.
What you're seeing
- The curve is your function on \([a,b]\). The lightly-shaded band under it is the true area — the exact value of \(\int_a^b f(x)\,dx\) the rectangles are trying to match.
- Each rectangle has width \(\Delta x = \tfrac{b-a}{n}\). Its height is the function's value at a sample point: the left edge, the right edge, or the midpoint of its strip — that choice is the method.
- The trapezoid method tilts the tops. Instead of a flat rectangle it connects the left and right heights with a slanted line, hugging the curve far more closely — usually the most accurate of the four.
- More rectangles → less error. As you slide \(n\) up, each strip narrows and the staircase of rectangles squeezes onto the curve. The displayed error shrinks toward zero — that limit is the integral.
- Area below the axis counts as negative. If the curve dips under the \(x\)-axis, those rectangles contribute negative signed area — the definite integral is net area, not total area.
Try this
- Start small. Set \(n=4\) with the left method on an increasing curve. Notice the rectangles fall short of the curve — a left sum underestimates when \(f\) is increasing. Switch to right: now it overestimates.
- Slide \(n\) upward. Push \(n\) from \(4\) toward \(100\) and watch the error readout collapse. The left and right sums squeeze toward the same number from opposite sides.
- Compare methods at the same \(n\). Keep \(n\) small (say \(8\)) and cycle left → right → midpoint → trapezoid. Which gives the smallest error for the fewest rectangles? (Midpoint and trapezoid win.)
- Find a signed area. Choose a function that dips below the axis and watch the rectangles under the axis turn negative. Confirm the sum can be less than the visible area above.
Worked Examples
Two exemplars that mirror the lab: a definite integral evaluated by the Fundamental Theorem, and the same integral approximated by a hand Riemann sum so you can see them agree.
Evaluate \(\displaystyle\int_0^3 x^2\,dx\)
Find the exact signed area under \(f(x)=x^2\) from \(x=0\) to \(x=3\) using the Fundamental Theorem.
- Find an antiderivative. We need \(F\) with \(F'(x)=x^2\). By the reverse power rule, \(F(x)=\tfrac{x^3}{3}\). (No \(+C\) is needed for a definite integral — it cancels in the next step.)
- Apply FTC Part 2. \(\displaystyle\int_a^b f(x)\,dx = F(b)-F(a)\), so evaluate \(F\) at the top minus the bottom: \(\left[\tfrac{x^3}{3}\right]_0^3\).
- Substitute the bounds. \(\tfrac{3^3}{3}-\tfrac{0^3}{3}=\tfrac{27}{3}-0\).
- Simplify. \(=9\).
Approximate \(\displaystyle\int_0^3 x^2\,dx\) with \(n=3\) right rectangles
Estimate the same area with three right-endpoint rectangles, then compare to the exact value \(9\).
- Find the strip width. \(\Delta x = \dfrac{b-a}{n} = \dfrac{3-0}{3} = 1\). The strips run \([0,1],[1,2],[2,3]\).
- List the right endpoints. They are \(x=1,\,2,\,3\) — the right edge of each strip.
- Evaluate the heights. \(f(1)=1,\ f(2)=4,\ f(3)=9\).
- Sum height × width. \(R_3 = (1+4+9)\cdot 1 = 14\).
- Compare to the exact value. \(14\) overestimates \(9\) (a right sum overshoots an increasing curve). The error is \(14-9=5\) — large here because \(n\) is tiny.
Why it matters
Where this shows up the moment you leave the classroom.
Integration is how you total up a quantity that changes continuously. Distance is the integral of speed; the charge stored in a capacitor is the integral of current; the total rainfall is the integral of the rate. Whenever you only know a rate and want the accumulated amount — work done by a varying force, the area of an irregular region, the volume of a solid of revolution, the average value of a signal — you are computing a definite integral. The Riemann sum is the honest, brute-force definition; the Fundamental Theorem is the elegant shortcut that makes it practical.
Key Vocabulary
The precise words a mathematician uses to describe what the sliders are doing.
A function \(F\) whose derivative is \(f\). The indefinite integral \(\int f\,dx = F(x)+C\) names the whole family — the \(+C\) is mandatory.
An estimate of area as \(\sum_{i} f(x_i)\,\Delta x\) — a finite stack of rectangles whose heights come from a sample point in each strip.
The limit of a Riemann sum as \(n\to\infty\): \(\int_a^b f(x)\,dx\), the exact signed area between the curve and the \(x\)-axis.
\(\int_a^b f(x)\,dx = F(b)-F(a)\) for any antiderivative \(F\). The shortcut that turns an infinite sum into two evaluations.
\(g(x)=\int_a^x f(t)\,dt\). FTC Part 1 says \(g'(x)=f(x)\) — differentiating an accumulation recovers the integrand.
A definite integral is net signed area (below-axis counts negative). Total area integrates \(|f|\) instead.
AP Calculus Framework
This lab targets the Integration and Accumulation of Change and Applications of Integration strands — AP Calculus AB/BC Units 6 & 8 — and the parallel topics in a collegiate Calculus I course. Scholars approximate definite integrals with Riemann sums, define the integral as a limit of those sums, and evaluate it exactly via the Fundamental Theorem of Calculus.
Unit 6 covers integration & accumulation of change — Riemann sums & the definite integral as a limit, the Fundamental Theorem of Calculus, antiderivatives, and \(u\)-substitution. Unit 8 covers applications of integration — the average value of a function, area between curves, and volumes (disk, washer, and shell).
Ready for the full course map? Head back to Calculus, read the Student Support, or check the Pacing Guide to see where Module 4 sits in the year.
Module and topic structure follow the AP Calculus AB/BC Course and Exam Description (College Board) and a standard collegiate Calculus I–II sequence. AP® is a trademark of the College Board, which does not endorse this site. Classroom use is non-commercial.