JEE Main 2024 · 1 February · morning · Single correct · +4 / −1

Let f: R → R and g: R → R be defined as
f(x)={log ₑ x,, x>0; e⁻ˣ,, x ≤ 0 and
g(x)={x,, x ≥ 0; eˣ,, x<0. Then, gof : R → R is :

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

Answer (b) neither one-one nor onto

Solution

Maths sir · 4 steps

Split x into three ranges, work out gof on each, then put the outputs side by side.

  1. Where f lands. For x ≤ 0, f(x) = e⁻ˣ ≥ 1. For x > 0, f(x) = ln x, which is negative when 0 < x < 1 and non-negative when x ≥ 1. This sign decides which rule of g applies.
    Range of xf(x)Rule of g usedg(f(x)) and its values
    x ≤ 0e⁻ˣ ≥ 1g(y) = ye⁻ˣ, takes values in [1, ∞)
    0 < x < 1ln x < 0g(y) = eʸeˡⁿˣ = x, takes values in (0, 1)
    x ≥ 1ln x ≥ 0g(y) = yln x, takes values in [0, ∞)
  2. Not one-one. The first and third rows overlap on [1, ∞). For example, x = 0 gives e⁰ = 1 and x = e gives ln e = 1. Two different inputs give the same output 1.
  3. Not onto. Together the outputs cover only [0, ∞). No negative real number is ever reached, so the range is not all of R.
  4. So. g ° f is neither one-one nor onto, which is option (b).

The idea to keep. For a composition of piecewise functions, split the domain so that each piece of f sends x into a single piece of g. Then compare the ranges of all the pieces for overlaps and gaps.

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.