I read from the Apostol book calculus Vol 1 that the First fundamental theorem of calculus is as follows:
Let $f$ be a function that is integrable on $[a,x]$ for each $x$ in $[a,b]$. let $c$ be such that $a\le c\le b$ and define a new function $A$ as follows:
$$A(x) = \int^x_c f(t)$$
if $a\le x\le b$. Then the derivative $A'(x)$ exists at each point $x$ in the open interval $(a,b)$ where $f$ is continuous, and for such $x$ we have
$$A'(x)=f(x)$$
The book gives a geometric argument as follows:
$$\int^{x+h}_x f(t)dt = \int^{x+h}_c f(t)dt - \int^{x}_c f(t)dt = A(x+h) - A(x)$$
Assuming $f$ is continuous in $[x,x+h]$, then by mean-value theorem for integrals, then we have $A(x+h) -A(x) = hf(z)$ where $x\le z \le x+h$.
The book told us that the above proof is flawed. What's wrong with this argument? Yes it assumes the continuity of interval $[x,x+h]$, but that's what the assumption of the theorem is about, right?