My attempt: Let P the partition of $[a,b]$. Let $x_{i}^{*} \in [x_{i-1},x_{i}]$ and f is non negative in $[x_{i-1},x_{i}]$.
Since f is continuous on $[a,b]$, then $f$ is R-integrable with $\int_{a}^{b} f(x)dx=0$.
$$\displaystyle \lim_{n\rightarrow \infty} \sum_{i=1}^{n}f(x_{i}^{*}) \delta x_{i}=0$$
This implies $f(x_{i})=0$ for all i. i.e $f(x)=0$.
Is this proof is correct?