The function \(f(x)=|x-1|\) is
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → Continuous at x = 1 and not differentiable at x = 1.
Without the modulus,
\( f(x) = \begin{cases} 1-x, & x \lt 1 \\ x-1, & x \ge 1 \end{cases} \)
Continuity at x = 1:
\( \displaystyle \lim_{x\to 1^-}(1-x) = 0 \)
\( \displaystyle \lim_{x\to 1^+}(x-1) = 0 \)
\(f(1) = 0\)
All three are equal, so f is continuous at x = 1.
Differentiability at x = 1:
\( \displaystyle \text{LHD} = \lim_{h\to 0^-}\frac{f(1+h)-f(1)}{h} = \lim_{h\to 0^-}\frac{|h|}{h} \)
\( \displaystyle = \lim_{h\to 0^-}\frac{-h}{h} = -1 \)
\( \displaystyle \text{RHD} = \lim_{h\to 0^+}\frac{f(1+h)-f(1)}{h} = \lim_{h\to 0^+}\frac{|h|}{h} \)
\( \displaystyle = \lim_{h\to 0^+}\frac{h}{h} = 1 \)
The left and right derivatives differ, so f is not differentiable at x = 1. The graph has a sharp corner there.