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?