Consider the function $f(x)=\begin{cases} x & x\in \mathbb{Q}\cap [0,1] \\ -x & x\in [0,1]-\mathbb{Q} \\ \end{cases}$
How do you go about computing the following Lebesgue integral?
$$\int_0^{1}f(x)d\mu$$
I need to solve a similar problem, and though I found this on a different post from a year ago, the post dealt only with integrability and not how to solve it. My textbook does not have anything similar. Any help would be greatly appreciated.