Assume $f$ is continuous and nonnegative over $[a,b]$. Show that $f$ is identically zero if and only if $\displaystyle \int_{a}^b f(x)dx = 0$.
Proving the first direction is easy: If $f(x) = 0$, then obviously $\displaystyle \int_{a}^b f(x)dx = 0$. On the other hand if $\displaystyle \int_{a}^b f(x)dx = 0$, then since $f$ is continuous on $[a,b]$ and $f(x) \geq 0$ we must have $f(x) = 0$.