Define $F(x)=\int_{a}^{x} f(t)\,dt$ on $[a,b]$, then by fundamental theorem of calculus, we know that if $f(x)$ is continuous then $F'(x)=f(x)$.
Say we remove the condition that $f(x)$ is continuous then how would we construct an example such that $F'(x)\neq f(x)$ for finite amount of points? How to come up an example for infinite amount of point?
Thanks
Take$$\begin{array}{rccc}f\colon&[0,1]&\longrightarrow&\mathbb R\\&x&\mapsto&\begin{cases}1&\text{ if }x=\frac1n\text{ for some }n\in\mathbb N\\0&\text{ otherwise.}\end{cases}\end{array}$$Then $F$ is the null function and therefore$$(\forall n\in\mathbb N):F'\left(\frac1n\right)\neq f\left(\frac1n\right).$$