🧱 Shaky on the basics? Start with Foundations →

Mathematical Architects · Calculus

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.

Interactive Lab Module 04 · Integration & the FTC AP Calc AB/BC · Units 6 & 8

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.


Orientation

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.
Investigation

Try this

  1. 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.
  2. 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.
  3. 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.)
  4. 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.

Worked example A — the Fundamental Theorem of Calculus

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.

  1. 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.)
  2. 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\).
  3. Substitute the bounds. \(\tfrac{3^3}{3}-\tfrac{0^3}{3}=\tfrac{27}{3}-0\).
  4. Simplify. \(=9\).
Answer: \(\displaystyle\int_0^3 x^2\,dx = 9\) square units. In the lab, choose \(f(x)=x^2\) on \([0,3]\) and slide \(n\) up — the sum converges to exactly \(9\).
Worked example B — a right Riemann sum by hand

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\).

  1. Find the strip width. \(\Delta x = \dfrac{b-a}{n} = \dfrac{3-0}{3} = 1\). The strips run \([0,1],[1,2],[2,3]\).
  2. List the right endpoints. They are \(x=1,\,2,\,3\) — the right edge of each strip.
  3. Evaluate the heights. \(f(1)=1,\ f(2)=4,\ f(3)=9\).
  4. Sum height × width. \(R_3 = (1+4+9)\cdot 1 = 14\).
  5. 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.
Answer: \(R_3 = 14\), an overestimate of the exact \(9\). In the lab, set \(f(x)=x^2\), method right, \(n=3\) to reproduce \(14\) — then slide \(n\) up and watch the overshoot melt away toward \(9\).

💡

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.

The big reveal of FTC. The Fundamental Theorem says the two halves of calculus are inverses: differentiation finds a rate from an amount, and integration recovers the amount from the rate. That is why an area — something geometric — can be computed with an antiderivative — something algebraic. Keeping the two parts straight (Part 1 differentiates an accumulation function; Part 2 evaluates a definite integral) is the single most common stumble — the lab keeps the sum and the exact value side by side so the connection stays visible.

📚

Key Vocabulary

The precise words a mathematician uses to describe what the sliders are doing.

Antiderivative

A function \(F\) whose derivative is \(f\). The indefinite integral \(\int f\,dx = F(x)+C\) names the whole family — the \(+C\) is mandatory.

Riemann sum

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.

Definite integral

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.

Fundamental Theorem (Part 2)

\(\int_a^b f(x)\,dx = F(b)-F(a)\) for any antiderivative \(F\). The shortcut that turns an infinite sum into two evaluations.

Accumulation function

\(g(x)=\int_a^x f(t)\,dt\). FTC Part 1 says \(g'(x)=f(x)\) — differentiating an accumulation recovers the integrand.

Net vs. total area

A definite integral is net signed area (below-axis counts negative). Total area integrates \(|f|\) instead.

Standards in this lab

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.

AP Calc Unit 6 AP Calc Unit 8 LIM-5 FUN-5 FUN-6 CHA-4 CHA-5 Collegiate Calc I

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.