Differentiability of $f(x) = x^2 \sin{\frac{1}{x}}$ and $f'$
Part (b). The function $f$ is differentiable at $0$ and has $f'(0)$ equal to the limit if the following limit exists: \begin{align} \lim_{x \to 0} \dfrac{f(x) - f(0)}{x-0} & = \lim_{x \to 0} \dfrac{f(x) - 0}{x} & \textrm{ as } f(0) = 0 \\ & = \lim_{x \to 0} \dfrac{x^2 \sin\left(\frac{1}{x}\right)}{x} & \\ & = \lim_{x \to 0} x \sin\left(\frac{1}{x}\right) & \end{align}
Now we can use the Squeeze Theorem. As $-1 \leq \sin\left(\frac{1}{x}\right) \leq 1$, we have that $$0 = \lim_{x \to 0} x \cdot -1 \leq \lim_{x \to 0} x \sin\left(\frac{1}{x}\right) \leq \lim_{x \to 0} x \cdot 1 = 0$$
Therefore, $\lim_{x \to 0} x \sin\left(\frac{1}{x}\right) = 0$ and we have $f'(0)=0$.
$x^2$ is continuous and differentiable over $\mathbb{R}$
$\sin(x)$ is continuous and differentiable over $\mathbb{R}$
$\frac 1 x$ is continuous and differentiable over all $\mathbb{R}$ except $0$. And is a function of $\mathbb{R \to R}$
$\displaystyle \sin\left(\frac 1 x\right)$ is therefore continuous and differentiable for all $\mathbb R$ except $0$ where it is undefined.
$\displaystyle x^2\sin\left(\frac 1 x\right)$ is therefore continuous and differentiable for all $\mathbb R$ except possibly $0$.
To compute $f'(a)$ use product rule followed by chain rule to find:
$$F'(a) = 2a\sin\left(\frac 1 a\right) - \cos\left(\frac 1 a\right)$$
$$\lim (f(x) g(x)) =\lim (f(x))\lim (g(x)),$$ provided that both limits exists.
In above case, lim $\sin (1/x)$ does not exist as $x$ tends to $0$. Therefore, the above method is flawed.
It is however true that $\lim x \sin(1/x) = 0$ as $x$ tends to $0$, but, the method of proving this result, as shown above, is not correct.
One need to use epsilon-delta method (involving rigorous maths) to prove this result.