Question 12 Marks
If $f: R \rightarrow R$ is defined as-
$f(x)=\left\{\begin{array}{r}1 \text { if } x \in Q \\ -1 \text { if } x \notin Q \end{array}\right.$
then
(i) Find the value of the following-
$f\left(\frac{1}{2}\right), f(\pi), f(\sqrt{2})$
(ii) Find the set of images of set R under $f$.
(iii) Find the pre images of 1 and -1
$f(x)=\left\{\begin{array}{r}1 \text { if } x \in Q \\ -1 \text { if } x \notin Q \end{array}\right.$
then
(i) Find the value of the following-
$f\left(\frac{1}{2}\right), f(\pi), f(\sqrt{2})$
(ii) Find the set of images of set R under $f$.
(iii) Find the pre images of 1 and -1
Answer
View full question & answer→(i)
$\begin{array}{ll}\because \frac{1}{2} \in Q, & \therefore f\left(\frac{1}{2}\right)=1 \\\because \quad \pi \notin Q, & \therefore f(\pi)=-1 \\\text { and because } \sqrt{2} \notin Q, & \therefore f(\sqrt{2})=-1\end{array}$
(ii) $\because R$ is a set of rational and irrational numbers
$\therefore \forall x \in Q, f(x)=1$
and $\forall x \notin Q , f(x)=-1$, while $x$ is a real number.
Hence, set of images of R under $f=\{1,-1\}$.
(iii) Since 1 is the image of all those real numbers which are the elements of Q , therefore the pre- image set of 1 is $Q$. Similarly -1 is the image of those real numbers which are elements of ( $R -$ $Q )$. Therefore pre image set of -1 is $( R - Q )$.
$\begin{array}{ll}\because \frac{1}{2} \in Q, & \therefore f\left(\frac{1}{2}\right)=1 \\\because \quad \pi \notin Q, & \therefore f(\pi)=-1 \\\text { and because } \sqrt{2} \notin Q, & \therefore f(\sqrt{2})=-1\end{array}$
(ii) $\because R$ is a set of rational and irrational numbers
$\therefore \forall x \in Q, f(x)=1$
and $\forall x \notin Q , f(x)=-1$, while $x$ is a real number.
Hence, set of images of R under $f=\{1,-1\}$.
(iii) Since 1 is the image of all those real numbers which are the elements of Q , therefore the pre- image set of 1 is $Q$. Similarly -1 is the image of those real numbers which are elements of ( $R -$ $Q )$. Therefore pre image set of -1 is $( R - Q )$.

