Question:medium

If \(f(x)=\begin{cases} \frac{x-e^{x}+\cos 2x}{x^{2}}, & \text{if }x\neq 0 \\ k, & \text{if }x=0 \end{cases}\) is continuous at \(x=0\), then the value of \(k\) is...

Show Hint

For continuity, k equals the limit of the function as x tends to 0; expand the exponential and cosine as series.
Updated On: Nov 12, 2026
  • \(2\)
  • \(-2\)
  • \(\frac{-5}{2}\)
  • \(\frac{5}{2}\)
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Apply L'Hospital's rule
Differentiate numerator and denominator: $\lim_{x\to0}\frac{1-e^{x}-2\sin2x}{2x}$, still of the form 0/0.

Step 2: Apply it again
$\lim_{x\to0}\frac{-e^{x}-4\cos2x}{2}$.

Step 3: Evaluate
At $x=0$: $\frac{-1-4}{2}=-\frac{5}{2}$, so $k=-\frac{5}{2}$.

Final Answer:
Continuity requires k = −5/2. \[ \boxed{\text{(C) }\dfrac{-5}{2}} \]
Was this answer helpful?
0