.

A diagram is essential to see why there are two cases to consider and where the integral terminals come from in each case.

Case 1:(that is, )

Case 2:(that is, )

As I've said, a diagram is essential to see where these results have come from. The calculations are left for you to do.