CalcWork

Riemann sums practice problems

Practice left, right and midpoint Riemann sums: find Δx, list the grid points, and add the heights. Worked solutions with tables. In the app, new problems are generated every time, so you never run out.

The idea

Δx = (b − a)/n

A Riemann sum estimates the area under a curve by filling it with rectangles and adding up their areas. The goal is a number: the total area of n rectangles. Cut the x-range from a to b, written [a, b], into n strips of width Δx. The grid points start at a and step by Δx, so there are n + 1 of them. Each sum adds n heights f(x), then multiplies by Δx.

Why it works
Each rectangle is width Δx times height f(x). Adding the rectangles approximates the area under the curve.
Example
f(x) = 2x² + 4 on [1, 6], n = 5
Δx = (6 − 1)/5 = 1
grid: 1, 2, 3, 4, 5, 6
f: 6, 12, 22, 36, 54, 76
LEFT = 1(6+12+22+36+54) = 130
RIGHT = 1(12+22+36+54+76) = 200
MID: heights at 1.5, 2.5, 3.5, 4.5, 5.5
check: L − R = 1(6 − 76) = −70 ✓

Common mistake: Δx is one strip, not b − a. Sum the heights f(x), never the x-values. LEFT uses each strip's left edge for its height (skip the last grid point). RIGHT uses the right edge (skip the first). MID uses the middle of each strip, halfway between grid points.

Worked examples

Try each one first. Open the hints one at a time, then check the worked solution.

Example 1

f(x)=3x2+1on [0, 4],  n = 4

Find Δx, LEFT and RIGHT.

Hints
  1. Start with Δx = (b − a)/n. That is the width of ONE strip, not the whole interval.
  2. Write the grid points (start at a, step by Δx), then a table of the heights f(x) at each one.
  3. LEFT skips the last grid point, RIGHT skips the first, MID uses the strip centers. Each uses exactly n heights, times Δx.
Worked solution
Δx = (4 − 0)/4 = 1
grid: 0, 1, 2, 3, 4
f at grid: 1, 4, 13, 28, 49
LEFT = 1(1 + 4 + 13 + 28) = 46
RIGHT = 1(4 + 13 + 28 + 49) = 94
check: L − R = Δx[f(a) − f(b)] = −48

Δx1LEFT46RIGHT94

Example 2

f(x)=x2+2on [1, 5],  n = 4

Find LEFT, RIGHT and MID.

Hints
  1. Start with Δx = (b − a)/n. That is the width of ONE strip, not the whole interval.
  2. Write the grid points (start at a, step by Δx), then a table of the heights f(x) at each one.
  3. LEFT skips the last grid point, RIGHT skips the first, MID uses the strip centers. Each uses exactly n heights, times Δx.
Worked solution
Δx = (5 − 1)/4 = 1
grid: 1, 2, 3, 4, 5
f at grid: 3, 6, 11, 18, 27
LEFT = 1(3 + 6 + 11 + 18) = 38
RIGHT = 1(6 + 11 + 18 + 27) = 62
midpoints 3/2, 5/2, 7/2, 9/2 → heights 17/4, 33/4, 57/4, 89/4
MID = 49
check: L − R = Δx[f(a) − f(b)] = −24

LEFT38RIGHT62MID49

Example 3

f(x)=2x2+3on [0, 4],  n = 4

Find MID.

Hints
  1. Start with Δx = (b − a)/n. That is the width of ONE strip, not the whole interval.
  2. Write the grid points (start at a, step by Δx), then a table of the heights f(x) at each one.
  3. LEFT skips the last grid point, RIGHT skips the first, MID uses the strip centers. Each uses exactly n heights, times Δx.
Worked solution
Δx = (4 − 0)/4 = 1
grid: 0, 1, 2, 3, 4
f at grid: 3, 5, 11, 21, 35
midpoints 1/2, 3/2, 5/2, 7/2 → heights 7/2, 15/2, 31/2, 55/2
MID = 54
check: L − R = Δx[f(a) − f(b)] = −32

MID54

Example 4

f(x)=4−xon [0, 3],  n = 6

Find Δx, LEFT, RIGHT and MID.

Hints
  1. Start with Δx = (b − a)/n. That is the width of ONE strip, not the whole interval.
  2. Write the grid points (start at a, step by Δx), then a table of the heights f(x) at each one.
  3. LEFT skips the last grid point, RIGHT skips the first, MID uses the strip centers. Each uses exactly n heights, times Δx.
Worked solution
Δx = (3 − 0)/6 = 1/2
grid: 0, 1/2, 1, 3/2, 2, 5/2, 3
f at grid: 4, 7/2, 3, 5/2, 2, 3/2, 1
LEFT = 1/2(4 + 7/2 + 3 + 5/2 + 2 + 3/2) = 33/4
RIGHT = 1/2(7/2 + 3 + 5/2 + 2 + 3/2 + 1) = 27/4
midpoints 1/4, 3/4, 5/4, 7/4, 9/4, 11/4 → heights 15/4, 13/4, 11/4, 9/4, 7/4, 5/4
MID = 15/2
check: L − R = Δx[f(a) − f(b)] = 3/2

Δx12LEFT334RIGHT274MID152