I'd like to know that when Riemann integral and Lebesgue integral are the same in general. I know that a bounded Riemann integrable function on a closed interval is Lebesgue integrable and two integrals are the same.
However, I want to know as general as possible condition for two integrals to be the same. For example, in terms of improper integrals, unbounded functions and $\mathbb R^n$ space.
Any answer would be helpful. Thank you.
The Riemann integrable functions are a subset of the upper functions $\mathscr L^+(I)$, those functions which are a increasing limit a.e. on $I$ of a sequence of step functions, hence usually a proper subset of the Lebesgue integrable functions $\mathscr L(I)=\mathscr L^+(I)-\mathscr L^+(I)$. That is, whenever $f$ is Riemann integrable over $I$ it is also Lebesgue integrable, and the integrals coincide, but there are functions which are Lebesgue integrable but not Riemann integrable.
You must be careful, however, since the Riemann integral is only defined for blocks in $\Bbb R^n$; i.e. those bounded compact subsets that are products of intervals $[a,b]$, and we may stretch the definition up to Jordan measurable sets, however one can define the Lebesgue integral of a function over any Lebesgue measurable subset of your space. Again, a Jordan measurable set is Lebesgue measurable, but there are Lebesgue measurable sets that are not Jordan measurable.
As a counterpart, the positive improperly Riemann integrable functions are Lebesgue integrable, but there are improperly Riemann integrable functions that are not Lebesgue integrable. The usual (counter)example is $x\mapsto x^{-1}\sin x$ over $I=\Bbb R$.