See this link to get a picture of what I mean.
If you want to calculate the area between $f(x)$ and $g(x)$ on a certain interval $[a,b]$. Do I have to add the two areas between the $x$-axis and $f(x)$, the $x$-axis and $g(x)$, or can I just find the area between $f(x)$ and $g(x)$ in one step like this:
$$\int_a^b\left[f\left(x\right)-g\left(x\right)\right]dx$$
My question is, how do you prove the above will work, since $g(x)$ has negative values but $f(x)$ has positive values. Will this be giving you the incorrect area between $f(x)$ and $g(x)$?