4.2.3 · D2Calculus II — Integration

Visual walkthrough — Riemann sums — left, right, midpoint; formal definition of definite integral

2,166 words10 min readBack to topic

By the end you will have watched become .


Step 1 — One curve, one region, no formula for it

WHAT. We have a curve. Call the height at horizontal position by the name — read it " of ", a machine that eats a number and gives back the height there. We want the area trapped between this curve and the flat ground (the horizontal axis), from a left wall at to a right wall at .

WHY. A rectangle's area is width height — dead easy. A curvy top has no such formula. That single obstacle is the reason integration exists. Everything below is one long trick to dodge it.

PICTURE. The shaded region below is what we want the area of. Notice its top edge is curved — that is the whole problem.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 2 — Chop the region into vertical strips

WHAT. Slice the region with vertical cuts. We place cut-points along the ground and name them left to right: Here is just another name for the left wall , another name for the right wall , and the ones in between are the interior cuts. This list of cut-points is called a partition. Each slice sits between two neighbours: strip number lives on .

WHY. A thin strip is almost a rectangle — its top barely curves. So if we can approximate each thin strip by a rectangle, we trade one impossible area for many easy ones.

PICTURE. Below, strips. Read the term-by-term meaning right on the figure: the width of strip is (the "" symbol just means "the change in", so = how far moves across strip ).

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 3 — Turn each strip into a rectangle (pick a height)

WHAT. A strip has a curved top, so it has no single "height". We choose one: pick a sample point somewhere inside strip , measure the curve there, and use as a flat height for the whole strip.

WHY. The moment we commit to one flat height, the strip becomes a genuine rectangle: area . This is the first area we can actually compute.

PICTURE. Watch the red dot: we read the curve's height at the sample point, then extend that height flat across the strip, creating a rectangle. The top-right corner pokes above the curve on one side and leaves a gap below on the other — that mismatch is our error, and it shrinks as strips get thinner.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 4 — Three honest ways to choose the height

WHAT. Where inside the strip should the sample point sit? Three natural answers, each giving a differently-named sum:

Rule Sample In words
Left left edge of the strip
Right right edge of the strip
Midpoint centre of the strip

WHY. There is no single "correct" spot — that freedom is the point. We want to prove the final answer does not depend on this arbitrary choice. So we must first see the choices differ, then watch them agree in the limit.

PICTURE. The same rising curve, sampled three ways. For a curve that increases, the left rule reads a too-low height (underestimate, red gap above), the right rule reads a too-high height (overestimate, red overshoot), and the midpoint sits between — the overshoot on one side of the centre roughly cancels the gap on the other.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 5 — Add up all the rectangles (the Riemann sum)

WHAT. We now have rectangles. Add their areas. That total is the Riemann sum:

WHY. The whole region's area is (approximately) the sum of the strip areas — that is just "the area of the pieces adds to the area of the whole." The sum symbol is bookkeeping for "add these up as runs ."

PICTURE. Decode the symbols right where they live: Below, all four rectangles are drawn and their areas literally stacked into one bar — that bar's height is , our first estimate of the true area.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 6 — Slice thinner, and thinner, and thinner…

WHAT. Increase (more strips), which shrinks every width . Watch the staircase of rectangle-tops hug the curve tighter and tighter.

WHY. Each rectangle's error is that little sliver between its flat top and the curve. Thinner strips smaller slivers smaller total error. We are squeezing the approximation toward the truth.

PICTURE. The same region and curve, drawn with , then , then right sums. The red "error slivers" visibly shrink. The staircase becomes indistinguishable from the curve.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 7 — Take the limit: the definite integral is born

WHAT. As , the sums close in on one number . If that same number is reached no matter how we chose sample points (left, right, midpoint, anything), we call integrable and name the number the definite integral:

WHY "every choice"? If left, right, and midpoint all march to the same limit, the answer can't be an artifact of our arbitrary sampling — it is a real property of . (For a well-behaved curve — see Continuity and Integrability — this always works; for pathological ones it can fail.)

PICTURE. Decoding the reborn notation, symbol by symbol, on the figure: The red staircase and the black curve have merged — the limit is the area.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral

Step 8 — Degenerate & edge cases you must not skip

Every scenario the reader might hit — shown, not assumed.

Case A · Empty interval, . No width to fill: , every rectangle is a line, total area . So . Makes sense — no region.

Case B · Curve below the ground, . The "height" is negative, so is negative — the rectangle counts as negative area. The integral returns Signed area: above-ground positive, below-ground negative, cancelling where they overlap.

Case C · A straight top, linear. Here the midpoint rule is exact for any — no limit needed. The little triangle poking above the sample height on one side is congruent to the gap below on the other, so they cancel perfectly. (Left and right are still only approximate.)

Case D · A "wild" function. If different sample choices give different limits, no single exists and is not Riemann integrable. The classic villain is the Dirichlet function (1 on rationals, 0 elsewhere): pick rational samples and every sum is ; pick irrational samples and every sum is . Two limits ⇒ no integral.

PICTURE. Three panels: (A) the collapsed zero-width case, (B) a curve crossing the ground with one red rectangle below counted negative, (C) a straight line with the two cancelling red triangles at a midpoint rectangle.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral
Recall Quick self-test on the cases

::: — no width, no area. If on all of , is positive or negative? ::: Negative — it is signed area. Which rule is exact for a straight line at any ? ::: Midpoint (cancelling triangles). Why is the Dirichlet function not integrable? ::: Rational vs irrational samples give different limits, so no single value exists.


The one-picture summary

Left → right, the whole derivation in a single strip: curve → chop into strips → flatten each into a rectangle → sum → shrink widths → limit = the exact area = the integral.

Figure — Riemann sums — left, right, midpoint; formal definition of definite integral
Recall Feynman: retell the whole walkthrough in plain words

I want the area of a field with a bumpy top edge, and I only own a ruler. So I chop the field into thin vertical strips. Each strip still has a bumpy top, so I cheat: I pick one spot in the strip — its left side, right side, or middle — measure the height there, and pretend the whole strip is a flat-topped rectangle of that height. Rectangle area is just width times height, which I can measure. I do this for every strip and add them all up; that total is my "Riemann sum," a rough guess at the field's area. Then I slice thinner and thinner. The flat tops start matching the bumpy edge better and better, and my guesses close in on one exact number. That perfect number — the one I reach when the slices become infinitely thin, and the one I get no matter where I sampled the heights — is the definite integral . And if two different sampling habits ever disagreed on that number, then the field's area was never well-defined to begin with (that's what "not integrable" means).


Active Recall

Why must the limit be the same for every sample choice?
So the answer depends only on , not on our arbitrary sampling — otherwise the area isn't well-defined.
What does driving the mesh guarantee that "average width " would not?
Every single strip vanishes, including the widest one.
For an increasing , order , , and the true area.
(left underestimates, right overestimates).
Value of ?
.