Given:
f(x)={\begin{matrix}{x}^{2}\mathrm{sin}(\frac{1}{x});x\neq 0 \\ 0;x=0\end{matrix}
x→0limf(x)=x→0lim[x2sin(x1)]
⇒x→0limf(x)=x→0limx2×[numberbetween−1to1]
⇒x→0limf(x)=0=f(0)
Hence, f(x) is continuous at x=0.
Now,
RHD=f′(0+)=h→0lim[hf(0+h)−f(0)]
⇒RHD=f′(0+)=h→0lim[hh2sin(h1)−0]
⇒RHD=f′(0+)=h→0lim[hsin(h1)]=0
And,
LHD=f′(0−)=h→0lim[−hf(0−h)−f(0)]
⇒LHD=f′(0−)=h→0lim[−h−h2sin(h1)−0]=0
Since, LHD=RHD=finite
So, f(x) is differentiable at x=0.
Now,
{f}^{'}(x)={\begin{matrix}2x\mathrm{sin}(\frac{1}{x})-\mathrm{cos}(\frac{1}{x});x\neq 0 \\ 0;x=0\end{matrix}
Now,
x→0limf′(x)=x→0lim[2xsin(x1)−cos(x1)]
⇒x→0limf′(x)=x→0lim[2xx1−3!1x31+5!1x51−....−1−2!1x21+4!1x41−....]
⇒x→0limf′(x)=x→0lim[1−3!2x21+5!2x41−....−−2!1x21+4!1x41−....]
This limit does not exists finitely, hence f′(x) is discontinuous at x=0.