Tutorials › AP Calculus › Riemann Sums: An Introduction
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Riemann Sums: An Introduction

How to approximate the area under a curve using rectangles. Riemann sums are the bridge between numerical approximation and the definite integral, and they appear frequently in AP Calculus questions.

What a Riemann Sum Is

A definite integral represents accumulated area or accumulated change, but sometimes you are given only a table of values or a function that is difficult to integrate directly. A Riemann sum gives you a way to approximate the integral by breaking an interval into smaller pieces and replacing the curve with rectangles.

Imagine the graph of a function on the interval from to . Divide that interval into several smaller subintervals. On each subinterval, choose a representative point and use the function value at that point as the height of a rectangle.

The total area of those rectangles is an approximation to the area under the curve.

As the rectangles become narrower and narrower, the approximation gets better. In the limit, the Riemann sum becomes the definite integral itself.

The Basic Formula

Suppose we want to approximate the integral of from to using equal subintervals.

The width of each rectangle is:

If is the point chosen from the subinterval, then the Riemann sum has the general form:

The important idea is simple: width × height, added over all the rectangles.

Left, Right, and Midpoint Sums

The three Riemann sums you are most likely to encounter in AP Calculus are the left sum, right sum, and midpoint sum. They differ only in which point of each subinterval is used to determine the rectangle's height.

Left Riemann Sum

For a left Riemann sum, use the left endpoint of each subinterval.

If the function is increasing, the left endpoint gives a rectangle whose height is generally smaller than the function values farther to the right. Therefore, a left sum tends to underestimate the integral for an increasing function.

Right Riemann Sum

For a right Riemann sum, use the right endpoint of each subinterval.

For an increasing function, the right endpoint gives a larger height, so a right sum tends to overestimate the integral.

Midpoint Riemann Sum

For a midpoint sum, use the midpoint of each subinterval.

Midpoint sums are often more accurate than left or right sums because they use a point from the middle of each interval rather than systematically favoring one side.

A Step-by-Step Method

  1. Identify the interval. Find the lower and upper bounds, and .
  2. Determine the number of subintervals. This is usually given as .
  3. Calculate the width. Use .
  4. Determine the sample points. Use left endpoints, right endpoints, or midpoints depending on the problem.
  5. Evaluate the function at each sample point.
  6. Multiply each height by the width and add the resulting areas.
  7. Interpret the result as an approximation of the definite integral.

Worked Examples

Example 1: Left Riemann Sum from a Table

The table gives values of . Use a left Riemann sum with the four subintervals shown to approximate .

Step 1: The subintervals are . Each has width .
Step 2: For a left sum, use the left endpoint of each interval: .
Step 3: Add the rectangle areas: .
Result: .
Example 2: Right Riemann Sum from a Function

Use a right Riemann sum with four equal subintervals to approximate .

Step 1: The interval is , so .
Step 2: Divide the interval into four equal pieces. The width is .
Step 3: The right endpoints are .
Step 4: Evaluate the function: .
Step 5: Multiply the sum of the heights by the width: .
Result: .
Example 3: Midpoint Riemann Sum

Approximate using a midpoint Riemann sum with four equal subintervals.

Step 1: The width is .
Step 2: The four midpoints are .
Step 3: Evaluate at each midpoint: .
Step 4: Add the rectangle areas: .
Result: .
Example 4: Recognizing Overestimate vs. Underestimate

Suppose is positive and increasing on . Determine whether a left Riemann sum underestimates or overestimates the definite integral.

Step 1: Because the function is increasing, the function values become larger as increases.
Step 2: A left sum uses the smaller value at the beginning of each subinterval, so each rectangle tends to lie below the curve.
Conclusion: The left Riemann sum the actual integral.

Riemann Sums and the Definite Integral

Riemann sums are not just a numerical trick. They provide the mathematical foundation for the definite integral.

If we divide the interval from to into equal pieces, then the width of each piece is . As becomes very large, the rectangles become extremely narrow.

In the limit, the approximation approaches the exact accumulated area:

This is the fundamental connection between the geometric idea of adding rectangles and the analytic idea of integration.

How to Tell Which Sum Will Be High or Low

On AP Calculus questions, you are often asked whether a Riemann sum is an overestimate or underestimate. The key is to look at the behavior of the function.

For an increasing function, left sums generally underestimate and right sums generally overestimate.

For a decreasing function, the situation reverses: left sums generally overestimate and right sums generally underestimate.

Midpoint sums do not follow such a simple rule based only on whether the function is increasing or decreasing. Their error depends more directly on the function's concavity.

Common Mistakes

Using the wrong sample points

A left sum uses left endpoints, a right sum uses right endpoints, and a midpoint sum uses the middle of each subinterval. Mixing these up changes the entire approximation.

Forgetting the width

A Riemann sum is not just the sum of the function values. You must multiply the total height by the width of each rectangle. Think height × width.

Using the wrong value of Δx

If the interval is and there are equal subintervals, then . Do not divide by the number of subintervals incorrectly.

Confusing a Riemann sum with the exact integral

A finite Riemann sum is an approximation. It becomes the exact definite integral only in the limiting process as the number of rectangles approaches infinity.

Practice Problems

Question 1

Use a left Riemann sum with four equal subintervals to approximate .

Show answer
Question 2

Use a right Riemann sum with four equal subintervals to approximate .

Show answer
Question 3

Use a midpoint Riemann sum with four equal subintervals to approximate .

Show answer
Question 4 (Conceptual)

If is decreasing on an interval, will a right Riemann sum tend to overestimate or underestimate the definite integral?

Show answer

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon