Changing the Order of Integration

Why Change the Order of Integration

In computing a double integral, sometimes the antiderivative cannot be found in the given order (for instance ∫e−x2dx\int e^{-x^2} dx, ∫sin⁡xxdx\int \frac{\sin x}{x} dx and ∫sin⁡x2dx\int \sin x^2 dx), or the computation is far too complicated. In that case you have to change the order of integration, turning a type I region into a type II region (or the other way round) in order to simplify the computation.

The General Steps for Changing the Order

  1. Write the region DD as inequalities derived from the original limits
  2. Draw a sketch of the region DD
  3. Write the region DD in the other type (type I ⟷ type II)
  4. Write the new iterated integral

The Basic Problem Types

Type 1: Changing the Order Directly

Turn ∫abdx∫y1(x)y2(x)f(x,y)dy\int_a^b dx \int_{y_1(x)}^{y_2(x)} f(x,y) dy into a form in which you integrate with respect to yy first.

Steps:

  1. The original region (type I): a≤x≤b, y1(x)≤y≤y2(x)a \leq x \leq b, \, y_1(x) \leq y \leq y_2(x)
  2. After drawing the diagram, determine the range of yy: c≤y≤dc \leq y \leq d
  3. For each yy, determine the range of xx: x1(y)≤x≤x2(y)x_1(y) \leq x \leq x_2(y)
  4. The new integral: ∫cddy∫x1(y)x2(y)f(x,y)dx\int_c^d dy \int_{x_1(y)}^{x_2(y)} f(x,y) dx

Type 2: The Region Has to Be Split

Sometimes the original integral is over a single region, but after changing the order the region has to be split into several (or the other way round).

Worked Examples

Example 1: A Basic Change of Order

Change the order of integration in ∫01dx∫x1f(x,y)dy\int_0^1 dx \int_x^1 f(x,y) dy.

changing the order of integrationtype I to type IIa triangular region

Approach:

First determine the region of integration, and then convert it into a type II region after drawing the diagram.

Steps:

  1. The original limits (type I): 0≤x≤1, x≤y≤10 \leq x \leq 1, \, x \leq y \leq 1
  2. The region is bounded by y=xy=x, y=1y=1 and x=0x=0; it is the triangle with vertices (0,0)(0,0), (0,1)(0,1) and (1,1)(1,1)
  3. Converting to type II: the range of yy is 0≤y≤10 \leq y \leq 1
  4. For a fixed yy, xx runs from 00 to yy (because y≥xy \geq x)
  5. The new integral: ∫01dy∫0yf(x,y)dx\int_0^1 dy \int_0^y f(x,y) dx

Answer: ∫01dy∫0yf(x,y)dx\int_0^1 dy \int_0^y f(x,y) dx

Example 2: Changing the Order to Compute (a Non-Elementary Integrand)

Compute ∫01dx∫x1e−y2dy\int_0^1 dx \int_x^1 e^{-y^2} dy.

changing the order of integrationa non-elementary integranda Gaussian-type integrala triangular region

Approach:

The function e−y2e^{-y^2} has no elementary antiderivative, so the order of integration has to be changed.

Steps:

  1. The original region (type I): 0≤x≤1, x≤y≤10 \leq x \leq 1, \, x \leq y \leq 1
  2. Converting to type II: 0≤y≤1, 0≤x≤y0 \leq y \leq 1, \, 0 \leq x \leq y
  3. After changing the order: ∫01dx∫x1e−y2dy=∫01dy∫0ye−y2dx\int_0^1 dx \int_x^1 e^{-y^2} dy = \int_0^1 dy \int_0^y e^{-y^2} dx
  4. Integrating with respect to xx first (the expression e−y2e^{-y^2} does not depend on xx): ∫0ye−y2dx=e−y2⋅[x]0y=ye−y2\int_0^y e^{-y^2} dx = e^{-y^2} \cdot [x]_0^y = y e^{-y^2}
  5. Then integrating with respect to yy: ∫01ye−y2dy=−12∫01e−y2d(−y2)=−12[e−y2]01=−12(e−1−1)=12(1−e−1)\int_0^1 y e^{-y^2} dy = -\frac{1}{2}\int_0^1 e^{-y^2} d(-y^2) = -\frac{1}{2}[e^{-y^2}]_0^1 = -\frac{1}{2}(e^{-1} - 1) = \frac{1}{2}(1 - e^{-1})

Answer: 12(1−1e)\frac{1}{2}(1 - \frac{1}{e})

Example 3: A Region That Has to Be Split

Change the order of integration in ∫02dx∫x22xf(x,y)dy\int_0^2 dx \int_{x^2}^{2x} f(x,y) dy.

changing the order of integrationsplitting the regiona parabola and a straight line

Approach:

The original region is bounded by the parabola y=x2y=x^2 and the line y=2xy=2x. After changing the order the region may have to be split, because the right boundary is given by different curves over different ranges of yy.

Steps:

  1. The original region (type I): 0≤x≤2, x2≤y≤2x0 \leq x \leq 2, \, x^2 \leq y \leq 2x
  2. The intersection points: x2=2x⇒x=0x^2 = 2x \Rightarrow x=0 or x=2x=2, giving (0,0)(0,0) and (2,4)(2,4)
  3. The range of yy: 0≤y≤40 \leq y \leq 4
  4. For a fixed yy:
    • the left boundary: from y=2xy = 2x we get x=y2x = \frac{y}{2}
    • the right boundary: from y=x2y = x^2 (x≥0x \geq 0) we get x=yx = \sqrt{y}
  5. Note: over 0≤y≤40 \leq y \leq 4 we have y2≤y\frac{y}{2} \leq \sqrt{y} (check: at y=1y=1, 0.5≤10.5 \leq 1; at y=4y=4, 2≤22 \leq 2)
  6. So no splitting is needed, and the type II representation is: 0≤y≤4, y2≤x≤y0 \leq y \leq 4, \, \frac{y}{2} \leq x \leq \sqrt{y}
  7. The new integral: ∫04dy∫y/2yf(x,y)dx\int_0^4 dy \int_{y/2}^{\sqrt{y}} f(x,y) dx

Answer: ∫04dy∫y/2yf(x,y)dx\int_0^4 dy \int_{y/2}^{\sqrt{y}} f(x,y) dx

Example 4: From Polar Coordinates to Rectangular Coordinates

Convert the polar integral ∫0π/2dθ∫02cos⁡θf(ρ,θ)ρ dρ\int_0^{\pi/2} d\theta \int_0^{2\cos\theta} f(\rho,\theta) \rho \, d\rho into an iterated integral in rectangular coordinates.

from polar to rectangular coordinateschanging the order of integrationan off-centre circle

Approach:

First determine the region in polar coordinates, and then convert it into a region in rectangular coordinates.

Steps:

  1. The polar region: 0≤θ≤π2, 0≤ρ≤2cos⁡θ0 \leq \theta \leq \frac{\pi}{2}, \, 0 \leq \rho \leq 2\cos\theta
  2. ρ≤2cos⁡θ⇒ρ2≤2ρcos⁡θ⇒x2+y2≤2x\rho \leq 2\cos\theta \Rightarrow \rho^2 \leq 2\rho\cos\theta \Rightarrow x^2 + y^2 \leq 2x, that is, (x−1)2+y2≤1(x-1)^2 + y^2 \leq 1
  3. From 0≤θ≤π20 \leq \theta \leq \frac{\pi}{2} we get x≥0,y≥0x \geq 0, y \geq 0, that is, the part in the first quadrant
  4. The region in rectangular coordinates (type I): 0≤x≤2, 0≤y≤2x−x20 \leq x \leq 2, \, 0 \leq y \leq \sqrt{2x - x^2}
  5. The iterated integral: ∫02dx∫02x−x2f(x,y)dy\int_0^2 dx \int_0^{\sqrt{2x-x^2}} f(x,y) dy

Answer: ∫02dx∫02x−x2f(x,y)dy\int_0^2 dx \int_0^{\sqrt{2x-x^2}} f(x,y) dy


Exercises

Exercise 1

Change the order of integration in ∫01dy∫yyf(x,y)dx\int_0^1 dy \int_y^{\sqrt{y}} f(x,y) dx.

changing the order of integrationtype II to type Ia parabola

Approach:

The original region (type II): 0≤y≤1, y≤x≤y0 \leq y \leq 1, \, y \leq x \leq \sqrt{y}. Note that y≤yy \leq \sqrt{y} holds for 0≤y≤10 \leq y \leq 1.

Steps:

  1. The boundary curves: x=yx = y (that is, y=xy=x) and x=yx = \sqrt{y} (that is, y=x2y=x^2)
  2. The intersection points: (0,0)(0,0) and (1,1)(1,1)
  3. Type I: 0≤x≤10 \leq x \leq 1, and for a fixed xx, yy runs from x2x^2 to xx (because x2≤xx^2 \leq x on [0,1][0,1])
  4. The new integral: ∫01dx∫x2xf(x,y)dy\int_0^1 dx \int_{x^2}^x f(x,y) dy

Answer: ∫01dx∫x2xf(x,y)dy\int_0^1 dx \int_{x^2}^x f(x,y) dy

Exercise 2

Compute ∫01dx∫x1sin⁡yydy\int_0^1 dx \int_x^1 \frac{\sin y}{y} dy.

changing the order of integrationa non-elementary integranda triangular region

Approach:

The function sin⁡yy\frac{\sin y}{y} has no elementary antiderivative, so the order of integration has to be changed.

Steps:

  1. The original region: 0≤x≤1, x≤y≤10 \leq x \leq 1, \, x \leq y \leq 1
  2. After changing the order: 0≤y≤1, 0≤x≤y0 \leq y \leq 1, \, 0 \leq x \leq y
  3. ∫01dx∫x1sin⁡yydy=∫01dy∫0ysin⁡yydx=∫01sin⁡yy⋅y dy=∫01sin⁡y dy=1−cos⁡1\int_0^1 dx \int_x^1 \frac{\sin y}{y} dy = \int_0^1 dy \int_0^y \frac{\sin y}{y} dx = \int_0^1 \frac{\sin y}{y} \cdot y \, dy = \int_0^1 \sin y \, dy = 1 - \cos 1

Answer: 1−cos⁡11 - \cos 1


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫abdx∫y1(x)y2(x)\int_a^b dx \int_{y_1(x)}^{y_2(x)}Iterated integraliterated integralThe iterated integral, integrating with respect to yy and then with respect to xx
∫cddy∫x1(y)x2(y)\int_c^d dy \int_{x_1(y)}^{x_2(y)}Iterated integraliterated integralThe iterated integral, integrating with respect to xx and then with respect to yy

Key Terms

English termPronunciationNote
change order of integration/tʃeɪndʒ ˈɔːrdər əv ˌɪntɪˈɡreɪʃən/exchanging the order of integration in an iterated integral
iterated integral/ˈɪtəreɪtɪd ˈɪntɪɡrəl/a sequence of definite integrals carried out one after the other
region of integration/ˈriːdʒən əv ˌɪntɪˈɡreɪʃən/the domain of the integral
split region/splɪt ˈriːdʒən/dividing one region into several subregions
non-elementary integral/nɒn ˌɛlɪˈmɛntəri ˈɪntɪɡrəl/an integrand whose antiderivative is not an elementary function

Found an issue with this content?

Tell us what could be improved.