Detailed Explanation
The modulus (absolute value) function is defined as \[f(x) = |x| = \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases}\] A function is continuous at a point if its left-hand limit, right-hand limit and function value all agree there. A function is differentiable at a point if the left-hand derivative (LHD) equals the right-hand derivative (RHD) at that point. For \( f(x) = |x| \), the graph is a V-shape with a sharp corner at the origin. Wherever a graph is smooth and unbroken it is continuous, and wherever it has a sharp corner it fails to be differentiable even though it may still be continuous there.
Formula Used
Continuity at \( x = a \): \[\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = f(a)\] Differentiability at \( x = a \): \[\text{LHD} = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h} = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h} = \text{RHD}\]
Solution
- Step 1: Write the function piecewise. \[f(x) = |x| = \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases}\] For all points other than \( x = 0 \) the function is either \( x \) or \( -x \), which are polynomials, hence both continuous and differentiable there. So the only doubtful point is \( x = 0 \).
- Step 2: Check continuity at \( x = 0 \). Left-hand limit: \[\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-}(-x) = 0\] Right-hand limit: \[\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+}(x) = 0\] Also \( f(0) = |0| = 0 \). Since all three values are equal, \( f \) is continuous at \( x = 0 \).
- Step 3: Check differentiability at \( x = 0 \) using the left-hand derivative. \[\text{LHD} = \lim_{h \to 0^-} \frac{f(0+h) - f(0)}{h} = \lim_{h \to 0^-} \frac{|h| - 0}{h}\] For \( h < 0 \), \( |h| = -h \), so \[\text{LHD} = \lim_{h \to 0^-} \frac{-h}{h} = -1\]
- Step 4: Now compute the right-hand derivative at \( x = 0 \). \[\text{RHD} = \lim_{h \to 0^+} \frac{|h| - 0}{h}\] For \( h > 0 \), \( |h| = h \), so \[\text{RHD} = \lim_{h \to 0^+} \frac{h}{h} = 1\]
- Step 5: Compare LHD and RHD. Since \( \text{LHD} = -1 \) and \( \text{RHD} = 1 \), they are not equal. Therefore \( f(x) = |x| \) is NOT differentiable at \( x = 0 \). This matches the sharp corner in the V-shaped graph. Everywhere else the function is differentiable.
- Step 6: Conclusion: \( f(x) = |x| \) is continuous for all real \( x \), and differentiable for all real \( x \) except at \( x = 0 \). This corresponds to option (C).
Final Answer
Option (C): The function \( f(x) = |x| \) is continuous everywhere, but differentiable everywhere except at \( x = 0 \).
Common Mistake
A common mistake is to assume that because \( f(x) = |x| \) is continuous at \( x = 0 \), it must also be differentiable there. Continuity does not imply differentiability — the sharp corner gives unequal left and right derivatives, so the function is not differentiable at that point.