We need to split the integration into 2 portions because one part of the curve is above the x-axis and the rest of it is below.