The function, f(x)= 0 if x< 0 and rational or [itex]x> 2\pi[/itex] and rational, f(x)= 1 if x< 0 and irrational or [itex]x> 2\pi[/itex] and irrational, f(x)= 3 for all other x, is differentiable for all x in [itex][0, 2\pi][/itex] but not differentiable for any other f. Since it does not have a derivative on [itex][-\pi, 0][/itex], no, its derivative cannot be integegrated there!