What is an example that involves a fuction on an interval of the real numbers where the Lebesgue integral is better than the Riemann integral.
By better, it probably means that the Lebesgue intregral is defined while the Riemann integral is not.
By an example, I mean an example that has importance in mathematics for reasons other than just showing that the Lebesgue integral is more general than the Riemann integral. If the importance of the example is not clear, then please explain why it is important.
A possible answer could be an example where the use of the dominated convergence theorem plays a role.


Take the Dirichlet function (restricted to, say, $[0,1]$), for instance: