Calculus

Riemann Sums: Left, Right, Midpoint and Trapezoidal, Side by Side

A Riemann sum estimates the area under a curve by adding up rectangles. See left, right, midpoint and trapezoidal sums worked on the same function with their errors against the exact integral, the rules for overestimates and underestimates, table problems with unequal widths, and how the limit becomes the definite integral.

Frequently asked questions

What is a Riemann sum?

A Riemann sum estimates the area under y = f(x) from a to b. You split the interval into n strips of width Δx = (b − a)/n, pick one x-value in each strip, and add up f(x)·Δx. The choice of x (left end, right end or middle) gives the left, right or midpoint sum. As n grows, the sum approaches the definite integral.

What is the difference between a left and a right Riemann sum?

A left sum takes each rectangle's height from the left end of its strip, so it uses f(x₀) through f(xₙ₋₁). A right sum uses the right ends, f(x₁) through f(xₙ). Both have n terms. For x² on [0, 4] with four strips, the left sum is 14 and the right sum is 30, while the exact area is 64/3, about 21.33.

Is the trapezoidal rule a Riemann sum?

Strictly, no: a Riemann sum uses rectangles, and the trapezoidal rule uses trapezoids. It is always the average of the left and right sums, T = (L + R)/2, so courses teach it alongside them. It usually beats both left and right sums because the slanted top follows the curve more closely.

How do you know if a Riemann sum is an overestimate or an underestimate?

For left and right sums, look at whether f is increasing or decreasing. If f increases, the left sum is too low and the right sum too high; if f decreases, it flips. For midpoint and trapezoidal sums, look at concavity. If f is concave up, the trapezoidal sum is too high and the midpoint sum too low; if concave down, it flips.

Which Riemann sum is the most accurate?

For a smooth function, the midpoint and trapezoidal sums are far better than left and right sums. Their errors shrink with 1/n², so doubling n cuts the error to about a quarter, while left and right errors only halve. The midpoint error is usually about half the trapezoidal error and has the opposite sign, which makes the midpoint sum the usual winner.

Try these solvers

Calculus13 min read

Fundamental Theorem of Calculus: Part 1, Part 2 and Examples

The Fundamental Theorem of Calculus ties differentiation and integration together. Learn FTC Part 1 (derivatives of accumulation functions), FTC Part 2 (evaluating definite integrals with antiderivatives), the intuition behind why it works, common mistakes, and worked AP-style examples.

Calculus12 min read

How to Study for AP Calculus AB: Tips and Practice Strategy

Preparing for the AP Calculus AB exam? This guide covers everything from the exam format to FRQ strategies, study timelines, and the best ways to practice effectively.

Calculus13 min read

Area Between Two Curves: Top Minus Bottom, Right Minus Left

The area between two curves is the integral of the top curve minus the bottom curve between their intersection points. See how to find the limits, split the integral where the curves cross, switch to right minus left in y, and check the answer, with five worked examples and practice.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.