Let $f : \mathbb{R} \to \mathbb{R}$ be continous. Assume that $f’(x)$ exists for all $x \neq 0$ and $ \lim_{x\to\ 0} f'(x) = 1$. Show that $f’(0)$ exists and $f’(0) = 1$
My attempt: $$1 = \lim_{x\to0} \lim_{h\to0}\frac{f(x + h) - f(x)}{h} = \lim_{h\to0}\frac{f(0 + h) - f(0)}{h} = f’(0)$$
I don’t think that the limit interchange that I have done is correct. Can someone help me out with how to do this.