Riemann Sums Formula

Riemann sums are a method of approximating the definite integral ∫_a^b f(x) dx by dividing the interval [a, b] into subintervals and summing the areas of rectangles (or trapezoids) whose heights are determined by the function.

The Formula

∫abf(x) dx≈∑i=1nf(xi∗) Δxwhere Δx=b−an
xi∗ is the sample point (left, right, or midpoint) in each subinterval.

Ask yourself: Am I summing rectangle areas f(xi∗)Δx to estimate area under a curve, rather than evaluating exactly?

Quick example

Approximate ∫02x2 dx using 4 right-endpoint rectangles:
Δx=0.5,∑=0.5[0.25+1+2.25+4]=0.5×7.5=3.75
Exact value: 83≈2.667. The overestimate is because x2 is increasing.

Notation

Ln = left Riemann sum, Rn = right Riemann sum, Mn = midpoint sum, Tn = trapezoidal sum.

What this formula means

A method of approximating the definite integral ∫abf(x) dx by dividing the interval [a,b] into subintervals and summing the areas of rectangles (or trapezoids) whose heights are determined by the function.

A city skyline built over a hill: every building has a flat roof set to the hill's height at one spot, and the combined area of the building fronts approximates the area under the hill. Narrower buildings hug the slope more closely. Unlike real buildings, a rectangle can hang below the axis when f is negative, and then its area counts as negative.

Formal view

Let P={x0,x1,…,xn} be a partition of [a,b] with Δxi=xi−xi−1 and xi∗∈[xi−1,xi]. The Riemann sum is S(P,f)=∑i=1nf(xi∗)Δxi. Then ∫abf(x) dx=lim⁡∥P∥→0S(P,f) where ∥P∥=max⁡iΔxi.

Worked examples

Example 1

easy
Approximate ∫02x2 dx using a left Riemann sum with n=4 equal subintervals.
Show solution

Answer

L4=1.75 (underestimate; exact =83)

First step

1.
Δx=0.5. Left endpoints: x=0,0.5,1,1.5.

Full solution

  1. 2.
    f(0)=0,  f(0.5)=0.25,  f(1)=1,  f(1.5)=2.25.
  2. 3.
    L4=0.5(0+0.25+1+2.25)=0.5×3.5=1.75.
  3. 4.
    Exact value: 83≈2.667. The left sum underestimates because f is increasing.
For an increasing function, left endpoints give the minimum in each subinterval, so the left Riemann sum underestimates. More subintervals improve accuracy.

Example 2

medium
Approximate ∫131x dx using a right Riemann sum with n=4 subintervals and classify the estimate.

Example 3

medium
Approximate ∫04x2 dx using a midpoint sum with n=4.

Common mistakes

  • Forgetting Δx=b−an — the rectangle width must come from dividing the interval, not assumed to be 1.
  • Using the wrong sample point — left, right, and midpoint heights differ; match the height to the rule requested.
  • Calling a finite sum the exact area — it's an approximation until you take the limit as n→∞.

Why this formula matters

Real data rarely arrives as a formula. A Riemann sum turns a table of speeds into a distance, or a table of flow rates into litres used, by multiplying each reading by its slice of time and adding. It is also the definition behind ∫abf(x) dx, which explains why integrals add up "rate times width" and why a left sum undercounts a rising curve while a right sum overcounts it.

Frequently asked questions

What is the Riemann Sums formula?

A method of approximating the definite integral ∫abf(x) dx by dividing the interval [a,b] into subintervals and summing the areas of rectangles (or trapezoids) whose heights are determined by the function.

How do you use the Riemann Sums formula?

Use a Riemann sum when a problem gives a table of values, or asks you to approximate or estimate an integral with left, right or midpoint rectangles and a stated n. It also appears when an integral must be written as a limit of sums. If the function has an antiderivative you know and the question wants the exact value, use the Fundamental Theorem instead. If trapezoids are requested, use the trapezoidal rule, which averages the left and right sums.

What do the symbols mean in the Riemann Sums formula?

Ln = left Riemann sum, Rn = right Riemann sum, Mn = midpoint sum, Tn = trapezoidal sum.

Why is the Riemann Sums formula important in Math?

Real data rarely arrives as a formula. A Riemann sum turns a table of speeds into a distance, or a table of flow rates into litres used, by multiplying each reading by its slice of time and adding. It is also the definition behind ∫abf(x) dx, which explains why integrals add up "rate times width" and why a left sum undercounts a rising curve while a right sum overcounts it.

What do students get wrong about Riemann Sums?

The procedure for riemann sums is the easy part; the trap is forgetting Δx=b−an. Asking "Am I summing rectangle areas f(xi∗)Δx to estimate area under a curve, rather than evaluating exactly?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Riemann Sums formula?

Before studying the Riemann Sums formula, you should understand: integral, definite integral.

The full guide

This formula is covered in depth in How to Integrate Rational Functions: Long Division and Partial Fractions.