Question:

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
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the Concept
A function is continuous at \(x=0\) when \(k=\lim_{x\to0}f(x)\). The limit has the form 0/0.

Step 2: Expand in series
\(e^{x}=1+x+\frac{x^{2}}{2}+\cdots\) and \(\cos2x=1-\frac{(2x)^{2}}{2}+\cdots=1-2x^{2}+\cdots\).

Step 3: Simplify the numerator
\(x-e^{x}+\cos2x=x-1-x-\frac{x^{2}}{2}+1-2x^{2}+\cdots=-\frac{5x^{2}}{2}+\cdots\).

Step 4: Take the limit
\(k=\lim_{x\to0}\frac{-\frac{5}{2}x^{2}}{x^{2}}=-\frac{5}{2}\).

Final Answer:
The value of k is −5/2. \[ \boxed{\text{(C) }\dfrac{-5}{2}} \]
Was this answer helpful?
0
0