CALCULUS 1 • INTEGRATION: ACCUMULATION & FTC

Riemann Sum Approximations — Approximating Areas With Riemann Sums

Learn how to estimate the area under a curve by slicing it into rectangles and adding up the pieces.

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.

~250 BCE
Archimedes' Method of Exhaustion
Archimedes approximated the area under a parabola by inscribing triangles inside it, adding smaller and smaller triangles to "exhaust" the remaining space. This was the earliest ancestor of the Riemann sum.
1665
Newton & Leibniz Develop Calculus
Isaac Newton and Gottfried Wilhelm Leibniz independently invented calculus, connecting the problem of finding areas (integration) with the problem of finding slopes (differentiation) through the Fundamental Theorem of Calculus.
1854
Riemann Formalizes the Sum
German mathematician Bernhard Riemann gave a rigorous definition of the integral using sums of rectangle areas. His framework made it possible to determine exactly which functions could be integrated.
Today
Numerical Integration in Computing
Modern computers use Riemann-sum-based algorithms every day — from calculating rocket trajectories at NASA to rendering 3-D graphics in video games — whenever an exact antiderivative is difficult or impossible to find.

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.

1

Partition the Interval

Given an interval [a, b], you divide it into n equal subintervals. Each subinterval has width Δx = (b − a) / n. More subintervals mean a finer partition and a better approximation.
2

Choose a Sample Point

Within each subinterval, you pick one x-value — called a sample point — to determine the height of the rectangle. Common choices are the left endpoint, the right endpoint, or the midpoint.
3

Build the Rectangles

Each rectangle's height equals f evaluated at the sample point, and its width equals Δx. The area of each rectangle is therefore f(x*) × Δx.
4

Sum the Areas

Add up all n rectangle areas. The total gives an approximation of the area under the curve. As n → ∞, this sum converges to the exact area — the definite integral.
KEY TAKEAWAY
Think of a Riemann sum like measuring the square footage of a room with an oddly curved wall. You can't measure the whole room at once, so you lay down a row of rectangular mats side by side. Each mat approximates a strip of the floor. The more mats you use (and the narrower they are), the less floor space gets missed at the curve. A Riemann sum is just the total area of all those mats.

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.

Each of the four colored rectangles has width Δx = 1. The cyan rectangle uses f(1) = 1, the violet rectangle uses f(2) = 4, the pink rectangle uses f(3) = 9, and the amber rectangle uses f(4) = 16. The total right Riemann sum is 1 + 4 + 9 + 16 = 30.

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.

SUBINTERVAL WIDTH
Δx = (b − a) / n
where a and b are the endpoints of the interval and n is the number of rectangles.
LEFT RIEMANN SUM
L_n = Σ (i = 0 to n−1) f(a + iΔx) × Δx
Each rectangle's height is determined by the left endpoint of each subinterval: x_i = a + iΔx for i = 0, 1, 2, …, n − 1.
RIGHT RIEMANN SUM
R_n = Σ (i = 1 to n) f(a + iΔx) × Δx
Each rectangle's height is determined by the right endpoint of each subinterval: x_i = a + iΔx for i = 1, 2, …, n.
MIDPOINT RIEMANN SUM
M_n = Σ (i = 0 to n−1) f(a + (i + 0.5)Δx) × Δx
The sample point is the midpoint of each subinterval, giving x*_i = a + (i + ½)Δx. This often yields a more accurate estimate than left or right sums for the same n.
💡 Sigma Notation Reminder
The symbol Σ means "add up." The expression Σ (i = 1 to 4) i² tells you to substitute i = 1, 2, 3, 4 into i² and add the results: 1 + 4 + 9 + 16 = 30. In a Riemann sum, the index i keeps track of which rectangle you're on.

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.

All three diagrams show f(x) = √x on [1, 5] with 4 rectangles. The left sum (L₄ ≈ 7.38) underestimates because √x is increasing. The right sum (R₄ ≈ 8.38) overestimates. The midpoint sum (M₄ ≈ 7.85) splits the difference and lands closer to the true area (≈ 7.81).

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.

Over/underestimate behavior depends on whether f is increasing or decreasing.
Sum TypeSample PointIf f is IncreasingIf f is Decreasing
LeftLeft endpoint of each subintervalUnderestimateOverestimate
RightRight endpoint of each subintervalOverestimateUnderestimate
MidpointMidpoint of each subintervalCloser to exactCloser 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.

Riemann Sum for f(x) = x² + 1 on [0, 3], n = 6
1
Step 1 — Compute ΔxUsing the formula Δx = (b − a) / n = (3 − 0) / 6 = 0.5. Each subinterval is 0.5 units wide.
Δx = 0.5
2
Step 2 — List the Subinterval EndpointsStarting at a = 0 and adding Δx = 0.5 each time: x₀ = 0, x₁ = 0.5, x₂ = 1, x₃ = 1.5, x₄ = 2, x₅ = 2.5, x₆ = 3. There are 7 endpoints creating 6 subintervals.
3
Step 3 — Evaluate f at Left EndpointsFor the left sum, use x₀ through x₅: f(0) = 0² + 1 = 1, f(0.5) = 0.25 + 1 = 1.25, f(1) = 1 + 1 = 2, f(1.5) = 2.25 + 1 = 3.25, f(2) = 4 + 1 = 5, f(2.5) = 6.25 + 1 = 7.25.
4
Step 4 — Compute the Left Riemann Sum L₆L₆ = Δx × [f(0) + f(0.5) + f(1) + f(1.5) + f(2) + f(2.5)] = 0.5 × [1 + 1.25 + 2 + 3.25 + 5 + 7.25] = 0.5 × 19.75.
L₆ = 9.875
5
Step 5 — Evaluate f at Right EndpointsFor the right sum, use x₁ through x₆: f(0.5) = 1.25, f(1) = 2, f(1.5) = 3.25, f(2) = 5, f(2.5) = 7.25, f(3) = 9 + 1 = 10.
6
Step 6 — Compute the Right Riemann Sum R₆R₆ = Δx × [f(0.5) + f(1) + f(1.5) + f(2) + f(2.5) + f(3)] = 0.5 × [1.25 + 2 + 3.25 + 5 + 7.25 + 10] = 0.5 × 28.75.
R₆ = 14.375
7
Step 7 — Compare to the Exact AreaThe exact area is ∫₀³ (x² + 1) dx = [x³/3 + x] from 0 to 3 = (27/3 + 3) − 0 = 9 + 3 = 12. The left sum (9.875) underestimates and the right sum (14.375) overestimates, which makes sense because f(x) = x² + 1 is increasing on [0, 3]. The true area of 12 falls between them.
Exact area = 12; L₆ = 9.875 (under); R₆ = 14.375 (over)

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.

FeatureStrengthLimitation
UniversalityWorks 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.
AccuracyIncreasing 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.
SimplicityThe 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 EstimationFor 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.
KEY TAKEAWAY
Riemann sums are the foundation of integration — they're like the training wheels that help you learn to ride before you switch to the faster bike of antiderivatives. Even after you learn the Fundamental Theorem of Calculus, Riemann sums remain essential for numerical computation when a function doesn't have a clean antiderivative.

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.

DEFINITE INTEGRAL AS A LIMIT
∫ₐᵇ f(x) dx = lim (n→∞) Σ (i=1 to n) f(x*ᵢ) × Δx
The definite integral is defined as the limit of a Riemann sum as the number of subintervals approaches infinity. No matter what sample points x*ᵢ you choose, the limit is the same for any continuous function.
Riemann Sum (Finite n)Definite Integral (n → ∞)
Approximation that depends on n and the sample-point ruleExact area that is a single, fixed number
Computed by adding finitely many termsOften evaluated using antiderivatives (FTC)
Left, right, and midpoint sums may differAll Riemann sums converge to the same value
Useful for numerical estimation and building intuitionProvides 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

PROBLEM 1CONCEPTUAL
Suppose f(x) is a continuous, decreasing function on the interval [2, 8]. Will a left Riemann sum with n = 10 produce an overestimate or an underestimate of the true area under f? Explain your reasoning.
PROBLEM 2BASIC CALCULATION
Compute the right Riemann sum for f(x) = 3x on the interval [0, 4] using n = 4 subintervals.
PROBLEM 3INTERMEDIATE
Compute the left Riemann sum and the midpoint Riemann sum for f(x) = x² on [1, 3] using n = 4 subintervals. Which approximation is closer to the exact area of 26/3 ≈ 8.667?
PROBLEM 4APPLIED
A car's velocity (in ft/s) is measured every 2 seconds: v(0) = 0, v(2) = 10, v(4) = 18, v(6) = 24, v(8) = 28. Use a left Riemann sum to estimate the total distance the car travels from t = 0 to t = 8 seconds.
PROBLEM 5CRITICAL THINKING
For the function f(x) = sin(x) on [0, π], explain why neither the left nor the right Riemann sum is guaranteed to be entirely an overestimate or entirely an underestimate. Then describe a strategy to still bound the true area using Riemann sums.

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.

Varsity Tutors • Calculus 1 • Riemann Sum Approximations — Approximating Areas With Riemann Sums