Sign in
12thPass logo
New chatPYQ LibraryDoubtsRank report
Sign in to see Recents

Your guest activity stays on this device

Sign in to save progress →
Sign in

Functions question

2025 · Shift 1 · Q22
Guest · filters and generic practice availableBrowsing as a guest · PYQ filters and generic practice are available. Sign in only for personalised features and saved progress.
  1. PYQ Library
  2. /JEE Advanced
  3. /Mathematics
  4. /Functions
  5. /2025 · Shift 1 · Q22

Functions question

2025 · Shift 1 · Q22

JEE AdvancedMathematicsFunctionsMultiple correct+4 / −2
Let ℕ denote the set of all natural numbers, and ℤ denote the set of all integers. Consider the functions f: ℕ → ℤ and g: ℤ → ℕ defined by f(n)={(n+1)2if n is odd,(4−n)2if n is even,f(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}f(n)={2(n+1)​2(4−n)​​if n is odd,if n is even,​ 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 \lt 0 . \end{cases}g(n)={3+2n−2n​if n≥0,if n<0.​ Define (g∘f)(n)=g(f(n))(g \circ f)(n) = g(f(n))(g∘f)(n)=g(f(n)) for all n∈Nn \in \mathbb{N}n∈N, and (f∘g)(n)=f(g(n))(f \circ g)(n) = f(g(n))(f∘g)(n)=f(g(n)) for all n∈Zn \in \mathbb{Z}n∈Z. Then which of the following statements is (are) TRUE?
  1. A
    g ∘\circ∘ f is NOT one-one and g ∘\circ∘ f is NOT onto
  2. B
    f ∘\circ∘ g is NOT one-one but f ∘\circ∘ g is onto
  3. C
    g is one-one and g is onto
  4. D
    f is NOT one-one but f is onto
View written solutionFree

Correct answer: A, D

  1. Understand the functions

Given

f(n)={n+12,n odd4−n2,n evenf(n)= \begin{cases} \dfrac{n+1}{2}, & n \text{ odd}\\[4pt] \dfrac{4-n}{2}, & n \text{ even} \end{cases}f(n)=⎩⎨⎧​2n+1​,24−n​,​n oddn even​

with domain N\mathbb NN and codomain Z\mathbb ZZ.

Also,

g(n)={3+2n,n≥0−2n,n<0g(n)= \begin{cases} 3+2n, & n\ge 0\\[4pt] -2n, & n<0 \end{cases}g(n)={3+2n,−2n,​n≥0n<0​

with domain Z\mathbb ZZ and codomain N\mathbb NN.

We must test the statements about fff, ggg, g∘fg\circ fg∘f, and f∘gf\circ gf∘g.


  1. Analyze f:N→Zf: \mathbb N \to \mathbb Zf:N→Z

Let us list some values:

  • f(1)=22=1f(1)=\dfrac{2}{2}=1f(1)=22​=1
  • f(2)=4−22=1f(2)=\dfrac{4-2}{2}=1f(2)=24−2​=1
  • f(3)=42=2f(3)=\dfrac{4}{2}=2f(3)=24​=2
  • f(4)=4−42=0f(4)=\dfrac{4-4}{2}=0f(4)=24−4​=0
  • f(5)=62=3f(5)=\dfrac{6}{2}=3f(5)=26​=3
  • f(6)=4−62=−1f(6)=\dfrac{4-6}{2}=-1f(6)=24−6​=−1
  • f(7)=4f(7)=4f(7)=4
  • f(8)=−2f(8)=-2f(8)=−2

So the outputs go as 1,1,2,0,3,−1,4,−2,5,−3,…1,1,2,0,3,-1,4,-2,5,-3,\dots1,1,2,0,3,−1,4,−2,5,−3,…

(i) Is fff one-one?

No, because f(1)=1=f(2),1≠2.f(1)=1=f(2), \quad 1\ne 2.f(1)=1=f(2),1=2. So fff is not one-one.

(ii) Is fff onto Z\mathbb ZZ?

We show every integer occurs.

  • If z≥1z\ge 1z≥1, choose odd n=2z−1n=2z-1n=2z−1. Then f(2z−1)=(2z−1)+12=z.f(2z-1)=\frac{(2z-1)+1}{2}=z.f(2z−1)=2(2z−1)+1​=z.
  • If z=0z=0z=0, choose n=4n=4n=4. Then f(4)=0.f(4)=0.f(4)=0.
  • If z<0z<0z<0, write z=−kz=-kz=−k where k∈Nk\in\mathbb Nk∈N. Choose even n=2k+4n=2k+4n=2k+4. Then f(2k+4)=4−(2k+4)2=−2k2=−k=z.f(2k+4)=\frac{4-(2k+4)}{2}=\frac{-2k}{2}=-k=z.f(2k+4)=24−(2k+4)​=2−2k​=−k=z.

Hence every integer is attained, so fff is onto.

Therefore Option D is true.


  1. Analyze g:Z→Ng: \mathbb Z \to \mathbb Ng:Z→N

Let us compute a few values:

  • For n≥0n\ge 0n≥0: g(n)=3+2ng(n)=3+2ng(n)=3+2n, so values are 3,5,7,9,…3,5,7,9,\dots3,5,7,9,…
  • For n<0n<0n<0: g(n)=−2ng(n)=-2ng(n)=−2n, so values are 2,4,6,8,…2,4,6,8,\dots2,4,6,8,…

Thus the range is {2,3,4,5,6,7,… }=N∖{1}\{2,3,4,5,6,7,\dots\}=\mathbb N\setminus\{1\}{2,3,4,5,6,7,…}=N∖{1} (assuming N={1,2,3,… }\mathbb N=\{1,2,3,\dots\}N={1,2,3,…} as usual in JEE).

(i) Is ggg one-one?

  • On n≥0n\ge 0n≥0, 3+2n3+2n3+2n is strictly increasing.
  • On n<0n<0n<0, −2n-2n−2n is also distinct for distinct negative integers.
  • The first branch gives odd numbers ≥3\ge 3≥3.
  • The second branch gives even positive numbers.

These two sets do not overlap. Hence different inputs give different outputs. So ggg is one-one.

(ii) Is ggg onto N\mathbb NN?

No, since 1∈N1\in\mathbb N1∈N is never attained. So ggg is not onto.

Therefore Option C is false.


  1. Analyze g∘f:N→Ng\circ f : \mathbb N \to \mathbb Ng∘f:N→N

Since fff is not one-one, let us test whether composition is one-one:

f(1)=1,f(2)=1.f(1)=1, \quad f(2)=1.f(1)=1,f(2)=1. Therefore (g∘f)(1)=g(1)=5,(g∘f)(2)=g(1)=5.(g\circ f)(1)=g(1)=5, \qquad (g\circ f)(2)=g(1)=5.(g∘f)(1)=g(1)=5,(g∘f)(2)=g(1)=5. So g∘fg\circ fg∘f is not one-one.

Now determine whether it is onto N\mathbb NN.

Because fff is onto Z\mathbb ZZ, the range of g∘fg\circ fg∘f is exactly the range of ggg, namely N∖{1}.\mathbb N\setminus\{1\}.N∖{1}. So 111 is not attained. Hence g∘fg\circ fg∘f is not onto.

Therefore Option A is true.


  1. Analyze f∘g:Z→Zf\circ g : \mathbb Z \to \mathbb Zf∘g:Z→Z

We compute separately.

Case 1: n≥0n\ge 0n≥0

Then g(n)=3+2n,g(n)=3+2n,g(n)=3+2n, which is odd. Hence (f∘g)(n)=f(3+2n)=(3+2n)+12=n+2.(f\circ g)(n)=f(3+2n)=\frac{(3+2n)+1}{2}=n+2.(f∘g)(n)=f(3+2n)=2(3+2n)+1​=n+2.

Case 2: n<0n<0n<0

Then g(n)=−2n,g(n)=-2n,g(n)=−2n, which is even. Hence (f∘g)(n)=f(−2n)=4−(−2n)2=4+2n2=n+2.(f\circ g)(n)=f(-2n)=\frac{4-(-2n)}{2}=\frac{4+2n}{2}=n+2.(f∘g)(n)=f(−2n)=24−(−2n)​=24+2n​=n+2.

So for all n∈Zn\in\mathbb Zn∈Z, (f∘g)(n)=n+2.(f\circ g)(n)=n+2.(f∘g)(n)=n+2.

This is clearly:

  • one-one, because if n1+2=n2+2n_1+2=n_2+2n1​+2=n2​+2, then n1=n2n_1=n_2n1​=n2​.
  • onto Z\mathbb ZZ, because for any m∈Zm\in\mathbb Zm∈Z, choose n=m−2n=m-2n=m−2, then (f∘g)(n)=m(f\circ g)(n)=m(f∘g)(n)=m.

Thus Option B, which says "not one-one but onto," is false.


  1. Final evaluation of options
  • A: True
  • B: False
  • C: False
  • D: True

So the correct choices are: A, D\boxed{A,\ D}A, D​


  1. Comparison with stored correct answer

Stored correct answer: A, D

Our derived answer matches the stored answer exactly.

Next

More from Functions

  • Let ℝ denote the set of all real numbers. Let f: ℝ → ℝ be a function such that f(x) > 0 for all x ∈ ℝ, and f(x+y) = f(x)f(y) for all x, y ∈ ℝ. Let the real numbers a₁, a₂, ..., a₅₀ be in an arithmetic progression. If f(a₃₁) = 64f(a₂₅),…2025 · Numerical
  • Let R denote the set of all real numbers. Let f:R→R and g:R→(0,4) be functions defined by f(x)=loge​(x2+2x+4), and g(x)=1+e−2x4​…2025 · Numerical
  • Let f:R→R be a function such that f(x+y)=f(x)+f(y) for all x,y∈R, and g:R→(0,∞) be a function such that g(x+y)=g(x)g(y) for all x,y∈R. If f(5−3​)=12…2024 · Numerical
  • Let the function f:R→R be defined by f(x)=eπxsinx​(x2−x+3)(x2023+2024x+2025)​+eπx2​(x2−x+3)(x2023+2024x+2025)​.…2024 · Numerical
  • Let S=(0,1)∪(1,2)∪(3,4) and T={0,1,2,3}. Then which of the following statements is(are) true?2023 · Multiple correct
  • Let f:[0,1]→[0,1] be the function defined by f(x)=3x3​−x2+95​x+3617​. Consider the square region S=[0,1]×[0,1]. Let G={(x,y)∈S:y>f(x)} be called the green region and R={(x,y)∈S:y<f(x)}…2023 · Multiple correct
  • Let ∣M∣ denote the determinant of a square matrix M. Let g:[0,2π​]→R be the function defined by g(θ)=f(θ)−1​+f(2π​−θ)−1​ where f(θ)=21​​1−sinθ−1​sinθ1−sinθ​1sinθ1​​+​sinπsin(θ−4π​)cot(θ+4π​)​cos(θ+4π​)−cos2π​loge​(4π​)​tan(θ−4π​)loge​(π4​)tanπ​​.…2022 · Multiple correct
  • If the function f : R → R is defined by f(x) = |x| (x − sin x), then which of the following statements is TRUE?2020 · MCQ