QlarIITy

MathematicsJEE Main 2024 · 5 AprilSingle correct

Let f,g:R→Rf, g : \mathbb{R} \to \mathbb{R} be defined as : f(x)=∣x−1∣f(x) = |x - 1| and g(x)={ex,x≥0x+1,x≤0g(x) = \begin{cases} e^x, & x \geq 0 \\ x + 1, & x \leq 0 \end{cases}. Then the function f(g(x))f(g(x)) is

  1. Option A: neither one-one nor onto.
  2. Option B: one-one but not 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 modulus of a function is never negative, so it cannot be onto the real numbers.

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 \geq 0, g(x)=ex≥1g(x) = e^x \geq 1, so f(g(x))=ex−1f(g(x)) = e^x - 1. For x≤0x \leq 0, g(x)=x+1≤1g(x) = x + 1 \leq 1, so f(g(x))=1−(x+1)=−xf(g(x)) = 1 - (x + 1) = -x. Each piece is 0 at x=0x = 0 and increases without bound away from 0.

The graph of the composite on the x and y axes. On the left a straight line falls to the origin, and on the right a curve rises from the origin, slowly at first and then steeply. A dotted horizontal line at height 1 meets the two pieces at two marked points, one on each side of the y-axis.

Approach. Write the composite piecewise, then look for a repeated value and a missing value.

  1. Step 1: Not one-one

    The value e−1e - 1 is taken at x=1x = 1, where ex−1=e−1e^x - 1 = e - 1, and at x=1−ex = 1 - e, where −x=e−1-x = e - 1. So the composite is not one-one.

  2. Step 2: Not onto

    Both pieces are non-negative, so the range is [0,∞)[0, \infty) and negative numbers are never taken. So it is not onto RR.

Answer. (A) neither one-one nor onto.

Sanity check. A horizontal line at height 1 meets the graph twice, at x=−1x = -1 and at x=log⁡e2x = \log_e 2.

Why the other options are wrong

  • (B) It is not one-one: x=−1x = -1 and x=log⁡e2x = \log_e 2 both give the value 1.
  • (C) It is not onto: the composite is a modulus, so it is never negative.
  • (D) It fails both tests, since positive values repeat and negative values are missed.

Key takeaway

The trap. Two monotonic pieces with overlapping values make a function many-one.

How toppers think. They sketch the two pieces and use the horizontal-line test.

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

More on Types of Functions