JEE Main 2023 · 11 April · evening · Single correct · +4 / −1
Let f and g be two functions defined by
f(x)={x+1,, x < 0; |x-1|,, x ≥ 0 and g(x)={x+1,, x < 0; 1,, x ≥ 0
Then (g ° f)(x) is :
- (a) continuous everywhere but not differentiable at x=1
- (b) differentiable everywhere
- (c) not continuous at x=-1
- (d) continuous everywhere but not differentiable exactly at one point
Answer and solution
Answer (d) continuous everywhere but not differentiable exactly at one point
Solution
Maths sir · 4 steps
Write out g(f(x)) piece by piece first: g sends every input ≥ 0 to 1, so most corners vanish.
- Where f lands. g only checks whether its input is negative. f(x) < 0 only when x < 0 and x + 1 < 0, that is x < -1. For every other x, f(x) ≥ 0 (since x + 1 ≥ 0 on [-1, 0) and |x - 1| ≥ 0), so g returns 1.
(g ° f)(x) = (x+1)+1 = x+2, x < -1 ; 1, x ≥ -1
- Check x = −1. The left-hand limit is -1 + 2 = 1, which equals the value 1, so the function is continuous there. The slope is 1 on the left and 0 on the right, so it is not differentiable at x = -1.
- Check x = 1. f has a corner at x = 1, but (g ° f)(x) = 1 for all x ≥ -1. A constant has slope 0 on both sides, so there is no corner at x = 1. Each piece is a polynomial, so no other point causes trouble.
- So. g ° f is continuous everywhere and fails to be differentiable only at x = -1, which is option (d).
The idea to keep. For a composite of piecewise functions, write the final formula on each interval before judging. A corner in the inner function disappears if the outer function is constant on its range there.
Answer from the NTA final answer key. Solution by PrepWiser.