Prove that $f(x)=\begin{cases}x & \text{ if $x$ is rational } \\ -x & \text{ if $x$ is irrational} \end{cases}$ is not Riemann integrable on [0,1]
I'm trying to workout the upper integral and the lower integral. And to say that they are not equal. But got stuck in between.
Definitions that I have been using:
$\bar{I}(f,P)=\sum_{j=0}^{n}(a_{j+1}-a_j)\sup\left \{f(x)|a_j\leq x\leq a_{j+1} \right \}$
$\underline{I}(f,P)=\sum_{j=0}^{n}(a_{j+1}-a_j)\inf\left \{f(x)|a_j\leq x\leq a_{j+1} \right \}$
$\overline{\int_{0}^{1}}f dx= \underset{\epsilon\rightarrow 0}{\lim}\sup\left \{ \overline{I}(f,P)| P\text{ is a partition on [0,1] with a mesh size}\leq\epsilon \right \}$
$\underline{\int_{0}^{1}}f dx= \underset{\epsilon\rightarrow 0}{\lim}\sup\left \{ \underline{I}(f,P)| P\text{ is a partition on [0,1] with a mesh size}\leq\epsilon \right \}$