The Riemann Sum in Sigma Notation

Σ f(xᵢ) Δx, shrunk until it becomes ∫.

One rectangle, one term

Cut the interval from a to b into n strips of equal width Δx, and number the strips 1, 2, 3, and so on up to n. In strip number i, pick a sample point and call it xᵢ. The rectangle on that strip is f(xᵢ) tall and Δx wide, so its area is f(xᵢ) Δx.

Every rectangle has an area of the same form; only the i changes. So the whole sum is a list of terms f(x₁) Δx, f(x₂) Δx, f(x₃) Δx, and so on up to f(xₙ) Δx.

xy

Eight strips under y = x²/4 from x = 0 to x = 4, each Δx = 0.5 wide, with each height read at the strip’s right edge. The rectangle on strip i has area f(xᵢ) Δx, and the eight add to 6.375.

Sigma adds the list

Sigma, Σ, is the instruction to add a list of terms that share one form. The sum f(x₁) Δx + f(x₂) Δx + … + f(xₙ) Δx is written Σ f(xᵢ) Δx from i = 1 to n: put i = 1, then i = 2, and so on up to i = n, into f(xᵢ) Δx, and add the results.

The letter i is only a counter. Writing the same sum with r or k in place of i changes nothing.

Where strip i sits

The n strips share the interval equally, so Δx = (b − a) / n. With a = 1, b = 5 and n = 8, Δx = 4 / 8 = 0.5.

Start at a and step along i whole strips: the point reached is xᵢ = a + iΔx. So x₀ = a, x₁ = a + Δx, and xₙ = a + nΔx = b. With a = 1 and Δx = 0.5, x₁ = 1.5, x₂ = 2, and x₈ = 5.

With i running from 1 to n, the point a + iΔx is the right edge of strip i, so Σ f(xᵢ) Δx from i = 1 to n is the right sum. The left sum reads the left edges instead, which are x₀ up to xₙ₋₁, so it is the same sum with i running from 0 to n − 1. A midpoint sum reads a + (i − ½)Δx, for i from 1 to n.

The sum for y = x²/4

On [0, 4] with n strips, Δx = 4/n and xᵢ = 4i/n. The height there is f(xᵢ) = (4i/n)² / 4 = 4i²/n², so one term is 4i²/n² × 4/n = 16i²/n³.

The right sum is therefore Σ 16i²/n³ from i = 1 to n. The 16/n³ is the same in every term, so it comes outside: the right sum is 16/n³ times Σ i² from i = 1 to n. The sum of the first n squares is n(n + 1)(2n + 1)/6, so the right sum is 16n(n + 1)(2n + 1)/(6n³) = 8(n + 1)(2n + 1)/(3n²).

Check it at n = 4: 8 × 5 × 9 ÷ (3 × 16) = 360/48 = 7.5, the right sum found by adding the four rectangles. At n = 8 it gives 8 × 9 × 17 ÷ (3 × 64) = 6.375, and at n = 100 it gives 5.4136.

The left sum runs from i = 0 to n − 1, which adds the squares 0², 1², and so on up to (n − 1)². The same formula with n − 1 in place of n gives 8(n − 1)(2n − 1)/(3n²): 3.5 at n = 4, and 5.2536 at n = 100.

Let n run to infinity

Write the right sum as 8/3 × (n + 1)/n × (2n + 1)/n. As n grows without bound, (n + 1)/n = 1 + 1/n gets as close to 1 as you like, and (2n + 1)/n = 2 + 1/n gets as close to 2. So the right sum approaches 8/3 × 1 × 2 = 16/3. The left sum, 8/3 × (n − 1)/n × (2n − 1)/n, approaches 16/3 as well.

That common limit is the area, and it is what the definite integral means: the limit, as n grows without bound, of Σ f(xᵢ) Δx is the integral from a to b of f(x) dx. In the limit Σ becomes ∫ and Δx becomes dx, while the height f(xᵢ) becomes f(x). Integrating x²/4 gives x³/12, and 4³/12 = 16/3, the same number.

xy

Sixteen right rectangles under y = x²/4, each 0.25 wide. Their sum is 8 × 17 × 33 ÷ (3 × 256) = 5.84375, closer to 16/3 ≈ 5.333 than the 6.375 from eight.

Where the integral sign comes from

The sign ∫ is a stretched S, for sum. The integral from a to b of f(x) dx is read as the sum of f(x) dx, the area of a sliver f(x) tall and dx wide, over every sliver from a to b. Each part of the notation comes from a part of Σ f(xᵢ) Δx.

The usual mistakes

Leaving out the width. Σ f(xᵢ) adds heights only. For y = x²/4 in 8 strips the right heights add to 12.75; times the width 0.5, the right sum is 6.375.

Adding the widths alone. Σ Δx from i = 1 to n is n × Δx = b − a, the length of the interval, and the curve has dropped out.

Taking Δx to be b − a, or n. With a = 1, b = 5 and n = 8, Δx is 4 ÷ 8 = 0.5, not 4 or 8.

Writing xᵢ = a + i. That steps i units along, not i strips; it is right only when Δx = 1.

Reading the limit as a derivative. A derivative is a limit of chord gradients; this is a limit of added-up strips, and it gives the definite integral.

An hourly meter

In the application below, the energy used over a shift is Σ P Δh: a load P in kilowatts, read off a table, times a strip Δh = 2 hours wide. The left, right and midpoint sums are the same sum with different sample points.

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 The Riemann Sum in Sigma Notation in the app