# Approximating Areas with Riemann Sums

> AP Calculus AB · Integration and Accumulation of Change
> Source: https://www.owlsprep.com/study/ap-calculus-ab-u6-approximating-areas-with-riemann-sums/

Covers left, right, midpoint, and trapezoidal Riemann sums, Δx calculation for equal/unequal subintervals, over/under-approximation rules, and area approximation for functions and tabular data.

**Prerequisites:** Function evaluation for algebraic and tabular functions; Sigma notation for finite sums; Testing monotonicity and concavity using derivatives

## Learning objectives

- Approximate area under a curve using left, right, midpoint, and trapezoidal Riemann sums for equal and unequal subintervals
- Calculate Δx correctly for equal-width subintervals
- Determine if a Riemann sum is an over- or under-approximation based on function monotonicity or concavity
- Apply Riemann sums to approximate total change from tabular rate data

## Core Concepts: Equal-Width Rectangular Riemann Sums

A Riemann sum approximates the net area between $y=f(x)$ and the x-axis over $[a,b]$ by dividing the interval into smaller slices, calculating each slice's area, and summing the results. It is the conceptual foundation for the definite integral, which is the limit of a Riemann sum as the number of slices approaches infinity. For equal-width slices, the width of each subinterval is:

$$\Delta x = \frac{b-a}{n}$$

where $n$ is the number of subintervals, $a$ is the left endpoint of the full interval, and $b$ is the right endpoint. There are three common types of rectangular Riemann sums, differing by which point on the subinterval is used for the rectangle height:

- **Left Riemann Sum ($L_n$)**: Uses the left endpoint of each subinterval: $L_n = \Delta x \sum_{i=0}^{n-1} f(x_i)$
- **Right Riemann Sum ($R_n$)**: Uses the right endpoint of each subinterval: $R_n = \Delta x \sum_{i=1}^{n} f(x_i)$
- **Midpoint Riemann Sum ($M_n$)**: Uses the midpoint of each subinterval: $M_n = \Delta x \sum_{i=1}^{n} f\left(\frac{x_{i-1} + x_i}{2}\right)$

**Riemann Sum** — A method to approximate the net area between a function and the x-axis over an interval by summing the areas of individual slices of the interval.

*Example:* Right Riemann sum with 4 equal subintervals

**Worked example:** Approximate the area under $f(x) = x^2 + 1$ from $x=0$ to $x=4$ using 4 equal subintervals and a right Riemann sum.

1. Calculate the width of each subinterval:
2. $$\Delta x = \frac{4-0}{4} = 1$$
3. List all subinterval endpoints: $x_0=0, x_1=1, x_2=2, x_3=3, x_4=4$. For a right sum, we use endpoints $x_1$ through $x_4$.
4. Evaluate $f(x)$ at each right endpoint: $f(1)=2, f(2)=5, f(3)=10, f(4)=17$
5. Multiply the sum of heights by $\Delta x$:
6. $$R_4 = 1 \times (2 + 5 + 10 + 17) = 34$$
7. The right Riemann sum approximation is $\boxed{34}$.

> **Exam tip:** If the question does not specify a number of decimal places, leave your answer as an integer or simplified fraction; the AP exam does not require rounding unless explicitly stated.

## The Trapezoidal Rule

The trapezoidal rule replaces rectangles with trapezoids, connecting the endpoints of each subinterval with a straight line to produce a more accurate approximation for smooth functions. The area of a single trapezoid over $[x_{i-1}, x_i]$ is $\frac{f(x_{i-1}) + f(x_i)}{2} \times \Delta x$. Summing this for all equal-width subintervals simplifies to the formula:

$$T_n = \frac{\Delta x}{2} \left[ f(x_0) + 2f(x_1) + 2f(x_2) + ... + 2f(x_{n-1}) + f(x_n) \right]$$

A useful time-saving identity for equal subintervals: the trapezoidal sum is exactly the average of the left and right Riemann sums:

$$T_n = \frac{L_n + R_n}{2}$$

> **tip**
>
> This identity saves significant time on multiple choice questions where you already have $L_n$ and $R_n$ pre-calculated.

**Worked example:** Approximate the area under $f(x) = x^2 + 1$ from $x=0$ to $x=4$ using 4 equal subintervals and the trapezoidal rule.

1. We already know $\Delta x = 1$, with endpoints $x_0=0$ to $x_4=4$ from the previous example, and we know $L_4 = 18$ and $R_4 = 34$.
2. Use the average identity to calculate the result quickly:
3. $$T_4 = \frac{L_4 + R_4}{2} = \frac{18 + 34}{2} = 26$$
4. Confirm with the full trapezoidal formula:
5. $$T_4 = \frac{1}{2}\left[f(0) + 2f(1) + 2f(2) + 2f(3) + f(4)\right] = \frac{1}{2}\left[1 + 4 + 10 + 20 + 17\right] = 26$$
6. The trapezoidal approximation is $\boxed{26}$.

> **Exam tip:** If a multiple choice question gives you the left and right Riemann sums for an interval, you can get the trapezoidal sum in one step with the average identity, no need to recalculate all values.

## Unequal Subintervals & Tabular Context Problems

A common AP Free Response Question (FRQ) format provides a table of function values at non-equally spaced points, usually for real-world rates like velocity or growth, and asks for an area approximation. For unequal subintervals, $\Delta x$ is not constant, so simplified equal-width formulas do not apply. Instead, calculate the width of each subinterval individually, compute each slice's area separately, then sum:

- **Rectangular**: Area of slice = $f(\text{chosen endpoint}) \times \text{slice width}$
- **Trapezoidal**: Area of slice = $\frac{f(\text{left endpoint}) + f(\text{right endpoint})}{2} \times \text{slice width}$

**Worked example:** The velocity of a car $v(t)$ in mph at time $t$ in hours is given in the table below. Approximate the total distance traveled from $t=0$ to $t=3$ using a trapezoidal approximation.

| $t$ (hours) | 0 | 0.5 | 1.5 | 3 |
|---|---|---|---|---|
| $v(t)$ (mph) | 30 | 40 | 50 | 45 |

1. Calculate the width of each subinterval:
2. $w_1 = 0.5 - 0 = 0.5$, $w_2 = 1.5 - 0.5 = 1$, $w_3 = 3 - 1.5 = 1.5$
3. Calculate the area of each trapezoidal slice:
4. 1. Slice 1: $\frac{30 + 40}{2} \times 0.5 = 17.5$
2. Slice 2: $\frac{40 + 50}{2} \times 1 = 45$
3. Slice 3: $\frac{50 + 45}{2} \times 1.5 = 71.25$
5. Sum the individual areas:
6. $$17.5 + 45 + 71.25 = 133.75$$
7. The total distance approximation is $\boxed{133.75}$ miles.

> **Exam tip:** Always list the width of each subinterval first before starting any calculations; never assume intervals are equal just because the problem asks for a trapezoidal sum.

## Over- and Under-Approximation Rules

AP questions often ask you to determine whether an approximation is larger or smaller than the exact area, without calculating the full sum. The rules depend on the type of sum and the function's properties, and only apply when the function is monotonic (for left/right sums) or has constant concavity (for trapezoidal sums) over the entire interval:

- **Left/Right Rectangular Sums**: If $f$ is increasing ($f'(x) > 0$): Left = under-approximation, Right = over-approximation. If $f$ is decreasing ($f'(x) < 0$): Left = over-approximation, Right = under-approximation.
- **Trapezoidal Sums**: If $f$ is concave up ($f''(x) > 0$): Trapezoidal = over-approximation. If $f$ is concave down ($f''(x) < 0$): Trapezoidal = under-approximation.

> **tip**
>
> If you forget the rule, draw a quick sketch of one subinterval to confirm; it takes 10 seconds and eliminates memorization errors.

**Worked example:** Is a right Riemann sum of $f(x) = e^{-x}$ on $[1, 3]$ with $n=4$ an over- or under-approximation of the actual area? Justify your answer.

1. Calculate the first derivative to check monotonicity:
2. $$f'(x) = -e^{-x}$$
3. which is negative for all $x$, so $f(x)$ is decreasing on $[1, 3]$. For a decreasing function, the right endpoint of any subinterval is lower than all other points on that subinterval. This means every rectangular height is smaller than the curve over the subinterval, so the total area of the rectangles is smaller than the actual area under the curve.
4. Conclusion: The right Riemann sum is an under-approximation.

**Check your understanding**

Test your understanding with this AP-style multiple choice question:

1. Which of the following gives the midpoint Riemann sum approximation for the area under $f(x) = \ln x$ on the interval $[2, 5]$ using 3 equal subintervals?

   - $\ln 2 + \ln 3 + \ln 4$
   - $\frac{1}{3}\left(\ln 2.5 + \ln 3.5 + \ln 4.5\right)$
   - $\ln 2.5 + \ln 3.5 + \ln 4.5$
   - $\ln 3 + \ln 4 + \ln 5$

   *Answer:* $\ln 2.5 + \ln 3.5 + \ln 4.5$

   *Why:* Correct: $\Delta x = 1$, so the midpoint sum is $1(\ln 2.5 + \ln 3.5 + \ln 4.5)$. Option A is a left sum, B uses inverted $\Delta x$, D is a right sum.

## Common pitfalls

- **Wrong:** For a trapezoidal sum with equal subintervals, you forget to multiply all inner endpoints by 2 and just write $\Delta x [f(x_0) + f(x_1) + ... + f(x_n)]$.
  - Why it fails: Students mix up the trapezoidal formula with rectangular Riemann sum formulas out of habit.
  - Correct: Always write the full trapezoidal formula explicitly before plugging in values, confirming coefficients of 1 for the outermost endpoints and 2 for all inner endpoints.
- **Wrong:** Assuming all subintervals are equal for a tabular problem, so you use $\frac{b-a}{n}$ as the width of every subinterval.
  - Why it fails: AP FRQs regularly use unequal subintervals to test this concept, and students default to equal spacing from practice with equal-width problems.
  - Correct: Always calculate and list the width of each subinterval by subtracting consecutive x-values before starting any area calculations.
- **Wrong:** Swapping rules for over/under approximation, calling a right Riemann sum for an increasing function an under-approximation.
  - Why it fails: Students memorize rules in order and mix up which applies to increasing vs decreasing functions.
  - Correct: Draw a small sketch of one subinterval to confirm which endpoint is higher, before answering.
- **Wrong:** Calculating $\Delta x$ as $\frac{n}{b-a}$ instead of $\frac{b-a}{n}$ for equal subintervals.
  - Why it fails: Algebraic mixup when rearranging, especially with large values of $n$.
  - Correct: Remember $\Delta x$ is the width of one slice, so it must be smaller than the total interval length $b-a$; if you get a value larger than $b-a$, you inverted the fraction.
- **Wrong:** Using the left endpoint rule when the question asks for right, by starting the sum at the wrong endpoint.
  - Why it fails: Rushing through the problem after calculating $\Delta x$, skipping the step of confirming which endpoints are required.
  - Correct: After listing all endpoints, explicitly mark the endpoints you need for the requested sum before evaluating $f$.

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Equal subinterval width | $\Delta x = \frac{b-a}{n}$ | $[a,b]$ = full interval, $n$ = number of subintervals |
| Left Riemann Sum (equal $\Delta x$) | $L_n = \Delta x \sum_{i=0}^{n-1} f(x_i)$ | Uses left endpoint for rectangle height |
| Right Riemann Sum (equal $\Delta x$) | $R_n = \Delta x \sum_{i=1}^{n} f(x_i)$ | Uses right endpoint for rectangle height |
| Midpoint Riemann Sum (equal $\Delta x$) | $M_n = \Delta x \sum_{i=1}^{n} f\left(\frac{x_{i-1} + x_i}{2}\right)$ | Uses midpoint for rectangle height |
| Trapezoidal Sum (equal $\Delta x$) | $T_n = \frac{\Delta x}{2} \left[f(x_0) + 2f(x_1) + ... + 2f(x_{n-1}) + f(x_n)\right]$ | Equal to $\frac{L_n + R_n}{2}$ for equal $\Delta x$ |
| Trapezoidal Sum (unequal $\Delta x$) | $T = \sum_{i=1}^{n} \frac{f(x_{i-1}) + f(x_i)}{2} \Delta x_i$ | Use for tabular data with uneven spacing |
| L/R over/under (increasing $f$) | Left = under, Right = over | Applies when $f'(x) > 0$ on full interval |
| L/R over/under (decreasing $f$) | Left = over, Right = under | Applies when $f'(x) < 0$ on full interval |
| Trapezoid over/under by concavity | Concave up = over, Concave down = under | Applies when concavity is constant |

## What's next

Riemann sums are the foundational intuition for the definite integral, the core concept of Unit 6 that you will study immediately after this topic. Mastery of Riemann sum approximation is required to understand the formal definition of the definite integral as the limit of a Riemann sum as the number of subintervals approaches infinity, a concept regularly tested on both multiple choice and free response sections of the AP exam. Without this foundation, you will struggle to interpret definite integrals in contextual problems, work with accumulation functions, and apply the Fundamental Theorem of Calculus correctly. This topic also builds directly to problems that approximate total change from a given rate of change, the most common real-world context on the AP Calculus AB exam.

- [Riemann sums, summation notation, and definite integral notation](https://www.owlsprep.com/study/ap-calculus-ab-u6-riemann-sums-summation-notation-definite/)
- [Fundamental Theorem of Calculus and accumulation functions](https://www.owlsprep.com/study/ap-calculus-ab-u6-fundamental-theorem-of-calculus-and/)
- [Interpreting behavior of accumulation functions](https://www.owlsprep.com/study/ap-calculus-ab-u6-interpreting-behavior-of-accumulation-functions/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-ab-u6-approximating-areas-with-riemann-sums/
