Oh I see, I was trying to integrate from 0 to 2. Why do we have to separate the two integrals? and.. for the 1st half of the integral why is the boundary from 0 to 1 and not -1 to 0?
The integral is separated because one region sits above the x-axis, the other below. We need to take the
absolute value of the integral representing the region below the x-axis, since that part of the integral will turn out negative. We do this for all regions sitting below the axis to make sure our area is correct

try finding the area from 1 to 2 without that absolute value, you'll get a negative! And that throws out our answer if we leave the integral undivided

As for why the limits of integration are 0 to 1, that is because the question specifies
between the ordinates x=0 and x=2, we want the area on the right hand side of the y-axis!
Does that help? If not I can put together another diagram to show you what I mean?
Edit: Rui won this one, I'll leave it here anyways, hearing it said two ways might help 