Detailed Explanation
The function \( f(x) = x|x| \) contains the modulus, which behaves differently for \( x \ge 0 \) and \( x < 0 \). So we first rewrite it as a piecewise function. A function is continuous at a point if the left-hand limit, right-hand limit, and the function value are all equal. A function is differentiable at a point if the left-hand derivative and right-hand derivative are equal there. Continuity is a weaker condition than differentiability: a function can be continuous at a point yet fail to be differentiable there (for example, if the graph has a sharp corner or a sudden change in slope).
Formula Used
\[ |x| = \begin{cases} x & x \ge 0 \\ -x & x < 0 \end{cases} \] Continuity at \( x=0 \): \( \lim_{x \to 0^-} f(x) = \lim_{x \to 0^+} f(x) = f(0) \). Differentiability at \( x=0 \): LHD = RHD, where \[ f'(0) = \lim_{h \to 0} \frac{f(0+h) - f(0)}{h}. \]
Solution
- Step 1: Rewrite the function as a piecewise expression using the definition of modulus. For \( x \ge 0 \) we have \( |x| = x \), and for \( x < 0 \) we have \( |x| = -x \). Therefore \[ f(x) = x|x| = \begin{cases} x^2 & x \ge 0 \\ -x^2 & x < 0 \end{cases}. \]
- Step 2: Check continuity at \( x = 0 \). First find the function value: \[ f(0) = 0 \cdot |0| = 0. \] Right-hand limit: \[ \lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} x^2 = 0. \] Left-hand limit: \[ \lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} (-x^2) = 0. \]
- Step 3: Compare the limits and the value. Since \[ \lim_{x \to 0^-} f(x) = \lim_{x \to 0^+} f(x) = f(0) = 0, \] the function is continuous at \( x = 0 \).
- Step 4: Check differentiability at \( x = 0 \) using the first-principle definition. Right-hand derivative: \[ \text{RHD} = \lim_{h \to 0^+} \frac{f(0+h) - f(0)}{h} = \lim_{h \to 0^+} \frac{h^2 - 0}{h} = \lim_{h \to 0^+} h = 0. \] Left-hand derivative: \[ \text{LHD} = \lim_{h \to 0^-} \frac{f(0+h) - f(0)}{h} = \lim_{h \to 0^-} \frac{-h^2 - 0}{h} = \lim_{h \to 0^-} (-h) = 0. \]
- Step 5: Compare the one-sided derivatives. Since \( \text{LHD} = \text{RHD} = 0 \), the derivative exists at \( x = 0 \) and equals \( 0 \). Hence the function is also differentiable at \( x = 0 \).
Final Answer
The function \( f(x) = x|x| \) is both continuous and differentiable at \( x = 0 \), with \( f'(0) = 0 \). Correct option: (A).
Common Mistake
A common mistake is assuming that any function involving \( |x| \) must be non-differentiable at \( x = 0 \). While \( |x| \) itself has a corner at \( 0 \), the extra factor of \( x \) smooths it out, so \( x|x| \) is actually differentiable there. Always verify by computing the LHD and RHD rather than guessing.