QlarIITy

MathematicsJEE Main 2021 · 26 FebruarySingle correct

LetA={1,2,3,…,10}A = \{1, 2, 3, \ldots, 10\}and f:A→Af : A \to A be defined as f(k)={k+1,if k is oddk,if k is evenf(k) = \begin{cases} k + 1, & \text{if } k \text{ is odd} \\ k, & \text{if } k \text{ is even} \end{cases}. Then the number of possible functions g:A→Ag : A \to A such that g∘f=fg \circ f = f is:

  1. Option A: 10C5{}^{10}C_5
  2. Option B: 555^5
  3. Option C: 5!5!
  4. Option D: 10510^5
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 that composes with another to give that other function must fix every value of it.

Concept refresher. The equation g∘f=fg \circ f = f says that gg leaves every value of ff unchanged,

g(y)=yg(y) = y

for each yy in the range of ff, while gg is free elsewhere.

Picture the situation. The values of ff are the even numbers of AA: each odd kk goes to k+1k + 1 and each even kk stays. The condition g(f(k))=f(k)g(f(k)) = f(k) for all kk says g(y)=yg(y) = y for each even yy. Nothing is said about gg at the odd numbers.

Approach. Fix the second function on the range of the first and count its free values.

  1. Step 1: The fixed values

    The range of ff is {2,4,6,8,10}\{2, 4, 6, 8, 10\}, and the condition forces g(y)=yg(y) = y for each of these five numbers.

  2. Step 2: The free values

    At each of the five odd numbers gg can take any of the 10 values of AA, so the number of functions is 10510^5.

Answer. (D) 10510^5

Sanity check. For instance gg may send every odd number to 1; then g(f(k))=f(k)g(f(k)) = f(k) still holds, because f(k)f(k) is always even.

Why the other options are wrong

  • (A) Nothing is being selected: each of the five odd numbers independently gets one of 10 values.
  • (B) The value 555^5 would restrict the images of the odd numbers to five values, but all 10 are allowed.
  • (C) The value 5!5! would require the images of the odd numbers to be different, which is not asked.

Key takeaway

The trap. Elements outside the range are completely free.

How toppers think. They separate the domain into the range of the first function and the rest.

Remember. g(y)=yg(y) = y for even yy, free otherwise

More on Types of Functions