Is this function not Continuous anywhere in $(0,1)$, because the value of the function will keep oscillating between $ x^{2} $(for rational) and $2-x^{2}$ (for irrational) values,
So there will be breaks in the function??
Is this function not Continuous anywhere in $(0,1)$, because the value of the function will keep oscillating between $ x^{2} $(for rational) and $2-x^{2}$ (for irrational) values,
So there will be breaks in the function??
Hint: the only place where $f$ can be continuous is where $x^2=2-x^2$ i.e $x=\pm 1\notin (0,1)$
We can use squeeze rule to find the points of continuity.
Consider two functions $g(x) = \min\{x^2, 2-x^2\}$ and $h(x) = \max\{x^2, 2-x^2\}$
Clearly, $g(x) \leq f(x) \leq h(x)$ for all $x$ and the following holds:
(1) $g(x), h(x)$ are continuous at $x = 1$
(2) $g(1) = h(1) = f(1) = 1$
Therefore, $f(x)$ is continuous at $x= 1$. Similarly, we can also show that $f(x)$ is continuous at $x = -1$.
Now, the domain in the question is $(0,1)$. Therefore, $f(x)$ is discontinuous in $(0,1)$