Worked example: area between curves