AP CALCULUS AB • INTEGRATION AND ACCUMULATION OF CHANGE

Approximating Areas With Riemann Sums

Partition, evaluate, sum — the foundational strategy for measuring area under any curve.

Historical Context & Motivation

Long before the formal machinery of calculus existed, mathematicians grappled with a deceptively simple question: how do you measure the area of a region bounded by a curve? For rectangles and triangles, area formulas suffice, but the moment a boundary curves, those elementary formulas break down. The ancient Greeks recognized that one could approximate a curved region by filling it with many small polygons, and this idea — exhaustion — planted the seed for what we now call Riemann sums. Over two millennia, the strategy evolved from geometric intuition into the rigorous analytic framework that underpins the definite integral.

~250 BCE
Archimedes and the Method of Exhaustion
Archimedes approximated the area of a parabolic segment by inscribing and circumscribing sequences of triangles, effectively computing what we would recognize as upper and lower sums.
1665
Newton's Inverse-Tangent Insight
Isaac Newton realized that area accumulation and differentiation are inverse processes, foreshadowing the Fundamental Theorem of Calculus and giving area problems a powerful new tool.
1684
Leibniz Publishes His Calculus
Gottfried Wilhelm Leibniz introduced the integral sign ∫ and formalized the idea of summing infinitesimally thin rectangles, making the notation we still use today.
1854
Riemann's Formal Definition
Bernhard Riemann provided the rigorous ε-δ definition of the integral as a limit of sums over partitions, establishing the conditions under which a function is integrable.

The central question that motivates this lesson is both practical and theoretical: given a continuous function f on a closed interval [a, b], how can we estimate the signed area between the graph of f and the x-axis before we have access to an antiderivative? Riemann sums provide the answer — and, more importantly, they reveal why the definite integral is defined as a limit of such sums.

Core Principles & Definitions

A Riemann sum approximates the definite integral of a function by partitioning the domain into subintervals, selecting a sample point in each subinterval, and summing the areas of the resulting rectangles. The accuracy of the approximation depends on how many subintervals you use and where you choose the sample points. Understanding the four foundational ideas below will allow you to set up, compute, and interpret any Riemann sum the AP exam can throw at you.

1

Partition the Interval

Divide [a, b] into n subintervals. When every subinterval has the same width Δx = (b − a)/n, the partition is called regular. AP Calculus AB almost always uses regular partitions.
2

Choose Sample Points

Within each subinterval, select a point at which to evaluate f. Common choices are the left endpoint, right endpoint, or midpoint of the subinterval.
3

Form the Rectangles and Sum

Each rectangle has width Δx and height f(x*ᵢ). The Riemann sum is the total: Σ f(x*ᵢ) Δx. The sign of f(x*ᵢ) determines whether the rectangle contributes positive or negative area.
4

Take the Limit

As n → ∞ (equivalently, Δx → 0), the Riemann sum converges to the definite integral ∫ₐᵇ f(x) dx, provided f is integrable on [a, b].
KEY TAKEAWAY
Think of a Riemann sum like estimating the total rainfall over a field by placing buckets at evenly spaced points and measuring the depth in each bucket. Each bucket captures a sample of the rainfall, and multiplying the depth by the area the bucket represents gives a local volume. The more buckets you deploy, the closer your total estimate gets to the actual rainfall — just as increasing the number of subintervals drives the Riemann sum toward the true integral.

Visual Explanation — Left, Right, and Midpoint Sums

The diagram below illustrates three common Riemann sum types applied to the same increasing function f(x) = x² + 1 on the interval [0, 3] with n = 3 subintervals. Observe how the choice of sample point within each subinterval changes the height of the rectangle and therefore the overall estimate.

Three Riemann sums for f(x) = x² + 1 on [0, 3] with n = 3. Left: heights evaluated at left endpoints (cyan). Right: heights evaluated at right endpoints (violet). Midpoint: heights evaluated at midpoints (emerald). Because f is increasing on this interval, the left sum underestimates and the right sum overestimates the true area.

Notice how the left Riemann sum (cyan) uses the leftmost value in each subinterval as the rectangle height. Because f(x) = x² + 1 is strictly increasing on [0, 3], every left-endpoint rectangle sits entirely below the curve, producing an underestimate. Conversely, the right Riemann sum (violet) overshoots the curve in each subinterval, yielding an overestimate. The midpoint sum (emerald) often provides a better approximation because its sample point lies near the center of each subinterval, partially canceling the over- and under-shooting that occurs at the two ends. These observations are not merely qualitative — on the AP exam, you will be asked whether a given Riemann sum is an over- or underestimate based on the concavity and monotonicity of the function.

Mathematical Framework

We now formalize the Riemann sum algebraically. Suppose f is defined on [a, b] and we create a regular partition of n equal subintervals. Let Δx denote the common width, and let x*ᵢ be the sample point in the i-th subinterval.

SUBINTERVAL WIDTH
Δx = (b − a) / n
where a and b are the endpoints of the interval and n is the number of subintervals.
GENERAL RIEMANN SUM
Sₙ = Σᵢ₌₁ⁿ f(x*ᵢ) · Δx
x*ᵢ is the sample point in the i-th subinterval; its specific value depends on the type of sum (left, right, or midpoint).

Sample-Point Formulas for a Regular Partition

LEFT RIEMANN SUM
Lₙ = Σᵢ₌₀ⁿ⁻¹ f(a + iΔx) · Δx
The sample point is the left endpoint of each subinterval: x*ᵢ = a + iΔx for i = 0, 1, …, n − 1.
RIGHT RIEMANN SUM
Rₙ = Σᵢ₌₁ⁿ f(a + iΔx) · Δx
The sample point is the right endpoint: x*ᵢ = a + iΔx for i = 1, 2, …, n.
MIDPOINT RIEMANN SUM
Mₙ = Σᵢ₌₁ⁿ f(a + (i − ½)Δx) · Δx
The sample point is the midpoint of each subinterval: x*ᵢ = a + (i − ½)Δx.

When f is continuous on [a, b], all three families of Riemann sums converge to the same limit as n → ∞. That common limit is the definite integral ∫ₐᵇ f(x) dx. The AP Calculus AB exam expects you to recognize and evaluate these sums for small n (typically n = 4 or n = 6), and also to connect the limit definition to the integral symbol itself.

The Trapezoidal Sum & Over/Underestimate Analysis

Beyond left, right, and midpoint sums, the AP Calculus AB curriculum also includes the trapezoidal sum. Instead of capping each subinterval with a horizontal line (a rectangle), you connect the function values at both endpoints to form a trapezoid. Algebraically, the trapezoidal sum is the average of the left and right Riemann sums: Tₙ = (Lₙ + Rₙ)/2. This often yields a more accurate approximation than either endpoint sum alone.

TRAPEZOIDAL SUM
Tₙ = (Δx / 2) [f(x₀) + 2f(x₁) + 2f(x₂) + … + 2f(xₙ₋₁) + f(xₙ)]
x₀ = a, xₙ = b, and xᵢ = a + iΔx. Note the pattern: first and last function values appear once; all interior values are doubled.
Left panel: when f is concave up (f″ > 0), the secant line connecting adjacent function values lies above the curve, so the trapezoidal sum overestimates the integral. Right panel: when f is concave down (f″ < 0), the secant line lies below the curve, producing an underestimate.

Over- and Underestimate Summary

Over/underestimate behavior based on monotonicity and concavity
Function BehaviorLeft SumRight SumTrapezoidal Sum
f increasing (f′ > 0)UnderestimateOverestimateDepends on concavity
f decreasing (f′ < 0)OverestimateUnderestimateDepends on concavity
f concave up (f″ > 0)Overestimate
f concave down (f″ < 0)Underestimate
💡 AP EXAM TIP
The AP free-response section frequently provides a table of function values (not a formula) and asks you to compute a specific Riemann sum or trapezoidal approximation. Practice extracting Δx from non-uniform subintervals — when the x-values in the table are not equally spaced, you must use the actual width of each subinterval rather than a single Δx.

Worked Example

Let f(x) = x² + 1. Use a right Riemann sum with n = 4 subintervals to approximate ∫₀⁴ (x² + 1) dx.

Right Riemann Sum — f(x) = x² + 1 on [0, 4], n = 4
1
Step 1 — Compute ΔxΔx = (b − a) / n = (4 − 0) / 4 = 1. Each subinterval has width 1, and the subintervals are [0, 1], [1, 2], [2, 3], [3, 4].
Δx = 1
2
Step 2 — Identify the sample pointsFor a right Riemann sum, the sample point in each subinterval is the right endpoint. The right endpoints are x₁ = 1, x₂ = 2, x₃ = 3, x₄ = 4.
Sample points: 1, 2, 3, 4
3
Step 3 — Evaluate f at each sample pointf(1) = 1² + 1 = 2; f(2) = 4 + 1 = 5; f(3) = 9 + 1 = 10; f(4) = 16 + 1 = 17.
f-values: 2, 5, 10, 17
4
Step 4 — Compute the Riemann sumR₄ = Σ f(xᵢ) · Δx = (2 + 5 + 10 + 17) × 1 = 34.
R₄ = 34
5
Step 5 — Interpret the resultThe exact value of ∫₀⁴ (x² + 1) dx = [x³/3 + x]₀⁴ = 64/3 + 4 = 76/3 ≈ 25.33. Our right Riemann sum of 34 is an overestimate because f(x) = x² + 1 is increasing on [0, 4], so right-endpoint rectangles extend above the curve. With more subintervals, the approximation would approach the exact value of 76/3.
Overestimate; exact value ≈ 25.33

Comparing Riemann Sum Methods

Different Riemann sum methods trade simplicity for accuracy. The table below compares the four methods you need for AP Calculus AB across several dimensions: ease of computation, typical accuracy for a given n, and the kind of error analysis the exam expects.

Comparison of the four Riemann sum methods tested on AP Calculus AB
MethodSample PointAccuracy (for same n)Ease of ComputationError Depends On
LeftLeft endpointLowVery easyMonotonicity (f′)
RightRight endpointLowVery easyMonotonicity (f′)
MidpointMidpointModerate–HighEasyConcavity (f″)
TrapezoidalBoth endpointsModerate–HighModerateConcavity (f″)
KEY TAKEAWAY
For the AP exam, the most common error is confusing which derivative property (monotonicity vs. concavity) determines the direction of the error. Remember this rule: left and right sums depend on the sign of f′ (is the function increasing or decreasing?), while trapezoidal and midpoint sums depend on the sign of f″ (is the function concave up or concave down?). If you can identify monotonicity and concavity from a table or graph, you can always determine whether a sum overestimates or underestimates.

From Riemann Sums to the Definite Integral

Riemann sums are not merely a computational trick — they are the definition of the definite integral. Understanding this connection is essential because the AP exam tests whether you can move fluidly between the limit-of-sums definition and the evaluation via antiderivatives guaranteed by the Fundamental Theorem of Calculus.

Riemann sums vs. the definite integral
Riemann Sum (Finite n)Definite Integral (n → ∞)
Sₙ = Σᵢ₌₁ⁿ f(x*ᵢ) Δx∫ₐᵇ f(x) dx = lim (n→∞) Σᵢ₌₁ⁿ f(x*ᵢ) Δx
Approximation — error depends on n and methodExact value — error is zero
Computed by arithmetic (or a calculator)Evaluated via antiderivatives: F(b) − F(a)
Works for table-valued or discrete dataRequires a continuous (or piecewise-continuous) formula

Looking ahead, the Fundamental Theorem of Calculus (FTC) bridges these two columns: it states that if F is an antiderivative of f on [a, b], then ∫ₐᵇ f(x) dx = F(b) − F(a). In essence, the FTC tells us we do not have to compute an infinite limit of Riemann sums every time — antidifferentiation provides an exact shortcut. However, Riemann sums remain indispensable in situations where no closed-form antiderivative exists (e.g., f(x) = e^(−x²)) or when data is given only as a table of values, which is a scenario that appears frequently in AP free-response questions.

Practice Problems

1
If f is a continuous, decreasing function on [2, 8], which of the following is true about the left Riemann sum L₃ and the right Riemann sum R₃, each using 3 equal subintervals?
2
Use a left Riemann sum with n = 4 equal subintervals to approximate ∫₁⁵ (3x − 2) dx.
3
The table below gives selected values of a continuous function g. | x | 0 | 3 | 7 | 10 | |-----|---|---|---|----| | g(x)| 4 | 6 | 5 | 8 | Using a trapezoidal sum with the three subintervals indicated by the table, what is the approximation of ∫₀¹⁰ g(x) dx?
PROBLEM 4APPLIED
A pump fills a tank, and the flow rate r(t) (in liters per minute) is recorded at the times shown. | t (min) | 0 | 2 | 4 | 6 | 8 | |---------|----|----|----|----|----| | r(t) | 5 | 8 | 12 | 9 | 6 | (a) Use a left Riemann sum with 4 equal subintervals to approximate the total volume of water pumped during 0 ≤ t ≤ 8. (b) Is this approximation an overestimate or an underestimate of the true volume? Justify your answer. (c) Use a trapezoidal sum with the 4 subintervals to obtain a different approximation of the total volume. (d) Explain why the trapezoidal sum might be more accurate than the left Riemann sum.
PROBLEM 5CRITICAL THINKING
Let f be a twice-differentiable function on [a, b] with f″(x) > 0 for all x in (a, b). The interval is divided into n equal subintervals of width Δx = (b − a)/n. (a) Using the relationship between concavity and tangent lines, explain why the midpoint Riemann sum Mₙ underestimates ∫ₐᵇ f(x) dx for any positive integer n. (b) Using the relationship between concavity and secant lines, explain why the trapezoidal sum Tₙ overestimates ∫ₐᵇ f(x) dx. (c) Which estimate — Mₙ or Tₙ — is closer to the exact value of ∫ₐᵇ f(x) dx? Use a geometric argument involving the tangent and secant lines to justify your answer.

Summary

A Riemann sum approximates the definite integral ∫ₐᵇ f(x) dx by partitioning [a, b] into n subintervals of width Δx = (b − a)/n, evaluating f at a sample point in each subinterval, and summing the products f(x*ᵢ) · Δx. The four primary methods — left, right, midpoint, and trapezoidal — differ only in where the sample point is chosen or how the subinterval area is computed.

Whether a Riemann sum is an overestimate or underestimate depends on the function's monotonicity (for left/right sums) or concavity (for trapezoidal/midpoint sums). As n → ∞, every Riemann sum converges to the exact value of the integral — the conceptual bridge to the Fundamental Theorem of Calculus. Master the arithmetic, understand the geometry, and you will handle any Riemann sum question the AP exam presents.

Varsity Tutors • AP Calculus AB • Approximating Areas With Riemann Sums