Riemann sums: rectangles, signed area and ∫ab f(x) dx

Year 12 Mathematics Advanced · Sn = h [f(x1*) + … + f(xn*)] with h = (b − a)/n · a rectangle below the axis counts negative · as n grows, Sn → F(b) − F(a)
Curve

Graph

curve rectangle above axis (+) below axis (−)
4

4 strips, width h = 0.75

Sample each strip at its
Signed (net) — the definite integral
Sn (rectangles) –
exact F(b) − F(a) –
closed form –
error Sn − exact –
Unsigned (total) — every rectangle counted positive
Σ h·|f(x*)| –
exact ∫ |f| dx –

The n sample heights

Each rectangle contributes h × f(x*). A negative height is a rectangle hanging below the axis: it subtracts from the signed sum and adds to the total.

Net or total?

Signed view: a rectangle below the axis is drawn downward and counts negative, exactly as ∫ f dx does. Switch to see every rectangle flipped upward, which is what "total distance" or "total area" means.

Three rules, one limit

Left and right sums bracket the integral on a monotone curve; the midpoint sum is usually closest. Try all three at the same n, then push n up: all three converge to F(b) − F(a).