The set of points where the function f given by \(f(x)= |x-2|\) is differentiable is :
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(\mathrm{R} - \{2\}\)
Without the modulus,
\( f(x) = \begin{cases} x - 2, & x \ge 2\\ 2 - x, & x \lt 2 \end{cases} \)
For x > 2, f’(x) = 1, and for x < 2, f’(x) = −1, so f is differentiable at every x ≠ 2.
At x = 2, the left-hand and right-hand derivatives are
\( \displaystyle Lf'(2) = \lim_{h \to 0^-}\frac{|h| - 0}{h} = -1 \)
\( \displaystyle Rf'(2) = \lim_{h \to 0^+}\frac{|h| - 0}{h} = 1 \)
They are not equal, so f is not differentiable at x = 2 (the graph has a corner there). Hence f is differentiable on \(\mathrm{R} - \{2\}\).