A1417 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A14 · Lesson 17 · The Riemann integral

Squeezing the area between upper and lower sums

Calculus defines the integral as "area under the curve," and A13 approximated it with sums. Analysis asks when the area is well defined at all. The Riemann integral traps it between two staircase sums: an upper sum using the largest value of f on each strip, and a lower sum using the smallest. If you can make the two as close as you like by using finer strips, the function is integrable, and the integral is the number squeezed between them. The gap U−L is also a guaranteed error bound for any Riemann-sum approximation, so this is quadrature with a certificate.

  • The function is x2 on [0, 1], split into n equal strips. The solid staircase uses each strip's largest value (upper sum), the dashed one its smallest (lower sum).
  • The true integral, 13, is always between them. The readouts show U=(n+1)(2n+1)6n2, L=(n−1)(2n−1)6n2, and their gap, exactly 1n.
  • Raise n: the staircases close in from both sides.

Predict

f is increasing on [0, 2], with f(0) = 1 and f(2) = 5. With n equal strips, how far apart can the upper and lower sums be?

Name it

Upper and lower sums

For a bounded f on [a, b] and a partition a=x0<x1<⋯<xn=b, with Mk=sup⁡f and mk=inf⁡f on [xk−1,xk]:

U=∑MkΔxk,L=∑mkΔxk,L≤U

Refining the partition can only lower U and raise L, so every lower sum is below every upper sum.

Integrability

f is Riemann integrable if for every ε > 0 some partition has U−L<ε. Then ∫abf is the one number between all lower and all upper sums, and any Riemann sum ∑f(tk)Δxk (with tk anywhere in its strip) is within U−L of it.

Which functions are integrable

  • Monotone functions: with n equal strips, U−L=(b−a)|f(b)−f(a)|n.
  • Continuous functions on [a, b]: uniform continuity (lesson 13) makes Mk−mk<ε on fine enough strips.
  • Lipschitz with constant K: U−L≤K(b−a)2n.
  • Bounded functions with finitely many jumps.
  • Not the indicator of the rationals: every strip contains rationals and irrationals, so U = b − a and L = 0 always. (The Lebesgue integral of lesson 46 handles it.)

Worked example

Compute U and L for x2 on [0, 1] with n = 4.

Show the solution
  1. Upper sum. U=14⋅1+4+9+1616=3064=0.46875
  2. Lower sum. L=14⋅0+1+4+916=1464=0.21875
  3. The gap. The gap is 0.25=14, and 13 lies between.

Answer U = 0.46875 and L = 0.21875, with the integral 13 between them.

Worked example

How many equal strips guarantee a Riemann sum of ex on [0, 1] within 10−3 of the integral?

Show the solution
  1. The gap for an increasing function. ex is increasing, so U−L=(e−1)⋅1n
  2. Solve for n. That's below 10−3 when n>1718.3 so 1719 strips.
  3. Compare with the trapezoid rule. The trapezoid rule needs far fewer, because it averages U and L instead of bounding by either.

Answer 1719 strips.

Worked example

Compute the upper and lower sums for e−x on [0, 1] with 10 equal strips.

Show the solution
  1. Where the extremes are. e−x decreases, so on each strip its largest value is at the left end and its smallest at the right.
  2. Upper sum. U=110∑k=09e−k/10=110⋅1−e−11−e−0.1=0.66425
  3. Lower sum. L drops the first term and adds the last: L=U−1−e−110=0.60104
  4. Check. The integral, 1−e−1=0.63212, lies between them.
  5. Monotone functions in general. For any monotone function U−L=|f(b)−f(a)|(b−a)n so monotone functions are always integrable, and the gap shrinks as 1n.

Answer U = 0.66425 and L = 0.60104, with the integral 0.63212 between them.

Check

What's the upper sum for x2 on [0, 1] with 10 equal strips?

Check

f increases from 3 at x = 0 to 10 at x = 3. What's U − L with 10 equal strips?

Check

An increasing function on [0, 1] rises by 1.718. How many equal strips make U−L<0.003?

Check

A Lipschitz function (constant 2) on an interval of length 2: what's the bound on U − L with 1000 equal strips?

Check

For the indicator of the rationals on [0, 1], what are every upper sum and every lower sum?

Check

Upper and lower sums for e−x on [0, 1] with 10 equal strips.

(a)

What is the upper sum?

(b)

What is U − L?

Check

Riemann sums of f(x) = x on [0, 1] with n equal strips.

Step 1

What is the upper sum?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why is every continuous function on [a, b] Riemann integrable?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.