Grade by GradeEssential student suppliesSign in
C. Content · Calculus 12: Functions, Limits, Derivatives, Integrals and Their Applications

Riemann Sums, the Trapezoidal Method and the Definite Integral

BC CALC 12: Riemann sum BC CALC 12: trapezoidal method BC CALC 12: integrationAbout 75 minutes
Learning goals
  • I can approximate the area under a curve with left, right and midpoint rectangles.
  • I can use the trapezoidal method, including with data from a table.
  • I can read and write definite integral notation and explain it as a limit of Riemann sums.
  • I can use properties of definite integrals and interpret signed area.

Words to know

Riemann sum
A sum f(x_1)delta x + f(x_2)delta x + ... + f(x_n)delta x of rectangle areas, where x_i is a point in the i-th subinterval.
delta x
The width of each subinterval: delta x = (b - a)/n.
trapezoidal method
Approximating with trapezoids: T = (delta x/2)[f(x_0) + 2f(x_1) + ... + 2f(x_(n-1)) + f(x_n)].
definite integral
∫ from a to b of f(x) dx: the limit of Riemann sums as n → ∞. It gives the signed area between the graph and the x-axis.
integrand
The function being integrated, f(x) in ∫ f(x) dx.

The area problem

The derivative answered how fast? The integral answers how much? A Big Idea of the course: integral calculus finds products of quantities that change continuously, like distance = velocity × time when velocity keeps changing. Such a product needs a sum of infinitely many tiny pieces.

To find the area under y = f(x) from x = a to x = b:

  1. Split [a, b] into n equal subintervals of width delta x = (b - a)/n.
  2. On each one, build a rectangle whose height is f at the left end, the right end or the midpoint. This is the rectangle approximation method (often called LRAM, RRAM and MRAM).
  3. Add the areas. The total is a Riemann sum, named after Bernhard Riemann.
xy0.511.521234y = x^2
A right Riemann sum for y = x^2 on [0, 2] with n = 4. Each rectangle's height is f at its right end, so the sum overestimates the area.
Worked example

Example 1: Four ways to estimate

Estimate the area under y = x^2 from 0 to 2 with n = 4, using left, right and midpoint rectangles and the trapezoidal method.

  1. delta x = (2 - 0)/4 = 0.5. The x-values are 0, 0.5, 1, 1.5, 2, with f-values 0, 0.25, 1, 2.25, 4.
  2. Left: 0.5(0 + 0.25 + 1 + 2.25) = 1.75.
  3. Right: 0.5(0.25 + 1 + 2.25 + 4) = 3.75.
  4. Midpoints 0.25, 0.75, 1.25, 1.75 give f = 0.0625, 0.5625, 1.5625, 3.0625: 0.5(5.25) = 2.625.
  5. Trapezoidal: (0.5/2)[0 + 2(0.25 + 1 + 2.25) + 4] = 0.25(11) = 2.75. (This is also the average of left and right.)

L = 1.75, R = 3.75, M = 2.625, T = 2.75. The exact area is 8/3 ≈ 2.667.

nLeftRightMidpointTrapezoidal
41.753.752.6252.75
1002.62682.70682.66662.6668
n → ∞8/38/38/38/3
Estimates of the area under y = x^2 on [0, 2]. All of them approach the exact value 8/3 ≈ 2.6667 as n grows.

The definite integral

The exact area is the limit of Riemann sums:

∫ from a to b of f(x) dx = lim (n → ∞) [f(x_1) + f(x_2) + ... + f(x_n*)] delta x.

Read the notation piece by piece: ∫ is a long S for sum; a and b are the lower and upper limits; f(x) is the integrand; dx reminds us of the width delta x shrinking to zero. A definite integral is a number. (In the next lesson, an indefinite integral ∫ f(x) dx will be a family of functions.)

Area below the x-axis counts as negative, so a definite integral gives signed area.

Worked example

Example 2: The exact value as a limit

Use right Riemann sums to show that ∫ from 0 to 2 of x^2 dx = 8/3. Use 1^2 + 2^2 + ... + n^2 = n(n + 1)(2n + 1)/6.

  1. delta x = 2/n and the right endpoints are x_i = 2i/n.
  2. R_n = sum of (2i/n)^2 (2/n) for i = 1 to n = (8/n^3)(1^2 + 2^2 + ... + n^2).
  3. = (8/n^3) · n(n + 1)(2n + 1)/6 = (4/3)(1 + 1/n)(2 + 1/n).
  4. As n → ∞: (4/3)(1)(2) = 8/3.

∫ from 0 to 2 of x^2 dx = 8/3

Worked example

Example 3: Distance from data

A cyclist on the Galloping Goose Trail near Victoria records her speed every 10 s. Estimate the distance she travels in the first minute.

  1. Speeds (m/s) at t = 0, 10, 20, 30, 40, 50, 60 s: 0, 4, 6, 7, 7.5, 8, 8.
  2. Distance is the integral of speed. Use the trapezoidal method with delta t = 10.
  3. T = (10/2)[0 + 2(4 + 6 + 7 + 7.5 + 8) + 8] = 5[2(32.5) + 8] = 5(73).

About 365 m

PropertyExample
∫ from a to a of f(x) dx = 0∫ from 3 to 3 of x^2 dx = 0
∫ from b to a = -(∫ from a to b)∫ from 2 to 0 of x^2 dx = -8/3
∫ (cf ± g) = c∫ f ± ∫ g∫ from 0 to 2 of 3x^2 dx = 3(8/3) = 8
∫ from a to b + ∫ from b to c = ∫ from a to c∫ from 0 to 1 + ∫ from 1 to 2 = ∫ from 0 to 2
Properties of definite integrals.
Worked example

Example 4: Signed area

Find ∫ from -1 to 2 of x dx using geometry.

  1. From -1 to 0 the line y = x is below the axis: a triangle of area (1)(1)/2 = 1/2, counted as -1/2.
  2. From 0 to 2 it is above: a triangle of area (2)(2)/2 = 2.
  3. Signed total: -1/2 + 2.

3/2

Over or under?

For an increasing function, left sums underestimate and right sums overestimate; for a decreasing one it's the reverse. The trapezoidal estimate is too big where the graph is concave up and too small where it is concave down.

Hands-on activity

Area of a leaf

Trace a leaf (a bigleaf maple leaf works well) on centimetre grid paper. Draw a straight line along its length as an x-axis, measure the leaf's width every 1 cm, and use the trapezoidal method to estimate its area. Compare with counting grid squares. How does the estimate change if you measure every 0.5 cm?

Just for fun

Leibniz chose the integral sign ∫ in 1675 as a stretched letter S, for the Latin summa (sum). The dx is a leftover from his idea of adding up infinitely many infinitely thin strips.

Your turn

1

For f(x) = x + 1 on [0, 4] with n = 4, find the left and right sums, and compare with the exact area.

2

Use the midpoint method with n = 2 to estimate ∫ from 1 to 3 of (1/x) dx.

3

Use geometry to find ∫ from -2 to 2 of sqrt(4 - x^2) dx.

4

Find ∫ from 0 to 3 of (x - 1) dx using geometry.

5

Write lim (n → ∞) of the sum of (i/n)^3 (1/n), for i = 1 to n, as a definite integral.

6

If ∫ from 0 to 5 of f = 8 and ∫ from 0 to 2 of f = 3, find ∫ from 2 to 5 of f and ∫ from 5 to 2 of f.

More practice

1

Use the trapezoidal method with n = 4 to estimate ∫ from 0 to 2 of x^3 dx.

2

Find the left sum for ∫ from 0 to 2 of x^3 dx with n = 4.

3

Water flows into a rain barrel. The flow rate (L/min) at t = 0, 5, 10, 15, 20 min is 0, 2, 3, 3, 1. Estimate the total water collected.

4

Is a left Riemann sum an overestimate or an underestimate for an increasing function?

5

Find ∫ from 1 to 1 of e^(x^2) dx.

Check your understanding

Quiz

1.

What is delta x for a Riemann sum on [2, 8] with n = 3?

2.

What is the right Riemann sum for y = x^2 on [0, 2] with n = 2?

3.

What is ∫ from 0 to 2 of (x - 2) dx?

4.

How is the trapezoidal estimate related to the left (L) and right (R) sums with the same n?

5.

Why does a definite integral count area below the x-axis as negative?

For parents and teachers

How to help: Draw a curve on grid paper together and count squares, then compare with rectangle sums. Ask: "Is this estimate too big or too small? How do you know?"

Common mistakes:

  • Using n + 1 rectangles instead of n, or the wrong endpoints.
  • Forgetting to multiply by delta x.
  • In the trapezoidal method, doubling the first and last values (only the middle values are doubled).
  • Treating a definite integral as always positive.