# Function Riemann integrable that are not Lebesgue integrable.

I had an exam today and one of my question was: Give a function $f$ that is Riemann integrable but not Lebesgue integrable

How is it possible ? I always thought that Riemann $\implies$ Lebesgue, isn't it ?

• Was the question "Prove or disprove"? – Joe Johnson 126 Dec 28 '15 at 15:10
• I assume here the question includes "Improper (Riemann) integrals"? – Clement C. Dec 28 '15 at 15:11
• no, just to give an exemple of a function that is Riemann integrable but not Lebesgue integrable. I'm a little bit suprised of such a question since I always thought that a Riemann integrable function was Lebesgue integrable. – user301068 Dec 28 '15 at 15:11
• @ClementC.: I don't know, but probably. Is it that important ? – user301068 Dec 28 '15 at 15:12
• No. Lebesgue integrability of $f$ requires the integrability of $|f|$ as well. Consider integrating $\frac{\sin x}x$ on $(0,\infty)$. – MPW Dec 28 '15 at 15:13

A function $f$ is Lebesgue integrable if and only if $f^+=0\vee f$ and $f^-=0\wedge f$ are integrable. So if $f\geq 0$ is Riemann integrable then it will be also Lebesgue integrable. But if $f$ has not a constant sign, then $f$ can be Riemann integrable but not Lebesgue integrable as $f(x)=\frac{\sin(x)}{x}$ on $[0,\infty [$. And this is because $\int f^+=\int f^-=+\infty$. Therefore $\int f=\int f^+-\int f^-$ is not defined.
• How can you show that $\int f^+ = +\infty$? – Alfredo Lozano Apr 15 '17 at 18:38