Let $ f: [0,1] \rightarrow \Bbb R$ defined by:
$f(x)= \sin(\frac{1}{x}) $ if $ x \notin \Bbb Q$ , $ 0 $ if $x \in \Bbb Q$
I have to prove that this function is Riemann integrable in that interval.
It is bounded in $ [-1,1]$ , and it's not continuous.
I have tried seeing if I could make $ U(f,P) - L(f,P) < \epsilon$ for some partition $P$ , but I wasn't able to evaluate $ M_k $ and $ m_k $ , as for some intervals they could be $ 0 , 1$ or $-1$.
I also know that, if it was just $\sin(\frac{1}{x})$ , if would be integrable in that interval , as it would be continuous in $(0,1]$ , and we could ignore the discontinuity in $\{0\}$ as it is just a point.
Thank you in advance.
You cannot prove it, since it is false. The set of points at which that function is discontinuous has Lebesgue measure greater than $0$.