The function
$$f(x)=\begin{cases}\ x^2\sin\left(\frac1{x}\right), x\ne0\\ 0,x=0\end{cases}$$
is differentiable everywhere. My question by taking the limit definition of the function at $x=0$: $$\lim_{h \to 0} \frac{f(0+h)-f(0)}{h} = \lim_{h \to 0}\frac{h^2\sin\left(\frac1{h}\right)}{h}=\lim_{h \to 0}h\sin\left(\frac1{h}\right) =0$$ So the function is differentiable at $0$ and the derivative is equal to $0$, but if we take the derivative for any point: $$2x\sin\left(\frac1{x}\right)−\cos\left(\frac1{x}\right)$$ at $x=0$ this function is undefined. Do these two definitions disagree because the derivative is discontinous at $0$? How can the function be differentiable if the derivative of the function is discontinous or undefined at that point? How can these two definitions disagree?
$\sin x$makes $\sin x$ which looks a lot nicer than $sin x$. – Sean Roberson Nov 14 '24 at 17:01