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

2019 · 10 Jan · Shift 2 · Q46
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 Main
  3. /Mathematics
  4. /Functions
  5. /2019 · 10 Jan · Shift 2 · Q46

Functions question

2019 · 10 Jan · Shift 2 · Q46

JEE MainMathematicsFunctionsMCQ+4 / −1
Let N be the set of natural numbers and two functions f and g be defined as f, g : N →\to→ N such that f(n) = {n+12;if  n  is  oddn2;if  n  is  even  \left\{ {\begin{matrix} {{{n + 1} \over 2};} & {if\,\,n\,\,is\,\,odd} \\ {{n \over 2};} & {if\,\,n\,\,is\,\,even} \\ \end{matrix} \,\,} \right.{2n+1​;2n​;​ifnisoddifniseven​; and g(n) = n −-−(−-− 1)n. Then fog is -
  1. A
    neither one-one nor onto
  2. B
    onto but not one-one
  3. C
    both one-one and onto
  4. D
    one-one but not onto
View written solutionFree

Correct answer: B

  1. Interpret the functions correctly

We have f,g:N→Nf,g: \mathbb{N} \to \mathbb{N}f,g:N→N defined by

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

Notice that both cases are the same as

f(n)=⌈n2⌉.f(n)=\left\lceil \frac n2 \right\rceil.f(n)=⌈2n​⌉.

Also,

g(n)=n−(−1)n.g(n)=n-(-1)^n.g(n)=n−(−1)n.

Now compute g(n)g(n)g(n) separately for odd/even nnn:

  • If nnn is even, (−1)n=1(-1)^n=1(−1)n=1, so g(n)=n−1.g(n)=n-1.g(n)=n−1.
  • If nnn is odd, (−1)n=−1(-1)^n=-1(−1)n=−1, so g(n)=n+1.g(n)=n+1.g(n)=n+1.

Thus,

g(n)={n+1,n oddn−1,n eveng(n)= \begin{cases} n+1, & n \text{ odd}\\ n-1, & n \text{ even} \end{cases}g(n)={n+1,n−1,​n oddn even​
  1. Find f∘gf\circ gf∘g

We need

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

Case 1: nnn is odd

Then

g(n)=n+1,g(n)=n+1,g(n)=n+1,

which is even. Therefore,

(f∘g)(n)=f(n+1)=n+12.(f\circ g)(n)=f(n+1)=\frac{n+1}{2}.(f∘g)(n)=f(n+1)=2n+1​.

Case 2: nnn is even

Then

g(n)=n−1,g(n)=n-1,g(n)=n−1,

which is odd. Therefore,

(f∘g)(n)=f(n−1)=(n−1)+12=n2.(f\circ g)(n)=f(n-1)=\frac{(n-1)+1}{2}=\frac n2.(f∘g)(n)=f(n−1)=2(n−1)+1​=2n​.

So,

(f∘g)(n)={n+12,n oddn2,n even(f\circ g)(n)= \begin{cases} \dfrac{n+1}{2}, & n \text{ odd}\\[4pt] \dfrac n2, & n \text{ even} \end{cases}(f∘g)(n)=⎩⎨⎧​2n+1​,2n​,​n oddn even​

This is exactly the same as f(n)f(n)f(n). Hence,

f∘g=f.f\circ g=f.f∘g=f.
  1. Check whether f∘gf\circ gf∘g is one-one

Since f∘g=ff\circ g=ff∘g=f, test injectivity of fff.

Compute a few values:

f(1)=1,f(2)=1,f(1)=1,\quad f(2)=1,f(1)=1,f(2)=1,

so two different inputs give the same output. Therefore fff is not one-one.

Hence f∘gf\circ gf∘g is not one-one.


  1. Check whether f∘gf\circ gf∘g is onto

We must see whether every natural number m∈Nm\in \mathbb Nm∈N has some n∈Nn\in \mathbb Nn∈N such that

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

But f∘g=ff\circ g=ff∘g=f, and for any m∈Nm\in\mathbb Nm∈N,

  • choose n=2mn=2mn=2m, then f(2m)=2m2=m.f(2m)=\frac{2m}{2}=m.f(2m)=22m​=m.

So every natural number is attained. Hence fff is onto, and therefore f∘gf\circ gf∘g is onto.


  1. Conclusion

f∘gf\circ gf∘g is

  • onto,
  • not one-one.

Therefore the correct option is

B: onto but not one-one.\boxed{\text{B: onto but not one-one}}.B: onto but not one-one​.


  1. Comparison with stored answer

Stored correct answer: B

Our derived answer: B

So they agree.

PreviousNext

More from Functions

  • Let f : R → R be defined by f(x) = 1+x2x​,x∈R. Then the range of f is :2019 · MCQ
  • Let fk(x) = k1​(sinkx+coskx) for k = 1, 2, 3, ... Then for all x ∈ R, the value of f4(x) − f6(x) is equal to2019 · MCQ
  • Let a function f : (0, ∞) → (0, ∞) be defined by f(x) = ​1−x1​​. Then f is :2019 · MCQ
  • The number of functions f from {1, 2, 3, ...., 20} onto {1, 2, 3, ...., 20} such that f(k) is a multiple of 3, whenever k is a multiple of 4, is :2019 · MCQ
  • For x ∈ (0, 3/2), let f(x) = x​, g(x) = tan x and h(x) =1+x21−x2​. If ϕ(x) = ((hof)og)(x), then ϕ(3π​) is equal to :2019 · MCQ
  • Let f : A → B be a function defined as f(x) = x−2x−1​, Where A = R −{2} and B = R − {1}. Then f is :2018 · MCQ
  • Let f(x) = 210.x + 1 and g(x)=310.x − 1. If (fog) (x) = x, then x is equal to :2017 · MCQ
  • The function f : N → N defined by f (x) = x − 5 [5x​], Where N is the set of natural numbers and [x] denotes the greatest integer less than or equal to x, is :2017 · MCQ