Here we're talking about Riemann integrable real functions defined on $[a,b]$. Even though this is a simple question I didn't find it here, if it's duplicated I'm sorry...
I could prove this if $f$ was continuous, or $$ f\geq0 \rightarrow \int f\geq0. $$
Trying to prove this one I stucked in a point that if I could prove the following
if for every partition of $[a,b]$, $$ \inf \{f(x)|x\in[x_{t_i},x_{t_{i+1}}]\}=0 $$ for all intervals of the partition then $f=0$,
then I could prove the initial thing... But I couldn't do this neither. Anyone can help me with that?