If the function \(f(x)=\begin{cases}\displaystyle\frac{\sin x}{x}+\cos x, & \text{if } x \ne 0\\ k, & \text{if } x=0\end{cases}\) is continuous at x = 0, then the value of k is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → 2
f is continuous at x = 0 when the limit of f(x) as x → 0 equals f(0) = k.
Using the standard limit \(\displaystyle\lim_{x\to 0}\frac{\sin x}{x}=1\) and \(\cos 0 = 1\):
\( \displaystyle \lim_{x\to 0}f(x)=\lim_{x\to 0}\frac{\sin x}{x}+\lim_{x\to 0}\cos x \)
\( = 1+1 = 2 \)
So for continuity,
\( k = 2 \)