Crossings of this pair: . Set a and b to the outer crossings to enclose the whole region.
Each piece integrates [top − bottom] for its own sub-interval, so every piece is positive. The unsplit integral adds the pieces with their signs, which is why it can be zero for a region that plainly has area.
The table above is hidden until you ask for the split. Compare the unsplit integral with the area first: when do they differ?