TITLE: A function which is R-integrable but does not have an antiderivative
QUESTION [5 upvotes]: How is it possible that this function: $$ 
    f(x)=\left\{\begin{array}{ll} 0, & -1\le x < 0 \\
         1, & 0\le x \le 1\end{array}\right. 
$$
is R-integrable in $[-1,1]$ , but does not have an antiderivative there? 
From the mean value theorem for derivatives, it can not be that the derivative has a jump at 0 , so it can not have a antiderivative?

REPLY [3 votes]: One way to see that $f$ doesn't have an antiderivative, is to use Darboux's theorem which states that every derivative has the intermediate value property, even if it (the derivative) is not continuous.

REPLY [2 votes]: Perhaps say it this way:  If
$$
F(x) := \int_{-1}^x f(t) dt
$$
then we may say $F$ is an indefinite integral of $f$.  Certainly $F$ exists.  But $F$ fails to be differentiable at the point $x=0$.  One of the proofs of the Fundamental Theorem of Caluculs will, indeed, show that $F'(x) = f(x)$ at every point where $f$ is continuous.  But $x=0$ escapes from that criterion.