Reading history

Riemann Sums and Area Under a Curve

5 min read 3 views

Approximate area under a curve with left, right and midpoint Riemann sums, use sigma notation, and take a limit to find the exact area.

How do you find the area of a shape with a curved edge? The ancient Greeks filled shapes with triangles; calculus fills them with thin rectangles. Add up the areas of many narrow rectangles under a curve and you get an approximation to the area. Make the rectangles thinner and the approximation gets better. In the limit, it becomes exact. These sums of rectangles are called Riemann sums, and they are the foundation of the definite integral. In this lesson you will build left, right and midpoint sums by hand, use sigma notation, and take a limit to find an exact area.

In this lesson you will learn

  • Why rectangles can approximate a curved area
  • Left, right and midpoint Riemann sums
  • When an estimate is too big or too small
  • Sigma (Σ) notation for long sums
  • How the limit of Riemann sums gives an exact area

You should know limits and be comfortable with sigma notation and sums of series.

The Problem

Find the area under y = x² between x = 0 and x = 2. There is no simple formula like length × width, because the top edge is curved. But a rectangle’s area is easy, so we cut the region into vertical strips and replace each strip with a rectangle.

Left, Right and Midpoint Sums

Divide [0, 2] into n = 4 strips of width Δx = (2 − 0)/4 = 0.5. The strips have edges at 0, 0.5, 1, 1.5 and 2. Each rectangle’s height is the function value at one chosen point in its strip.

Left sum L₄ = 1.75xyRight sum R₄ = 3.75xyMidpoint M₄ = 2.625xyTrue area under y = x² from 0 to 2: 8/3 ≈ 2.667
Left sum  (height at left edge):
L₄ = 0.5 [f(0) + f(0.5) + f(1) + f(1.5)]
   = 0.5 [0 + 0.25 + 1 + 2.25] = 1.75

Right sum (height at right edge):
R₄ = 0.5 [f(0.5) + f(1) + f(1.5) + f(2)]
   = 0.5 [0.25 + 1 + 2.25 + 4] = 3.75

Midpoint sum (height at the middle):
M₄ = 0.5 [f(0.25) + f(0.75) + f(1.25) + f(1.75)]
   = 0.5 [0.0625 + 0.5625 + 1.5625 + 3.0625] = 2.625

The true area, as you will see below, is 8/3 ≈ 2.667. Since x² is increasing on [0, 2], left rectangles sit below the curve (an underestimate) and right rectangles poke above it (an overestimate). The midpoint sum is much closer than either.

More Strips, Better Estimates

nLeft sumRight sumMidpoint sum
41.75003.75002.6250
102.28003.08002.6600
1002.62682.70682.6666
10002.66272.67072.66667

All three columns close in on the same number, 2.6667. That common limit is the area.

Sigma Notation

Writing long sums is tiring, so we use Σ (the Greek capital sigma, “sum”):

Σ (i = 1 to n) aᵢ  means  a₁ + a₂ + ... + aₙ

Useful formulas:
Σ 1  = n
Σ i  = n(n + 1)/2
Σ i² = n(n + 1)(2n + 1)/6

A general right Riemann sum for f on [a, b] with n equal strips is

Rₙ = Σ (i = 1 to n) f(xᵢ) Δx,    where Δx = (b − a)/n and xᵢ = a + iΔx

Finding the Exact Area With a Limit

f(x) = x² on [0, 2]:   Δx = 2/n,   xᵢ = 2i/n

Rₙ = Σ (2i/n)² · (2/n) = (8/n³) Σ i²
   = (8/n³) · n(n + 1)(2n + 1)/6
   = (4/3) · (n + 1)(2n + 1)/n²
   = (4/3) · (2 + 3/n + 1/n²)

As n → ∞:  Rₙ → (4/3) · 2 = 8/3

The exact area is 8/3. This is a lot of work for one area. The Fundamental Theorem of Calculus, two lessons from now, will give the same answer in one line, using antiderivatives.

Archimedes got there first

Around 250 BCE, Archimedes found the area under a parabola by filling it with triangles and summing an infinite series. His method is a cousin of the Riemann sum, nearly 2,000 years before Newton and Leibniz.

Common Mistakes

  1. Forgetting to multiply by Δx. Each term is height × width.
  2. Using the wrong end points: a left sum uses x₀ to xₙ₋₁; a right sum uses x₁ to xₙ.
  3. Assuming left sums always underestimate. That is only true when f is increasing.
  4. Mixing up n (the number of strips) and Δx (their width).

Practice Exercises

Exercise 1. Estimate the area under y = x³ from 0 to 2 with a right sum, n = 4.

Show answer

0.5[0.125 + 1 + 3.375 + 8] = 6.25 (true value 4).

Exercise 2. Estimate the area under y = 1/x from 1 to 3 with a midpoint sum, n = 2.

Show answer

Δx = 1, midpoints 1.5 and 2.5: 1/1.5 + 1/2.5 = 1.0667 (true value ln 3 ≈ 1.0986).

Exercise 3. Use the limit of right sums to find the exact area under y = 3x from 0 to 4.

Show answer

Δx = 4/n, Rₙ = Σ 3(4i/n)(4/n) = (48/n²) · n(n + 1)/2 = 24(1 + 1/n) → 24. (A triangle with base 4 and height 12 confirms it.)

Frequently Asked Questions

What is a Riemann sum?

A Riemann sum approximates the area under a curve by splitting the interval into strips and adding the areas of rectangles whose heights are function values in each strip. Left, right and midpoint sums choose the height at different points of each strip.

Which Riemann sum is most accurate?

For smooth functions the midpoint sum is usually far more accurate than the left or right sum with the same number of strips, because its errors above and below the curve partly cancel. All three approach the exact area as the number of strips grows.

Summary

  • Approximate area with rectangles: Σ f(xᵢ*) Δx.
  • Left, right and midpoint sums choose different heights.
  • For increasing f, left sums underestimate and right sums overestimate.
  • More strips give better estimates; the limit is the exact area.
  • The area under x² from 0 to 2 is exactly 8/3.

Next: The Definite Integral and Its Properties.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *