Before I go ask my question, I need to mention that the closest problems I have found are these: 1. and 2.. Maybe there are more, but I couldn't find those. And, here's my question:
Let, $$f(x) = \{x \sin (1/x), x \neq 0$$ $$\{0, x = 0$$
- Is $f$ continuous on $\mathbb{R}$
- Is $f$ differentiable on $\mathbb{R}$
For the first part, I am trying to understand this without using $\epsilon-\delta$ definition but using sqeeze theorem, and for the 2nd part, the answers on the other problem did not make much sense to me. So, I have no choice but asking the same question.
My thoughts for the problem: 1. $f(x) = 0,$ whenever, $x = 0.$ But, for $x \neq 0,$ we know $- x \leq x \sin(1/x) \leq x$, lim$_{x \to 0} -x = 0$ and lim$_{x \to 0} x = 0 \Rightarrow f(x) = 0.$ Not sure what to conclude.
- $f'(x) = \sin(1/x) - (1/x) \cos(1/x)$. From here can we say $f$ is differentiable on $\mathbb{R} - \{0\},$ since $f'(x)$ is undefined when $x = 0$?