Why the Integration Order Matters
A double integral over a region can often be written in either order: integrate with respect to \(y\) first, then \(x\), or integrate with respect to \(x\) first, then \(y\). If both iterated integrals describe the same region and the integrand satisfies the relevant conditions, they have the same value. But they need not be equally convenient to evaluate.
The choice affects two things at once: the limits imposed by the region's slices, and the antiderivative required at the inner step. A simple-looking pair of bounds may lead to a difficult inner integral. Conversely, an integrand that is easy to integrate in one variable may be paired with awkward bounds in that order.
What to Compare
Suppose \(D\) is a bounded planar region and \(f\) is continuous on \(D\). If the region can be described by slices, its double integral can be expressed as an iterated integral. For example, a Type I description has the form \(a\leq x\leq b\), \(g_1(x)\leq y\leq g_2(x)\), while a Type II description has the form \(c\leq y\leq d\), \(h_1(y)\leq x\leq h_2(y)\).
Before selecting an order, check the following:
- Inner antiderivative: Can you find an elementary antiderivative in the proposed inner variable?
- Dependence on the other variable: Does integrating first produce an outer integrand that is manageable?
- Bounds: Are the slice endpoints simple, or do they require complicated expressions or several pieces?
- Verification: Can you differentiate the proposed antiderivative to check it?
An antiderivative with respect to \(y\) treats \(x\) as constant, and vice versa. That fact can make one order much simpler than the other. The region still matters: reversing the order can change the slice endpoints even though it does not change the region itself.
Worked Example: Choose the Order That Avoids a Difficult Antiderivative
Worked Example: Choose the Order That Avoids a Difficult Antiderivative
Evaluate \(\iint_D e^{x^2}\,dA\) over the triangle \(D=\{(x,y):0\leq y\leq x\leq 1\}\). Compare the two possible orders.
First use vertical slices: for each \(x\) between \(0\) and \(1\), \(y\) ranges from \(0\) to \(x\). Thus
For the inner integral, \(x\) is constant, so \(e^{x^2}\) is constant with respect to \(y\):
Therefore the remaining integral is
The antiderivative is checked by differentiation: \(\frac{d}{dx}\bigl(\frac12 e^{x^2}\bigr)=x e^{x^2}\), which is the outer integrand. The bounds give \(\frac12e-\frac12=\frac{e-1}{2}\).
Now reverse the order. The same triangle has \(0\leq y\leq 1\) and \(y\leq x\leq 1\), so the integral would be
Its inner integral requires an antiderivative of \(e^{x^2}\) with respect to \(x\), which has no elementary expression. The first order is therefore preferable: its inner integral is immediate, and the remaining integral has an elementary antiderivative.
Worked Example: Compare Inverse-Trigonometric Antiderivatives
Worked Example: Compare Inverse-Trigonometric Antiderivatives
Evaluate \(\iint_D \frac{1}{1+x^2}\,dA\) over the same triangle \(D=\{(x,y):0\leq y\leq x\leq 1\}\). Here the integrand depends on \(x\) but not on \(y\).
With \(y\) as the inner variable, the bounds are \(0\leq y\leq x\):
The first inner step uses the fact that \(1/(1+x^2)\) is constant with respect to \(y\). The outer antiderivative checks by differentiation: \(\frac{d}{dx}\bigl(\frac12\ln(1+x^2)\bigr)=x/(1+x^2)\).
In the reversed order, \(0\leq y\leq 1\) and \(y\leq x\leq 1\). This gives
To finish, use the antiderivative \(y\arctan y-\frac12\ln(1+y^2)\). Differentiating it gives \(\arctan y+y/(1+y^2)-y/(1+y^2)=\arctan y\). Hence
Both orders work, and they agree. In this example, integrating first with respect to \(y\) gives a shorter route: the inner integration simply multiplies by the slice length \(x\), leaving a single logarithmic antiderivative.
Worked Example: Let the Bounds and the Integrand Work Together
Worked Example: Let the Bounds and the Integrand Work Together
Evaluate \(\iint_D x^2\,dA\) over the region \(D=\{(x,y):0\leq x\leq 1,\ x^2\leq y\leq 1\}\). Compare vertical and horizontal slices.
For vertical slices, \(x\) ranges from \(0\) to \(1\), and \(y\) ranges from \(x^2\) to \(1\). Since \(x^2\) is constant with respect to \(y\),
For horizontal slices, \(y\) ranges from \(0\) to \(1\). The condition \(x^2\leq y\), together with \(x\geq0\), gives \(0\leq x\leq\sqrt y\). Thus
The inner antiderivative checks because \(\frac{d}{dx}(x^3/3)=x^2\). The outer antiderivative in the horizontal calculation checks because \(\frac{d}{dy}(2y^{5/2}/15)=y^{3/2}/3\). The two descriptions yield the same value. For this integrand, the horizontal order leaves a single power in the outer integral; the vertical order also works but produces two terms.
A Reliable Selection Process
There is no rule that one order is always better. Use the geometry and the integrand together. A useful comparison can be made before doing the full calculation:
Use the slice descriptions to identify the inner-variable bounds in each order. Check that each description covers the same region.
Treat the other variable as constant. Decide whether the inner antiderivative is elementary and whether its endpoint values remain manageable.
An easy inner antiderivative is not enough if it leaves a difficult outer integral. Compare the complete results of the inner step.
Use the order with the simpler total calculation, then verify antiderivatives by differentiation and confirm the bounds describe the intended region.
Common Mistake: Guessing an Antiderivative
A common error is to assume that an inner integral is easy because a familiar pattern seems close. For instance, the calculation
is incorrect. Differentiating the proposed answer gives
not \(e^{x^2}\). The missing factor \(x\) shows why this antiderivative cannot be used. In the first worked example, integrating with respect to \(y\) avoids this issue because \(e^{x^2}\) is constant in \(y\). The subsequent \(x\)-integral includes the factor \(x\), which makes the substitution \(u=x^2\) valid.
The correction is not to force an unsuitable antiderivative. Compare the two orders, use the one that gives a valid and manageable inner integral, and check each proposed antiderivative by differentiation.
Why the Choice Matters
Choosing an integration order is a practical part of evaluating a double integral, not merely a way to rewrite its bounds. A well-chosen order can replace a non-elementary inner antiderivative with a constant-factor integration, shorten the outer calculation, or avoid a more complicated description of the region. Sometimes both orders are reasonable; then the best choice may simply be the one with cleaner algebra.
Keep the two requirements distinct: the bounds must describe the region correctly, and the order should suit the integrand. A convenient antiderivative cannot compensate for incorrect bounds, and correct bounds do not guarantee an easy integral.
Check Your Understanding
For each question, compare the inner antiderivative and the remaining outer integral before deciding which order is preferable.
- For \(e^{x^2}\) on \(0\leq y\leq x\leq1\), which order gives an elementary inner antiderivative?
- Why is \(\frac12e^{x^2}\) not an antiderivative of \(e^{x^2}\) with respect to \(x\)?
- For the region \(0\leq y\leq x\leq1\), write the reversed bounds using \(y\) as the outer variable.
- What does Fubini's theorem require in the order-of-integration principle stated here?
- Give one reason why a simple inner integral might still leave an inconvenient overall calculation.