"$F(x) = x^2 sin(1/x)$ when $x$ is not equal to 0. $F(x) = 0$ when $x = 0$. I have to show that $f(x)$ is differentiable everywhere, but $df/dx$ is not continuos at $x = 0$".
Let $h(x) = x^2 \sin(\frac 1x)$.
$F(x) = h(x); x\ne 0; F(x) = 0; x = 0$.
If $x \ne 0$ then $F$ is differentiable and continuous if $h$ is.
$h$ is. I'll leave that to you. ($h'(x) = 2x\sin(\frac 1x) - \cos (\frac 1x)$. Also left to you.)
At $x=0$, $F$ is continuous if $\lim_{x\rightarrow 0}h(x) = F(0) = 0$.
It does. I'll leave that to you. (Hint: Squeeze Theorem.)
At $x=0$, $F'$ is differentiable if $\lim_{k\rightarrow 0}\frac {F(0+k) - F(0)}k=\lim_{k\rightarrow 0}\frac {h(k)}k$ exists.
It does. And it is equal to $0$. I'll leave that to you. (Hint: Again with the Squeeze Theorem.)
So $F$ is continuous and differentiable everywhere.
$F'(x) = h'(x); x \ne 0$ and $F'(0) = \lim_{k\rightarrow 0}\frac {F(0+k) - F(0)}k = 0$.
$F'$ is continuous at $x = 0$ only if $\lim_{x\rightarrow 0} F'(x) = \lim_{x\rightarrow} h'(x)= F'(0) = 0$.
It doesn't. I'll leave that to you. (Hint: $\lim_{x \rightarrow \infty} \cos x = ???$)