comparison between Lebesgue and Riemann Integration
The Riemann and Lebesgue integral are defined in different ways, withthe latter generally perceived as the more general. The aim ofthis article is to clarify this claim by providing a number of,hopefully simple and convincing, examples and arguments
. We restrictthis article to a discussion of proper and improper integrals. Forextensions
and even more general definitions of the integral we referto http://www.math.vanderbilt.edu/~schectex/ccc/gauge/:
1 Proper Integrals
The Dirichlet Function
Our first example shows that functions exists that are Lebesgueintegrable but not Riemann integrable.
Consider the characteristic function of the rational numbers in, i.e.,
This function, known as the Dirichlet function, is not Riemannintegrable. To see this, take an arbitrary partition
of the interval. The supremum
of on any interval(with non-empty interior) is , whereas its infimum
is . Hence,the upper Riemann sum of is while thelower Riemann sum is . Clearly, the upper and lower Riemann sumsconverge
to 1 and 0, respectively, in the limit of the size of largestinterval in the partition going to zero. Obviously, these limits arenot the same. As a bounded function is Riemann integrable if and onlyif the upper and lower Riemann sums converge to the same number, theRiemann integral of cannot exist.
On the other hand, turns out to beLebesgue integrable, which we now show. Let us enumerate the rationalsin as . Now cover each with anopen set of size . Hence, the set is contained in the set . Now it is known that every countable union ofopen sets forms a Lebesgue measurable set. Therefore, isalso a Lebesgue measurable set. Consequently, the Lebesgue integralof this set’s characteristic function, i.e.,
exists.
In fact, the integral of is less than or equal to as the total length ofthe union of sets is less than or equal to . (Theremight be overlaps between the .) Now taking the limit it follows that for all ,
Since this holds for all , the left hand side must be 0.
A ’Worse’ Kind of Dirichlet Function
The above is, arguably, somewhat simple. The only reason that theDirichlet function is Lebesgue, but not Riemann, integrable, is thatits spikes occur on the rationals, a set of numbers which is, incomparison to the irrational numbers, a very small set. By modifyingthe Dirichlet function on a set of measure zero, that is, byremoving its spikes, it becomes the zero function, which is evidentlyRiemann integrable. This reasoning might lead us to conjecture thatit is possible to turn any Lebesgue integrable function into a Riemannintegrable function by modifying it on a set of measure zero. Thisconjecture, however, is false as the next example shows.
Interestingly, the function we seek can be obtained in a more or lessdirect way from the previous example. First cover the rationals byopen sets of length , where the sequence of numbers of is such that for all but such that. Observe that is a measurableset
with measure
(length) less than or equal to . But thisimplies that the complement
of , which contains onlyirrational numbers, has length at least .
Observe that the characteristic function isnowhere continuous on , as the rationals lie dense in thereals. Since, also, has measure at least equalto it is impossible to remove these discontinuity points by amere modification on a countable number of measure zero sets.
Now there is a theorem by Lebesgue stating that a bounded function is Riemann integrable if and only if is continuous almosteverywhere. Apparently, is bounded
anddiscontinuous
on a set with measure larger than . Thus, we mayconclude that is not Riemann integrable.
To prove that is Lebesgue integrable followseasily if we approach the subject of integration from a somewhat moreabstract point of view. This is the topic of the next section.
Exchanging Limits and Integrals
Let us first present one further example: the sequence ofcharacteristic functions of , where and , are the open sets appearing in thedefinition of the ’worse Dirichlet function’. Clearly, any suchfunction has a finite number of discontinuities, hence is Riemannintegrable. However, these functions converge point-wise to, which is not Riemann integrable.Apparently, sequences of Riemann integrable functions may converge tonon-Riemann integrable functions. Interestingly, the sequence ofintegrals of , i.e. a sequence ofreals, has a limit as it is increasing and bounded by .This somewhat disturbing inconsistency is satisfactory resolvedby Lebesgue’s theory of integration.
As a matter of fact, the advantage of Lebesgue integration is perhapsbest appreciated by interpreting this example from a more abstract(functional analysis) point of view. Stated a bit differently, wemight approach the subject not from the bottom up (looking atindividual functions) but from the top down (looking at classes offunctions). In more detail, suppose we are allowed to apply anoperator to any function that is an element of some functionspace. It would be nice if this space is closed under
taking(point-wise) limits. In other words, besides being allowed to apply to some sequence of functions , we are also allowed to apply to the function obtained as the limit of . It would beeven nicer if is the same as .(This is, for instance, useful when it is simple to compute for each , but difficult to compute , while the latter might bewhat really interests us.)
In the present case, i.e, integration, we perceive the integral of afunction as a (continuous linear) operator. The class of Lebesgueintegrable functions has the desired abstract properties (simpleconditions to check whether the exchange of integral and limit isallowed), whereas the class of Riemann integrable functions does not.
Applying this to the above example, viz. the integration of, we use Lebesgue Dominated Convergence Theorem,which states that when a sequence of Lebesguemeasurable functions is bounded by a Lebesgue integrable function, thefunction obtained as the pointwise limit is also Lebesgueintegrable, and . Since,for all , is bounded and Lebesgueintegrable, is also Lebesgue integrable,and reversing the (pointwise) limit and the integral is allowed.
1.1 Fubini’s Theorem
Admittedly the function is rather artificial.A really powerful example of the consequences of being allowed toreverse integral and limit is provided by (the proof of)Fubini’s theorem applied to the rectangle .Compare the following two theorems. See, for instance,[Apo69] or [Lan83] for proofs ofthe first theorem, and [Jon00] forthe second theorem.
Theorem 1.1.
Riemann Case. Assume to be Riemann integrable on . Assumealso that the one-dimensional function is Riemannintegrable for almost all . Then the function is Riemann integrable and . Note: bothconditions are satisfied if is continuous on .
Theorem 1.2.
Lebesgue Case. Assume that is Lebesgue integrable on . Thenthe function is Lebesgue integrable for almost all on . As a consequence, the function is Lebesgue integrable and .
Observe that the second assumption in the Riemann case hasturned into a consequence in the Lebesgue case. The mainreason behind this difference
is precisely that the class of Lebesguemeasurable functions is closed under taking limits (under a boundedcondition), whereas the class of Riemann integrable functions is not.
2 Improper Integrals
From the above the reader may conclude that whenever a function isRiemann integrable, it is Lebesgue integrable. This is true as long weonly include proper integrals. If, on the other hand, we alsoconsider improper integrals the statement is no longer valid.There exist functions whose improper Riemann integral exists, whereasthe Lebesgue integral does not. Concentrating on functions defined onsubsets of the situation is as shown by the followingVenn Diagram:
In the previous we already discussed the inclusion .
Let us now integrate the function over to showthat some functions exist but are not in . As is not bounded on every upper Riemann sum is infinite. Onthe other hand, both the improper Riemann integral and the Lebesgueintegral exist, and give the same result.
Secondly, is not contained in as follows from the fact thatthe Dirichlet function is not .
Finally, is also not a subset of . Define as on , on , on , on , etc. The Riemann integral and theLebesgue integral of over are both equal to It is well known that thisalternating sum converges, implying the existence of the improperRiemann integral. However, since a function is Lebesgue integrable ifand only if its absolute value is also Lebesgue integrable, is notin .
References
- Apo69 T.M. Apostol. Calculus, volume 2. John Wiley & Sons, 1969.
- Jon00 F. Jones. Lebesgue Integration on Euclidean Spaces. Jones and Bartlett, revised edition edition, 2000.
- Lan83 S. Lang. Undergraduate Analysis
. Springer-Verlag, 1983.