BUSINESS CALCULUS • INTEGRATION

Riemann Sums

Approximating the area under a curve by summing the areas of carefully constructed rectangles.

Historical Context & Motivation

The problem of computing areas enclosed by curves has occupied mathematicians for over two millennia. Long before the formal apparatus of calculus existed, scholars in the ancient world recognized that curved regions could be approximated by decomposing them into simpler shapes whose areas were already known. This fundamental insight — that the complex can be understood through an accumulation of the simple — lies at the heart of what we now call Riemann sums. In a business context, Riemann sums provide the conceptual machinery for computing total revenue from a marginal-revenue curve, total cost from a marginal-cost function, or accumulated profit over a continuous time interval. Understanding this approximation technique is essential before one can fully appreciate the power of the definite integral.

~250 BCE
Archimedes and the Method of Exhaustion
Archimedes of Syracuse used inscribed and circumscribed polygons to approximate the area of a parabolic segment, effectively bounding the true area from above and below — a precursor to upper and lower Riemann sums.
1660s
Newton and Leibniz Develop Calculus
Isaac Newton and Gottfried Wilhelm Leibniz independently formalized the relationship between differentiation and integration through the Fundamental Theorem of Calculus, giving area computations a powerful new framework.
1854
Riemann's Habilitation Lecture
Bernhard Riemann presented his rigorous definition of the integral in his habilitation thesis at Göttingen. By partitioning the domain into subintervals and evaluating sample points, he provided the first formal criteria for when a function is integrable.
1902
Lebesgue Extends the Integral
Henri Lebesgue generalized Riemann's approach by partitioning the range instead of the domain, creating an integral capable of handling a broader class of functions. Riemann's construction, however, remains the pedagogical standard for introducing integration.

The central question that Riemann sums address is deceptively simple: how do we assign a precise numerical value to the area between a curve y = f(x) and the x-axis over an interval [a, b]? When the boundary is a straight line or a standard geometric shape, elementary formulas suffice. But when the boundary is an arbitrary continuous function — such as a revenue curve that rises, peaks, and falls — no elementary formula applies. Riemann sums resolve this by replacing the curved boundary with a finite collection of rectangles, computing the total rectangular area, and then examining what happens as the rectangles become narrower and more numerous.

Core Principles & Definitions

Before constructing a Riemann sum, one must understand the four foundational elements that govern the approximation. Each element represents a choice made by the analyst, and different choices yield different approximations — yet all converge to the same value when the function is well-behaved (continuous) and the number of rectangles tends to infinity.

1

Partition of [a, b]

Divide the interval [a, b] into n subintervals using partition points a = x₀ < x₁ < x₂ < … < xₙ = b. The width of the k-th subinterval is Δxₖ = xₖ − xₖ₋₁. For a regular partition, all subintervals have equal width Δx = (b − a) / n.
2

Sample Points

Within each subinterval [xₖ₋₁, xₖ], choose a sample point xₖ* at which to evaluate the function. Common choices are the left endpoint, right endpoint, or midpoint. The function value f(xₖ*) determines the height of the rectangle.
3

Rectangle Construction

Each subinterval generates a rectangle with width Δxₖ and height f(xₖ*). The signed area of each rectangle is f(xₖ*) × Δxₖ, where regions below the x-axis contribute negative values.
4

Summation and Limit

Sum all rectangular areas to form the Riemann sum Sₙ = Σ f(xₖ*) Δxₖ. The definite integral is defined as the limit of Sₙ as n → ∞, provided the limit exists regardless of the sample-point choices.
KEY TAKEAWAY
Think of a Riemann sum like estimating the total revenue of a store that has a continuously changing hourly sales rate. If you check the sales rate at the beginning of each hour and multiply by one hour, you get an approximation. Check every half-hour and the estimate improves. Check every minute and it's better still. The definite integral is the idealized result you'd get if you could check at every single instant — infinitely many infinitesimally thin slices of revenue, summed perfectly.

Visual Explanation — Left, Right, and Midpoint Sums

The following diagram illustrates three common Riemann sum approximations for the function f(x) = −0.5x² + 4x on the interval [0, 6] using n = 6 subintervals. Observe how the choice of sample point — left endpoint, right endpoint, or midpoint — affects whether the rectangles overestimate or underestimate the true area under the curve.

Three Riemann sum approximations for f(x) = −0.5x² + 4x on [0, 6]. The left sum (cyan) uses the left endpoint of each subinterval, the right sum (pink) uses the right endpoint, and the midpoint sum (green) uses the center of each subinterval. On the increasing portion of the curve, left sums underestimate while right sums overestimate; the reverse holds on the decreasing portion.

Notice how the left Riemann sum evaluates the function at the left edge of each subinterval: the first rectangle has height f(0) = 0, the second has height f(1) = 3.5, and so on. Because the curve is increasing on [0, 4], the left-endpoint rectangles leave gaps above them, producing an underestimate. On the decreasing portion [4, 6], the left-endpoint heights exceed the curve, causing overestimation. The right Riemann sum exhibits the opposite behavior. The midpoint Riemann sum typically provides a more balanced approximation because overestimation on one side of the midpoint tends to cancel underestimation on the other. As n increases and the rectangles become thinner, all three methods converge to the exact integral value of 36.

Mathematical Framework

We now formalize the Riemann sum using sigma notation and establish the connection to the definite integral. The notation provides a compact way to express the sum of arbitrarily many rectangular areas, and the limit process reveals the exact value that the approximations approach.

SUBINTERVAL WIDTH (REGULAR PARTITION)
Δx = (b − a) / n
where a and b are the endpoints of the interval, and n is the number of subintervals. Each subinterval has identical width Δx.
GENERAL RIEMANN SUM
Sₙ = Σₖ₌₁ⁿ f(xₖ*) · Δx
where xₖ* is the sample point in the k-th subinterval. For a left sum, xₖ* = a + (k − 1)Δx. For a right sum, xₖ* = a + kΔx. For a midpoint sum, xₖ* = a + (k − 0.5)Δx.
DEFINITE INTEGRAL AS A LIMIT
∫ₐᵇ f(x) dx = lim(n→∞) Σₖ₌₁ⁿ f(xₖ*) · Δx
The definite integral equals the limit of the Riemann sum as the number of subintervals n → ∞. For any continuous function on [a, b], this limit exists and is independent of the choice of sample points — left, right, midpoint, or any other selection.
📐 Summation Formulas You'll Need
When computing Riemann sums analytically (without a calculator), these closed-form summation identities are indispensable: Σₖ₌₁ⁿ k = n(n + 1)/2, and Σₖ₌₁ⁿ k² = n(n + 1)(2n + 1)/6. These formulas allow you to convert a Riemann sum into a closed-form expression in n, after which you can take the limit as n → ∞.

Left vs. Right vs. Midpoint — A Detailed Comparison

The three standard Riemann sum methods differ in where they sample the function within each subinterval. This choice has significant consequences for accuracy and error behavior. The diagram below provides a convergence comparison, showing how the approximation error shrinks as the number of rectangles increases from n = 2 to n = 16 for the function f(x) = −0.5x² + 4x on [0, 6], whose exact integral is 36.

Convergence comparison: the dashed gold line marks the exact integral value of 36. The midpoint sum (green) converges fastest, hugging the exact value even at small n. The left (cyan) and right (pink) sums approach from opposite sides and converge more slowly.
Numerical comparison of Riemann sum approximations for f(x) = −0.5x² + 4x on [0, 6]
n (rectangles)Left SumRight SumMidpoint SumExact Integral
224.048.037.536
430.042.036.37536
833.039.036.09436
1634.537.536.02336

The table reveals an important pattern. For a function that is both increasing and decreasing on the interval (as our parabola is), the left and right sums do not consistently over- or underestimate; rather, they produce errors that partially cancel. However, the midpoint sum consistently delivers a much tighter approximation. Quantitatively, the error of the left and right sums is of order O(1/n), while the midpoint sum's error is O(1/n²). This means that doubling the number of rectangles roughly halves the error for left/right sums but reduces the midpoint error by a factor of four — a significant advantage when computational resources are limited.

Worked Example — Marginal Revenue Application

A company's marginal revenue function is given by MR(q) = 200 − 4q dollars per unit, where q represents units produced. We want to approximate the total revenue generated from producing units q = 0 to q = 10 using a right Riemann sum with n = 5 subintervals, and then verify by computing the exact integral.

Right Riemann Sum for Total Revenue
1
Step 1 — Determine the subinterval widthThe interval is [0, 10] and n = 5 subintervals. Therefore, Δq = (10 − 0) / 5 = 2 units. The partition points are q₀ = 0, q₁ = 2, q₂ = 4, q₃ = 6, q₄ = 8, q₅ = 10.
Δq = 2
2
Step 2 — Identify the sample pointsSince we are using a right Riemann sum, the sample point for each subinterval is the right endpoint: q₁* = 2, q₂* = 4, q₃* = 6, q₄* = 8, q₅* = 10.
Sample points: {2, 4, 6, 8, 10}
3
Step 3 — Evaluate the function at each sample pointMR(2) = 200 − 4(2) = 192. MR(4) = 200 − 4(4) = 184. MR(6) = 200 − 4(6) = 176. MR(8) = 200 − 4(8) = 168. MR(10) = 200 − 4(10) = 160.
Heights: {192, 184, 176, 168, 160}
4
Step 4 — Compute the Riemann sumS₅ = Σₖ₌₁⁵ MR(qₖ*) · Δq = (192 + 184 + 176 + 168 + 160) × 2 = 880 × 2 = $1,760.
Right Riemann Sum ≈ $1,760
5
Step 5 — Verify with the exact integral∫₀¹⁰ (200 − 4q) dq = [200q − 2q²]₀¹⁰ = (200 × 10 − 2 × 100) − (0) = 2000 − 200 = $1,800. The right Riemann sum of $1,760 underestimates the exact total revenue by $40 because MR(q) is a decreasing function and right endpoints give lower heights.
Exact integral = $1,800 | Error = $40 (2.2%)
💡 Business Insight
In practice, businesses often have marginal-revenue or marginal-cost data at discrete intervals — perhaps monthly or quarterly. A Riemann sum is the natural tool for estimating total revenue or total cost from such discrete marginal data, even when no closed-form function is available. Using the midpoint rule typically yields a closer approximation when interpolation between data points is reasonable.

Strengths, Limitations, and Method Selection

Each Riemann sum method carries distinct trade-offs in terms of accuracy, computational effort, and ease of implementation. The following table summarizes the key characteristics to help you select the appropriate method for a given situation.

Comparison of rectangular approximation methods
MethodStrengthsLimitations
Left Riemann SumSimple to compute; uses data available at the start of each interval; natural for real-time data streaming where future values are unknown.Systematically overestimates (decreasing f) or underestimates (increasing f); slowest convergence rate at O(1/n).
Right Riemann SumEqually simple; uses data at the end of each interval; provides a bound opposite to the left sum, enabling bracketing of the true value.Same O(1/n) convergence rate; biased in the opposite direction from the left sum for monotonic functions.
Midpoint SumFaster O(1/n²) convergence; naturally cancels some error; often the best Riemann-type estimate for a given n.Requires evaluation at points that may not coincide with available data; slightly more complex to set up for irregular data.
Trapezoidal Rule (related)Averages left and right sums, yielding O(1/n²) convergence; uses only endpoint data; widely used in numerical software.Still a first-order method for oscillatory functions; not technically a Riemann sum but closely related.
KEY TAKEAWAY
Choosing a Riemann sum method is like choosing a polling strategy before an election. A left or right sum is akin to sampling voters at only one edge of each demographic group — fast but biased. The midpoint sum is like sampling from the center of each group, capturing the typical voter more faithfully. The trapezoidal rule averages the two edge polls, producing a balanced result. For most business-calculus applications, the midpoint or trapezoidal approach gives the best accuracy-per-computation tradeoff.

Connection to the Definite Integral

Riemann sums are not an end in themselves — they are the foundation upon which the definite integral is constructed. Understanding how the approximation becomes exact is critical for appreciating why antiderivative techniques work and when numerical approximation is necessary. The following table contrasts the finite Riemann sum with the definite integral it converges to.

From Riemann sum to definite integral
FeatureRiemann Sum (Finite)Definite Integral (Limit)
ExpressionSₙ = Σₖ₌₁ⁿ f(xₖ*) Δx∫ₐᵇ f(x) dx = lim(n→∞) Sₙ
Number of rectanglesFinite (n)Infinite (n → ∞)
Width of each rectangleΔx = (b − a)/n > 0dx → 0 (infinitesimal)
ResultApproximation (depends on n and sample-point choice)Exact net signed area (unique value for continuous f)
Evaluation methodDirect summation or closed-form summation identitiesFundamental Theorem of Calculus: F(b) − F(a) where F′ = f
When to useDiscrete data, numerical estimation, building intuitionClosed-form functions with known antiderivatives

The Fundamental Theorem of Calculus bridges the gap between these two columns. It states that if F is any antiderivative of f on [a, b], then ∫ₐᵇ f(x) dx = F(b) − F(a). This theorem renders the limiting process unnecessary for practical computation — you simply find an antiderivative and evaluate at the endpoints. However, for functions with no elementary antiderivative (common in applied business settings involving empirical data), Riemann sums and their refined cousins — the trapezoidal rule and Simpson's rule — remain essential computational tools. In upcoming lessons, you will learn both the antiderivative approach and these numerical methods, seeing how they complement each other in a complete integration toolkit.

Practice Problems

PROBLEM 1CONCEPTUAL
A continuous function f is strictly increasing on the interval [a, b]. Explain why the left Riemann sum with n subintervals must underestimate ∫ₐᵇ f(x) dx, while the right Riemann sum must overestimate it. What happens to these errors as n → ∞?
PROBLEM 2BASIC CALCULATION
Compute the left Riemann sum for f(x) = 3x + 1 on [0, 4] using n = 4 subintervals.
PROBLEM 3INTERMEDIATE
Use a right Riemann sum with n = 5 to approximate ∫₁⁶ (x² − 2x + 3) dx. Then compute the exact integral using the Fundamental Theorem of Calculus and determine the percentage error.
PROBLEM 4APPLIED
A start-up's marginal profit function is P′(t) = 50e^(−0.1t) thousand dollars per month, where t is measured in months. Use a midpoint Riemann sum with n = 4 subintervals to estimate the total profit accumulated from month t = 0 to t = 8. Interpret your result in a business context.
PROBLEM 5CRITICAL THINKING
Let f be a continuous, non-negative, concave-down function on [a, b]. Prove or argue convincingly that the midpoint Riemann sum overestimates ∫ₐᵇ f(x) dx for any number of subintervals n. Under what conditions on the concavity of f would the midpoint sum instead underestimate the integral?

Lesson Summary

A Riemann sum approximates the area under a curve by partitioning the interval [a, b] into n subintervals of width Δx = (b − a)/n, evaluating the function at a sample point within each subinterval, and summing the resulting rectangular areas: Sₙ = Σ f(xₖ*) Δx. The three standard choices — left endpoint, right endpoint, and midpoint — each produce different approximations for finite n, but all converge to the same value as n → ∞.

The definite integral is formally defined as the limit of these Riemann sums: ∫ₐᵇ f(x) dx = lim(n→∞) Sₙ. The Fundamental Theorem of Calculus provides a shortcut — evaluate an antiderivative at the endpoints — but Riemann sums remain indispensable for building integration intuition, handling discrete data, and performing numerical approximation when no closed-form antiderivative exists. In business applications, Riemann sums translate marginal quantities (marginal revenue, marginal cost, marginal profit) into their total counterparts by accumulating small increments over a continuous domain.

Varsity Tutors • Business Calculus • Riemann Sums