If $f(x) = x^2\sin(1/x)$ when $x \neq 0$ and $f(0) = 0$, show that $f$ is derivable for every value of $x$ but the derivative is not continuous for $x = 0$.
Kanishak Aggarwal, AIR 72, 2025
$f(x) = \begin{cases} x^2 \sin 1/x & x \neq 0 \\ 0 & x = 0 \end{cases}$
for 0.
RHD $f'(0) = \lim_{h\to 0^+} \dfrac{f(0+h) - f(0)}{h}$
$= \dfrac{h^2 \sin 1/h}{h} = 0$
LHD $\dfrac{h^2 \sin\left(\frac{-1}{h}\right)}{h} = 0$
$\Rightarrow$ Derivable
$f'(x) = \begin{cases} 2x \sin\frac{1}{x} - [?]\, x^2 (\cos\frac{1}{x}) & x \neq 0 \\ 0 & x = 0 \end{cases}$
$\lim_{x\to 0} 2x \sin\frac{1}{x} - \cos 1/x$ DNE
by $\lim_{x\to 0} \cos\frac{1}{x}$ DNE
Hence derivative not continuous.