Left, Right and Midpoint Riemann Sums

Three places to read each rectangle’s height.

Strips, and a height for each

Take the region under the curve y = x²/4, above the x-axis, from x = 0 to x = 4. Cut the interval into 4 strips of equal width. Each strip is (4 − 0) ÷ 4 = 1 wide. In general, an interval from a to b cut into n strips gives each strip the width (b − a) / n, written Δx.

Over each strip stand a rectangle with a flat top. A flat top has one height, but the curve has a different height at every point of the strip, so the sum has to say where that height is read. A left sum reads it at the left edge of each strip.

The left edges are at x = 0, 1, 2 and 3, where x²/4 is 0, 0.25, 1 and 2.25. Each rectangle is 1 wide, so the left sum is 0 × 1 + 0.25 × 1 + 1 × 1 + 2.25 × 1 = 3.5.

xy

The left rectangles under y = x²/4 from x = 0 to x = 4. Each top meets the curve at its left corner, and the curve climbs above it across the strip. The first rectangle has height 0, and the four add to 3.5.

The right sum

A right sum reads each height at the right edge of its strip: x = 1, 2, 3 and 4, where the heights are 0.25, 1, 2.25 and 4. The right sum is 0.25 + 1 + 2.25 + 4 = 7.5.

The right sum uses the same heights as the left sum, moved along by one strip. The first left height, 0 at x = 0, drops out, and the last right height, 4 at x = 4, comes in. So the right sum is bigger by (4 − 0) × 1 = 4, and 7.5 − 3.5 = 4.

xy

The right rectangles under the same curve. Each top meets the curve at its right corner, so each rectangle stands above the curve everywhere else in its strip. The four add to 7.5.

The midpoint sum

A midpoint sum reads each height at the middle of its strip: x = 0.5, 1.5, 2.5 and 3.5, where the heights are 0.0625, 0.5625, 1.5625 and 3.0625. The midpoint sum is 0.0625 + 0.5625 + 1.5625 + 3.0625 = 5.25.

On a rising curve the middle of each strip is higher than its left edge and lower than its right edge, so the midpoint sum lands between the left sum 3.5 and the right sum 7.5. Each midpoint top crosses the curve halfway along its strip: over the left half it stands above the curve, over the right half below, and the two pieces almost cancel.

xy

The midpoint rectangles. Each top crosses the curve at the middle of its strip, part over and part under. The four add to 5.25.

Against the exact area

Integrating x²/4 gives x³/12, so the exact area is 4³/12 = 64/12 = 16/3, about 5.333. The left sum 3.5 is about 1.833 short, the right sum 7.5 is about 2.167 over, and the midpoint sum 5.25 is only 1/12, about 0.083, short.

Cut the same interval into 8 strips, each 0.5 wide. The left sum becomes 4.375, the right sum 6.375 and the midpoint sum 5.3125. All three have moved toward 16/3. The left and right sums are now 2 apart, which is (4 − 0) × 0.5, and the midpoint sum is 1/48 short, a quarter of its error with 4 strips.

12xyn = 4leftrightmidpoint

n = 4, so the error is 0.917

Increase n until the Riemann sum converges on the exact area

Four left rectangles under y = x² from x = 0 to x = 2. They add to 1.75, against the exact area 8/3 ≈ 2.667. Switch to right heights for 3.75, or to midpoints for 2.625. Then drag n up to 24: the left and right sums close in from either side, and the midpoint error falls to 0.001.

Under or over

On a rising curve, the left edge of each strip is its lowest point. A left rectangle touches the curve there, and the curve climbs above its top across the rest of the strip, so every left rectangle falls short and the left sum underestimates. The right edge is the highest point of each strip, so every right rectangle pokes above the curve and the right sum overestimates. The exact area lies between them: for y = x²/4, 3.5 < 16/3 < 7.5.

A falling curve reverses this, because now the left edge is the tall side of each strip. Take y = 4 − x²/4 from 0 to 4 in 4 strips. The heights at x = 0, 1, 2, 3 and 4 are 4, 3.75, 3, 1.75 and 0. The left sum is 4 + 3.75 + 3 + 1.75 = 12.5, and the right sum is 3.75 + 3 + 1.75 + 0 = 8.5. The exact area is 4 × 4 − 16/3 = 32/3, about 10.667, so here the left sum is over and the right sum is under.

If a curve rises over part of the interval and falls over the rest, some left rectangles are short and others are tall, and neither sum is sure to be over or under.

xy

Left rectangles under the falling curve y = 4 − x²/4. Each top meets the curve at its left corner, where the strip is tallest, and the curve drops below it. The four add to 12.5, more than the exact area 32/3.

The usual mistakes

Leaving out the width. With strips 1 wide it makes no difference, but with 8 strips 0.5 wide the left heights add to 8.75, and the left sum is 8.75 × 0.5 = 4.375.

Reading the wrong edge. The left sum of y = x²/4 reads x = 0, 1, 2 and 3 and gives 3.5; reading x = 1, 2, 3 and 4 gives 7.5, which is the right sum.

Taking the midpoint sum as the average of the left and right sums. Those average to (3.5 + 7.5) ÷ 2 = 5.5, which is the trapezium rule. The midpoint sum is 5.25.

Calling the left sum an underestimate on every curve. It is under only where the curve rises; on y = 4 − x²/4 it is 12.5, over the exact 32/3.

An hourly meter

In the application below, a works’ electrical load is read every hour, and the energy used is the area under the load curve. The table gives every height the three sums need, and the rising load says which sum is low and which is high.

Worked example: A Works' Load Read Off a Meter Every Hour: Three Rectangle Estimates of the Energy, and Which Side Each Errs

Question A works' electrical load is read off its gauge every hour of a twelve-hour shift. The readings in kilowatts, from h = 0 to h = 12 hours after the shift starts, are 40, 42, 48, 58, 72, 90, 112, 138, 168, 202, 240, 282, 328, and they follow P = 40 + 2h2. Energy in kilowatt-hours is the area under the load curve. (a) Using six strips two hours wide, estimate the energy with the left-endpoint, the right-endpoint and the midpoint sum, and say which side of the true figure each falls. (b) Work out the energy exactly and compare it with the three estimates.

  1. 1.Six strips across twelve hours makes each strip Δ h = 2 hours wide, and every height the three rules need is already in the table. The left-hand ends are at h = 0, 2, 4, 6, 8, 10, the right-hand ends at h = 2, 4, 6, 8, 10, 12, and the midpoints at h = 1, 3, 5, 7, 9, 11.

    the gauge read every hourthe ends of the six stripshourkW024681012404872112168240328the middles of the six stripshourkW1357911425890138202282
    the gauge read every hourthe ends of the six stripshourkW024681012404872112168240328the middles of the six stripshourkW1357911425890138202282
    Six strips across twelve hours makes each Δ h = 2 hours wide, and the table already holds every height the three rules ask for.
  2. 2.The left sum takes the height at the left of each strip: ∑ P Δ h = 2(40 + 48 + 72 + 112 + 168 + 240) = 2 × 680 = 1360 kilowatt-hours.

    0100200300024681012h, hours after the shift startsload, kWleft sum 1360left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360
    0100200300024681012h, hours after the shift startsload, kWleft sum 1360left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360
    The left sum reads each height at the left of its strip: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360 kWh, every rectangle under its strip.
  3. 3.The right sum takes the height at the right of each strip: 2(48 + 72 + 112 + 168 + 240 + 328) = 2 × 968 = 1936 kilowatt-hours.

    0100200300024681012h, hours after the shift startsload, kWright sum 1936left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936
    0100200300024681012h, hours after the shift startsload, kWright sum 1936left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936
    The right sum reads each height at the right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936 kWh, every rectangle over its strip.
  4. 4.(a) The midpoint sum takes the height in the middle: 2(42 + 58 + 90 + 138 + 202 + 282) = 2 × 812 = 1624 kilowatt-hours. The load climbs all shift, so every left rectangle sits under its strip and every right rectangle stands over it: the true energy is trapped between 1360 and 1936, and the midpoint sum lies between them.

    0100200300024681012h, hours after the shift startsload, kWmidpoint sum 1624left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936(a) middle: 2(42 + 58 + 90 + 138 + 202 + 282) = 1624the load climbs, so 1360 is low and 1936 is high
    0100200300024681012h, hours after the shift startsload, kWmidpoint sum 1624left: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936(a) middle: 2(42 + 58 + 90 + 138 + 202 + 282) = 1624the load climbs, so 1360 is low and 1936 is high
    (a) The midpoint sum reads each height in the middle: 1624 kWh, and the true energy is trapped between 1360 and 1936.
  5. 5.(b) Exactly, ∫012(40 + 2h2)dh = [40h + 2h33]012 = 480 + 1152 = 1632 kilowatt-hours. So the left sum is 272 low, the right sum 304 high, and the midpoint sum only 8 low. Check: the right sum less the left sum is 2(328 − 40) = 576, and 1936 − 1360 = 576, as it must be.

    0100200300024681012h, hours after the shift startsload, kWexactly 1632 kWhleft: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936(a) middle: 2(42 + 58 + 90 + 138 + 202 + 282) = 1624the load climbs, so 1360 is low and 1936 is high(b) exact: 480 + 1152 = 1632 kWhlow by 272, high by 304, low by 8
    0100200300024681012h, hours after the shift startsload, kWexactly 1632 kWhleft: 2(40 + 48 + 72 + 112 + 168 + 240) = 1360right: 2(48 + 72 + 112 + 168 + 240 + 328) = 1936(a) middle: 2(42 + 58 + 90 + 138 + 202 + 282) = 1624the load climbs, so 1360 is low and 1936 is high(b) exact: 480 + 1152 = 1632 kWhlow by 272, high by 304, low by 8
    (b) ∫012(40 + 2h2)dh = 480 + 1152 = 1632 kWh, so the left sum is 272 low, the right 304 high and the midpoint only 8 low.

Answer: (a) the left sum is 1360 kilowatt-hours and the right sum 1936, so the energy is trapped between them, with the midpoint sum 1624; (b) exactly 1632 kilowatt-hours, so the left sum is 272 low, the right sum 304 high and the midpoint sum only 8 low

Common mistakes

  • Adding the six heights and stopping there. A sum of heights is in kilowatts; energy is in kilowatt-hours, so every rectangle must be multiplied by its width of 2 hours. Leaving the width out halves every estimate and gives 680 in place of 1360.
  • Reading the midpoint sum as the average of the left and right sums. Those average to 1360 + 19362 = 1648, which is the trapezium rule, not the midpoint rule; the midpoint sum is 1624. The two lie on opposite sides of the exact 1632, because the load curve bends upwards, and the midpoint sum is the closer of them.

More techniques of integration problems, worked step by step →

Practice Left, Right and Midpoint Riemann Sums in the app