Let $f:[a, b]\to \mathbb{R}$ be continuous. Assume $f(x)\geq 0$ for all $x\in[a, b]$, and that $$\int_a^b f\text{ }\mathrm{ d}x=0$$ Prove that $f(x)=0$ for all $x\in[a, b]$.
Would you recommend using a direct proof or a proof by contradiction by assuming there exists $y\in[a, b]$ such that $f(y)\geq 0$?