Given a function $f:\Bbb R\to \Bbb R$, I need to show that if $f$ is differentiable then $f$ is continuous.
Here is my idea on how to show this: If $f$ is differentiable then $\forall x_0\in\Bbb R$, $f(x_0)$ is differentiable. Then this implies that $$\forall x_0\in\Bbb R, \lim_{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0}=f'(x_0)\iff \lim_{x\to x_0}[f(x)-f(x_0)]=\lim_{x\to x_0}[x-x_0]\frac{f(x)-f(x_0)}{x-x_0}.$$ Since $\lim_{x\to x_0}[x-x_0] = 0$, then from this we have, $$\lim_{x\to x_0}[f(x)-f(x_0)] = 0.$$ Moreover, since these limits exist independently, then we have $$\lim_{x\to x_0}f(x)=f(x_0)\implies f\text{ is continuous}$$ Does this seem correct or is there some error in the logic? Thanks.