QlarIITy

MathematicsJEE Advanced 2025 · Paper 1One or more correct

Let N\mathbb{N} denote the set of all natural numbers, and Z\mathbb{Z} denote the set of all integers. Consider the functions f:N→Zf: \mathbb{N} \rightarrow \mathbb{Z} and g:Z→Ng: \mathbb{Z} \rightarrow \mathbb{N} defined byf(n)={n+12if n is odd4−n2if n is evenf(n) = \begin{cases} \frac{n + 1}{2} & \text{if } n \text{ is odd} \\ \frac{4 - n}{2} & \text{if } n \text{ is even} \end{cases}andg(n)={3+2nif n≥0−2nif n<0g(n) = \begin{cases} 3 + 2n & \text{if } n \geq 0 \\ -2n & \text{if } n < 0 \end{cases}Define (g∘f)(n)=g(f(n))(g \circ f)(n) = g(f(n)) for all n∈Nn \in \mathbb{N}, and (f∘g)(n)=f(g(n))(f \circ g)(n) = f(g(n)) for all n∈Zn \in \mathbb{Z}.Then which of the following statements is (are) TRUE?

  1. Option A: g∘fg \circ f is NOT one-one and g∘fg \circ f is NOT onto
  2. Option B: f∘gf \circ g is NOT one-one but f∘gf \circ g is onto
  3. Option C: gg is one-one and gg is onto
  4. Option D: ff is NOT one-one but ff is 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. Tabulating the first few values exposes repeats and gaps in piecewise functions.

Concept refresher. A function is one-one when distinct inputs give distinct outputs, and onto when every element of the codomain is taken. For the composite

(g∘f)(n)=g(f(n))(g \circ f)(n) = g(f(n))

if ff is not one-one, neither is g∘fg \circ f; if gg is not onto, neither is g∘fg \circ f.

Approach. Tabulate ff and gg, then find f∘gf \circ g explicitly.

  1. Step 1: f

    Odd nn give 1,2,3,…1, 2, 3, \ldots and even nn give 1,0,−1,…1, 0, -1, \ldots, so f(1)=f(2)=1f(1) = f(2) = 1: ff is onto Z\mathbb{Z} but not one-one.

  2. Step 2: g and g∘f

    gg gives the odd numbers from 3 for n≥0n \geq 0 and the even numbers from 2 for n<0n < 0: one-one, but 1 is missed, so not onto. Hence g∘fg \circ f is neither one-one nor onto.

  3. Step 3: f∘g

    For n≥0n \geq 0, f(3+2n)=n+2f(3 + 2n) = n + 2; for n<0n < 0, f(−2n)=n+2f(-2n) = n + 2. So (f∘g)(n)=n+2(f \circ g)(n) = n + 2, a bijection of Z\mathbb{Z}. So (A) and (D).

Answer. (A), (D)

Why the other options are wrong

  • (B) (f∘g)(n)=n+2(f \circ g)(n) = n + 2 is one-one as well as onto.
  • (C) gg is one-one but never takes the value 1, so it is not onto N\mathbb{N}.

Key takeaway

The trap. Students judge onto without checking the smallest element of the codomain.

How toppers think. They compute the composite explicitly when the pieces fit together.

Remember. g∘f inherits failures of one-one from f and of onto from g.

More on Composite & Inverse Functions