# a differentiable function but its derivative is discontinuous everywhere [duplicate]

Is there a function $f$: $\mathbb R\to \mathbb R$ such that $f$ is differentiable everywhere but $f'$ is discontinuous everywhere?

## marked as duplicate by user147263, GEdgar, Johanna, dustin, Daniel W. FarlowFeb 27 '15 at 2:48

No, $f'$ is of first Baire class (a pointwise limit of continuous functions), so it is continuous everywhere except a meager (first category) set.
$f$ is differentiable, so $f$ is continuous, and $$f'(x) = \lim_{n \to \infty} g_n(x),\qquad\text{where}\qquad g_n(x) = \frac{f(x+1/n)-f(x)}{1/n}$$ and $g_n$ is continuous.