Real Analysis 52 | Riemann Integral - Examples [dark version]
Based on The Bright Side of Mathematics's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Riemann integrability can be checked by forcing the gap between upper and lower step-function integrals below any epsilon.
Briefing
Riemann integrability hinges on whether the “gap” between step-function approximations from below and from above can be forced arbitrarily small. The lesson is made concrete through two contrasting examples: the Dirichlet (rational/irrational) function on [0,1] fails the test, while the identity function f(x)=x succeeds and yields the familiar integral value 1/2.
The counterexample is the function f(x)=1 for rational x and f(x)=0 for irrational x on [0,1]. Because every subinterval contains both rationals and irrationals, any step function that lies above f must effectively sit at height 1 throughout each interval: there is always a rational point where f equals 1. That forces the upper approximation to have integral at least 1. Symmetrically, any step function lying below f must be at height 0 throughout each interval, since every subinterval also contains irrationals where f=0; thus the lower approximation’s integral is at most 0. Since the difference between the upper and lower integrals is always at least 1, no matter how fine the partition gets, the “epsilon gap” condition cannot be satisfied. This blocks Riemann integrability outright.
The second example demonstrates how integrability can be verified constructively. For f(x)=x on [0,1], the area under the curve is known to be 1/2, but the goal is to reproduce that value using rectangle (step-function) approximations. For each integer n, a step function F_n is built from below using n equal subintervals of width 1/n. On the k-th subinterval, the height is (k−1)/n, so each rectangle has width 1/n and height varying linearly across the partition. The integral of this step function becomes a sum of rectangle areas: (1/n^2) times the sum of integers from 0 to n−1. Using the arithmetic-series formula, the lower integral simplifies to (n(n−1)/2)/n^2 = 1/2 − 1/(2n).
To approximate from above, a second step function S_n is shifted upward so that it stays above x on each subinterval while using the same partition. The rectangle heights now run through 1/n, 2/n, …, n/n, producing an upper integral of (1/n^2) times the sum of integers from 1 to n. The same series formula yields 1/2 + 1/(2n). The crucial quantity is the gap between these bounds: (1/2 + 1/(2n)) − (1/2 − 1/(2n)) = 1/n. As n grows, 1/n can be made smaller than any chosen epsilon, satisfying the Riemann criterion. With that, f(x)=x is confirmed Riemann integrable, and the integral value is pinned down as the common limit 1/2.
Cornell Notes
Riemann integrability can be tested by comparing integrals of step-function approximations from below and from above. The Dirichlet function on [0,1] (1 on rationals, 0 on irrationals) is not Riemann integrable because every interval contains both types of points, forcing any upper step approximation to have integral at least 1 and any lower step approximation to have integral at most 0. For f(x)=x, step functions built on n equal subintervals produce lower and upper integrals of 1/2 − 1/(2n) and 1/2 + 1/(2n). Their difference is exactly 1/n, which can be made smaller than any epsilon by choosing n large. The integral therefore exists and equals 1/2.
Why does the rational/irrational (Dirichlet) function fail the Riemann integrability test on [0,1]?
How are the lower step-function approximations F_n for f(x)=x constructed?
What changes in the upper step-function approximations S_n for f(x)=x?
How does the epsilon condition get verified for f(x)=x?
What integral value is obtained for f(x)=x and why is it consistent?
Review Questions
- For the Dirichlet function on [0,1], what property of subintervals forces the upper step-function integral to be at least 1?
- Compute the lower and upper Riemann bounds for f(x)=x using n equal subintervals and verify the gap equals 1/n.
- What does it mean, in terms of step-function integrals, for a bounded function to be Riemann integrable?
Key Points
- 1
Riemann integrability can be checked by forcing the gap between upper and lower step-function integrals below any epsilon.
- 2
The Dirichlet function f(x)=1 on rationals and 0 on irrationals is not Riemann integrable because every interval contains both rationals and irrationals.
- 3
For f(x)=x on [0,1], constructing step functions on n equal subintervals yields explicit lower and upper bounds.
- 4
The lower bound for f(x)=x is 1/2 − 1/(2n), obtained from rectangle heights (k−1)/n.
- 5
The upper bound for f(x)=x is 1/2 + 1/(2n), obtained from rectangle heights k/n.
- 6
The difference between upper and lower bounds for f(x)=x equals 1/n, so it can be made smaller than any epsilon.
- 7
The Riemann integral of f(x)=x on [0,1] is 1/2, confirmed by the convergence of the bounds.