Detailed Explanation
A function \( f(x) \) is continuous at a point \( x = a \) if the limit of the function as \( x \) approaches \( a \) equals the value of the function at \( a \). In symbols, we need \( \lim_{x \to a} f(x) = f(a) \). Here the function is defined in two pieces: one rule for \( x \ne 0 \) and a separate value \( k \) at \( x = 0 \). To make it continuous at \( x = 0 \), we compute the limit of the \( x \ne 0 \) part as \( x \to 0 \), and set that equal to \( k \). A key standard limit we use is \( \lim_{x \to 0} \dfrac{\sin x}{x} = 1 \).
Formula Used
Continuity at \( x=0 \): \( \lim_{x \to 0} f(x) = f(0) = k \), and the standard limit \( \lim_{x \to 0} \dfrac{\sin x}{x} = 1 \).
Solution
- Step 1: Write down the continuity condition. For \( f \) to be continuous at \( x = 0 \), we need \( \lim_{x \to 0} f(x) = f(0) \). Since \( f(0) = k \), we require \( \lim_{x \to 0} \left( \dfrac{\sin x}{x} + \cos x \right) = k \).
- Step 2: Evaluate the limit term by term. The limit of a sum is the sum of the limits, so \[ \lim_{x \to 0} \left( \dfrac{\sin x}{x} + \cos x \right) = \lim_{x \to 0} \dfrac{\sin x}{x} + \lim_{x \to 0} \cos x. \]
- Step 3: Apply the standard limit and substitute. Using \( \lim_{x \to 0} \dfrac{\sin x}{x} = 1 \) and \( \lim_{x \to 0} \cos x = \cos 0 = 1 \), we get \[ \lim_{x \to 0} f(x) = 1 + 1 = 2. \]
- Step 4: Set the limit equal to \( k \). For continuity we need \( k = \lim_{x \to 0} f(x) \), so \[ k = 2. \]
Final Answer
\( k = 2 \), which is option (D).
Common Mistake
A common mistake is to think \( \dfrac{\sin x}{x} \) becomes \( 0 \) or is undefined at \( x = 0 \) and so ignore it, giving \( k = 1 \). Remember the standard limit \( \lim_{x \to 0} \dfrac{\sin x}{x} = 1 \), not \( 0 \).