Prove that $f(x)=\cases{0& if $x=0$\\x\sin(1/x)& otherwise,}$ is not Lipschitz on $[0,1]$
MY TRIAL
My idea is to show that $f$ does not have a bounded derivative.
So, suppose for contradiction that there exists $K>0$ such that $$\left| f'(x)-f'(0)\right|=\left| \sin\left(\frac{1}{x}\right)-\frac{1}{x}\cos\left(\frac{1}{x}\right)\right|\leq K |x|,\;\forall\;x\in [0,1].$$ As $x\to 0$, \begin{align}\lim\limits_{x\to 0}\left| f'(x)-f'(0)\right|&=\lim\limits_{x\to 0}\left| \sin\left(\frac{1}{x}\right)-\frac{1}{x}\cos\left(\frac{1}{x}\right)\right|\leq K\lim\limits_{x\to 0} |x|,\end{align} which implies that \begin{align}+\infty=\lim\limits_{x\to 0}\left| \sin\left(\frac{1}{x}\right)-\frac{1}{x}\cos\left(\frac{1}{x}\right)\right|\leq K\lim\limits_{x\to 0} |x|=0,\;\;\text{contradiction.}\end{align} Please, I'm I right? Any other way of showing this is also accepted.
$f\left(\frac{2}{(2n+1)\pi}\right)=\frac{2}{(2n+1)\pi}(-1)^n.$ So, for any $C>0$ $\left|f\left(\frac{2}{(2n+1)\pi}\right)-f\left(\frac{2}{(2n-1)\pi}\right)\right|=\frac{2}{(2n-1)\pi}+\frac{2}{(2n+1)\pi}=\frac{8n}{(2n+1)(2n-1)\pi}> C\frac{4}{(2n+1)(2n-1)\pi}=C\left|\frac{2}{(2n-1)\pi}-\frac{2}{(2n+1)\pi}\right|$
for $n>C.$ So, $f$ can't be Lipschitz.