Here we discuss the limitations of the Riemann integral and the greater scope offered by the Lebesgue integral.
With the advent of Fourier series, many analytical problems involving integrals came up whose satisfactory solution required interchanging limit processes and integral signs.