Skip to content
dronacharya.ai
JEE Advanced 2025MathematicsMultiple correct+4 / -2

JEE Advanced 2025 Maths Q6: Composition and inverse functions

From the JEE Advanced 2025 · Paper 1 paper. Try it, check your answer, then read the worked solution below.

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} \to \mathbb{Z} and g:Z→Ng : \mathbb{Z} \to \mathbb{N} defined by

f(n)={(n+1)/2if n is odd,(4−n)/2if n is even,f(n) = \begin{cases} (n+1)/2 & \text{if } n \text{ is odd},\\ (4-n)/2 & \text{if } n \text{ is even}, \end{cases}

and

g(n)={3+2nif n≥0,−2nif n<0.g(n) = \begin{cases} 3 + 2n & \text{if } n \ge 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?

Choose one or more options

Answer and worked solution

Try it yourself first, then check your working against this.

Official answerA, D

Worked solution

f. Odd nn give 1,2,3,…1,2,3,\dots; even nn give 1,0,−1,−2,…1,0,-1,-2,\dots

  • f(1)=f(2)=1f(1)=f(2)=1, so ff is not one-one.
  • Every integer is hit, so ff is onto.
  • (D) is true.

g. n≥0n\ge0 gives 3,5,7,…3,5,7,\dots; n<0n<0 gives 2,4,6,…2,4,6,\dots

  • gg is one-one.
  • 11 is never hit, so gg is not onto.
  • (C) is false.

g∘f.

  • f(1)=f(2)f(1)=f(2), so g∘fg\circ f is not one-one.
  • Its range lies inside the range of gg, which misses 1, so it is not onto.
  • (A) is true.

f∘g.

  • For n≥0n\ge0: f(3+2n)=n+2f(3+2n)=n+2.
  • For n<0n<0: f(−2n)=4+2n2=n+2f(-2n)=\frac{4+2n}{2}=n+2.
  • So f∘g(n)=n+2f\circ g(n)=n+2, a bijection. (B) is false.

Concepts used: one-one and onto, composition of piecewise functions

Practise this topic

Every past question tagged to the same part of the syllabus, with solutions.

Similar questions from other papers

Past questions on the same topic (Composition and inverse functions), each with a worked solution.

full papers
217
questions
18,571
worked solutions
18,550

Sit a paper tonight. See exactly where you stand.

Timed, in the real format, and marked the moment you submit.