Skip to content

Changing the order of integration

5 min read

Short answer

To change the order of a double integral, sketch the region from the original limits, then describe the same region with the other variable on the outside. The value does not change (Fubini's theorem), but one order can turn an impossible inner integral into an easy one.

Diagramy = xy = 1
The region 0 ≤ x ≤ 1, x ≤ y ≤ 1 is the triangle above the diagonal. Describe it as 0 ≤ y ≤ 1, 0 ≤ x ≤ y to swap the order.

Steps

  1. Read the limits and sketch the region.
  2. Mark the curves bounding it and solve each for the other variable.
  3. Sweep in the new direction: for dx dydx\,dy, the outer limits are the lowest and highest yy in the region, and the inner limits are the left and right boundary curves written as x=…x=\dots.
  4. Rewrite the integral and evaluate.

When to switch

Switch when the inner antiderivative does not exist in closed form, as with ey2e^{y^2}, sin⁡(y3)\sin(y^3) or sin⁡yy\dfrac{\sin y}{y} integrated with respect to yy. If the integrand is easy in the other variable, swapping often finishes the problem in one line.

Worked example

Evaluate ∫01 ⁣ ⁣∫x1ey2 dy dx\displaystyle\int_0^1\!\!\int_x^1 e^{y^2}\,dy\,dx.

Integrating ey2e^{y^2} in yy first is impossible in elementary terms, so swap. Here xx runs over [0,1][0,1] and yy from xx up to 1, which is the triangle with corners (0,0)(0,0), (0,1)(0,1), (1,1)(1,1). In the other order: 0≤y≤10\le y\le1, 0≤x≤y0\le x\le y. ∫01 ⁣ ⁣∫0yey2 dx dy=∫01y ey2 dy=[12ey2]01=e−12.\int_0^1\!\!\int_0^y e^{y^2}\,dx\,dy=\int_0^1 y\,e^{y^2}\,dy=\left[\tfrac12e^{y^2}\right]_0^1=\frac{e-1}{2}.

Try it yourself

Evaluate ∫01 ⁣ ⁣∫x1sin⁡(y3) dy dx\displaystyle\int_0^1\!\!\int_{\sqrt x}^1\sin(y^3)\,dy\,dx by swapping the order.

Show the answer

Region: 0≤x≤10\le x\le1, x≤y≤1\sqrt x\le y\le1, i.e. 0≤y≤10\le y\le1, 0≤x≤y20\le x\le y^2. Then ∫01y2sin⁡(y3) dy=[−13cos⁡(y3)]01=1−cos⁡13≈0.153\int_0^1 y^2\sin(y^3)\,dy=\left[-\tfrac13\cos(y^3)\right]_0^1=\dfrac{1-\cos1}{3}\approx0.153.

Keep going with practice

Vidi's double-integral explorer lets you see the region and both orders of integration.