Suppose $f\geqslant 0$, $f$ is continuous on $[a,b]$, and $\int \limits_{a}^{b}f(x)dx=0.$ Prove that $f\equiv 0$ on $[a,b]$.
Proof: We'll define function $F(x)=\int \limits_{a}^{x}f(t)dt$. We know that $F(x)$ is continuous since $f$ is bounded and also $F(x)$ is differentiable since $f$ is continuous and $F'(x)=f(x)$ for any point $x\in [a,b]$.
Also $F(x)=0$ for any $x\in [a,b]$. Why? Because $$0=\int \limits_{a}^{b}f(t)dt=\int \limits_{a}^{x}f(t)dt+\int \limits_{x}^{b}f(t)dt$$ but both terms are non-negative. Hence $F(x)=0$ for any $x\in [a,b]$. Thus $F'(x)=f(x)=0$. Q.E.D.
What you think about that proof?