While answering this question it occurred to me that there might be a function $f$ with the following properties:
- $f$ is Riemann integrable on closed interval $[a, b] $.
- The function $F$ defined by $$F(x) =\int_{a} ^{x} f(t) \, dt$$ is differentiable on $[a, b] $ (with one sided derivatives being considered at end points).
- There is a point $c\in(a, b) $ such that $F'$ is discontinuous at $c$ and $f'(c) $ exists.
I wasn't able to construct such an example myself. Do help in finding one such function or show that such a function does not exist.
Clearly such an $f$ must be discontinuous at some points in $[a, b] $ and further its discontinuities must be of essential type and not the jump kind. The point $c$ must be a limit point of the set of discontinuities of $f$. Also via measure theory we must have $F'=f$ almost everywhere. I wonder if these properties are of any help here.