Prove that $f(x)=\lfloor x\rfloor$ is Riemann integrable on $[0,5]$

calculusdefinite integralsintegrationriemann-integration

I have several doubts about this exercise because one of the conditions a function must have to be Riemann integrable is to be continuous in that interval, condition $\lfloor x\rfloor$ does not meet. How is this exercise done? Or what does the approach have to be?

Prove that $f(x)=\lfloor x\rfloor$ is Riemann integrable on [0,5] and calculate $\int_0^5 \lfloor x\rfloor \,dx$, where $\lfloor x\rfloor = floor(x)$

Thanks in advance.

Best Answer

Hint: try to prove (or find a prove in your textbook) that a function is Riemann integrable if it has only finitely many discontinuities in the interval of integration.

More generally, a function is Riemann integrable if it has countable many discontinuities. You might also want to try to find a prove for this.