1. Home
  2. Explore
  3. Mathematics
  4. Changing the Order of Integration

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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

  1. Read the original limits as a description of the region.

  2. Sketch every boundary curve or line, labeling it with its equation.

  3. Draw a representative strip in the direction of the proposed inner integration.

    • Integrating with respect to yyy first uses a vertical strip.

    • Integrating with respect to xxx first uses a horizontal strip.

  4. Find the strip’s lower and upper boundaries, or left and right boundaries.

  5. Use the new limits and integrate.


1. Reversing the order for sin⁡xx\frac{\sin x}{x}xsinx​

Consider the region bounded by y=0y=0y=0, x=πyx=\pi yx=πy, and x=πx=\pix=π. In the original order, xxx varies from the slanted boundary to the vertical boundary, while yyy varies from 000 to 111:

∫01∫πyπsin⁡xx dx dy.\int_0^1 \int_{\pi y}^{\pi} \frac{\sin x}{x}\,dx\,dy.∫01​∫πyπ​xsinx​dxdy.

Directly integrating sin⁡xx\frac{\sin x}{x}xsinx​ with respect to xxx does not give an elementary antiderivative. Reversing the order makes the integration straightforward.

For a vertical strip, xxx runs from 000 to π\piπ. At a fixed xxx, yyy runs from the bottom boundary y=0y=0y=0 to the line x=πyx=\pi yx=πy. Solving for yyy gives y=xπy=\frac{x}{\pi}y=πx​. Thus,

∫0π∫0x/πsin⁡xx dy dx.\int_0^\pi \int_0^{x/\pi} \frac{\sin x}{x}\,dy\,dx.∫0π​∫0x/π​xsinx​dydx.

Since the integrand does not depend on yyy, the inner integral simply multiplies it by the strip’s height:

∫0πsin⁡xx(xπ) dx=1π∫0πsin⁡x dx=2π.\int_0^\pi \frac{\sin x}{x}\left(\frac{x}{\pi}\right)\,dx = \frac{1}{\pi}\int_0^\pi \sin x\,dx = \frac{2}{\pi}.∫0π​xsinx​(πx​)dx=π1​∫0π​sinxdx=π2​.

The change of order eliminates the difficult-looking integral because the factor xxx in the strip height cancels the denominator xxx in the integrand.


2. Reversing the order for cos⁡y\cos ycosy

Consider

∫01∫arctan⁡xπ/4cos⁡y dy dx.\int_0^1 \int_{\arctan x}^{\pi/4} \cos y\,dy\,dx.∫01​∫arctanxπ/4​cosydydx.

The region lies between y=arctan⁡xy=\arctan xy=arctanx and y=π4y=\frac{\pi}{4}y=4π​, with 0≤x≤10\leq x\leq 10≤x≤1. The curved boundary can be rewritten as

y=arctan⁡x⟺x=tan⁡y.y=\arctan x \quad\Longleftrightarrow\quad x=\tan y.y=arctanx⟺x=tany.

Using horizontal strips, yyy ranges from 000 to π4\frac{\pi}{4}4π​. For each fixed yyy, xxx ranges from 000 to tan⁡y\tan ytany. Therefore,

∫0π/4∫0tan⁡ycos⁡y dx dy.\int_0^{\pi/4}\int_0^{\tan y}\cos y\,dx\,dy.∫0π/4​∫0tany​cosydxdy.

The integrand is constant with respect to xxx, so

∫0π/4tan⁡ycos⁡y dy=∫0π/4sin⁡y dy=1−12.\int_0^{\pi/4}\tan y\cos y\,dy = \int_0^{\pi/4}\sin y\,dy = 1-\frac{1}{\sqrt{2}}.∫0π/4​tanycosydy=∫0π/4​sinydy=1−2​1​.

The original order also permits a direct integration, but reversing the order provides a useful example of turning a boundary expressed as y=arctan⁡xy=\arctan xy=arctanx into x=tan⁡yx=\tan yx=tany.


3. Reversing the order for 11+x4\frac{1}{1+x^4}1+x41​

Consider the triangular region bounded by y=0y=0y=0, x=1x=1x=1, and the diagonal y=xy=xy=x. The original description is

0≤x≤1,0≤y≤x.0\leq x\leq 1, \qquad 0\leq y\leq x.0≤x≤1,0≤y≤x.

For vertical strips, the integral is

∫01∫0x11+x4 dy dx.\int_0^1\int_0^x\frac{1}{1+x^4}\,dy\,dx.∫01​∫0x​1+x41​dydx.

Although the integrand does not depend on yyy, the example illustrates how the bounds describe the triangle. Integrating with respect to yyy first gives

∫01x1+x4 dx.\int_0^1\frac{x}{1+x^4}\,dx.∫01​1+x4x​dx.

Set u=x2u=x^2u=x2, so that du=2x dxdu=2x\,dxdu=2xdx. Then

∫01x1+x4 dx=12∫0111+u2 du=π8.\int_0^1\frac{x}{1+x^4}\,dx = \frac12\int_0^1\frac{1}{1+u^2}\,du = \frac{\pi}{8}.∫01​1+x4x​dx=21​∫01​1+u21​du=8π​.

This example also highlights the importance of correctly identifying a power in the denominator: the substitution u=x2u=x^2u=x2 turns x4x^4x4 into u2u^2u2.


4. Reversing the order for cos⁡(y3)\cos(y^3)cos(y3)

Consider the region bounded by y=xy=\sqrt{x}y=x​, y=1y=1y=1, and x=0x=0x=0. The original description is

0≤x≤1,x≤y≤1.0\leq x\leq 1, \qquad \sqrt{x}\leq y\leq 1.0≤x≤1,x​≤y≤1.

To integrate with respect to xxx first, use horizontal strips. The boundary y=xy=\sqrt{x}y=x​ can be rewritten as x=y2x=y^2x=y2. At each height yyy, xxx ranges from 000 to y2y^2y2, while yyy ranges from 000 to 111. Thus,

∫01∫0y2cos⁡(y3) dx dy.\int_0^1\int_0^{y^2}\cos(y^3)\,dx\,dy.∫01​∫0y2​cos(y3)dxdy.

Since cos⁡(y3)\cos(y^3)cos(y3) is constant with respect to xxx,

∫01y2cos⁡(y3) dy.\int_0^1 y^2\cos(y^3)\,dy.∫01​y2cos(y3)dy.

With u=y3u=y^3u=y3, the differential is du=3y2 dydu=3y^2\,dydu=3y2dy, so

∫01y2cos⁡(y3) dy=13∫01cos⁡u du=sin⁡13.\int_0^1 y^2\cos(y^3)\,dy = \frac13\int_0^1\cos u\,du = \frac{\sin 1}{3}.∫01​y2cos(y3)dy=31​∫01​cosudu=3sin1​.

Changing the order exposes the factor y2 dyy^2\,dyy2dy needed for the substitution u=y3u=y^3u=y3.


5. Reversing the order for sec⁡5y\sec^5 ysec5y

Consider the region between y=arctan⁡xy=\arctan xy=arctanx and y=π6y=\frac{\pi}{6}y=6π​, with 0≤x≤130\leq x\leq \frac{1}{\sqrt{3}}0≤x≤3​1​. Since

arctan⁡(13)=π6,\arctan\left(\frac{1}{\sqrt{3}}\right)=\frac{\pi}{6},arctan(3​1​)=6π​,

the two upper boundaries meet at the right endpoint. Rewriting the curved boundary gives x=tan⁡yx=\tan yx=tany.

Using horizontal strips, yyy ranges from 000 to π6\frac{\pi}{6}6π​, and xxx ranges from 000 to tan⁡y\tan ytany. The integral becomes

∫0π/6∫0tan⁡ysec⁡5y dx dy.\int_0^{\pi/6}\int_0^{\tan y}\sec^5 y\,dx\,dy.∫0π/6​∫0tany​sec5ydxdy.

Integrating with respect to xxx gives

∫0π/6sec⁡5ytan⁡y dy.\int_0^{\pi/6}\sec^5 y\tan y\,dy.∫0π/6​sec5ytanydy.

Because the derivative of sec⁡y\sec ysecy is sec⁡ytan⁡y\sec y\tan ysecytany, write the integrand as sec⁡4y(sec⁡ytan⁡y)\sec^4 y(\sec y\tan y)sec4y(secytany). Then

∫0π/6sec⁡5ytan⁡y dy=15sec⁡5y∣0π/6=15(3293−1).\int_0^{\pi/6}\sec^5 y\tan y\,dy = \frac15\sec^5 y\Big|_0^{\pi/6} = \frac15\left(\frac{32}{9\sqrt{3}}-1\right).∫0π/6​sec5ytanydy=51​sec5y​0π/6​=51​(93​32​−1).

This order is helpful because the integration in xxx contributes a factor of tan⁡y\tan ytany, producing an integrand that is easily handled by substituting u=sec⁡yu=\sec yu=secy.


6. When changing the order is unnecessary

For the region 0≤x≤π20\leq x\leq\sqrt{\frac{\pi}{2}}0≤x≤2π​​ and 0≤y≤x20\leq y\leq x^20≤y≤x2, consider

∫0π/2∫0x2xsec⁡2y dy dx.\int_0^{\sqrt{\pi/2}}\int_0^{x^2}x\sec^2 y\,dy\,dx.∫0π/2​​∫0x2​xsec2ydydx.

The order already gives an easy inner integral. Since xxx is constant with respect to yyy,

∫0π/2xtan⁡y∣0x2 dx=∫0π/2xtan⁡(x2) dx.\int_0^{\sqrt{\pi/2}}x\tan y\Big|_0^{x^2}\,dx = \int_0^{\sqrt{\pi/2}}x\tan(x^2)\,dx.∫0π/2​​xtany​0x2​dx=∫0π/2​​xtan(x2)dx.

Let u=x2u=x^2u=x2, so du=2x dxdu=2x\,dxdu=2xdx. The result is

12∫0π/2tan⁡u du.\frac12\int_0^{\pi/2}\tan u\,du.21​∫0π/2​tanudu.

However, this last integral diverges because tan⁡u\tan utanu becomes unbounded as uuu approaches π2\frac{\pi}{2}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≤π0\leq x\leq\pi0≤x≤π and 0≤y≤π0\leq y\leq\sqrt{\pi}0≤y≤π​, and integrand ysin⁡(x+y2)y\sin(x+y^2)ysin(x+y2). One order is

∫0π∫0πysin⁡(x+y2) dy dx.\int_0^\pi\int_0^{\sqrt{\pi}}y\sin(x+y^2)\,dy\,dx.∫0π​∫0π​​ysin(x+y2)dydx.

Because the region is a rectangle, the limits for xxx and yyy are independent. The order can be reversed without changing the bounds:

∫0π∫0πysin⁡(x+y2) dx dy.\int_0^{\sqrt{\pi}}\int_0^\pi y\sin(x+y^2)\,dx\,dy.∫0π​​∫0π​ysin(x+y2)dxdy.

Integrate with respect to xxx, treating yyy as a constant:

∫0πy[−cos⁡(x+y2)]0π dy.\int_0^{\sqrt{\pi}} y\left[-\cos(x+y^2)\right]_0^\pi\,dy.∫0π​​y[−cos(x+y2)]0π​dy.

Using cos⁡(π+θ)=−cos⁡θ\cos(\pi+\theta)=-\cos\thetacos(π+θ)=−cosθ, this becomes

∫0π2ycos⁡(y2) dy.\int_0^{\sqrt{\pi}}2y\cos(y^2)\,dy.∫0π​​2ycos(y2)dy.

With u=y2u=y^2u=y2, the integral evaluates to

sin⁡(y2)∣0π=sin⁡π−sin⁡0=0.\sin(y^2)\Big|_0^{\sqrt{\pi}} = \sin\pi-\sin 0 = 0.sin(y2)​0π​​=sinπ−sin0=0.

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+y3x\sqrt{1+y^3}x1+y3​

Consider the region bounded by x=0x=0x=0, y=2y=2y=2, and the line y=xy=xy=x. In the original order, the limits are

0≤x≤2,x≤y≤2.0\leq x\leq 2, \qquad x\leq y\leq 2.0≤x≤2,x≤y≤2.

For horizontal strips, yyy ranges from 000 to 222, and xxx ranges from 000 to yyy. The integral becomes

∫02∫0yx1+y3 dx dy.\int_0^2\int_0^y x\sqrt{1+y^3}\,dx\,dy.∫02​∫0y​x1+y3​dxdy.

Since the square-root factor is constant with respect to xxx,

∫02y221+y3 dy.\int_0^2\frac{y^2}{2}\sqrt{1+y^3}\,dy.∫02​2y2​1+y3​dy.

Set u=1+y3u=1+y^3u=1+y3, so du=3y2 dydu=3y^2\,dydu=3y2dy. Then

∫02y221+y3 dy=16∫19u1/2 du=19u3/2∣19=269.\int_0^2\frac{y^2}{2}\sqrt{1+y^3}\,dy = \frac16\int_1^9 u^{1/2}\,du = \frac19u^{3/2}\Big|_1^9 = \frac{26}{9}.∫02​2y2​1+y3​dy=61​∫19​u1/2du=91​u3/2​19​=926​.

Here, reversing the order creates the factor y2y^2y2 needed for a direct substitution.


9. Reversing the order for 2xyln⁡y\frac{2xy}{\ln y}lny2xy​

Consider the region between y=exy=e^xy=ex and y=2y=2y=2, with 0≤x≤ln⁡20\leq x\leq\ln 20≤x≤ln2. The original description is

0≤x≤ln⁡2,ex≤y≤2.0\leq x\leq\ln 2, \qquad e^x\leq y\leq 2.0≤x≤ln2,ex≤y≤2.

For horizontal strips, yyy ranges from 111 to 222. The curved boundary y=exy=e^xy=ex becomes x=ln⁡yx=\ln yx=lny, so xxx ranges from 000 to ln⁡y\ln ylny. The integral is

∫12∫0ln⁡y2xyln⁡y dx dy.\int_1^2\int_0^{\ln y}\frac{2xy}{\ln y}\,dx\,dy.∫12​∫0lny​lny2xy​dxdy.

When integrating with respect to xxx, yyy and ln⁡y\ln ylny are constants:

∫12yln⁡y(ln⁡y)2 dy=∫12yln⁡y dy.\int_1^2 \frac{y}{\ln y}(\ln y)^2\,dy = \int_1^2 y\ln y\,dy.∫12​lnyy​(lny)2dy=∫12​ylnydy.

Integration by parts gives

∫yln⁡y dy=y22ln⁡y−y24.\int y\ln y\,dy = \frac{y^2}{2}\ln y-\frac{y^2}{4}.∫ylnydy=2y2​lny−4y2​.

Therefore,

∫12yln⁡y dy=2ln⁡2−34.\int_1^2 y\ln y\,dy = 2\ln 2-\frac34.∫12​ylnydy=2ln2−43​.

The order change is effective because integrating first with respect to xxx cancels one factor of ln⁡y\ln ylny 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=xy=\sqrt{x}y=x​ becomes x=y2x=y^2x=y2 when integrating with respect to xxx 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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent