Question
Mathematics Question on Limits
If f:R→R is defined by f(x)={x2cos 3x−cos x λ,for x=0,for x= and if f is continuous at x=0, then λ is equal to
A
-2
B
-4
C
-6
D
-8
Answer
-4
Explanation
Solution
The correct option is(B): -4
Given that ,
f(x)={x2cos 3x−cos x λ,for x=0,for x=
Now, LHL =x→0−limf(x)
=x→0−limx2cos3x−cosx
=h→0lim0−h2cos3(0−h)−cos0−h
=h→0limh2cos3h−cosh
=h→0lim2h−3sin3h+sinh (using L' Hospitals' rule)
=2−9+1=−4
Since, f(x) is continuous at x=0
∴x→0−limf(x)=f(0)
⇒−4=λ
⇒λ=−4