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 is also a guaranteed error bound for any Riemann-sum approximation, so this is quadrature with a certificate.
- The function is 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, , is always between them. The readouts show , , and their gap, exactly .
- 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?
, exactly. For an increasing function each strip's max is its right end and its min its left end, so : the sum telescopes.
Name it
Upper and lower sums
For a bounded f on [a, b] and a partition , with and on :
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 . Then is the one number between all lower and all upper sums, and any Riemann sum (with anywhere in its strip) is within of it.
Which functions are integrable
- Monotone functions: with n equal strips, .
- Continuous functions on [a, b]: uniform continuity (lesson 13) makes on fine enough strips.
- Lipschitz with constant K: .
- 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 on [0, 1] with n = 4.
Show the solution
- Upper sum.
- Lower sum.
- The gap. The gap is , and lies between.
Answer U = 0.46875 and L = 0.21875, with the integral between them.
Worked example
How many equal strips guarantee a Riemann sum of on [0, 1] within of the integral?
Show the solution
- The gap for an increasing function. is increasing, so
- Solve for n. That's below when so 1719 strips.
- 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 on [0, 1] with 10 equal strips.
Show the solution
- Where the extremes are. decreases, so on each strip its largest value is at the left end and its smallest at the right.
- Upper sum.
- Lower sum. L drops the first term and adds the last:
- Check. The integral, , lies between them.
- Monotone functions in general. For any monotone function so monotone functions are always integrable, and the gap shrinks as .
Answer U = 0.66425 and L = 0.60104, with the integral 0.63212 between them.
Check
What's the upper sum for 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 ?
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 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°.
Step 2
What is the lower sum?
Explain why
Why is every continuous function on [a, b] Riemann integrable?
On a closed, bounded interval a continuous function is uniformly continuous: for any η > 0 there's a δ such that points closer than δ have values closer than η. Split [a, b] into strips narrower than δ; on each strip the largest and smallest values then differ by less than η, so . Choosing makes the gap less than ε, which is the definition of integrability. Uniform continuity matters: a δ that changed from strip to strip couldn't guarantee all the strips at once.
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.