Skip to main content

Calculus Honors · AP-aligned study guide

4.2 · Riemann sums, signed area, and numerical integration

Approximate accumulation from graphs and tables, preserve signed contributions, and connect sums to definite integrals.

AP 6.1–6.3 · Reading: Larson & Edwards §§4.2–4.3, 4.6

Learning objectives

  • Build left, right, midpoint, and trapezoidal approximations.
  • Interpret the definite integral as signed accumulation.
  • Use monotonicity or concavity to discuss approximation error.

A sum of rate times interval widths

A Riemann sum adds f(xi∗)Δxi\displaystyle f(x_i^*)\Delta x_i across subintervals. Each product has units of output rate times input units. Unequal intervals need their own widths; never silently use one common width for uneven data.

As the maximum subinterval width approaches zero, the sums define the definite integral for continuous functions. Positive and negative values contribute with their signs.

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi∗)Δx\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n}f(x_i^*)\Delta x

Choose the sampling rule explicitly

A left sum uses the left endpoint of each interval; a right sum uses the right endpoint. A midpoint sum uses the interval midpoint. A trapezoidal approximation uses interval width times the average of its endpoint heights.

For an increasing function, a left sum underestimates and a right sum overestimates the integral. For a concave-up graph, trapezoids overestimate; the midpoint rule underestimates. Describe the required behavior over the whole interval.

Use a graph or a table without inventing data

A piecewise-linear graph can often be integrated exactly with triangles, rectangles, or trapezoids. Regions below the axis subtract from the signed integral but add to geometric area.

Tabular values alone do not determine the exact integral unless extra information is supplied. Report a numerical method as an approximation, and use given midpoint values only when they correspond to the stated subintervals.

Worked examples

Left and right sums

For f(x)=x\displaystyle f(x)=x on [0,2]\displaystyle [0,2] with two equal subintervals, compute left and right sums.

  1. The width is 1\displaystyle 1.
  2. The left sum is 1(0+1)=1\displaystyle 1(0+1)=1; the right sum is 1(1+2)=3\displaystyle 1(1+2)=3.
  3. The exact signed triangular area is 2\displaystyle 2, between the two approximations.

A table trapezoid

A rate is 2\displaystyle 2 at time 0\displaystyle 0 and 6\displaystyle 6 at time 3\displaystyle 3. Give a one-interval trapezoidal approximation.

  1. The interval width is 3\displaystyle 3.
  2. Average the endpoint rates: (2+6)/2=4\displaystyle (2+6)/2=4.
  3. The approximation is 12\displaystyle 12 accumulated units, exact if the rate is linear.

Common mistakes

  • Using heights alone without multiplying by interval widths.
  • Treating all area below the axis as positive in a signed integral.
  • Calling an approximation exact without supporting assumptions.

Try it yourself

No calculator required.

1. Approximate ∫02x2 dx\displaystyle \int_0^2x^2\,dx using two equal subintervals with left and right sums.

The graph y = x squared on [0, 2] is partitioned at x = 1.
Choose left and right endpoint heights on each interval.
Show worked solution

The width is 1\displaystyle 1. The left sum is 02+12=1\displaystyle 0^2+1^2=1; the right sum is 12+22=5\displaystyle 1^2+2^2=5. Since x2\displaystyle x^2 is increasing, these bound the exact value 8/3\displaystyle 8/3.

The graph y = x squared on [0, 2] is partitioned at x = 1. Shaded left rectangles have total area 1; right endpoints give total area 5.
Shaded left rectangles have total area 1; right endpoints give total area 5.

2. A table gives f(0)=1\displaystyle f(0)=1, f(1)=3\displaystyle f(1)=3, and f(3)=5\displaystyle f(3)=5. Use the trapezoidal rule to approximate ∫03f(x) dx\displaystyle \int_0^3f(x)\,dx.

Show worked solution

The widths are 1\displaystyle 1 and 2\displaystyle 2. The estimate is 1(1+3)/2+2(3+5)/2=10\displaystyle 1(1+3)/2+2(3+5)/2=10.

3. Find ∫02(x−1) dx\displaystyle \int_0^2(x-1)\,dx geometrically. Compare it with total geometric area.

The line y = x minus 1 crosses the horizontal axis at x = 1 on [0, 2].
Compare the region below the axis with the region above it.
Show worked solution

The triangle below the axis has signed area −1/2\displaystyle -1/2 and the triangle above has area 1/2\displaystyle 1/2. The signed integral is 0\displaystyle 0, while geometric area is 1\displaystyle 1.

The line y = x minus 1 crosses the horizontal axis at x = 1 on [0, 2]. Signed areas are minus one half and plus one half, so the integral is zero.
Signed areas are minus one half and plus one half, so the integral is zero.

Need help with this topic?

Work through questions with a tutor and get help with the steps you find difficult.

Get help with this topic