# Order of integration (calculus)

{{#invoke:Hatnote|hatnote}} {{#invoke: Sidebar | collapsible }}

In calculus, interchange of the order of integration is a methodology that transforms iterated integrals (or multiple integrals through the use of Fubini's theorem) of functions into other, hopefully simpler, integrals by changing the order in which the integrations are performed. In some cases, the order of integration can be validly interchanged; in others it cannot.

## Problem statement

The problem for examination is evaluation of an integral of the form

${\displaystyle \iint _{D}\ f(x,y)\ dx\,dy,}$

where D is some two-dimensional area in the xy–plane. For some functions f straightforward integration is feasible, but where that is not true, the integral can sometimes be reduced to simpler form by changing the order of integration. The difficulty with this interchange is determining the change in description of the domain D.

The method also is applicable to other multiple integrals.[1][2]

Sometimes, even though a full evaluation is difficult, or perhaps requires a numerical integration, a double integral can be reduced to a single integration, as illustrated next. Reduction to a single integration makes a numerical evaluation much easier and more efficient.

## Relation to integration by parts

Figure 1: Integration over the triangular area can be done using vertical or horizontal strips as the first step. This is an overhead view, looking down the z-axis onto the x-y plane. The sloped line is the curve y = x.

Consider the iterated integral

${\displaystyle \int _{a}^{z}\,\int _{a}^{x}\,h(y)\,dy\,dx\ }$,

which we will write using the prefix notation commonly seen in physics:

${\displaystyle \int _{a}^{z}dx\,\int _{a}^{x}\,h(y)\,dy}$.

In this expression, the second integral is calculated first with respect to y and x is held constant—a strip of width dx is integrated first over the y-direction (a strip of width dx in the x direction is integrated with respect to the y variable across the y direction), adding up an infinite amount of rectangles of width dy along the y-axis. This forms a three dimensional slice dx wide along the x-axis, from y=a to y=x along the y axis, and in the z direction z=f(x,y). Notice that if the thickness dx is infinitesimal, x varies only infinitesimally on the slice. We can assume that x is constant.[3] This integration is as shown in the left panel of Figure 1, but is inconvenient especially when the function h ( y ) is not easily integrated. The integral can be reduced to a single integration by reversing the order of integration as shown in the right panel of the figure. To accomplish this interchange of variables, the strip of width dy is first integrated from the line x = y to the limit x = z, and then the result is integrated from y = a to y = z, resulting in:

${\displaystyle \int _{a}^{z}\ dx\ \int _{a}^{x}\ h(y)\ dy\ =\int _{a}^{z}\ h(y)\ dy\ \ \int _{y}^{z}\ dx=\int _{a}^{z}\ \left(z-y\right)h(y)\,dy\ .}$

This result can be seen to be an example of the formula for integration by parts, as stated below:[4]

${\displaystyle \int _{a}^{z}f(x)g'(x)\,dx=\left[f(x)g(x)\right]_{a}^{z}-\int _{a}^{z}f'(x)g(x)\,dx\!}$

Substitute:

${\displaystyle f(x)=\int _{a}^{x}\ h(y)\,dy{\text{ and }}g'(x)=1\ .}$

Which gives the result.

## Principal-value integrals

For application to principal-value integrals, see Whittaker and Watson,[5] Gakhov,[6] Lu,[7] or Zwillinger.[8] See also the discussion of the Poincaré-Bertrand transformation in Obolashvili.[9] An example where the order of integration cannot be exchanged is given by Kanwal:[10]

${\displaystyle {\frac {1}{(2\pi i)^{2}}}\int _{L}^{*}{\frac {d{\tau }_{1}}{{\tau }_{1}-t}}\ \int _{L}^{*}\ g(\tau ){\frac {d\tau }{\tau -\tau _{1}}}={\frac {1}{4}}g(t)\ ,}$

while:

${\displaystyle {\frac {1}{(2\pi i)^{2}}}\int _{L}^{*}g(\tau )\ d\tau \left(\int _{L}^{*}{\frac {d\tau _{1}}{\left(\tau _{1}-t\right)\left(\tau -\tau _{1}\right)}}\right)=0\ .}$

The second form is evaluated using a partial fraction expansion and an evaluation using the Sokhotski–Plemelj formula:[11]

${\displaystyle \int _{L}^{*}{\frac {d\tau _{1}}{\tau _{1}-t}}=\int _{L}^{*}{\frac {d\tau _{1}}{\tau _{1}-t}}=\pi \ i\ .}$

The notation ${\displaystyle \int _{L}^{*}}$ indicates a Cauchy principal value. See Kanwal.[10]

## Basic theorems

A good discussion of the basis for reversing the order of integration is found in the book Fourier Analysis by T.W. Körner.[12] He introduces his discussion with an example where interchange of integration leads to two different answers because the conditions of Theorem II below are not satisfied. Here is the example:

${\displaystyle \int _{1}^{\infty }{\frac {x^{2}-y^{2}}{\left(x^{2}+y^{2}\right)^{2}}}\ dy=\left[{\frac {y}{x^{2}+y^{2}}}\right]_{1}^{\infty }=-{\frac {1}{1+x^{2}}}\ \left[x\geq 1\right]\ .}$
${\displaystyle \int _{1}^{\infty }\left(\int _{1}^{\infty }{\frac {x^{2}-y^{2}}{\left(x^{2}+y^{2}\right)^{2}}}\ dy\right)\ dx=-{\frac {\pi }{4}}\ .}$
${\displaystyle \int _{1}^{\infty }\left(\int _{1}^{\infty }{\frac {x^{2}-y^{2}}{\left(x^{2}+y^{2}\right)^{2}}}\ dx\right)\ dy={\frac {\pi }{4}}\ .}$

Two basic theorems governing admissibility of the interchange are quoted below from Chaudhry and Zubair:[13]

Template:BigboldTemplate:Space Let f(xy) be a continuous function of constant sign defined for a ≤ x < ∞, c ≤ y < ∞, and let the integrals

regarded as functions of the corresponding parameter be, respectively, continuous for c ≤ y < ∞, a ≤ x < ∞. Then if at least one of the iterated integrals converges, the other integral also converges and their values coincide.

Template:BigboldTemplate:Space Let f(xy) be continuous for a ≤ x < ∞, c ≤ y < ∞, and let the integrals

be respectively, uniformly convergent on every finite interval c ≤ y < C and on every finite interval a ≤ x < A. Then if at least one of the iterated integrals converges, the iterated integrals also converge and their values are equal.

The most important theorem for the applications is quoted from Protter and Morrey:[14]

Suppose F is a region given by ${\displaystyle F=\left\{(x,\ y):a\leq x\leq b,p(x)\leq y\leq q(x)\right\}\,}$  where p and q are continuous and p(x) ≤ q(x) for a ≤ x ≤ b. Suppose that f(xy) is continuous on F. Then

The corresponding result holds if the closed region F has the representation ${\displaystyle F=\left\{(x,\ y):c\leq y\leq d,\ r(y)\leq x\leq s(y)\right\}}$  where r(y) ≤ s(y) for c ≤ y ≤ d.  In such a case,

${\displaystyle \iint _{F}f(x,\ y)dA=\int _{c}^{d}\ \int _{r(y)}^{s(y)}f(x,\ y)\,dx\ dy\ .}$
In other words, both iterated integrals, when computable, are equal to the double integral and therefore equal to each other.

## References and notes

1. {{#invoke:citation/CS1|citation |CitationClass=book }}
2. {{#invoke:citation/CS1|citation |CitationClass=book }}
3. Template:Cite web
4. The prime notation "" denotes a derivative.
5. {{#invoke:citation/CS1|citation |CitationClass=book }}
6. {{#invoke:citation/CS1|citation |CitationClass=book }}
7. {{#invoke:citation/CS1|citation |CitationClass=book }}
8. {{#invoke:citation/CS1|citation |CitationClass=book }}
9. {{#invoke:citation/CS1|citation |CitationClass=book }}
10. {{#invoke:citation/CS1|citation |CitationClass=book }}
11. For a discussion of the Sokhotski-Plemelj formula see, for example, {{#invoke:citation/CS1|citation |CitationClass=book }} or {{#invoke:citation/CS1|citation |CitationClass=book }}
12. {{#invoke:citation/CS1|citation |CitationClass=book }}
13. {{#invoke:citation/CS1|citation |CitationClass=book }}
14. {{#invoke:citation/CS1|citation |CitationClass=book }}