HallsofIvy said:
If a function is NOT Riemann integrable, it can still be Lebesque integrable. Of course, in that case, there must exist a Riemann integrable function equal to the given function everywhere except on a set of measure 0.
Hold on - this is not true. This would imply that every (bounded) Lebesgue integrable function is equal to a continuous function almost everywhere, which is not the case (e.g. look at the characteristic function of a fat Cantor set in [a,b]). What is true is that if a function f, which is defined on a set of finite measure, is Lebesgue integrable then f is equal to a continuous function except on a set of arbitrarily small measure (Lusin's theorem).
Anyway, Lebesgue integration isn't really about computing integrals. It was introduced as an attempt to remedy the shortcomings of the Riemann integral. Here are four advantages to using the Lebesgue integral instead of the Riemann integral:
(1) Riemann integrable functions are still Lebesgue integrable, so we're not losing anything by using the Lebesgue integral.
(2) We no longer have to restrict integration to intervals and the like. The Lebesgue integral allows us to integrate over more general sets (those which are measurable).
(3) We now have very powerful and useful convergence theorems, something which the Riemann integral lacks.
(4) Consider the vector space C[0,1] of continuous, real-valued functions on [0,1]. There is a natural norm on this space defined by [itex]\|f\|_1 = \int_0^1 |f(x)| dx[/itex] (this is the Riemann integral). However, C[0,1] is not a complete space under [itex]\|\cdot\|_1[/itex]; its completion is actually the space of functions which are Lebesgue integrable on [0,1].
The importance of the Lebesgue integral really lies in its construction. The use of simple functions instead of step functions allows us to introduce the notion of integration to spaces where there are no "intervals." As a consequence we get some very deep and useful theorems, like the Riesz representation theorem.