Differentiability of $\sin\left({\frac{1}{x}}\right)$ So I came across this question and have encountered pretty similar questions to this and I always have had found it difficult to understand this. One way to think about differentiability is to find whether the following limit exists and is finite,
$$\lim_{x\to a} \frac {f (x)-f (a)}{x-a}$$
How I think of differentiability (let me know if I am right)  for a function is the function should be smooth ie. no abrupt changes, no cusps or any that kind of thing, which simply imply the following


*

*The function should be continuous, any removable or non-removable discontinuity  must not be present as that will imply that the function changed abruptly.





*The derivative should be continuous as this would constrain the derivative from changing instantaneously at any point. We see this with modulus function which is not differentiable at zero since the derivative is discontinuous at zero.


So I often stumble upon functions like
$\sin\left({\frac{1}{x}}\right)$, and I become a bit confused. I know that this function is not differentiable at $0$, since the $\lim_{x\to 0}\frac{\sin\left({\frac{1}{x}}\right)}{x}$ isn't finite as the numerator keeps oscillating between $0$ and $1$ and this rapid changing of the curve makes it non-differentiable at $0$.
But what I don't understand whether $\sin\left({\frac{1}{x}}\right)$ is differentiable at $0^{+}$ or $0^{-}$ ?
I am reframing my question, my confusion is due to the fact that, we say the limit of the function doesn't exist when $x\to 0$  but if I correctly understand the idea that $x$ approaching zero convey is simply that x goes closer and closer to zero (if I got this wrong correct me) without actually going to zero else the denominator would be zero. So we are apparently saying that the above function is non-differentiable at values ever so slightly greater or less than zero (depending upon which side you approach to zero on the number line) the reasoning being that the function is changing very rapidly. But if one carefully observes, the function is continuous at all the values except for $0$, also the derivative is continuous for that, so the above two criterion are fulfilled and the function should be differentiable at $0^{+}$ if not at $0$. So where did I go wrong?
 A: The derivative exists for any $x \neq 0$, and is given by the chain rule:
$$
f'(x) = \cos(1/x) \cdot (-1/x^2)
,\qquad
x \neq 0
.
$$
But the derivative at $x=0$ does not exist, and neither do the one-sided derivatives. To investigate them, you must look at the one-sided limits
$$
\lim_{h \to 0^\pm} \frac{f(h)-\color{red}{f(0)}}{h}
,
$$
which involve the number $f(0)$, which is undefined for our function $f$. So the limits don't exist, for the very trivial reason that the expression whose limit we are supposed to investigate doesn't exist to begin with!
Let me elaborate a little. As I think you know, when we compute the derivate of $f$ at some point $a$, what we do geometrically is to look at the slope of a line through two points on the curve $y=f(x)$, namely the “fixed” point $(x,y)=(a,f(a))$ and the “moving” point $(x,y)=(a+h,f(a+h))$ where $h \neq 0$, and see what happens to the slope of that line as $h \to 0$ (when the moving point moves along the curve to approach the fixed point). But if there is no point $(a,f(a))$ to begin with, you don't have anywhere to “attach” that line, so it doesn't even make sense to ask the question about what the slope of the curve is just there.
Another question that you could ask is whether the function
$$
g(x) = \begin{cases}
\sin(1/x),& x \neq 0,\\
A,& x=0,
\end{cases}
$$
would be differentiable at $x=0$ for some suitable value of $A$. (Now the number $g(0)=A$ exists, so at least we have some nontrivial limit to investigate, unlike the previous case where $f(0)$ was simply undefined.) However, this is also not the case, since whatever value you choose for $A$, the function $g$ is discontinuous at the origin (since $0$ is in the domain of $g$, but $\sin(1/x)$ doesn't have a limit there), and then $g'(0)$ cannot exist, by the well-known theorem that differentiability implies continuity.
It's also true that the limits
$$
\lim_{x \to 0^\pm} f'(x) = \lim_{x \to 0^\pm} \bigl( \cos(1/x) \cdot (-1/x^2) \bigr)
$$
do not exist for our function $f$, but that's a different question. In that case, for each $a \neq 0$ you do the above investigation with the line between a fixed point and a moving point, so that you know what the slope is at any point $a \neq 0$, and after you've done that, you see what happens to the slope as $a \to 0$. But that does not necessarily give the same result as attaching the line to the fixed point $(x,y)=(0,f(0))$ (if there is such a point) and investigating what happens when the moving point approaches that point. (Although if you add some additional assumptions, it actually does; see for example this question and its countless duplicates.)
A: $0^+$ refers to a limit as you approach $0$ from the right.
So taking a value $a$, we can calculate the derivative there, and then try to take the limit as $a \to 0^+$.
$$\lim_{h \to 0} \frac{f(a+h)-f(a)}{h} = \lim_{h \to 0} \frac{\sin(1/(a+h))-\sin(1/a)}{h}$$ which, using more calculus, gives $$-\frac{1}{a^2}\cos(\frac{1}{a})\cdot$$
which oscillates more and more wildly as $a \to 0^+$ and so does not have a limit.
A: Take $\xi=\frac1x$, then $f(x)=\frac{sin({\frac 1x})}{x}=\xi\sin(\xi)=g(\xi)$ and $x\to 0^\pm\implies \xi\to\pm\infty$
So, your question is equivalent to asking if $g$ is differentiable at $\pm \infty$.
Slightly abusing notation, $g(\pm\infty)=\lim_{\xi\to\pm\infty} \xi\sin(\xi)$ does not exist. This is because periodic functions do not have infinite limits. I attached the graph below, you can see the function oscillates between $\pm\infty$ on both sides.
Graph of g
However, so long as $\xi$ is finite, $g$ is defined, and we can show the derivative exists. This in turn means that $f$ is defined and differentiable for every $x\neq 0$.
