# Riemann sums, summation notation, and definite integral notation

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

This foundational subtopic builds the bridge between derivatives and integration, covering summation notation rules, Riemann sum approximations, net area calculation, and conversion of Riemann sum limits to definite integral notation for AP Calculus AB.

**Prerequisites:** [Evaluating limits of functions](https://www.owlsprep.com/study/ap-calculus-ab-u2-limits-of-functions/); Algebraic simplification of polynomial expressions; Interpreting rate of change functions in context

## Learning objectives

- Simplify expressions using summation notation and core properties
- Calculate left, right, and midpoint Riemann sums for equal subintervals
- Convert a limit of Riemann sums to definite integral notation
- Interpret the definite integral as a limit of Riemann sums

## Summation Notation and Key Properties

**Summation (Sigma) Notation** — A compact shorthand for writing the sum of a sequence of terms, where $i$ is the summation index, $k$ is the lower limit, $m$ is the upper limit, and $a_i$ is the $i$-th term in the sequence.

*Notation:* \sum_{i=k}^{m} a_i

1. Constant multiple rule: $\sum_{i=1}^{n} c a_i = c \sum_{i=1}^{n} a_i$ for any constant $c$ independent of $i$
2. Sum rule: $\sum_{i=1}^{n} (a_i + b_i) = \sum_{i=1}^{n} a_i + \sum_{i=1}^{n} b_i$
3. Sum of a constant: $\sum_{i=1}^{n} c = n c$
4. Common power sums: $\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$, $\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}$

These properties let you break complicated sums into simple solvable parts, which is necessary when working with $n$ approaching infinity, where adding individual terms is impossible.

**Worked example:** Simplify $\sum_{i=1}^{n} \frac{2}{n} \left( \left(1 + \frac{2i}{n}\right)^2 - 1 \right)$ to an expression with no remaining sigma notation.

1. Expand the squared term inside the sum:

   $$\left(1 + \frac{2i}{n}\right)^2 - 1 = 1 + \frac{4i}{n} + \frac{4i^2}{n^2} - 1 = \frac{4i}{n} + \frac{4i^2}{n^2}$$
2. Pull the constant factor $\frac{2}{n}$ out of the sigma using the constant multiple rule:

   $$\frac{2}{n} \sum_{i=1}^{n} \left( \frac{4i}{n} + \frac{4i^2}{n^2} \right)$$
3. Split the sum and pull out all remaining constants (terms without $i$):

   $$\frac{2}{n} \left( \frac{4}{n} \sum_{i=1}^{n} i + \frac{4}{n^2} \sum_{i=1}^{n} i^2 \right)$$
4. Substitute the power sum formulas and simplify:

   $$\frac{2}{n} \left( \frac{4}{n} \cdot \frac{n(n+1)}{2} + \frac{4}{n^2} \cdot \frac{n(n+1)(2n+1)}{6} \right) = \frac{4(n+1)}{n} + \frac{4(n+1)(2n+1)}{3n^2}$$
5. This is a fully simplified expression with no remaining sigma notation.

> **Exam tip:** If a question asks you to take the limit of a sigma expression, you never need to add every term from $i=1$ to $n$ manually. Always use summation properties to group constants and substitute power sums first.

## Approximating Net Area with Riemann Sums

A Riemann sum approximates the net area between a continuous function $f(x)$ and the x-axis over a closed interval $[a, b]$. To construct a Riemann sum with equal-width subintervals: split $[a,b]$ into $n$ subintervals, pick a sample point in each subinterval, then calculate and sum the area of each rectangle.

**Riemann Sum** — Approximation of net area over $[a,b]$, where $\Delta x = \frac{b-a}{n}$ is the width of each subinterval, and $x_i^*$ is the sample point for the $i$-th subinterval.

*Notation:* \sum_{i=1}^n f(x_i^*) \Delta x

- **Left Riemann sum**: $x_i^*$ is the left endpoint of each subinterval
- **Right Riemann sum**: $x_i^*$ is the right endpoint of each subinterval
- **Midpoint Riemann sum**: $x_i^*$ is the midpoint of each subinterval

A key property: Riemann sums calculate **net area**, which equals the area of the function above the x-axis minus the area of the function below the x-axis. Rectangles where $f(x_i^*)<0$ contribute a negative value to the total sum.

**Worked example:** Approximate the net area of $f(x) = x^3 - 2x$ over $[0, 4]$ using $n=2$ equal subintervals and a right Riemann sum.

1. Calculate the width of each subinterval:

   $$\Delta x = \frac{4 - 0}{2} = 2, \quad \text{subintervals: } [0, 2], [2, 4]$$
2. For a right Riemann sum, sample points are the right endpoints of each subinterval: $x_1^* = 2$, $x_2^* = 4$
3. Evaluate $f(x)$ at each sample point:

   $$f(2) = 2^3 - 2(2) = 4, \quad f(4) = 4^3 - 2(4) = 56$$
4. Calculate the total sum:

   $$\text{Right Riemann Sum} = 4(2) + 56(2) = 120$$

> **Exam tip:** When given a table of values for $f(x)$ (a common AP question), label all subinterval endpoints first before picking sample points, to avoid mixing up left and right endpoints.

## Definite Integral Notation as a Limit of Riemann Sums

To get the exact net area under $f(x)$ over $[a,b]$, we take the limit of the Riemann sum as $n \to \infty$, which makes $\Delta x \to 0$. This limit is defined as the definite integral of $f(x)$ from $a$ to $b$:

$$\int_{a}^{b} f(x) dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i^*) \Delta x$$

In this notation: $\int$ is the integral sign (from "sum"), $a$ is the lower limit of integration, $b$ is the upper limit, $f(x)$ is the integrand, and $dx$ comes from $\Delta x$, representing the infinitesimal width of each subinterval. The most common AP skill here is converting a limit of a Riemann sum to a definite integral, which follows 3 steps: (1) Identify $\Delta x = \frac{c}{n}$, so $b-a = c$; (2) Match $x_i^* = a + i\Delta x$ to find the lower bound $a$; (3) Calculate $b = a + c$ and write $\int_a^b f(x) dx$.

**Worked example:** Write the definite integral equivalent to $\lim_{n \to \infty} \sum_{i=1}^{n} \left( 3 + \frac{4i}{n} \right)^3 \cdot \frac{4}{n}$.

1. Identify $\Delta x$: the term multiplied by $1/n$ is $\Delta x$, so $\Delta x = \frac{4}{n}$, which means $b-a = 4$
2. Match $x_i^* = 3 + \frac{4i}{n} = a + i\Delta x$, so the lower bound $a = 3$
3. Calculate the upper bound: $b = a + (b-a) = 3 + 4 = 7$
4. The integrand $f(x) = x^3$, so the definite integral is:

   $$\int_{3}^{7} x^3 dx$$

**Check your understanding**

Which of the following definite integrals is equivalent to $\lim_{n \to \infty} \sum_{i=1}^{n} \sqrt{1 + \left(1 + \frac{2i}{n}\right)} \cdot \frac{2}{n}$?

1. 

   - A) $\int_1^2 \sqrt{1+x} dx$
   - B) $\int_0^2 \sqrt{1+x} dx$
   - C) $\int_1^3 \sqrt{1+x} dx$
   - D) $\int_1^3 \sqrt{1+(1+x)} dx$

   *Answer:* C) $\int_1^3 \sqrt{1+x} dx$

   *Why:* Correct: $\Delta x = 2/n$ so $b-a=2$, $a=1$, $b=3$, and the integrand is $\sqrt{1+x}$.

> **Exam tip:** Never assume the lower bound of integration is 0 just because the sum starts at $i=1$. Many AP trap questions use non-zero lower bounds to test your ability to match $x_i^*$ to $a + i\Delta x$.

## AP-Style Worked Practice Problems

**Worked example:** Let $f(x) = \cos(x)$ over the interval $[0, \pi]$. (a) Calculate the left Riemann sum for $f(x)$ over $[0, \pi]$ with $n=4$ equal subintervals. Round your answer to 3 decimal places. (b) Is your answer from (a) an overestimate or an underestimate of the actual definite integral of $f(x)$ from $0$ to $\pi$? Justify your answer. (c) Write the limit of the right Riemann sum for $f(x)$ over $[0, \pi]$ as $n \to \infty$ in definite integral notation.

1. Part (a): Calculate subinterval width:

   $$\Delta x = \frac{\pi - 0}{4} = \frac{\pi}{4} \approx 0.7854$$
2. Subinterval endpoints are $0, \frac{\pi}{4}, \frac{\pi}{2}, \frac{3\pi}{4}, \pi$. Left sample points are the left endpoints of each subinterval.
3. Evaluate $f$ at each sample point and sum:

   $$(1 + 0.7071 + 0 - 0.7071)\left(\frac{\pi}{4}\right) = \frac{\pi}{4} \approx 0.785$$
4. Part (b): $f(x) = \cos(x)$ is decreasing over $[0, \pi]$, since $f'(x) = -\sin(x) < 0$ for $0 < x < \pi$. For a decreasing function, left endpoints are the highest point on each subinterval, so all left rectangles extend above the curve. This means the left Riemann sum is an overestimate.
5. Part (c): By definition, the limit of the right Riemann sum as $n \to \infty$ is the definite integral:

   $$\int_{0}^{\pi} \cos(x) dx$$

**Worked example:** A bakery tracks the rate of cookie production $r(t) = -0.1t^2 + 0.6t + 2$ hundred cookies per hour over an 8-hour workday ($0 \leq t \leq 8$ hours). Use a midpoint Riemann sum with $n=4$ equal subintervals to approximate the total number of cookies produced over the day. Include units in your answer.

1. Calculate the width of each subinterval:

   $$\Delta t = \frac{8 - 0}{4} = 2 \text{ hours}$$
2. Subintervals are $[0,2], [2,4], [4,6], [6,8]$, so midpoints are $t=1, 3, 5, 7$.
3. Evaluate $r(t)$ at each midpoint: $r(1)=2.5$, $r(3)=2.9$, $r(5)=2.5$, $r(7)=1.3$ (all in hundreds of cookies per hour).
4. Calculate the total sum:

   $$(2.5 + 2.9 + 2.5 + 1.3)(2) = 18.4 \text{ hundred cookies}$$
5. Convert to total cookies: $18.4 \times 100 = 1840$ total cookies.

## Common pitfalls

- **Wrong:** Converting $\lim_{n \to \infty} \sum_{i=1}^n \left(1 + \frac{2i}{n}\right)^2 \cdot \frac{1}{n}$ to $\int_1^3 x^2 dx$, claiming $b-a=2$ because $x_i^* = 1 + 2i/n$
  - Why it fails: Confusing the coefficient of $i/n$ in $x_i^*$ with $\Delta x$; the term multiplied by $1/n$ outside the function is always $\Delta x$
  - Correct: Always pull out the term with $1/n$ as a factor first to find $\Delta x = c/n$, so $b-a = c$, before solving for $a$
- **Wrong:** For an increasing function, claiming a left Riemann sum overestimates the area
  - Why it fails: Memorizing over/under estimates incorrectly instead of reasoning from the function's shape
  - Correct: Sketch a quick graph of the function over the interval to see if left/right rectangles extend above or below the curve, to get over/under estimates right
- **Wrong:** Calculating a midpoint Riemann sum for $n=3$ over $[0, 6]$ and using sample points at $x=1, 2, 3$
  - Why it fails: Forgetting that subintervals are $[0,2], [2,4], [4,6]$, so midpoints are at $1, 3, 5$, not sequential integers starting at 1
  - Correct: After listing all subinterval endpoints, calculate the midpoint as the average of the two endpoints for each interval before evaluating $f$
- **Wrong:** Pulling a term with the summation index $i$ out of the sigma, e.g. $\sum_{i=1}^n \frac{3i}{n} = \frac{3i}{n} \sum_{i=1}^n 1$
  - Why it fails: Confusing terms that depend on $i$ (which change for each term) with constants that do not depend on $i$
  - Correct: Only pull terms that do not contain the summation index $i$ out of the sigma; leave all terms with $i$ inside the sum
- **Wrong:** When asked for the total geometric area of a function that is negative over $[a,b]$, writing the positive Riemann sum value directly from the calculation
  - Why it fails: Forgetting that Riemann sums calculate net area, not total geometric area
  - Correct: If asked for total area of a function below the x-axis, add a negative sign to the Riemann sum to get the positive total area

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Sum of a constant | $\sum_{i=1}^n c = nc$ | $c$ is constant independent of $i$ |
| Constant multiple rule | $\sum_{i=1}^n c a_i = c \sum_{i=1}^n a_i$ | Only pull constants without $i$ out of the sum |
| Equal subinterval width | $\Delta x = \frac{b - a}{n}$ | For $n$ equal subintervals over $[a, b]$ |
| General Riemann Sum | $\sum_{i=1}^n f(x_i^*) \Delta x$ | Approximates net area; negative contributions for $f<0$ |
| Definite Integral as Limit | $\int_a^b f(x) dx = \lim_{n \to \infty} \sum_{i=1}^n f(x_i^*) \Delta x$ | Exact net area of $f(x)$ over $[a, b]$ |
| Left Riemann sample point | $x_i^* = a + (i-1)\Delta x$ | First sample point is always lower bound $a$ |
| Right Riemann sample point | $x_i^* = a + i\Delta x$ | Last sample point is always upper bound $b$ |
| Midpoint Riemann sample point | $x_i^* = \frac{x_{i-1} + x_i}{2}$ | Typically more accurate than left/right sums |

## What's next

This topic is the foundational building block for all of integration, so mastering it is non-negotiable for the rest of the AP Calculus AB course. Next, you will learn the Fundamental Theorem of Calculus, which connects Riemann sums and definite integral notation to antiderivatives, letting you calculate exact values of definite integrals without taking limits of infinite sums. Without understanding how Riemann sums become definite integrals, you will struggle to interpret what integrals mean in context, and will make frequent errors setting up integrals for area, accumulated change, and other application problems. This topic also feeds into all later integration topics, from substitution to applications of integration.

- [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/)
- [Properties of Definite Integrals](https://www.owlsprep.com/study/ap-calculus-ab-u6-properties-of-definite-integrals/)

---

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-riemann-sums-summation-notation-definite/
