Let $f:[0,2] \to R$ defined as $f(x)= \begin{cases} 1 & x \neq 1 \\ 0 & x = 1 \end{cases}$
Prove that $f$ is integrable in $[0,2]$ and obtain its integral.
Well since the function it's not continuous nor monotonic, then I think this must be proved by definition, but I don't know how to find the partitions, upper and lower sum, etc.