Question Error Report

Thank you for reporting, we will resolve it shortly

Back to Question

Q. If f (x) is defined on [0, 1] by the rule $f(x) = \begin{cases} x & : \text{x } \text{ is rational}\\ 1 - x & : \text{x} \text{ is irrational} \end{cases}$
then for all x $\in$ R, f (f(x)) is

Relations and Functions - Part 2

Solution:

f (f (x)) = f (x) = x if x is rational
= f (1 - x) = 1 - (1 - x) = x if x is irrational.
Hence f (f (x)) = x $\forall$ x $\in$ R