Owl: Two city skyline silhouettes β an upper roofline u(x) and a lower roofline β(x) β enclose a courtyard between their intersection points. Planners want the courtyard's area.
You don't integrate u alone or β alone. You integrate the positive vertical gap u β β, but only after you know which curve is on top on each stretch.
If the silhouettes cross, "upper" and "lower" can swap. Blindly writing β«(f β g) without a sketch is how courtyard estimates go negative or nonsense.
How do you decide which region to add when two graphs cross?