Let $f(x)=\left\{\begin{array}{ll}x \sin \frac{1}{x}, & x \neq 0 \text { and } g(x)=\left\{\begin{array}{ll}x^{2} \sin \frac{1}{x}, & x \neq 0 \\ 0, & x=0\end{array} .\right.\end{array}\right.$
Show that $f$ is continuous, but not differentiable, at $x=0$. Show that $g$ is differentiable at $0,$ and find $g^{\prime}(0)$.