@grace77: In case you are still confused about this, you should remember that the formula for the area between two curves between ##x=a## and ##x=b## is always$$
A =\int_a^b y_{upper}-y_{lower}~dx$$Students get used to working problems where ##f(x)\ge 0## on ##[a,b]## with ##\int_a^bf(x)~dx## which works since ##y_{upper}=f(x)## and ##y_{lower}=0##, the ##x## axis. But when you are calculating the area between a curve and the ##x## axis, and the curve crosses the ##x## axis, ##x## axis is now the upper curve, and on that portion ##y_{upper}-y_{lower}## becomes ##0-f(x)##, which changes the sign of the integrand on that portion. You normally break such integrals into two or more parts to work them.