Changing the Order of Integration
Changing the Order of Integration in Double Integrals
Core idea
A double integral can often be evaluated more easily by changing the order of integration. The integrand remains the same; what changes are the limits and which variable is integrated first.
The main challenge is identifying the region described by the original limits and expressing that same region using the new order.
Key principle: Sketch the region before changing the order. The sketch shows how the limits for the inner variable depend on the outer variable.
For a rectangular region, the limits for each variable are independent, so the order can be reversed directly. For a region bounded by curves, the limits generally depend on the other variable and must be rewritten.
A reliable method
Read the original limits as a description of the region.
Sketch every boundary curve or line, labeling it with its equation.
Draw a representative strip in the direction of the proposed inner integration.
Integrating with respect to y first uses a vertical strip.
Integrating with respect to x first uses a horizontal strip.
Find the strip’s lower and upper boundaries, or left and right boundaries.
Use the new limits and integrate.
1. Reversing the order for xsinx
Consider the region bounded by y=0, x=πy, and x=π. In the original order, x varies from the slanted boundary to the vertical boundary, while y varies from 0 to 1:
Directly integrating xsinx with respect to x does not give an elementary antiderivative. Reversing the order makes the integration straightforward.
For a vertical strip, x runs from 0 to π. At a fixed x, y runs from the bottom boundary y=0 to the line x=πy. Solving for y gives y=πx. Thus,
Since the integrand does not depend on y, the inner integral simply multiplies it by the strip’s height:
The change of order eliminates the difficult-looking integral because the factor x in the strip height cancels the denominator x in the integrand.
2. Reversing the order for cosy
Consider
The region lies between y=arctanx and y=4π, with 0≤x≤1. The curved boundary can be rewritten as
Using horizontal strips, y ranges from 0 to 4π. For each fixed y, x ranges from 0 to tany. Therefore,
The integrand is constant with respect to x, so
The original order also permits a direct integration, but reversing the order provides a useful example of turning a boundary expressed as y=arctanx into x=tany.
3. Reversing the order for 1+x41
Consider the triangular region bounded by y=0, x=1, and the diagonal y=x. The original description is
For vertical strips, the integral is
Although the integrand does not depend on y, the example illustrates how the bounds describe the triangle. Integrating with respect to y first gives
Set u=x2, so that du=2xdx. Then
This example also highlights the importance of correctly identifying a power in the denominator: the substitution u=x2 turns x4 into u2.
4. Reversing the order for cos(y3)
Consider the region bounded by y=x, y=1, and x=0. The original description is
To integrate with respect to x first, use horizontal strips. The boundary y=x can be rewritten as x=y2. At each height y, x ranges from 0 to y2, while y ranges from 0 to 1. Thus,
Since cos(y3) is constant with respect to x,
With u=y3, the differential is du=3y2dy, so
Changing the order exposes the factor y2dy needed for the substitution u=y3.
5. Reversing the order for sec5y
Consider the region between y=arctanx and y=6π, with 0≤x≤31. Since
the two upper boundaries meet at the right endpoint. Rewriting the curved boundary gives x=tany.
Using horizontal strips, y ranges from 0 to 6π, and x ranges from 0 to tany. The integral becomes
Integrating with respect to x gives
Because the derivative of secy is secytany, write the integrand as sec4y(secytany). Then
This order is helpful because the integration in x contributes a factor of tany, producing an integrand that is easily handled by substituting u=secy.
6. When changing the order is unnecessary
For the region 0≤x≤2π and 0≤y≤x2, consider
The order already gives an easy inner integral. Since x is constant with respect to y,
Let u=x2, so du=2xdx. The result is
However, this last integral diverges because tanu becomes unbounded as u approaches 2π. Thus, with the stated bounds, the original double integral is improper and does not have a finite value.
This example illustrates an important check: changing the order is not automatically necessary, and the endpoint behavior of the resulting one-variable integral must still be examined. An integral that appears to simplify can reveal a divergence at a boundary.
7. Changing order over a rectangular region
Consider a rectangular region with 0≤x≤π and 0≤y≤π, and integrand ysin(x+y2). One order is
Because the region is a rectangle, the limits for x and y are independent. The order can be reversed without changing the bounds:
Integrate with respect to x, treating y as a constant:
Using cos(π+θ)=−cosθ, this becomes
With u=y2, the integral evaluates to
For rectangular regions, reversing the order is especially direct because neither variable’s bounds depend on the other variable.
8. Reversing the order for x1+y3
Consider the region bounded by x=0, y=2, and the line y=x. In the original order, the limits are
For horizontal strips, y ranges from 0 to 2, and x ranges from 0 to y. The integral becomes
Since the square-root factor is constant with respect to x,
Set u=1+y3, so du=3y2dy. Then
Here, reversing the order creates the factor y2 needed for a direct substitution.
9. Reversing the order for lny2xy
Consider the region between y=ex and y=2, with 0≤x≤ln2. The original description is
For horizontal strips, y ranges from 1 to 2. The curved boundary y=ex becomes x=lny, so x ranges from 0 to lny. The integral is
When integrating with respect to x, y and lny are constants:
Integration by parts gives
Therefore,
The order change is effective because integrating first with respect to x cancels one factor of lny from the denominator.
Key takeaways
The region determines the limits. The same geometric region can have different bounds depending on the order of integration.
Sketch curved regions. A diagram helps identify whether a strip’s endpoints come from a line, a curve, or a constant boundary.
Solve boundary equations for the new inner variable. For example, y=x becomes x=y2 when integrating with respect to x first.
Rectangles are simple to reverse. Independent bounds remain unchanged when the integration order is switched.
A change of order can simplify the integrand’s effective antiderivative. Integrating over the inner variable may create a factor that cancels a denominator or supports a substitution.
Check convergence and endpoints. Even after simplifying the iterated integral, an improper endpoint may make the integral diverge.

Ask anything
We've read this whole study set, so questions about it get the best answers.