Let $S_1$ and $S_2$ be bounded sets in $\mathbb{R}^n$; let $f:S\to\mathbb{R}$ be a bounded function. Show that if $f$ is integrable over $S_1$ and $S_2$, then $f$ is integrable over $S_1-S_2$, and $\int_{S_1-S_2}f=\int_{S_1}f-\int_{S_1\cap S_2}f$.
I know that $f$ is integrable in $S_1\cup S_2$ and in $S_1\cap S_2$ with $\int_{S_1\cup S_2}f=\int_{S_1}f+\int_{S_2}f-\int_{S_1\cap S_2}f$, so how can I use this to demonstrate the above? Could you consider cases like: if $S_1$ and $S_2$ are disjoint, if $S_2$ is a subset of $S_1$ and if both sets have elements in common? Thank you very much.
Recall that given a bounded set $A\subset \mathbb{R}^n$ and $g:A\to \mathbb{R},$ we define $g_A:\mathbb{R}^n\to \mathbb{R}$ by $$ g_A(x)=\begin{cases}g(x), &x\in A,\\0 & \text{otherwise.}\end{cases}$$
First consider the case in which $f$ is non-negative. Now let $S=S_1\cup S_2$ and $T=S_1\cap S_2.$ If $f$ is integrable over $S_1$ and $S_2$ then, applying Lemma 13.2 (Munkres Analysis on Manifolds), it is integrable over $S$ and $T$ because $f_S(x)=\max\{f_{S_1}(x),f_{S_2}(x)\}$ and $f_T(x)=\min\{f_{S_1}(x),f_{S_2}(x)\}.$
Now show the following:
Finally, in the general case ($f$ not neccesarily non-negative), set $$ f_+(x)=\max\{f(x),0\} \hspace{.3cm}\text{ and } \hspace{.3cm}f_-(x)=\max\{-f(x),0\}.$$ Both are non-negative and $f(x)=f_+(x)-f_-(x).$