# Functions that are Riemann integrable but not Lebesgue integrable

I know there are functions which are Riemann integrable but not Lebesgue integrable, for instance, $$\int_{\mathbb{R}} \frac{\sin(x)}{x} \mathrm{d}x$$

Is Riemann integrable and it is easily shown that its value is $\pi$, nevertheless, it is not Lebesgue integrable because $$\int_{\mathbb{R}} \left|\frac{\sin(x)}{x}\right| \mathrm{d}x$$ diverges. What is going on here? I thought Lebesgue integration was supposed to be an extension of Riemann integration, kind of like principal values are an "extension" of the notion of improper integral, and if an improper integral converges, it is equal to its principal value, why then every function that is Riemann integrable is not Lebesgue integrable?

Of course the opposite is also true, there are functions which are Lebesgue integrable but not Riemann integrable, so what is going on here? How does one integral notion extend the other and how do they not contradict themselves?

Thank you.

• It's not Riemann integrable, it's improperly Riemann integrable. – Lord Shark the Unknown May 23 '17 at 19:48
• Define "improperly" integrable please? – user438666 May 23 '17 at 19:48
• The Riemann integral is defined only for bounded functions on a bounded interval. The “improper” integral (I dislike the word “improper” here, but it is the conventional term) is defined as a limit og “proper” Riemann integral, in a way that is hopefully familiar to you. So improperly Riemann integrable presumably means the existence of the improper integral in this limit sense. – Harald Hanche-Olsen May 23 '17 at 20:00
• @HaraldHanche-Olsen I have the impression that OP knows that. If I understand correctly, he is asking whether the statement "every function which is Riemann integrable is also Lebesgue integrable" continues to hold for functions which are improperly Riemann integrable. – Amitai Yuval May 23 '17 at 20:03
• Here is one nugget of possible insight: Functions that are Lebgesgue integrable are analogous to absolutely convergent series. Those that are not Lebesgue integrable, but have an improper integral, correspond to conditionally convergent series. To expand on this, note that if $a_n\ge0$, then $\sum_{n=1}^\infty a_n=\sup\sum_F a_n$, the supremum being over all finite subsets $F\subset\mathbb{N}$. Note the analogue with the definition of the Lebesgue integral of nonnegative functions. – Harald Hanche-Olsen May 23 '17 at 20:20

## 3 Answers

The following is a bit of a ramble, but I hope you find it a useful collection of information.

The Riemann integral is only defined for bounded functions on bounded intervals, which are all Lebesgue-integrable. It's the extension to the improper Riemann integral that can integrate functions that are not Lebesgue-integrable.

We recall that a function $f$ is improperly Riemann-integrable on $(a,b)$ if $\int_c^d f$ exists for all $c,d$ with $a<c<d<b$ and $\lim_{\substack{c \to a \\ d \to b }}\int_c^d f$

An easy way to understand the difference is that if $f$ is Lebesgue-integrable, $\lvert f \rvert$ must also be Lebesgue-integrable (basically because this is how we define the Lebesgue integral for nonpositive functions). $\sin{x}/x$ does not satisfy this, so cannot be Lebesgue-integrable.

Another way to understand the Lebesgue integral is via the Daniell construction: we take a vector space of basic functions $\mathcal{F}$ (so that in addition $f \in \mathcal{F}$ if and only if $|f| \in \mathcal{F}$) and a map $I: \mathcal{F} \to \mathbb{R}$ that satisfies linearity, positivity ($f \geq 0 \implies I(f) \geq 0$) and continuity (if $f_n$ is a nonincreasing sequence converging pointwise to $0$, then $I(f_n) \to 0$). One can then define an integral on functions representable as a monotone limit of the functions in $\mathcal{F}$, with some subtleties to deal with negative functions. The advantage here is that one may choose the basic integral $I$ as the Riemann integral and the elementary functions as the continuous functions on a finite interval, or compactly supported continuous functions, and then this construction can be proven to give Lebesgue's integral.

The usefulness of the Lebesgue integral does not really lie in extending the Riemann integral unilaterally. For this the Gauge/Henstock–Kurzweil integral is a much better idea, and indeed, functions like the characteristic function of the rationals are not common in the applications of integration for which the Lebesgue theory is favoured (that's most of them). Instead, we have found that it has other advantages:

• Spaces of Lebesgue-integrable functions tend to be better than spaces of Riemann-integrable functions, the main advantage being that limits of Lebesgue integrable functions are normally also Lebesgue-integrable (pointwise limits, for example, are, by one or other of the Convergence Theorems), whereas this is not the case for Riemann-integrable functions: you need uniform convergence for the limit to be Riemann-integrable. This means that, for example, $L^1$ is a Banach space with norm given by the integral of the absolute value, whereas one would have to use the uniform norm to turn a space of Riemann-integrable functions into a Banach space, with which comes a lack of flexibility: uniform convergence is hard to prove, and generally too much to ask!
• The other main advantage is that the Lebesgue integral can be defined over much more general spaces than the Riemann integral (the Riemann integral requires an order structure of some sort on the underlying set, so is essentially limited to $\mathbb{R}^n$), which makes it useful in a much more general context.

The above are the modern reasons for using the Lebesgue integral: this can hardly have been Lebesgue's motivation, which was likely rather more rooted in the extension you suggest. It's also very difficult to exhibit a non–locally-Lebesgue-integrable function on a finite interval: one needs a lot of the axiom of choice.

We've essentially found there are two common sorts of integral one can define on the real numbers: "absolute" integrals, that tend to be the Lebesgue integral if they are sufficiently general (In this category we have Daniell, Mikusiński and McShane, for example). The other sort are the more general non-absolute ones, such as the gauge integral.

• Thank you, these were the insights I was looking for, just a quick clarification: you say that "the Riemann integral requires an order structure of some sort on the underlying set, so is essentially limited to \mathbb{R}^n", this might be a dumb question, but in our analysis course we treated complex analysis before Lebesgue integration, so all the path integrals there were defined in Riemann's style as far as I knew, and as far as I know $\mathbb{C}$ doesn't have an order structure, am I right? Isn't there a problem? – user438666 May 24 '17 at 6:45
• Your question is reasonable, since there is no total order on $\mathbb{R}^n$. Path integrals are simple since given a piecewise-$C^1$ path $\gamma:[a,b] \to \mathbb{C}$, you define the line integral using the base interval $[a,b]$ as $$\int_{\gamma} f(z) dz = \int_a^b f(\gamma(t)) \gamma'(t) dt,$$ and $[a,b]$ is totally ordered. Multiple Riemann integrals on $\mathbb{R}^n$ depend on dividing the integration region up into rectangles (or products of intervals in general) and taking the limit as the dimensions of the largest $\to 0$, which needs an ordering on the coordinates, for example. – Chappers May 24 '17 at 14:44
• (+1) Well done! Excellent answer. Have you ever heard the term "Improper Lebesgue Integral?" Certainly $\lim_{L\to\infty}\int_0^L \frac{\sin(x)}{x}\,dx$ exists when the integral is a Lebesgue Integral. – Mark Viola Jun 23 '18 at 18:00
• @MarkViola I've seen it mentioned a couple of times around here, but I don't think it's a particularly useful idea: the answer to this question gives one example of a problem with it in a general setting. Also, the Lebesgue integral is useful not just because it can integrate particular functions, but because it behaves nicely with respect to limiting operations due to the convergence theorems. You'll lose this if you add another limit. It looks like it's an example of different notions of convergence of measures giving different results. – Chappers Jun 23 '18 at 18:45

The way I see it, the Lebesgue integral is indeed an "improvement" of the Riemann integral, and the function you give is in fact an example of that. In other words, the fact that this function has a Riemann integral on $\mathbb{R}$ just shows that Riemann integration has some flaws. This is directly related to the following fact:

Let $\sum a_n$ be a conditionally convergent series. Then for any real number $\alpha$, there is a rearrangement of $\sum a_n$ which converges to $\alpha$.

In your example, you can take the function on every interval $[n\pi,(n+1)\pi]$ and reorder the intervals. The above fact implies that any real number could be obtained as a "reordered" Riemann integral of the function in this way. The Lebesgue integral on the other hand, ignores anything such as order. Indeed, it is additive for any sequence of measurable sets. Hence, if your fucntion were Lebesgue integrable, its Lebesgue integral would have to be equal to any real number.

• In the last sentence, did you mean "a certain/single real number"? – AgentSmith Dec 31 '18 at 23:47
• @UtkuOkur No, I meant "every real number". – Amitai Yuval Jan 1 at 6:30

For $r>0$, your function has both a Riemann and a Lebesgue integral over $[0,r]$, and they have the same value in terms of $r$. Now let $r\to\infty$. This common $r$-dependent value tends to a limit, which is traditionally called the improper Riemann integral over $[0,\infty)$. It might just as well be called the improper Lebesgue integral over $[0,\infty)$, but for (good) historical reasons it is not. As others have commented, such terminology is misleading: the value is a limit of a (parameter-dependent) integral and not itself an integral. That said, there is seldom any problem in treating such limits as integrals; so the terminology usually doesn't give rise to confusion in practice.

• (+1) I wonder as to the reason there are Riemann Improper Integrals, and yet not the analogously denoted "Improper Lebesgue Integral." – Mark Viola Jun 23 '18 at 18:35