Let $f:[0,1]\rightarrow\mathbb{R}, f(x)=\begin{cases} x & \text{when $x$ is rational} \\ 1-x & \text{when $x$ is irrational} \end{cases}$ Show that $f$ is not Riemann Integrable.
Can you show provide an argument with upper sum and lower sum? Any hint will be appreciated.
My attempt: $f\in \mathcal{R}[0,1] \Rightarrow f\in\mathcal{R}[0,0.5]$. Let $\mathbf{P}=\{x_0<\dots<x_n\}$ be a partition, then $U(f,P)\leq\sum_{i=1}^n(1-x_{i-1})(x_i-x_{i-1})$ and $L(f,P)=\sum_{i=1}^n(x_{i-1})(x_i-x_{i-1})$.
But how to show that $f$ is not Riemann, or there does not exist any inf$(U(f,P))$ or sup$(L(f,P))$.