Counterexample for $\left | f \right |\in\mathcal{R}([a,b])\implies f\in \mathcal{R}([a,b])$

63 Views Asked by At

Someone can help me to find a counterexemple that the following proposition is not true:

$$\left | f \right |\in \mathcal{R}([a,b])\implies f\in \mathcal{R}([a,b])$$

Thank you so much for your help!

1

There are 1 best solutions below

3
On

Take $f(x)=\left\{\begin{matrix} 1 & x\in\mathbb{Q}\\ -1 & x\notin \mathbb{Q} \end{matrix}\right.$

Can you see why it works?