Let us consider $f : \mathbb{R} \to \mathbb{R}$ defined by $$f(x) =\begin{cases} x^2 \sin \frac{1}{x},& x \neq 0\\ 0,& x = 0\end{cases}.$$
By using algebra of continuous functions (or algebra of limits) show that $f$ is continuous in $\mathbb{R}$. (You may assume without proving that $\sin y$ and polynomials are continuous at every point).
Okay so I understand that $x^2$ and $\sin\frac{1}{x}$ are both continuous functions, and due to algebra of continuous functions proving $f(x)$ is continuous but I'm not sure how to prove this? Thanks.