Let $f: [a,b] \longrightarrow \mathbb{R}$ is a integrable function and $X \subset [a,b]$ dense in $[a,b]$. Suppose that $f(x) = 0$ for all $x \in X$. Prove that $\displaystyle \int\limits_{a}^{b}f(x)dx = 0$.
$\textbf{My idea:}$ Let $P = \lbrace a=t_{0}, t_{1}, ..., t_{n} = b \rbrace$ an arbitrary partition of $[a,b]$. Since $X$ in dense, in any partitions intervals $[t_{i-1}, t_{i}]$ of $[a,b]$, $\inf([t_{i-1}, t_{i}]) = 0$. Therefore, $s(|f|, P) = 0$, than $\displaystyle \int\limits_{a}^{b}f(x)dx = 0$, because $\sup s(|f|, P) =\inf S(|f|, P)$
$-$ $s(f, P)$ is the left riemann sum and $S(f, P)$ is the right riemann sum
Is the correct?
$f$ is not nonnegative, it does not follow that $\inf f[t_{i-1},t_{i}]=0$. But this can be amended if we consider the integrable function $|f|$ and the fact that $\left|\displaystyle\int_{a}^{b}f(x)dx\right|\leq\displaystyle\int_{a}^{b}|f(x)|dx$.
Further, actually it is not necessarily that $s(f,P)=S(f,P)$ for an integrable function $f$.