In order to prove that if $f(x)$ is integrable, then $|f(x)|$ is, I'm using the definition that $f$ is integrable $\iff \forall \epsilon>0$ there exists a partition $P$ such that
$$S(f,P)-s(f,P)<\epsilon$$
but
$$S(f, P) = \sum M_i(t_{i}-t_{i-1})$$ $$s(f, P) = \sum m_i(t_{i}-t_{i-1})$$
What I need to prove is that
$$S(f,P)-s(f,P)<\epsilon \implies S(|f|,P)-s(|f|,P)<\epsilon$$
I cannot find an obvious relation in order to prove it. Could somebody help me?