Derivative/integral relationship appears to disprove the fundamental theorem of calculus!!!

The fundamental theorem of calculus has a crucial hypothesis: $$F(x)=\int_{a}^x f(t)dt\Rightarrow F'(a)=f(a) $$

Whenever and wherever $f$ is continuous, here we are assuming $f$ is continuous at the point $a$. The floor function is very much not continuous. When you see theorems, it is very important that you check what the hypotheses are.


The first fundamental theorem of calculus is stated as follows:

For any continuous function $f:[a,b]\rightarrow \mathbb R$ the function $F(x)=\int_{a}^x f(x)\,dx$ has $F'(x)=f(x)$ for all $x\in (a,b)$.

Notice that $f(x)=\lfloor x\rfloor$ is not continuous at the integers, thus this theorem says nothing about that. Note that the derivatives do agree at points where $f(x)$ is continuous.

An interesting thing to note is that there is another version of the first fundamental theorem of calculus called the Lebesgue differentiation theorem which loosens the restriction on $f$, but only says that $F'(x)=f(x)$ almost everywhere. It relies on measure theory to state, so I won't reproduce it here, but it's worth noting that one has a trade-off between conditions on $f$ and results for $F$.


Therefore, I have found a case where the antiderivative does not equal the indefinite integral.

That statement is actually not quite right. What you have in fact found is a case where the indefinite integral can not be used to obtain the original function through differentiation. But you can't say anything about an antiderivative that does not equal something else, because it doesn't exist.

Indeed, the statement “any antiderivative is equal to the indefinite integral” is still true – for all of the zero antiderivatives!

What's more: in more than one sense the integral is actually differentiable. In particular, for any $x$ and any sequence $((x)_i)_i$ converging to $x$ from above (i.e. $x_i>x$), you get $$ \lim_{i\to\infty} \frac{F(x_i) - F(x)}{x_i - x} \equiv \lim_{\xi\searrow x} \frac{F(\xi) - F(x)}{\xi - x} = \lfloor x\rfloor = f(x). $$ For all $x\not\in\mathbb{Z}$, this upper derivative is equal to the normal derivative. Trouble is, there would be no compelling reason to favour the upper derivative over the lower derivative, and it turns out that the lower derivative disagrees: $$ \lim_{\xi\nearrow x} \frac{F(\xi) - F(x)}{\xi - x} = \lceil x-1\rceil. $$ This is still equal to $f(x)$ almost everywhere, but for $x\in\mathbb{Z}$ we have $\lceil x-1\rceil = f(x)-1$.

You can pretty much say that the derivative is deliberately constructed in such a way that it doesn't exist in cases like this where there would be an ambiguity and the Fundamental Theorem would be contradicted. By requiring continuity of $f$, the Fundamental Theorem also precludes such ambiguity and guarantees that the integral has a well-defined derivative.


These upper or lower derivatives really aren't much use in practice, but there is a concept called weak derivative that does have some pretty useful applications.