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
- (a) neither one-one nor onto.
- (b) one-one but not onto.
- (c) both one-one and onto.
- (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.
- 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, ∞).
- 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
- 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.
- Not onto. The range is only [0, ∞), but the codomain is R. A negative number such as -1 is never an output.
- 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.