Changing order of integration is not always feasible
Suppose you need to calculate the double integral
Df(x,y)dA for some
function f(x,y) and the region D shown below.

To calculate the double integral, you can write it as an iterated integral. For example, let’s say that in the region D, the lowest value of y is a and the highest value of y is b. In other words, the range of y in the region D is a ≤ y ≤ b.
For a given value of y, the range of x in D depends on the value of y. However, the region is nice enough so that the range of x for any y is just a simple interval. We could define two functions h1(y) and to h2(y) so that this interval in x is [h1(y),h2(y)] for each value of y. This description of the region D is shown in the following picture.

Since the region D is defined by
| a ≤ y ≤ b, | ||
| h1(y) ≤ x ≤ h2(y), |
Df(x,y)dA = ∫
ab dy. |
However, we would run into trouble if we tried to change the order of integration. The difficulty is that the range of y for some values of x is not a simple interval. For example, for the value of x given by the vertical dashed line below, the range of y is two different intervals.

Since we cannot always write the range of y as a single interval [g1(x),g2(x)], we
cannot write the integral
Df(x,y)dA as a single iterated integral of the
form
Df(x,y)dA = ∫
cd dx. |



