Let $f:[0,1]\to\mathbb{R}$ where $f(x)=x$ for $x\in[0,1]$ rational and $f(x)=0$ for $x\in[0,1]$ irrational. Prove that $f$ is not Riemann integrable on $[0,1]$.
I have a vague idea of what I'm supposed to do, but I don't know where to start.
Let $f:[0,1]\to\mathbb{R}$ where $f(x)=x$ for $x\in[0,1]$ rational and $f(x)=0$ for $x\in[0,1]$ irrational. Prove that $f$ is not Riemann integrable on $[0,1]$.
I have a vague idea of what I'm supposed to do, but I don't know where to start.
Can you prove that $$\overline{\int_0^1}f=\int_0^1 xdx=\frac 1 2$$ and that $$\underline{\int_0^1}f=0\;?$$
First, show that $f$ is discontinuous everywhere on that interval. Therefore, the set of discontinuities of $f$ is $(0,1]$, and we know
$$ m((0,1]) = 1 - 0 = 1 > 0 $$.
Therefore, $f$ cannot be riemman integrable.