Detailed Explanation
A function \( f(x) \) is continuous at a point \( x = a \) if three conditions hold: the function is defined at \( a \), the limit \( \lim_{x \to a} f(x) \) exists, and this limit equals the function value \( f(a) \). For a piecewise function, the formula changes at the boundary point, so we must make the limit of the general piece equal to the value assigned at that point. Here the function has one formula for \( x \ne 0 \) and another value at \( x = 0 \). We match them to enforce continuity at \( x = 0 \).
Formula Used
Continuity at \( x = 0 \) requires \( \lim_{x \to 0} f(x) = f(0) \). A useful bounded fact: \( -1 \le \sin\dfrac{1}{x} \le 1 \).
Solution
- Step 1: Write down the continuity condition at \( x = 0 \). We need \[ \lim_{x \to 0} f(x) = f(0). \] For \( x \ne 0 \), \( f(x) = x^2 \sin\dfrac{1}{x} \), and at \( x = 0 \), \( f(0) = k(0+1) = k \).
- Step 2: Evaluate the limit of the \( x \ne 0 \) piece as \( x \to 0 \): \[ \lim_{x \to 0} x^2 \sin\frac{1}{x}. \] Since \( \sin\dfrac{1}{x} \) oscillates but always stays between \( -1 \) and \( 1 \), we use the squeeze (sandwich) idea.
- Step 3: Bound the expression. Because \( -1 \le \sin\dfrac{1}{x} \le 1 \), multiplying by \( x^2 \ge 0 \) gives \[ -x^2 \le x^2 \sin\frac{1}{x} \le x^2. \] As \( x \to 0 \), both \( -x^2 \to 0 \) and \( x^2 \to 0 \), so the middle term is squeezed to \( 0 \). Therefore \[ \lim_{x \to 0} x^2 \sin\frac{1}{x} = 0. \]
- Step 4: Apply the continuity condition. We need the limit to equal \( f(0) \): \[ 0 = k. \] So \( k = 0 \).
- Step 5: Conclusion: the value \( k = 0 \) makes the left value, right value, and the limit all agree at \( x = 0 \), so the function is continuous. This matches option (D).
Final Answer
\( k = 0 \), which is option (D).
Common Mistake
A common mistake is to think \( \lim_{x \to 0} \sin\dfrac{1}{x} \) exists or equals \( 1 \); it actually does not exist because of oscillation. The key is that multiplying by \( x^2 \) forces the whole product to \( 0 \) by the squeeze theorem, so the limit is \( 0 \), giving \( k = 0 \).