I want to show the following:
Let $f: \mathbb{R} \to \mathbb{R}$ be continuous.
a) If $f$ is differentiable and for $x \ne 0$ the limit $\lim_{x\to 0} f'(x) = A$ exists, then $f$ is differentiable at $x = 0$ and $f'(0) = A$.
b) Show that the inverse is false, i.e. there exists a function $f$ which is differentiable at $x = 0$, but $\lim_{x\to 0} f'(x)$ does not exists.
For a), I worked out a proof, but I am unsure if the limit manipulations I used are okay and rigorous enough, so please can you comment on my solution and point out possible flaws?
Ok, in a) I have to show, that if the limit exists, then it obeys the continuity condition at $x = 0$, i.e. $$ \lim_{x\to 0} f'(x) = f'(0) $$ so I calculate (by using the limit definition of the derivative) \begin{align*} \lim_{x\to 0} f'(x) & = \lim_{x \to 0} \left[ \lim_{h \to 0} \left( \frac{f(x+h)-f(x)}{h} \right) \right] \\ & = \lim_{h \to 0} \left[ \lim_{x \to 0} \left( \frac{f(x+h)-f(x)}{h} \right) \right] \\ & = \lim_{h \to 0} \left[ \frac{1}{h} \lim_{x \to 0} \left( f(x+h)-f(x) \right) \right] \\ & = \lim_{h \to 0} \left[ \frac{1}{h} ( f(h) - f(0) ) \right] \\ & = f'(0) \end{align*} Thats my proof, in the last step I used the continuity of $f$ and the manipulations are possible, I think, because all limits exists. I never saw such manipulations, most proofs in my textbooks use $\epsilon/\delta$-Arguments, so I am unsure as how valid are such limit-exchange operations.
For b) the function $f(x) := |x|$ is differentiable at $x = 0$ but it's derivative is not continuous at $x = 0$.