I know the definition of left derivative. If function f is differentiable and the limit of its derivative from left-hand of point x exists then it equals to left derivative of point x . This can be proven by using mean value theorem . my question is when the limit of derivative from left-hand of x doesn't exist why can left derivative exist . I know the example is $f(x)=x^2 \sin(\frac{1}{x})$.but I want to know why the proof by using mean value theorem fails
by mean value theorem there is c between [x,a],s.t. $\frac{f(x)-f(a)}{x-a}=f'(c)$, take limit on both side as x goes to a- , then $\lim \limits_{x \rightarrow a-} \frac{f(x)-f(a)}{x-a}=\lim \limits_{x \rightarrow a-}f'(c)$ . if $\lim \limits_{x \rightarrow a-}f'(c)=A$ , then I can conclude left derivative at a=$\lim \limits_{x \rightarrow a-} \frac{f(x)-f(a)}{x-a}=A$
but if $\lim \limits_{x \rightarrow a-}f'(c)$ doesn't exist ,there still exists c so that the equality $\frac{f(x)-f(a)}{x-a}=f'(c)$ and $\lim \limits_{x \rightarrow a-} \frac{f(x)-f(a)}{x-a}=\lim \limits_{x \rightarrow a-}f'(c)$ still hold,then $\lim \limits_{x \rightarrow a-}f'(c)$ doesn't exist can conclude left derivative=$\lim \limits_{x \rightarrow a-} \frac{f(x)-f(a)}{x-a}$ doesn't exist .
where am I wrong