Join the Most Relevant JEE Main 2025 Test Series & get 99+ percentile! Join Now
Search any question & find its solution
Question: Answered & Verified by Expert
Let $Q$ be the set of all rational numbers in $[0,1]$ and $f:[0,1] \rightarrow[0,1]$ be defined by
$$
f(x)=\left\{\begin{array}{r}
x \text { for } x \in Q \\
1-x \text { for } x \notin Q
\end{array}\right.
$$
Then, the set $S=\{x \in[0,21]:(f o f)(x)\}$ is equal to
MathematicsFunctionsJEE Main
Options:
  • A $[0,1]$
  • B $-Q$
  • C $[0,1]-Q$
  • D $(0,1)$
Solution:
2781 Upvotes Verified Answer
The correct answer is: $[0,1]$
Given, $f(x)=\left\{\begin{array}{cc}x & \text { for } x \in Q \\ 1-x & \text { for } x \notin Q\end{array}\right.$ is defined for
$$
f:[0,1] \rightarrow[0,1]
$$
If $x$ is rational, then
$$
\begin{array}{rlrl}
f(x) & =x \\
\therefore \quad & f(f(x)) & =f(x)=x
\end{array}
$$
If $x$ is irrational, then
$$
\begin{aligned}
f(x) & =1-x \\
\therefore \quad f \circ f(x) & =f(1-x)=1-(1-x) \\
& =x
\end{aligned}
$$
$\therefore f \circ f(x)=x$ is possible for all values of domain $[0,1]$.

Looking for more such questions to practice?

Download the MARKS App - The ultimate prep app for IIT JEE & NEET with chapter-wise PYQs, revision notes, formula sheets, custom tests & much more.