AP Calculus AB • Integration and Accumulation of Change

Riemann Sums, Summation Notation, and Definite Integral Notation

Bridging finite rectangular approximations to the exact area under a curve through the language of limits.

AP Calculus AB illustration with a smooth curve, infinity sign, and measuring ruler
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

The problem of finding the area enclosed by a curved boundary is one of the oldest in mathematics. Ancient Greek geometers developed the method of exhaustion, in which a region was filled with ever-thinner polygons whose total area converged to the true value. This core idea—approximate, refine, and take a limit—reappears in modern calculus as the Riemann sum. Understanding how finite sums of rectangular areas become exact integrals is the conceptual gateway to every application of integration, from computing displacement to modeling accumulated quantities in science and engineering.

~250 BCE • Archimedes' Method of Exhaustion

Archimedes approximated the area under a parabola by inscribing and circumscribing polygons, proving the area equals 4/3 the inscribed triangle—an early precursor to integration.

1665–1676 • Newton & Leibniz Develop Calculus

Isaac Newton and Gottfried Wilhelm Leibniz independently formalized the relationship between differentiation and area accumulation, introducing the integral sign ∫ (Leibniz, 1675) as an elongated S for "summa."

1823 • Cauchy's Rigorous Integral

Augustin-Louis Cauchy defined the integral of a continuous function as the limit of sums of the form Σ f(xᵢ)Δx, laying rigorous groundwork for the modern definition.

1854 • Riemann's Generalization

Bernhard Riemann extended Cauchy's approach to broader classes of functions by allowing arbitrary sample points within each subinterval, creating what we now call the Riemann sum.

The central question this lesson addresses is deceptively simple: How can we compute the exact area between the graph of a function and the x-axis over a closed interval? The answer requires three interconnected tools—Riemann sums for the approximation, summation notation for compactly expressing those sums, and definite integral notation for capturing the limiting value.

SECTION 2

Core Principles & Definitions

Before diving into formulas, it is essential to internalize the conceptual architecture that connects Riemann sums to the definite integral. The entire framework rests on partitioning an interval, sampling function values, summing rectangular areas, and refining until the approximation becomes exact.

1

Partition the Interval

Divide [a, b] into n subintervals of width Δx = (b − a)/n (for a regular partition). Each subinterval is [xᵢ₋₁, xᵢ].
2

Choose Sample Points

Within each subinterval, select a representative point xᵢ* at which to evaluate f. Common choices: left endpoint, right endpoint, or midpoint.
3

Form the Riemann Sum

Compute Σ f(xᵢ*)Δx from i = 1 to n. Each term represents the signed area of one rectangle: height f(xᵢ*) times width Δx.
4

Take the Limit

As n → ∞ (and Δx → 0), the Riemann sum converges to the definite integral ∫ₐᵇ f(x) dx, giving the exact net signed area under the curve.
✦

KEY TAKEAWAY

Think of a Riemann sum like measuring the water volume in an irregular swimming pool by dropping in uniform columns of water (rectangles). With only a few thick columns the fit is rough, but as you use thousands of hair-thin columns, the water fills every contour perfectly. The definite integral is the exact volume you obtain in the limit of infinitely many infinitesimally thin columns.

SECTION 3

Visualizing Riemann Sums

The diagram below illustrates a right Riemann sum for f(x) = x² + 1 on the interval [0, 3] using n = 6 subintervals. Each rectangle's height is determined by the function value at the right endpoint of its subinterval, and its width is Δx = 0.5. Observe how some rectangles overshoot and others undershoot the curve—these errors diminish as n increases.

Right Riemann Sum: f(x) = x² + 1 on [0, 3], n = 602.557.510f(x)0.51.01.52.02.53.0xy
Six rectangles approximate the area under f(x) = x² + 1 (pink curve). Each rectangle's right edge touches the curve, which is why this is a right Riemann sum. Notice the gap between the rectangles and the curve—this gap shrinks as n grows.

When the function is increasing on the interval, the right Riemann sum overestimates the true area because each rectangle pokes above the curve on its left side. Conversely, a left Riemann sum would underestimate the area in that same scenario. The midpoint Riemann sum often provides a more balanced approximation because errors above and below the curve partially cancel. Regardless of the choice of sample point, all Riemann sums converge to the same limit for a continuous function on a closed interval—this limit is the definite integral.

SECTION 4

Mathematical Framework

Summation Notation

Before writing a Riemann sum compactly, you need fluency with sigma notation. The symbol Σ (capital Greek sigma) represents repeated addition. The expression Σ_{i=1}^{n} aᵢ means a₁ + a₂ + ⋯ + aₙ. The variable i is the index of summation, the value below Σ is the starting index, and the value above is the ending index.

SUMMATION NOTATION

Σi=1nai=a1+a2+a3+⋯+anΣ_{i=1}^{n} aᵢ = a₁ + a₂ + a₃ + ⋯ + aₙ

i = index of summation; n = number of terms; aᵢ = the general term depending on i.

Riemann Sum Formula

For a function f continuous on [a, b], partition the interval into n equal subintervals each of width Δx. Then the general Riemann sum is written as follows.

RIEMANN SUM

Rn=Σi=1nf(xi∗)⋅ΔxRₙ = Σ_{i=1}^{n} f(xᵢ*) · Δx

Δx = (b − a)/n; xᵢ* is the sample point in the i-th subinterval [xᵢ₋₁, xᵢ].

💡

Sample Point Choices

Left endpoint: xᵢ* = a + (i − 1)Δx. Right endpoint: xᵢ* = a + iΔx. Midpoint: xᵢ* = a + (i − ½)Δx. On the AP exam, the prompt will specify which to use—read carefully.

Definite Integral as a Limit

DEFINITE INTEGRAL

∫abf(x)dx=limn→∞Σi=1nf(xi∗)⋅Δx∫ₐᵇ f(x) dx = lim_{n→∞} Σ_{i=1}^{n} f(xᵢ*) · Δx

a = lower limit of integration; b = upper limit; f(x) = integrand; dx = variable of integration. The limit exists for all continuous f on [a, b].

The notation ∫ₐᵇ f(x) dx encodes every piece of information: the elongated S (∫) signals a sum; a and b delimit the interval; f(x) is the integrand whose values become rectangle heights; and dx reminds us of the infinitesimal width that replaced Δx in the limit. The definite integral yields a number (the net signed area), not a function.

SECTION 5

Left, Right, and Midpoint Riemann Sums Compared

The diagram below places all three standard Riemann sum types side by side for f(x) = √x on [1, 5] with n = 4. Comparing the three approximations reveals how the choice of sample point affects accuracy and whether the estimate overshoots or undershoots.

Comparing Left, Right, and Midpoint Sums for f(x) = √x on [1, 5], n = 4LEFT SUM12345≈ 6.146RIGHT SUM12345≈ 7.382MIDPOINT SUM12345≈ 6.730Exact value: ∫₁⁵ √x dx = (2/3)(5√5 − 1) ≈ 6.787
All three sums use n = 4 rectangles for f(x) = √x on [1, 5]. The left sum (≈ 6.146) underestimates because √x is increasing. The right sum (≈ 7.382) overestimates. The midpoint sum (≈ 6.730) sits closest to the exact value ≈ 6.787.
TypeSample Point xᵢ*Over / Under for Increasing fOver / Under for Decreasing f
Lefta + (i − 1)ΔxUnderestimateOverestimate
Righta + iΔxOverestimateUnderestimate
Midpointa + (i − ½)ΔxCloser to exactCloser to exact

Behavior of standard Riemann sum types for monotonic functions

SECTION 6

Worked Example

Compute the right Riemann sum for f(x) = 3x − 2 on [1, 4] using n = 6 subintervals, then express the exact area as a definite integral and evaluate it.

Right Riemann Sum and Definite Integral for f(x) = 3x − 2

  1. 1

    Step 1 — Determine Δx

    Δx = (b − a)/n = (4 − 1)/6 = 3/6 = 0.5.
    Δx = 0.5
  2. 2

    Step 2 — Identify the right endpoints

    For a right Riemann sum, xᵢ* = a + iΔx. So x₁ = 1.5, x₂ = 2.0, x₃ = 2.5, x₄ = 3.0, x₅ = 3.5, x₆ = 4.0.
  3. 3

    Step 3 — Evaluate f at each right endpoint

    f(1.5) = 2.5, f(2.0) = 4.0, f(2.5) = 5.5, f(3.0) = 7.0, f(3.5) = 8.5, f(4.0) = 10.0.
  4. 4

    Step 4 — Compute the Riemann sum

    R₆ = Σ_{i=1}^{6} f(xᵢ) · Δx = 0.5 × (2.5 + 4.0 + 5.5 + 7.0 + 8.5 + 10.0) = 0.5 × 37.5 = 18.75.
    R₆ = 18.75
  5. 5

    Step 5 — Write the definite integral

    The exact area is lim⁡n→∞\lim_{n→∞} Σ_{i=1}^{n} f(xᵢ*)Δx = ∫₁⁴ (3x − 2) dx.
  6. 6

    Step 6 — Evaluate the definite integral

    ∫₁⁴ (3x − 2) dx = [(3/2)x² − 2x] from 1 to 4 = [(3/2)(16) − 8] − [(3/2)(1) − 2] = [24 − 8] − [1.5 − 2] = 16 − (−0.5) = 16.5.
    ∫₁⁴ (3x − 2) dx = 16.5

The right Riemann sum of 18.75 overestimates the exact value of 16.5 because f(x) = 3x − 2 is increasing on [1, 4]. As n grows, the Riemann sum converges to 16.5.

SECTION 7

Strengths & Limitations of Riemann Sum Approximations

MethodStrengthsLimitations
Left / Right Riemann SumEasy to compute; provides guaranteed over- or underestimate for monotonic functions, useful for bounding the true integral.Slowest convergence; large error unless n is very big; poor for rapidly changing functions.
Midpoint Riemann SumBetter accuracy per rectangle; error tends to cancel on curves that are concave up in some regions and concave down in others.Harder to determine over/underestimate without concavity analysis; still O(1/n²) error.
Trapezoidal SumUses trapezoids instead of rectangles; averages left and right sums; same O(1/n²) error as midpoint.Not technically a Riemann sum; slightly more computation per subinterval.

Comparison of common numerical approximation methods encountered on the AP Calculus AB exam

✦

KEY TAKEAWAY

On the AP exam, Riemann sums typically appear in two flavors: (1) computing a numerical approximation from a table of values, and (2) writing or interpreting a limit of a Riemann sum as a definite integral. Master both, because a table-based question may not give you a formula for f, while a limit-expression question tests whether you can reverse-engineer the integral's bounds, integrand, and variable.

SECTION 8

Connection to the Fundamental Theorem of Calculus

The Riemann sum definition of the definite integral is conceptually powerful but computationally impractical for most functions—who wants to evaluate a limit of increasingly complex sums every time? The Fundamental Theorem of Calculus (FTC) bridges the gap by connecting integration and antidifferentiation. Part 2 of the FTC states that if F is any antiderivative of f on [a, b], then ∫ₐᵇ f(x) dx = F(b) − F(a). This means the limit of the Riemann sum equals a simple subtraction, which is vastly more efficient.

Riemann Sum / Limit DefinitionFTC Evaluation
∫ₐᵇ f(x) dx = lim⁡n→∞\lim_{n→∞} Σ f(xᵢ*)Δx∫ₐᵇ f(x) dx = F(b) − F(a)
Requires partitioning, summing, and taking a limitRequires finding one antiderivative F
Provides the theoretical foundation and definitionProvides a practical computation tool
Works for any bounded function on [a, b] (if the limit exists)Works when an antiderivative can be found in closed form

Riemann sum definition vs. FTC evaluation

Even after learning the FTC, Riemann sums remain essential in AP Calculus AB. They appear whenever data is given in a table rather than as a formula, and they serve as the conceptual basis for accumulation functions and applications like total distance traveled. In AP Calculus BC and beyond, Riemann sums generalize to double and triple integrals, line integrals, and probability distributions—making fluency with the summation-to-integral transition a lasting asset.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Which of the following statements best explains why a right Riemann sum overestimates ∫ₐᵇ f(x) dx when f is continuous and strictly increasing on [a, b]?
  • A. The right endpoint of each subinterval gives the minimum value of f on that subinterval, so every rectangle is shorter than needed.
  • B. The right endpoint of each subinterval gives the maximum value of f on that subinterval, so every rectangle extends above the curve on that subinterval.
  • C. Right Riemann sums always overestimate regardless of whether f is increasing or decreasing.
  • D. The rectangles are wider than Δx when using right endpoints, which adds extra area.
  • E. The right Riemann sum uses more subintervals than the left Riemann sum, which inflates the total.
Show answer (B)
B is correct. When f is strictly increasing, the right endpoint of any subinterval [xᵢ₋₁, xᵢ] yields f(xᵢ), which is the maximum value of f on that subinterval. Thus each rectangle's height exceeds every other function value on the subinterval, making the rectangle area larger than the actual area under the curve there. A is wrong because it describes the left endpoint behavior for increasing f (minimum, not maximum). C is wrong because for a decreasing function, the right endpoint gives the minimum, producing an underestimate. D is wrong because all rectangles have the same width Δx regardless of sample point choice. E is wrong because both left and right sums use the same number n of subintervals.

Question 2: BASIC CALCULATION

Using a left Riemann sum with n = 4 equal subintervals, approximate ∫₀² (x² + 1) dx.
  • A. 3.75
  • B. 4.75
  • C. 5.75
  • D. 3.25
  • E. 4.25
Show answer (A)
A is correct. Δx = (2 − 0)/4 = 0.5. Left endpoints: x₀ = 0, x₁ = 0.5, x₂ = 1.0, x₃ = 1.5. Evaluate: f(0) = 1, f(0.5) = 1.25, f(1) = 2, f(1.5) = 3.25. Sum = 0.5 × (1 + 1.25 + 2 + 3.25) = 0.5 × 7.5 = 3.75. B (4.75) would result from a right Riemann sum since f(2) = 5 replaces f(0) = 1 in the calculation. C (5.75) is too large—it may come from using Δx = 1 or a computational error. D (3.25) likely omits the constant term. E (4.25) equals the midpoint sum, not the left sum.

Question 3: INTERMEDIATE

Express the limit lim⁡n→∞\lim_{n→∞} Σ_{i=1}^{n} (3 + 5i/n)⁴ · (5/n) as a definite integral.
  • A. ∫₀⁵ (3 + x)⁴ dx
  • B. ∫₃⁸ x⁴ dx
  • C. ∫₀⁵ x⁴ dx
  • D. ∫₃⁵ x⁴ dx
  • E. ∫₃⁸ (3 + x)⁴ dx
Show answer (B)
B is correct. Identify the structure: Δx = 5/n so b − a = 5. The sample point is xᵢ = 3 + 5i/n = a + iΔx, which means a = 3 and b = 3 + 5 = 8. The integrand evaluated at xᵢ is (xᵢ)⁴, so f(x) = x⁴. Therefore the integral is ∫₃⁸ x⁴ dx. A is wrong because it uses a = 0 and b = 5, treating the 3 as part of the integrand rather than the lower bound. C is wrong for both the bounds and integrand. D has the wrong upper bound (5 instead of 8). E compounds errors by embedding 3 + x inside the integrand while also starting at 3.

Question 4: APPLIED

4 pts
A car's velocity v(t), in feet per second, is recorded at 3-second intervals over 0 ≤ t ≤ 12 seconds: | t (s) | 0 | 3 | 6 | 9 | 12 | |-------|---|---|---|---|----| | v(t) (ft/s) | 0 | 15 | 28 | 34 | 40 | (a) Use a right Riemann sum with 4 subintervals to approximate the total distance traveled. (b) Is this approximation an overestimate or underestimate of the true distance? Justify your answer. (c) Write a definite integral that represents the exact distance.
Show answer
Part (a) — 2 points: Δt = 3. Right endpoints: t = 3, 6, 9, 12. R₄ = 3 × [v(3) + v(6) + v(9) + v(12)] = 3 × (15 + 28 + 34 + 40) = 3 × 117 = 351 feet. [1 pt for correct setup, 1 pt for correct numerical answer.] Part (b) — 1 point: The velocity appears to be increasing (each successive value is larger), so the right Riemann sum is an overestimate. [1 pt for correct conclusion with justification referencing increasing velocity.] Part (c) — 1 point: The exact distance is ∫₀¹² v(t) dt. [1 pt for correct integral with proper limits and integrand.] Note: since v(t) ≥ 0 on the interval, distance equals the definite integral directly.

Question 5: CRITICAL THINKING

3 pts
Let f be a continuous function on [2, 6]. Suppose the left Riemann sum with n equal subintervals gives Lₙ and the right Riemann sum gives Rₙ. (a) Show that Rₙ − Lₙ = (Δx)[f(6) − f(2)] for any positive integer n. (b) Use part (a) to explain why lim⁡n→∞\lim_{n→∞} Rₙ = lim⁡n→∞\lim_{n→∞} Lₙ. (c) If f is increasing and concave down on [2, 6], determine whether the midpoint Riemann sum is an overestimate or underestimate. Justify your reasoning.
Show answer
Part (a) — 1 point: Rₙ = Δx · [f(x₁) + f(x₂) + ⋯ + f(xₙ)] and Lₙ = Δx · [f(x₀) + f(x₁) + ⋯ + f(xₙ₋₁)]. Subtracting: Rₙ − Lₙ = Δx · [f(xₙ) − f(x₀)] = Δx · [f(6) − f(2)] because most terms cancel telescopically. [1 pt for valid algebraic demonstration.] Part (b) — 1 point: Since f(6) − f(2) is a fixed constant and Δx = 4/n → 0 as n → ∞, we have Rₙ − Lₙ = (4/n)[f(6) − f(2)] → 0. Therefore lim Rₙ = lim Lₙ, confirming that both sums converge to ∫₂⁶ f(x) dx. [1 pt for citing Δx → 0 and concluding the limits are equal.] Part (c) — 1 point: When f is concave down, the graph of f lies above any secant line on each subinterval, and the midpoint tangent line lies above the graph. Because the midpoint rectangle's height equals f at the midpoint, and concave-down curvature means the actual area under the curve on each subinterval is less than the rectangle area (the tangent line overestimates the function on either side of the midpoint), the midpoint sum is an overestimate. [1 pt for correct conclusion with concavity-based justification.]

SUMMARY

Lesson Summary

Summary

A Riemann sum approximates the net signed area under a curve by partitioning the interval [a, b] into n subintervals of width Δx = (b − a)/n, evaluating the function at chosen sample points (left, right, or midpoint), and summing the resulting rectangle areas using summation notation Σ. As n → ∞, this sum converges to the definite integral ∫ₐᵇ f(x) dx, which gives the exact net area.

For monotonic functions, left and right sums provide guaranteed over- or underestimates, while midpoint sums generally yield closer approximations. The Fundamental Theorem of Calculus later transforms the limit of a Riemann sum into a practical computation using antiderivatives: ∫ₐᵇ f(x) dx = F(b) − F(a). Mastering Riemann sums is essential not only for evaluating integrals from first principles but also for interpreting table-based data and accumulation problems throughout the AP Calculus AB exam.

Varsity Tutors • AP Calculus AB • Riemann Sums, Summation Notation, and Definite Integral Notation