If $f:[a,b]\to R$ is bounded such that its points of discontinuities can be enclosed by finite number of sub-intervals with total length arbitrarily small then show that $f$ is Riemann integrable on $[a,b]$.
I know that any bounded function $f$ on $[a,b]$ with a finite number of discontinuities is Riemann integrable on $[a,b]$. But how to show the above.
Choose a set $A$ whose complement is a finite union on intervals with total length at most $\epsilon_1$, and such that $f$ is continuous on $A$. Then $A$ is a finite union of intervals.
On $A$, find partitions with a lower and upper sum for $\int_Af$ that are very close, say of difference at most $\epsilon_2$. (They exist by Riemann integrability of $f$ on $A$.)
Extend the partition trivially to a partition of the entire interval $[a, b]$. If $f$ is bounded by $M$, the upper and lower sum for the extended partition change with $\epsilon_1 M$ at most.
Then the upper and lower sum for the extended partition have difference at most $\epsilon_2+2M\epsilon_1$. Now take $\epsilon_1=\epsilon_2$ arbitrarily small.