I have this function: $f(x)=(\cos(x)-1)/(x^{1/3}+1)$ which is continuous at $0$ and I wanted to know if it's differentiable at $0$.
The way I tried to solved it was using the definition:
$$\lim_{h\to 0} \frac{f(0+h)-f(0)}{h}=\lim_{h\to 0}\frac{\cos(h)-1}{h}\cdot\frac{1}{h^{1/3}+1}=0$$
I found that for $0+$ and $0-$ the limit is $0$. Doesn't this mean that it's differentiable at $0$?
But when I calculate the derivative:
$$f'(x)=-\frac{\sin(x)}{x^{1/3}+1}-\frac{\cos(x)-1}{3\cdot x^{2/3}\cdot(x^{1/3}+1)^2}$$
I found that $f'(x)$ is not continuous at $0$. Doesn't this mean that it's not differentiable at $0$?