Every monotonic function on $[a,b]$ is integrable?

1k Views Asked by At

My book says that the statement in the title is true. What is so special about a function being monotonic? When I think of a non (Riemann) integrable function, I think of $f$, where $f$ is $1$ on rationals and $0$ on irrationals. If we were to translate each point upwards to make this function monotonic (but not continous), why would it be integrable now?