Artificial intelligent assistant

What is the intuitive reason for a function to be continous but not differentiable I was just wondering if the following is the right idea for the function to be continuous, but is not differentiable. So, intuitively the function is continuous whenever if we get close to a point a, then f(x) gets close to f(a). If a function is differentiable at a, then we can calculate the tangent line at a. So in order to stop a function from being differentiable at a. We just have to have a function which is continuous whose tangent line oscillate really rapidly to stop it from being differentiable. Is that the right idea ?

No. The function is not differentiable at $a$ when there is _no_ tangent line to the graph at the point $\bigl(a,f(a)\bigr)$. The most typical reason for non-existence of a tangent there is when there is a corner at that point. This has nothing to do with oscillations.

However, the oscillation phenomenon also occurs. That's what happens with the function$$\begin{array}{rccc}f\colon&\mathbb R&\longrightarrow&\mathbb R\\\&x&\mapsto&\begin{cases}x\sin\left(\frac1x\right)&\text{ if }x\
eq0\\\0&\text{ if }x=0.\end{cases}\end{array}$$It is not differentiable at $0$, although it is continuous there, because the quotiente$$\frac{f(x)-f(0)}{x}$$keeps oscilatting between $1$ and $-1$ as $x$ approaches $0$.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a9222ff95f17cd56dc09e4b7e9e22495