Q. $f(x) = \left\{ \begin{array}{r} x,\ if\ x\ is\ rational \\ 0,\ if\ x\ is\ irrational \end{array} \right.\$ and $f(x) = \left\{ \begin{array}{r} 0,\ if\ x\ is\ rational \\ x,\ if\ x\ is\ irrational\ \end{array} \right.\$. Then, $f - g$ is

A) One-one and into
B) Neither one-one nor onto
C) Many one and onto
D) One-one and onto
Explanation

(d)
Let $\phi(x) = f(x) - g(x)$
$= \left\{ \begin{array}{r}
x,\ x \in \mathcal{Q} \\
- x,\ x \notin \mathcal{Q}
\end{array} \right.\$
For one-one
Take any straight line parallel to x-axis which will intersect $\phi(x)$ only at one point.
$\Rightarrow \phi(x)$ is one-one.
Foe onto
As, $\phi(x) = \left\{ \begin{array}{r}
x,\ x \in \mathcal{Q} \\
- x,\ x \notin \mathcal{Q}
\end{array} \right.\$, which shows
$y = x$ and $y = - x$ for irrational values $\Rightarrow y \notin$ real numbers.
$\therefore$ Range=Codomain
$\Rightarrow \ \ \ \phi(x)$ is onto.
Thus, $f - g$ is one-one and onto.

Dr. Abubacker
Reviewed by Dr. Abubacker

Physics Educator & NEET/JEE Specialist

Ph.D. in Physics with 19+ years of teaching experience.