What Integration Actually Is

A visual, intuition-first walk through the idea that stumps most calculus students — built from scratch, no formulas first.

By Petrus Sheya

January 15, 2024 · 6 min read

Most people learn integration as a collection of rules to memorize. The power rule. U-substitution. Integration by parts. You get pretty good at the algebra and still have no idea what you're actually computing.

This post is about the thing itself — the idea that makes all those rules worth learning.


Start with a question that has an obvious answer

Suppose someone asks you: what's the area of this rectangle?

Width 3, height 4. You say 12 immediately. That's multiplication: you tiled the rectangle with unit squares in your head.

Now a harder question: what's the area under a curve?

The curve isn't flat. The height changes at every point along the x-axis. You can't tile it neatly with unit squares — they'd hang out over the edge, or leave gaps.

This is the problem integration solves.


The obvious (wrong) first attempt

The first instinct is usually: what if I tile it with rectangles anyway? They'll be approximate, sure, but it's a start.

Pick a curve. Pick some x-values. At each x-value, measure the height of the curve. Draw a rectangle that tall, as wide as the gap between x-values. Add up all the rectangle areas.

That sum is your approximation. It's called a Riemann sum, named after Bernhard Riemann, though the idea is much older.

Visualizer 01

Riemann Rectangles

Drag the slider to add more rectangles. Watch the approximation converge to the true area.

xy0π
Approximation2.02303
Exact answer2.00000
Error0.02303

Drag the slider. Something satisfying happens: the more rectangles you use, the better the fit. The jagged staircase smooths out. The approximation gets closer and closer to some fixed number.

That number the approximation is chasing — that's the integral.


The leap: what happens at n = ∞?

Here's the key move. You're adding up rectangles. As you add more, each one gets thinner. What if you never stopped? What if you used infinitely many rectangles, each infinitely thin?

This sounds like nonsense. Infinity rectangles of zero width — how could that add up to anything?

But it does. And the way it works becomes clear if you look at just one rectangle.

Visualizer 02

One Slice, Infinitely Thin

This is the leap. One rectangle, width dx, height f(x). As dx → 0, the rectangle becomes exact.

dx = 1.20f(x)

Area of this slice ≈ f(x) · dx = 1.8960

One rectangle. Width dxdx. Height f(x)f(x) — the value of the function at that x-position.

Its area is simply:

dA=f(x)dxdA = f(x) \cdot dx

That small lowercase dd is notation for "an infinitely small piece of." So dxdx is an infinitely small piece of the x-axis, and dAdA is the infinitely small area of that one sliver.

The integral is the sum of all of these slivers — from one bound aa to another bound bb. That's why the notation looks the way it does:

abf(x)dx\int_a^b f(x)\, dx

The elongated \int sign is literally a stretched S — for sum. f(x)dxf(x)\,dx is the area of one sliver. The whole expression says: add up all the f(x)dxf(x)\,dx slivers from aa to bb.


Why infinite slivers give a finite answer

It seems paradoxical. Infinitely many things, each infinitely small — shouldn't that be undefined? Could be 0 or ∞ depending on mood?

The insight is that the smallness and the number cancel each other out in exactly the right way.

Think of it this way. You have a line segment 1 unit long. Cut it into nn pieces. Each piece has length 1n\frac{1}{n}. Add them all back up: n×1n=1n \times \frac{1}{n} = 1. You always get 1, no matter how large nn is — even as nn \to \infty.

Integration is that same balancing act, but for area. The rectangles get narrower by the same factor that their count grows. The product stays finite. Calculus makes this rigorous through the concept of a limit.


Integration as accumulation

There's another way to read the integral that's even more physical.

Imagine you're driving. Your speedometer shows f(t)f(t) — your speed at time tt. You want to know how far you've traveled.

Distance = speed × time. But your speed isn't constant. So you can't just multiply. You can, however, do this:

For each tiny sliver of time dtdt, compute how far you traveled: f(t)dtf(t) \cdot dt. Then add all those up.

That's an integral. Distance is the integral of speed over time.

The integral accumulates something. It's not just area — it's a running total. As xx increases, F(x)F(x) grows by however much f(x)f(x) is contributing at that moment.

Visualizer 03

Integration as Accumulation

The bottom graph shows F(x) — the total area accumulated from 0 to x. Drag or animate to see it grow.

f(x) = sin(x)F(x) = ∫₀ˣ sin(t) dtF(1.50) = 0.929

The top graph shows f(x)=sin(x)f(x) = \sin(x). The shaded region is what's being accumulated. The bottom graph shows F(x)F(x) — the running total — being drawn as xx increases. Notice that where f(x)f(x) is large, F(x)F(x) climbs steeply. Where f(x)f(x) approaches zero, F(x)F(x) flattens out.

This relationship — F(x)=f(x)F'(x) = f(x) — is the Fundamental Theorem of Calculus. It says: the derivative of the integral is the original function. Differentiation and integration are inverse operations. This is one of the most beautiful facts in mathematics, and the accumulation view makes it feel almost obvious.


What about negative areas?

One thing you'll notice if you integrate a function that dips below zero: some slivers have negative height. Their area, f(x)dxf(x) \cdot dx, is negative.

This makes sense physically. If your car is in reverse, f(t)f(t) (velocity) is negative. Integrating gives your net displacement — forward distance minus backward distance. Positive area and negative area cancel.

Whether that's what you want depends on the problem. Sometimes you want net area. Sometimes you want total area (always positive), in which case you integrate f(x)|f(x)| instead.


Try any function

Visualizer 04

Try It Yourself

Pick a function, set your bounds, and see the integral computed in real time.

a=0b=2
dx from 0 to 22.66667

A note on the negative regions: the visualizer colors them red. They subtract from the total. If your bounds straddle a zero-crossing, watch the signed area shrink or even go negative.


The short version

Integration is infinite addition.

You have a quantity that varies continuously — a height, a speed, a density, a probability — and you want to know the total accumulated effect over some interval. You slice the interval into infinitely many infinitely thin pieces, compute the contribution of each piece, and add them all up.

The remarkable fact, courtesy of the Fundamental Theorem, is that this infinite sum has a shortcut: find a function whose derivative is your integrand, evaluate it at the endpoints, subtract. What should be an impossibly hard computation collapses into arithmetic.

That shortcut is why you end up memorizing integration rules. But the rules are just tools. The idea is the slicing.


The visuals on this page are interactive React components. All integration is computed numerically using midpoint Riemann sums with n=1000n = 1000 rectangles — accurate to 5 decimal places for the functions shown.