Explanation
CONCEPT:
A function is continuous If limx→0−F(x)=F(0)=limx→0+F(0)
A function is differentiable if left hand derivative = right hand derrivative
CALCULATION:
{\mathrm{Given:}}f\left(x\right)=\left\{\begin{array}{cc}{x\sin\left(\frac{1}{x}\right)}&{if\:x>0}\\{0}&{x\leq0}\end{array}\right.
⇒limx→0−f(x)=0,limx→0+xsinx1=0andf(0)=0
As we know that, a function is continuous If limx→0−F(x)=F(0)=limx→0+F(0)
(2)
So the given function f(x) is continuous at x=0
Let's calculate the left hand derivative:
x→0−limdxdf(0)=0
Similarly, let's calculate the right hand derivative:
⇒x→0+limdxd[xsinx1]=x→0+lim[xsinx1−x1cosx1]=−∞
As we can see that, left hand derivative =right hand derivative
So, the given function is not differentiable at x=0
Hence, option C is correct.