Historical Context & Motivation
Finding the area of a rectangle or triangle is straightforward — you plug values into a formula and you're done. But what if the shape has a curved boundary, like the region underneath a parabola? For centuries, mathematicians wrestled with this question, gradually developing techniques that would eventually become integral calculus. The core idea they kept returning to was deceptively simple: approximate the curved region with many small rectangles whose areas you can easily compute.
The central question this lesson addresses is: How can we systematically approximate the area trapped between a curve and the x-axis over some interval? The answer — Riemann sums — lays the groundwork for the definite integral, one of the most powerful tools in all of mathematics.
Core Principles & Definitions
Before jumping into calculations, you need to understand four foundational ideas that make Riemann sums work. Each one builds on the last, so take them in order.
Partition the Interval
Choose a Sample Point
Build the Rectangles
Sum the Areas
Visual Explanation — Rectangles Under a Curve
The diagram below shows the function f(x) = x² on the interval [0, 4] with four right-endpoint rectangles. Notice how each rectangle's right edge touches the curve, which determines the rectangle's height.
Notice that every rectangle extends above the curve because x² is increasing on [0, 4] and we used right endpoints (the tallest point in each subinterval). That means the right Riemann sum of 30 is an overestimate of the true area. The exact area, which you can later verify with the definite integral, is 64/3 ≈ 21.33. Using more rectangles would shrink the gap between the estimate and the exact value.
Mathematical Framework
Now let's translate the visual idea into precise notation. The formulas below apply whenever you have a continuous function f on a closed interval [a, b] and you divide that interval into n equal subintervals.
Left, Right, and Midpoint Sums Compared
The choice of sample point — left endpoint, right endpoint, or midpoint — affects both the value of your approximation and whether it overestimates or underestimates the true area. The diagram below shows all three types side by side for f(x) = √x on [1, 5] with n = 4.
For an increasing function, left sums always underestimate and right sums always overestimate. For a decreasing function, the pattern flips: left sums overestimate and right sums underestimate. The midpoint sum tends to be closer to the true area in both cases because the errors on either side of the midpoint partially cancel each other out.
| Sum Type | Sample Point | If f is Increasing | If f is Decreasing |
|---|---|---|---|
| Left | Left endpoint of each subinterval | Underestimate | Overestimate |
| Right | Right endpoint of each subinterval | Overestimate | Underestimate |
| Midpoint | Midpoint of each subinterval | Closer to exact | Closer to exact |
Worked Example
Let's compute the left and right Riemann sums for f(x) = x² + 1 on the interval [0, 3] using n = 6 subintervals. Then we'll compare both to the exact area.
Accuracy, Strengths & Limitations
Riemann sums are powerful because they work for virtually any continuous function, but they come with trade-offs. Understanding these strengths and limitations helps you decide when to use a Riemann sum and how many rectangles you need.
| Feature | Strength | Limitation |
|---|---|---|
| Universality | Works for any continuous (and many discontinuous) functions, even when no antiderivative formula exists. | Requires choosing n large enough, which can mean many tedious calculations by hand. |
| Accuracy | Increasing n always improves accuracy. Doubling n roughly cuts the error in half for left/right sums. | For a given n, left/right sums can be significantly off if the function changes rapidly. |
| Simplicity | The concept (rectangles) is intuitive; only basic arithmetic is needed for each step. | More sophisticated methods (trapezoidal rule, Simpson's rule) converge faster with fewer subdivisions. |
| Error Estimation | For monotonic functions, the true area is bounded between L_n and R_n, giving a natural error bound. | For functions that increase and decrease on the interval, over/underestimate behavior is harder to predict. |
Connection to the Definite Integral
Riemann sums are approximations, but what happens when you let the number of rectangles grow without bound? As n → ∞, the width Δx → 0, and the sum converges to the definite integral. This is the formal definition of the integral that you'll study next.
| Riemann Sum (Finite n) | Definite Integral (n → ∞) |
|---|---|
| Approximation that depends on n and the sample-point rule | Exact area that is a single, fixed number |
| Computed by adding finitely many terms | Often evaluated using antiderivatives (FTC) |
| Left, right, and midpoint sums may differ | All Riemann sums converge to the same value |
| Useful for numerical estimation and building intuition | Provides exact answers and connects to derivatives via FTC |
In upcoming lessons, you'll learn the Fundamental Theorem of Calculus, which provides a shortcut: instead of adding up infinitely many rectangles, you can evaluate the antiderivative at two points and subtract. But that shortcut only makes sense because the definite integral is defined as the limit of a Riemann sum. Mastering Riemann sums now gives you the conceptual foundation that makes the rest of integration click.
Practice Problems
Lesson Summary
A Riemann sum approximates the area under a curve by dividing the interval [a, b] into n subintervals of width Δx = (b − a) / n, evaluating the function at a sample point (left endpoint, right endpoint, or midpoint) in each subinterval, and summing the resulting rectangle areas. For an increasing function, left sums underestimate and right sums overestimate; for a decreasing function, the behavior reverses. The midpoint sum generally provides a more accurate approximation for the same number of rectangles.
As the number of rectangles n approaches infinity, every Riemann sum converges to the definite integral ∫ₐᵇ f(x) dx, which gives the exact area. This limit-based definition is what connects Riemann sums to the Fundamental Theorem of Calculus and the powerful antiderivative shortcuts you'll learn next. Mastering Riemann sums ensures you understand why integration works, not just how to compute it.