Tutorials › AP Calculus › Riemann Sums Using Unequal Subintervals (Data Tables)
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Riemann Sums Using Unequal Subintervals (Data Tables)

How to approximate a definite integral or total change when the data are given in a table and the intervals are not equally spaced. The key is simple: calculate each rectangle separately using its own width.

Why Unequal Subintervals Matter

Most introductory Riemann-sum problems use equally spaced values of . That makes the width of every subinterval the same, so you can factor a single out of the sum.

But AP Calculus problems often give you a data table in which the -values are not evenly spaced. In that situation, there is no single common width. You must calculate the width of each individual subinterval.

The good news is that the underlying idea has not changed. A Riemann sum is still an approximation made by adding the areas of rectangles:

The only difference is that each rectangle may have a different width.

The Core Formula

Suppose a table gives values of at several points . If you use a left Riemann sum, the approximation is:

For a right Riemann sum:

And for a midpoint sum, if the midpoint values are supplied or can be determined:

The important feature is that every term has the form:

height × width. The height comes from the function value, while the width comes from the difference between consecutive -values.

How to Read an Unequally Spaced Data Table

Consider the following table:

0 4
1 7
3 5
6 8
10 6

Notice that the -values are not equally spaced:

That means the four subintervals have four different widths:

This is the main idea to recognize on the AP exam. Do not automatically use a single . First calculate the width of each interval.

The AP Exam Workflow

1. Identify the requested Riemann sum: left, right, midpoint, or trapezoidal.

2. Write down the subintervals.

3. Calculate each width: .

4. Select the appropriate function value for each interval.

5. Multiply height × width for every interval.

6. Add all of the products.

Worked Example 1: Left Riemann Sum

Example 1: Unequal Intervals

Suppose the velocity of a car is recorded at several times:

0 12
2 15
5 18
9 14

Use a left Riemann sum to approximate the distance traveled from to .

Step 1: The subintervals are , , and .
Step 2: Their widths are , , and .
Step 3: Because this is a left Riemann sum, use the velocity at the left endpoint of each interval: .
Step 4: Multiply each height by its own width:
Result:

The approximation is therefore 140 distance units.

Worked Example 2: Right Riemann Sum

Example 2: Using Right Endpoints

Use the same data table to approximate the total distance traveled using a right Riemann sum.

Step 1: Keep the same interval widths: .
Step 2: For a right sum, use the value at the right endpoint of each interval: .
Step 3: Multiply:
Result:

So the right Riemann sum gives an estimated distance of 156 distance units.

Worked Example 3: Trapezoidal Sum with Unequal Intervals

The trapezoidal rule is especially useful with data tables because it uses both endpoints of each subinterval.

For one interval from to , the area of the trapezoid is:

For multiple unequal intervals, calculate each trapezoid separately:

Example 3: Trapezoidal Approximation

Use the following table to approximate using the trapezoidal rule.

0 4
2 7
5 5
9 8
Step 1: First interval: width , so the trapezoid area is .
Step 2: Second interval: width , so the trapezoid area is .
Step 3: Third interval: width , so the trapezoid area is .
Step 4: Add the three trapezoid areas:
Result:

Why You Cannot Use One Common

For equally spaced data, you may be used to writing a Riemann sum in a compact form such as:

That works because every interval has the same width.

For unequal intervals, however, there is no single common width. For example, if the -values are , then the widths are:

Using for every rectangle would incorrectly treat all four intervals as though they had the same width.

Common Mistake: Assuming Equal Spacing

Do not assume that a data table has equally spaced -values. Always subtract consecutive -values to determine the actual width of each interval.

Riemann Sums as Accumulated Change

On the AP exam, a Riemann sum often appears in a word problem involving a rate such as velocity, flow rate, population growth, or water entering a tank.

If represents a rate of change, then multiplying the rate by a time interval gives an approximate amount of accumulated change:

When the intervals have different lengths, each interval contributes a different amount:

This is why the units matter. If velocity is measured in miles per hour and time is measured in hours, then:

The resulting Riemann sum has units of miles.

Reading the Table Efficiently

When you see a data-table Riemann-sum problem, organize the information mentally as three columns:

Interval Width Selected Height

Then calculate:

This simple organization prevents one of the most common AP Calculus errors: pairing the correct function value with the wrong interval width.

Common Mistakes

Using the same width for every interval

This is the biggest mistake with unequal subintervals. Calculate each width separately using .

Using the wrong endpoint

For a left Riemann sum, use the left endpoint. For a right Riemann sum, use the right endpoint. The width still comes from the two endpoints of the entire interval.

Forgetting that the interval width belongs to the rectangle

A term such as means the height is and the width is . Keep those two pieces together.

Ignoring units

If the table gives a rate, your Riemann sum represents accumulated change. Check the units of your answer to make sure the interpretation makes sense.

Practice Problems

Question 1

The table gives values of a function . Use a left Riemann sum to approximate .

03
25
54
87
Show answer
Question 2

Using the same table, calculate the right Riemann sum.

Show answer
Question 3

A particle's velocity is given by the following table. Use a trapezoidal sum to approximate the particle's displacement from to .

06
18
410
77
Show answer
Question 4 (AP-Style Interpretation)

The rate at which water enters a tank is measured in gallons per minute. Measurements are taken at minutes, with unequal spacing. Explain how you would use a right Riemann sum to approximate the total amount of water entering the tank.

Show answer

The Key Idea to Remember

When subintervals are unequal, there is no shortcut involving one common width. Treat each interval separately:

Remember

Find the interval.

Find its width.

Choose the correct endpoint value.

Multiply height × width.

Add the contributions.

Once you recognize that structure, data-table Riemann sums become mechanical. The AP exam is usually testing whether you can correctly connect each function value with the appropriate interval width.

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