Show that the function f / \mathbb{R} -> \mathbb{R} which is defined by f(x):= x& ifxis…
- User
Show that the function f / \mathbb{R} -> \mathbb{R} which is defined by f(x):= x& ifxis rational\ 0&if x is irrational is continuous only at x = 0
- Assistant
To show that the function f is continuous only at x = 0, we need to show that f is not continuous at any other point except x = 0.
First, let's consider the point x = 0. For any ε > 0, we can find a δ > 0 such that |f(x) - f(0)| = |f(x) - 0| = |f(x)| < ε whenever |x| < δ. Since f(x) = 0 for all irrational x and f(x) = x for all rational x, for any ε > 0, we can choose δ = ε. So, f is continuous at x = 0.
Now, let's consider a point x ≠ 0. Without loss of generality, let's assume x > 0 (the argument for x < 0 will be similar). Since x is irrational, f(x) = 0. However, given any ε > 0, for any δ > 0, we can always find an irrational number x' such that |x - x'| < δ but |f(x) - f(x')| = |0 - x'| = |x'| > ε. Therefore, f is not continuous at any point x ≠ 0.
In conclusion, the function f is continuous only at x = 0 and not at any other point.