4.4.18Multivariable Calculus

Changing order of integration

2,133 words10 min readdifficulty · medium2 backlinks

WHY do we even change the order?

The key fact we exploit (Fubini's theorem):

Rf(x,y)dA=x=ab ⁣ ⁣y=g1(x)g2(x) ⁣ ⁣fdydx=y=cd ⁣ ⁣x=h1(y)h2(y) ⁣ ⁣fdxdy\iint_R f(x,y)\,dA = \int_{x=a}^{b}\!\!\int_{y=g_1(x)}^{g_2(x)}\!\! f\,dy\,dx = \int_{y=c}^{d}\!\!\int_{x=h_1(y)}^{h_2(y)}\!\! f\,dx\,dy

for ff continuous (or just integrable) on RR. Both iterated integrals equal the area-weighted total.


WHAT exactly is a region of integration?


HOW to change the order — the algorithm

Figure — Changing order of integration

Derivation from first principles (why the limits flip)

Concretely, take the triangle R: 0x1, 0yxR:\ 0\le x\le 1,\ 0\le y\le x.

  • Tiles described by columns: pick x[0,1]x\in[0,1], then yy runs 0x0\to x. ⇒ 01 ⁣0xfdydx\int_0^1\!\int_0^x f\,dy\,dx.
  • Same tiles by rows: pick y[0,1]y\in[0,1], then xx runs from the line x=yx=y to x=1x=1. ⇒ 01 ⁣y1fdxdy\int_0^1\!\int_y^1 f\,dx\,dy.

The boundary y=xy=x is shared; we just solved it for the other variable (x=yx=y). That single algebraic step is the order change.


Worked Example 1 — the classic "impossible inner integral"

Evaluate I=01 ⁣x1ey2dydx\displaystyle I=\int_0^1\!\int_x^1 e^{y^2}\,dy\,dx.

So I=e12I=\dfrac{e-1}{2}.


Worked Example 2 — region that needs splitting one way, not the other

Evaluate J=01 ⁣x111+y4dydx\displaystyle J=\int_0^1\!\int_{\sqrt{x}}^{1} \frac{1}{1+y^4}\,dy\,dx ... actually let's reorder a cleaner one:

Reverse the order in K=02 ⁣y2/2y ⁣sin ⁣(x)dxdy\displaystyle K=\int_0^2\!\int_{y^2/2}^{y}\!\sin\!\big(x\big)\,dx\,dy — wait, let's keep it concrete and tidy:

Let me give a clean fully worked Example 2 instead:


Worked Example 3 — region described by a parabola

Reverse 01 ⁣x2xfdydx\displaystyle \int_0^1\!\int_{x^2}^{x}\, f\,dy\,dx.



Recall Feynman: explain to a 12-year-old

Imagine a tiled patio shaped like a triangle. You want the total dust on all tiles. You can count column by column (go along the bottom, add up each tall stack of tiles) or row by row (go up the side, add up each long row). Either way you count every tile once, so the total dust is the same! Sometimes counting columns is a nightmare and rows are easy — so we just switch how we walk through the tiles. To switch, you draw the patio shape, then describe its left/right edges instead of its top/bottom edges (or vice versa).


Flashcards

When can you swap the order of a double integral?
When ff is integrable (continuous suffices) over RR — Fubini's theorem guarantees both iterated integrals equal RfdA\iint_R f\,dA.
In a correctly written iterated integral, what kind of limits must the OUTER integral have?
Constant (numeric) limits; only the inner limits may depend on the outer variable.
What does a vertical strip correspond to in terms of order?
Integrating yy first then xx: abg1(x)g2(x)dydx\int_a^b\int_{g_1(x)}^{g_2(x)} dy\,dx (Type I region).
To change order, what algebraic operation do you do to each boundary curve?
Solve the curve for the NEW inner variable (e.g. y=x2x=yy=x^2 \to x=\sqrt y, correct branch).
Why reverse 01x1ey2dydx\int_0^1\int_x^1 e^{y^2}\,dy\,dx?
ey2e^{y^2} has no elementary antiderivative in yy; swapping gives 01yey2dy\int_0^1 y e^{y^2}dy, easy. Answer =(e1)/2=(e-1)/2.
Reorder 01x1sinyydydx\int_0^1\int_x^1 \frac{\sin y}{y}dy\,dx and give the value.
010ysinyydxdy=01sinydy=1cos1\int_0^1\int_0^y \frac{\sin y}{y}dx\,dy=\int_0^1\sin y\,dy=1-\cos 1.
For the triangle 0x1, xy10\le x\le1,\ x\le y\le1, what are the swapped limits?
0y1, 0xy0\le y\le1,\ 0\le x\le y.
What is the FIRST thing you should do before changing order?
Sketch the region RR from the original inequalities.
Reorder 01x2xfdydx\int_0^1\int_{x^2}^{x} f\,dy\,dx.
01yyfdxdy\int_0^1\int_{y}^{\sqrt y} f\,dx\,dy.
Why might one orientation need splitting into multiple integrals?
If a strip in that direction enters/exits on different boundary curves over different sub-ranges of the outer variable.

Connections

Concept Map

swept as

swept as

gives

gives

equal by

equal by

justified by

enables

motivated by

motivated by

executed via

outer limits

inner limits

Region R in 2D

Vertical strips

Horizontal strips

Type I: dy then dx

Type II: dx then dy

Fubini theorem

Sum of tiles is commutative

Change order of integration

No elementary antiderivative

Awkward region shape

5-step recipe: sketch and re-describe R

Constants

Curves of outer variable

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, double integral RfdA\iint_R f\,dA ka matlab hai region RR ke upar total nikalna. Ab is total ko nikalne ke do tareeke hain: ya to vertical strips banao (pehle yy integrate karo, phir xx), ya horizontal strips banao (pehle xx, phir yy). Answer dono case me same aayega — kyunki tum same tiles ko hi count kar rahe ho, bas order alag hai. Yahi cheez Fubini's theorem guarantee karta hai.

To phir order change karne ki zaroorat kyun? Do reasons. Pehla: kabhi-kabhi inner integral solve hi nahi hota — jaise ey2dy\int e^{y^2}\,dy ka koi simple formula nahi hai. Order ulta karne se woh yey2dy\int y\,e^{y^2}\,dy ban jaata hai, jo uu-substitution se ekdum easy. Dusra: kabhi region ek direction me tedha hota hai (multiple pieces me todna padta), aur dusri direction me ek clean strip me ban jaata hai.

Karne ka tareeka simple hai: pehle region ki sketch banao (yeh sabse important step hai, isko mat chhodo). Sketch se outer variable ka overall min-max nikaalo — yeh constants honge. Phir ek fixed value ke liye strip kahan enter karta hai aur kahan exit, woh curves inner limits banenge. Sabse bada galti yeh hoti hai ki log boundary curve ko same chhod dete hain — nahi! Tumhe curve ko new inner variable ke liye solve karna hota hai: y=xy=x se x=yx=y, aur y=x2y=x^2 se x=yx=\sqrt{y} (sahi branch lena). Aur yaad rakho: outer limit hamesha number hoti hai, variable kabhi nahi. Bas itna dhyaan rakho aur sketch karo — exam me yeh topic free marks hai.

Go deeper — visual, from zero

Test yourself — Multivariable Calculus

Connections