Q. If f (x) is defined on [0, 1] by the rule
then for all x R, f (f(x)) is

 1958  207 Relations and Functions - Part 2 Report Error

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 x R