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.

A smooth function curve with a function symbol and rising tangent trend.
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

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.

Right Riemann Sum for f(x) = x² on [0, 4] with n = 4xf(x)014916012341×1=14×1=49×1=916×1=16
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.

SECTION 4

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Δx = (b − a) / n

where a and b are the endpoints of the interval and n is the number of rectangles.

LEFT RIEMANN SUM

Ln=Σ(i=0ton−1)f(a+iΔx)×ΔxL_n = Σ (i = 0 to n−1) f(a + iΔx) × Δx

Each rectangle's height is determined by the left endpoint of each subinterval: xix_i = a + iΔx for i = 0, 1, 2, …, n − 1.

RIGHT RIEMANN SUM

Rn=Σ(i=1ton)f(a+iΔx)×ΔxR_n = Σ (i = 1 to n) f(a + iΔx) × Δx

Each rectangle's height is determined by the right endpoint of each subinterval: xix_i = a + iΔx for i = 1, 2, …, n.

MIDPOINT RIEMANN SUM

Mn=Σ(i=0ton−1)f(a+(i+0.5)Δx)×ΔxM_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.

SECTION 5

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.

Comparing Left, Right, and Midpoint Riemann Sumsf(x) = √x on [1, 5], n = 4, Δx = 1LEFT SUM23451L₄ ≈ 7.38RIGHT SUM23451R₄ ≈ 8.38MIDPOINT SUM23451M₄ ≈ 7.85
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.

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

Over/underestimate behavior depends on whether f is increasing or decreasing.

SECTION 6

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. 1

    Step 1 — Compute Δx

    Using the formula Δx = (b − a) / n = (3 − 0) / 6 = 0.5. Each subinterval is 0.5 units wide.
    Δx = 0.5
  2. 2

    Step 2 — List the Subinterval Endpoints

    Starting 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. 3

    Step 3 — Evaluate f at Left Endpoints

    For 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. 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. 5

    Step 5 — Evaluate f at Right Endpoints

    For 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. 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. 7

    Step 7 — Compare to the Exact Area

    The 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)

SECTION 7

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 LnL_n and RnR_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.

SECTION 8

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

∫abf(x)dx=lim(n→∞)Σ(i=1ton)f(x∗i)×Δx∫ₐᵇ 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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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.
Show answer
A left Riemann sum for a decreasing function produces an overestimate. This is because the left endpoint of each subinterval gives the highest y-value in that subinterval (since f is falling as you move to the right). Every rectangle therefore pokes above the curve, making the total rectangle area larger than the true area under the curve. The number of subintervals (n = 10) does not change whether the sum over- or underestimates — it only affects how much the estimate differs from the exact value.

Question 2: BASIC CALCULATION

Compute the right Riemann sum for f(x) = 3x on the interval [0, 4] using n = 4 subintervals.
Show answer
First, Δx = (4 − 0) / 4 = 1. The right endpoints are x₁ = 1, x₂ = 2, x₃ = 3, x₄ = 4. Evaluate f at each: f(1) = 3, f(2) = 6, f(3) = 9, f(4) = 12. Then R₄ = Δx × [f(1) + f(2) + f(3) + f(4)] = 1 × (3 + 6 + 9 + 12) = 30. The exact area is ∫₀⁴ 3x dx = (3/2)x² evaluated from 0 to 4 = 24, so the right sum overestimates by 6 because f(x) = 3x is increasing.

Question 3: INTERMEDIATE

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?
Show answer
Δx = (3 − 1) / 4 = 0.5. For the left sum, the endpoints are 1, 1.5, 2, 2.5: L₄ = 0.5 × [f(1) + f(1.5) + f(2) + f(2.5)] = 0.5 × [1 + 2.25 + 4 + 6.25] = 0.5 × 13.5 = 6.75. For the midpoint sum, the midpoints are 1.25, 1.75, 2.25, 2.75: M₄ = 0.5 × [f(1.25) + f(1.75) + f(2.25) + f(2.75)] = 0.5 × [1.5625 + 3.0625 + 5.0625 + 7.5625] = 0.5 × 17.25 = 8.625. The midpoint sum (8.625) is much closer to the exact value of 8.667 than the left sum (6.75), demonstrating that midpoint sums tend to be more accurate for the same n.

Question 4: APPLIED

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.
Show answer
The interval is [0, 8] with Δt = 2 and n = 4 subintervals. The left endpoints give velocities v(0) = 0, v(2) = 10, v(4) = 18, v(6) = 24. Since distance = velocity × time for each strip, the left Riemann sum is L₄ = 2 × [0 + 10 + 18 + 24] = 2 × 52 = 104 ft. Because the velocity is increasing, this left sum underestimates the actual distance traveled. A right sum using v(2), v(4), v(6), v(8) would give R₄ = 2 × [10 + 18 + 24 + 28] = 160 ft, which overestimates. The true distance lies between 104 and 160 feet.

Question 5: CRITICAL 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.
Show answer
On [0, π], sin(x) first increases from 0 to π/2 and then decreases from π/2 to π. A left Riemann sum underestimates on the increasing portion but overestimates on the decreasing portion — the errors partially cancel, and you can't classify the overall sum as purely over or under. The same reasoning applies to the right sum (overestimates the increasing part, underestimates the decreasing part). To bound the true area, you can split the interval at the maximum: use a right sum on [0, π/2] (known overestimate since f is increasing) and a left sum on [π/2, π] (known overestimate since f is decreasing) to get an upper bound. Reverse the choices for a lower bound. Alternatively, compute both LnL_n and RnR_n on the full interval and note that the exact integral of sin(x) from 0 to π equals 2, which must lie between the smaller and larger of LnL_n and RnR_n for large enough n.

SUMMARY

Lesson Summary

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