Consider a real-valued function $f:[a,b]\rightarrow \mathbb{R}$ and consider some point $c\in (a,b)$. Assume that $$f^\prime(c^-):=\lim_{x\nearrow c}\frac{f(x)-f(c)}{x-c}\quad\text{and}\quad f^\prime(c^+):=\lim_{x\searrow c}\frac{f(x)-f(c)}{x-c}$$ both exist. That is, assume that the left-hand and right-hand derivatives of the function exist at the point $c$. Further assume that $f^\prime(c^-)=f^\prime(c^+)$, i.e., that the left-hand and right-hand derivatives at the point $c$ equal. Does this necessarily imply that $f$ is differentiable at $c$, i.e., that $f^\prime(c):=\lim_{x\rightarrow c}\frac{f(x)-f(c)}{x-c}$ exists? Could you provide a proof or reference for this fact? If it doesn't necessarily imply differentiability, are there additional conditions that would imply differentiability?
Intuitively, it seems to be true. But I couldn't prove it. I saw a few related posts on Math Stack Exchange (with one directly asking this question), but for some reason I didn't see a convincing enough answer there.
Edit: There is something that I want to add here and ask additionally. Suppose you know the derivative of $f$ to both the left and right of $c$, but not at $c$. Suppose you can show that $$\lim_{x\nearrow c} f^\prime(x)=\lim_{x\searrow c} f^\prime(x).$$ Can it be concluded from this that the derivative of $f$ at $c$, i.e., $f^\prime(c)$, exists and equals those left-hand and right-hand limits? Furthermore, can it be concluded that $f^\prime$ is continuous at $c$?