QlarIITy

MathematicsIIT-JEE 2005 ScreeningSingle correct

If the functions f(x)f(x) and g(x)g(x) are defined on R→R\mathbb{R}\to\mathbb{R} such thatf(x)={x,if x is rational0,if x is irrationalf(x)=\begin{cases}x, & \text{if } x \text{ is rational}\\ 0, & \text{if } x \text{ is irrational}\end{cases}andg(x)={0,if x is rationalx,if x is irrationalg(x)=\begin{cases}0, & \text{if } x \text{ is rational}\\ x, & \text{if } x \text{ is irrational}\end{cases}then, (f−g)(x)(f-g)(x) is

  1. Option A: one-one and into.
  2. Option B: neither one-one nor onto.
  3. Option C: many one and onto.
  4. Option D: one-one and onto.
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A function defined separately on rationals and irrationals is a bijection when each piece maps its own class one-one onto itself.

Concept refresher. A function is one-one if different inputs give different outputs, and onto if every element of the codomain is an output. Negation maps rationals to rationals and irrationals to irrationals.

Approach. Find ϕ(x)=(f−g)(x)\phi(x)=(f-g)(x) piecewise and test each property using the rational/irrational split.

  1. Step 1: Find f−gf-g

    ϕ(x)=f(x)−g(x)={x−0=x,x rational0−x=−x,x irrational\phi(x)=f(x)-g(x)=\begin{cases}x-0=x, & x\text{ rational}\\ 0-x=-x, & x\text{ irrational}\end{cases}
  2. Step 2: One-one

    On rationals ϕ(x)=x\phi(x)=x is one-one with rational outputs. On irrationals ϕ(x)=−x\phi(x)=-x is one-one with irrational outputs. A rational output can never equal an irrational output, so no two distinct inputs share an image. Hence ϕ\phi is one-one.

  3. Step 3: Onto

    Take any real yy. If yy is rational, ϕ(y)=y\phi(y)=y. If yy is irrational, −y-y is irrational and ϕ(−y)=y\phi(-y)=y. So every real number is an image, and ϕ\phi is onto.

Answer. (D)

Why the other options are wrong

  • (A) "Into" means some real number is missed, but every yy is reached as shown in Step 3.
  • (B) ϕ\phi is both one-one and onto, so "neither" is false.
  • (C) "Many one" needs two inputs with the same image, which cannot happen since rational and irrational images never coincide.

Key takeaway

The trap. Students assume such a split function must repeat values, without noticing that −x-x keeps irrationals irrational and xx keeps rationals rational.

How toppers think. They simplify f−gf-g to xx on the rationals and −x-x on the irrationals and see that the two classes can never collide.

Remember. If each piece maps its class one-one onto itself, the whole function is one-one and onto.

More on Types of Functions