Topper Copies

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$.

Aryan Yadav, AIR 31, 2025

for $x \neq 0$, $f'(x) = 2x\sin(\frac{1}{x}) + x^2\cos(\frac{1}{x})\times\frac{-1}{x^2}$

$= 2x\sin(\frac{1}{x}) - \cos(\frac{1}{x})$ — ①

At $x=0 \Rightarrow$

$f'(0) = \lim_{h\to 0}\frac{f(h)-f(0)}{h} = \lim_{h\to 0}\frac{h^2\sin(\frac{1}{h})}{h} = \lim_{h\to 0} h\sin(\frac{1}{h})$

We know $\sin(\frac{1}{h}) \in [-1,1]$

$\Rightarrow -h \leq h\sin(\frac{1}{h}) \leq h$

by squeeze theorem, $\lim_{h\to 0} h\sin(\frac{1}{h}) = 0$

$\Rightarrow f'(0) = 0$ — ②

from ①, ② $\Rightarrow$

Consider $\lim_{x\to 0} f'(x)$

$= \lim_{x\to 0} \left(2x\sin\left(\frac{1}{x}\right) - \cos\left(\frac{1}{x}\right)\right)$

$= \lim_{x\to 0} \left(-\cos\left(\frac{1}{x}\right)\right)$

oscilates between -1 & 1

Hence limit does not exist

$\Rightarrow f'(x)$ is not continuous at $x=0$ [?]