The main difference between the Lebesgue and Riemann integrals is that the Lebesgue method takes into account the values of the function, subdividing its range instead of just subdividing the interval on which the function is defined. This fact makes a difference when the function has big oscillations or discontinuities. However, the Lebesgue method needs to compute the measure of sets that are not intervals.