QlarIITy

MathematicsJEE Main 2024 · 1 FebruarySingle correct

Let f:R→Rf : R \to R and g:R→Rg : R \to R be defined asf(x)={log⁡ex,x>0e−x,x≤0f(x) = \begin{cases} \log_e x, & x > 0 \\ e^{-x}, & x \leq 0 \end{cases}and g(x)={x,x≥0ex,x<0g(x) = \begin{cases} x, & x \geq 0 \\ e^x, & x < 0 \end{cases}. Then, g∘f:R→Rg \circ f : R \to R is:

  1. Option A: one-one but not onto
  2. Option B: neither one-one nor onto
  3. Option C: onto but not one-one
  4. Option D: both one-one and onto
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. A composite of piecewise functions is written out piece by piece before it is tested.

Concept refresher. A function f:A→Bf : A \to B is one-one when

f(x1)=f(x2)f(x_1) = f(x_2)

forces x1=x2x_1 = x_2, and onto when its range is the whole of BB.

Picture the situation. For x≤0x \leq 0, f(x)=e−x≥1f(x) = e^{-x} \geq 1, so gg returns it unchanged. For 0<x<10 < x < 1, f(x)=log⁡ex<0f(x) = \log_e x < 0, so gg gives elog⁡ex=xe^{\log_e x} = x. For x≥1x \geq 1, f(x)=log⁡ex≥0f(x) = \log_e x \geq 0, so gg returns it unchanged.

The graph of the composite on the x and y axes, in three pieces. On the left a curve falls steeply to the filled point (0, 1) on the y-axis. Between x = 0 and x = 1 a straight segment rises from a hollow dot at the origin to a hollow dot at (1, 1). From the filled point at x = 1 on the x-axis a slowly rising curve continues to the right and passes through the marked point (e, 1). A dotted horizontal line at height 1 joins (0, 1) and (e, 1).

Approach. Write the composite piece by piece, then test for repeated values and for missing values.

  1. Step 1: Not one-one

    The piece e−xe^{-x} on x≤0x \leq 0 and the piece log⁡ex\log_e x on x≥1x \geq 1 both take the value 1, at x=0x = 0 and at x=ex = e. So the composite is not one-one.

  2. Step 2: Not onto

    The three pieces take values in [1,∞)[1, \infty), (0,1)(0, 1) and [0,∞)[0, \infty), so the range is [0,∞)[0, \infty). Negative numbers are never reached, so the composite is not onto RR.

Answer. (B) neither one-one nor onto

Sanity check. Check the two inputs: g(f(0))=g(1)=1g(f(0)) = g(1) = 1 and g(f(e))=g(1)=1g(f(e)) = g(1) = 1.

Why the other options are wrong

  • (A) It is not one-one, since x=0x = 0 and x=ex = e both give the value 1.
  • (C) It is not onto, since every value of the composite is at least 0.
  • (D) It fails both tests: a value is repeated, and the negative numbers are missed.

Key takeaway

The trap. The piece of the outer function is chosen by the sign of the inner value, not of the variable.

How toppers think. They sketch the three pieces to see repeats and gaps.

Remember. Range of g∘fg \circ f is [0,∞)[0, \infty)

More on Types of Functions