Calculus

Riemann Sum

A tiny builder places rectangular blocks underneath a curving ramp.

Riemann Sum definition

A Riemann sum adds rectangle contributions to approximate a definite integral. Each contribution is the width of a subinterval multiplied by the function value at a chosen point inside or at the end of that subinterval.

In Spanish
suma de Riemann
Topic
Integrals and accumulation

Riemann Sum in a picture

Riemann Sum diagramThree rectangles of equal width use right endpoints to approximate the area under the increasing line y = x from 0 to 3.0123
Three rectangles of equal width use right endpoints to approximate the area under the increasing line y = x from 0 to 3.

How it works

If the subintervals have widths Δxᵢ and sample points xᵢ*, the sum is Σ f(xᵢ*)Δxᵢ. Common choices are left endpoints, right endpoints and midpoints. For continuous f, the sums converge to the definite integral as the largest subinterval width tends to zero.

Worked examples

Use right endpoints for y = x on [0, 3] with three equal pieces.

Each width is 1. The right endpoints are 1, 2 and 3. Add 1 × 1 + 2 × 1 + 3 × 1 to get 6.

Use left endpoints on the same interval.

The heights are 0, 1 and 2, so the sum is 3. The exact area is 4.5. With an increasing function, these left and right sums bound the area.

Use widths 1 and 2 for y = x on [0, 3], with pieces [0, 1] and [1, 3].

The right endpoints are 1 and 3. Multiply by their own widths: 1 × 1 + 3 × 2 = 7.

Common mistake

Check the width of each rectangle. Equal widths can be factored out, but unequal widths must stay with their own heights.

Quick check

Split [2, 8] into three equal subintervals. What is Δx?

Show answer

2, since (8 − 2)/3 = 2.

What sample points does a midpoint sum use?

Show answer

The middle of each subinterval.

Does a negative function value contribute positively?

Show answer

No. Its rectangle contribution is negative when the subinterval width is positive.

Sources

Flashcard

Riemann Sum

Reveal the definition

A Riemann sum adds rectangle contributions to approximate a definite integral. Each contribution is the width of a subinterval multiplied by the function value at a chosen point inside or at the end of that subinterval.

Effortless Math. “Riemann Sum.” Math Dictionary.