Integration · Lesson 1 of 4 · ~6 min

Riemann sums

Predict

$n$ rectangles sit under $f(x) = \sin x + 1.2$ on $[0, 5]$, each as tall as the curve at its left edge. As $n$ grows, what does their total do?

Hold that thought. Drag rectangles n up and watch the error stat.
Try
Try itOn Left, drag rectangles n from $2$ to $60$ and watch riemann Σ. Then click Right and Midpoint at $n = 8$.
Notice

The left sum starts at $7.4962$ for $n = 2$, then falls: $6.9925$ at $n = 8$, $6.7559$ at $n = 60$. It never drops below the exact $6.7163$. At $n = 8$, Right reads $6.3932$ and Midpoint $6.7281$.

Explain

Each rectangle treats $f$ as flat across its slice. This curve mostly falls, so left edges sit high and overshoot; right edges undershoot. Thinner slices shrink the error, and every rule funnels to one limit, the definite integral:

$$\int_a^b f(x)\,dx \;=\; \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*)\,\Delta x$$

The notation remembers how it was built. $\int$ is a stretched S for sum, and $dx$ is the slice width $\Delta x$ pushed to the limit.

Apply
Checkpoint — prove it to yourself

At $n = 8$ the left sum reads $6.9925$ against the exact $6.7163$. Why does it overshoot on this curve?

Take $n = 5$ slices on $[0, 5]$, so $\Delta x = 1$. Which expression is the right Riemann sum?

Transfer: $g(x) = x$ on $[0, 4]$, right sampling. At $n = 4$ the sum is $(1 + 2 + 3 + 4)\cdot 1 = 10$; the exact area is $8$. What does $n = 8$ give?

Key idea

Left, right and midpoint sums disagree at every finite $n$. As slices thin, all three close in on one number: the definite integral.

← All lessons