JEE Main 2024 · 5 April · evening · Single correct · +4 / −1

Let f, g: R → R be defined as :
f(x)=|x-1| and g(x)= eˣ, x ≥ 0 ; x+1, x ≤ 0 .
Then the function f(g(x)) is

  1. (a) neither one-one nor onto.
  2. (b) one-one but not onto.
  3. (c) both one-one and onto.
  4. (d) onto but not one-one.
Answer and solution

Answer (a) neither one-one nor onto.

Solution

Maths sir · 5 steps

Write f(g(x)) piece by piece, then look at what values each piece covers.

  1. Right piece. For x ≥ 0, g(x) = eˣ ≥ 1, so g(x) - 1 ≥ 0 and f(g(x)) = eˣ - 1. This increases from 0 and covers [0, ∞).
  2. Left piece. For x ≤ 0, g(x) = x + 1, so f(g(x)) = |x + 1 - 1| = |x| = -x. This decreases to 0 and also covers [0, ∞).

    f(g(x)) = eˣ - 1, x ≥ 0 ; -x, x ≤ 0

  3. Not one-one. Both pieces reach every value in [0, ∞), so most outputs come twice. For example, x = -1 gives 1 and x = ln 2 gives eˡⁿ² - 1 = 1.
  4. Not onto. The range is only [0, ∞), but the codomain is R. A negative number such as -1 is never an output.
  5. So. f(g(x)) is neither one-one nor onto, which is option (a).

The idea to keep. For a piecewise composite, find the range of each piece. If two pieces overlap in range, it is not one-one. If the combined range misses part of the codomain, it is not onto.

Answer from the NTA final answer key. Solution by PrepWiser.

Study Relations & Functions (Basic)

Asked about 140 times in JEE Main since 2020. This question is from 2024.