If $f$ is Riemann integrable on $[a,b]$ then so is $|f|$
Here is my attempt:
Since $f \in \mathscr{R}[a,b]$, then $f$ is continuous almost everywhere on $[a,b]$ and is bounded. Let $V$ be a set of points where it is discontinuous so $V$ is of measure zero.
Let $S$ be the set of intervals where $f$ is negative. That is, $S=\{I_1, I_2,...,I_n\}$.
Let $T=\{x_0,x_1,...,x_p\}$ be the set of endpoints of these intervals.
Then $|f|$ is discontinous on $V \cup T$. Since $V \cup T$ is of measure zero, then $|f|$ is continuous almost everywhere on $[a,b]$. It is also bounded since $f$ is bounded.
Hence, $|f| \in \mathscr{R}[a,b]$
$\Box$
Is my proof correct? How can I improve it? What's another way to prove this?