Multivariable-Calculus Β· Unit 14 Β· Video 4 Β· Interactive Practice

Exchanging the Order of Integration: Redraw the Region

IKey Formulas

FormulaNameWhat it says
∫01β€‰β£βˆ«02dx dy=∫02β€‰β£βˆ«01dy dx=2\int_0^1\!\int_0^2 dx\,dy = \int_0^2\!\int_0^1 dy\,dx = 2RectangleEvery bound is a constant, so the swap is immediate
∫01β€‰β£βˆ«xxeyy dy dx=∫01β€‰β£βˆ«y2yeyy dx dy\int_0^1\!\int_x^{\sqrt{x}} \frac{e^y}{y}\,dy\,dx = \int_0^1\!\int_{y^2}^{y} \frac{e^y}{y}\,dx\,dySliver, order exchangedSame integrand; new bounds read from horizontal slices
∫y2yeyy dx=eyy(yβˆ’y2)=eyβˆ’y ey\int_{y^2}^{y} \frac{e^y}{y}\,dx = \frac{e^y}{y}(y - y^2) = e^y - y\,e^yInner integraleyy\frac{e^y}{y} is constant in xx; the factor 1y\frac{1}{y} cancels
∫01(eyβˆ’y ey) dy=[βˆ’y ey+2ey]01=eβˆ’2\int_0^1 (e^y - y\,e^y)\,dy = \big[-y\,e^y + 2e^y\big]_0^1 = e - 2Outer integralAntiderivative by guess-and-adjust (or by parts)

Key Insight: Outer bounds are numbers β€” the first and last slice. Inner bounds are where one slice, at a fixed value of the outer variable, enters and leaves the region.

IIRead the Bounds Off the Slices

For each order, a slice's entry and exit give the inner bounds; the first and last slices give the outer bounds.

πŸ’‘ Swapping the quarter disk's bounds without redrawing puts 1βˆ’x2\sqrt{1-x^2} on the outer integral β€” after xx has been integrated out, so the result could never be a number.

IIIAdding Up the Horizontal Slices

In the order dx dydx\,dy, the slice at height yy contributes ey(1βˆ’y)e^y(1-y), and the slices add up to eβˆ’2e - 2.

IVQuiz Questions

Problem 1 Β· Exchange the Order on a Triangle

Given: ∫02β€‰β£βˆ«0xf(x,y) dy dx\displaystyle\int_0^2\!\int_0^{x} f(x,y)\,dy\,dx β€” rewrite it in the order dx dydx\,dy.

βœ… Correct! A horizontal line at height yy enters the triangle at the line x=yx = y and leaves at x=2x = 2; heights run from 00 to 22.
❌ Wrong side of the line. 0≀x≀y0 \le x \le y is the triangle to the left of y=xy = x. The region 0≀y≀x0 \le y \le x lies to the right of that line, so xx runs from yy to 22.
❌ That only swaps the bounds. The outer upper limit is xx, which has already been integrated out β€” outer bounds must be numbers.
❌ Check the top of the region. The triangle reaches the point (2,2)(2, 2), so the highest slice is at y=2y = 2, not y=1y = 1.
Show solution

Draw the region. For each xx from 00 to 22, yy runs from 00 up to the line y=xy = x: the triangle with corners (0,0)(0,0), (2,0)(2,0), (2,2)(2,2).

Fix yy. A horizontal line at height yy enters on the left at the line y=xy = x, that is x=yx = y, and leaves on the right at x=2x = 2. So y≀x≀2y \le x \le 2.

Outer bounds. The lowest slice is at y=0y = 0 and the highest at y=2y = 2.

∫02β€‰β£βˆ«0xf(x,y) dy dx=∫02β€‰β£βˆ«y2f(x,y) dx dy\int_0^2\!\int_0^{x} f(x,y)\,dy\,dx = \int_0^2\!\int_y^{2} f(x,y)\,dx\,dy

Problem 2 Β· Which Border Is on the Left?

Given: ∫01β€‰β£βˆ«x2xf(x,y) dy dx\displaystyle\int_0^1\!\int_{x^2}^{x} f(x,y)\,dy\,dx β€” rewrite it in the order dx dydx\,dy.

βœ… Correct! For 0<y<10 < y < 1, y<yy < \sqrt{y}: the line x=yx = y is the left border and the parabola x=yx = \sqrt{y} the right one.
❌ Left and right are reversed. For 0<y<10 < y < 1, y>y\sqrt{y} > y, so this inner integral runs right to left and comes out with the wrong sign.
❌ That is the video's sliver, not this one. Here the region lies between the parabola y=x2y = x^2 and the line y=xy = x; solving y=x2y = x^2 for xx gives x=yx = \sqrt{y}, not x=y2x = y^2.
❌ The bounds were only swapped. The outer limits x2x^2 and xx contain xx, which is gone after the inner integration.
Show solution

Draw the region. For 0≀x≀10 \le x \le 1, yy runs from the parabola y=x2y = x^2 up to the line y=xy = x; the two meet at (0,0)(0,0) and (1,1)(1,1).

Fix yy. Solve each border for xx: the line gives x=yx = y, the parabola gives x=yx = \sqrt{y}. For 0<y<10 < y < 1 we have y<yy < \sqrt{y} (e.g. y=14y = \tfrac14: 14<12\tfrac14 < \tfrac12), so a horizontal line enters at x=yx = y and leaves at x=yx = \sqrt{y}.

Outer bounds. yy runs from 00 to 11.

∫01β€‰β£βˆ«x2xf(x,y) dy dx=∫01β€‰β£βˆ«yyf(x,y) dx dy\int_0^1\!\int_{x^2}^{x} f(x,y)\,dy\,dx = \int_0^1\!\int_{y}^{\sqrt{y}} f(x,y)\,dx\,dy

The parabola was the lower border in the original order and is the right border now.

Problem 3 Β· An Integral You Cannot Start

Given: ∫01β€‰β£βˆ«x1ey2 dy dx\displaystyle\int_0^1\!\int_x^{1} e^{y^2}\,dy\,dx. The inner integral has no elementary antiderivative, so exchange the order and evaluate.

After exchanging, what does the inner integral ∫(…) dx\int (\ldots)\,dx evaluate to?

What is the value of the integral?

βœ… Correct! In the order dx dydx\,dy the slice width yy supplies exactly the factor that ey2e^{y^2} needs: ∫01y ey2 dy=eβˆ’12\int_0^1 y\,e^{y^2}\,dy = \tfrac{e-1}{2}.
❌ Wrong side of the line. The region is x≀y≀1x \le y \le 1, i.e. below y=1y = 1 and above y=xy = x. At height yy, xx runs from 00 to yy, a width of yy, not 1βˆ’y1 - y.
❌ The slice width is missing. ey2e^{y^2} is constant in xx, so integrating over 0≀x≀y0 \le x \le y multiplies it by the width yy.
❌ The bounds were never substituted. The antiderivative is x ey2x\,e^{y^2}, but it must be evaluated from x=0x = 0 to x=yx = y; no xx can survive the inner integral.
❌ Missing a factor of 12\tfrac12. ddyey2=2y ey2\frac{d}{dy}e^{y^2} = 2y\,e^{y^2}, so the antiderivative of y ey2y\,e^{y^2} is 12ey2\tfrac12 e^{y^2}.
❌ The lower limit was dropped. 12ey2\tfrac12 e^{y^2} at y=0y = 0 is 12\tfrac12, not 00, so subtract it.
❌ That is the video's answer for a different integral. Here the outer integral is ∫01y ey2 dy\int_0^1 y\,e^{y^2}\,dy.
Show solution

Draw the region. 0≀x≀10 \le x \le 1 and x≀y≀1x \le y \le 1: the triangle above the line y=xy = x and below y=1y = 1, with corners (0,0)(0,0), (0,1)(0,1), (1,1)(1,1).

Fix yy. A horizontal line at height yy enters at x=0x = 0 and leaves at the line x=yx = y. Heights run from 00 to 11.

∫01β€‰β£βˆ«x1ey2 dy dx=∫01β€‰β£βˆ«0yey2 dx dy\int_0^1\!\int_x^{1} e^{y^2}\,dy\,dx = \int_0^1\!\int_0^{y} e^{y^2}\,dx\,dy

Inner integral. ey2e^{y^2} does not contain xx:

∫0yey2 dx=[x ey2]x=0x=y=y ey2\int_0^{y} e^{y^2}\,dx = \Big[x\,e^{y^2}\Big]_{x=0}^{x=y} = y\,e^{y^2}

Outer integral. Since ddy(12ey2)=y ey2\frac{d}{dy}\big(\tfrac12 e^{y^2}\big) = y\,e^{y^2}:

∫01y ey2 dy=[12ey2]01=12eβˆ’12=eβˆ’12β‰ˆ0.859\int_0^1 y\,e^{y^2}\,dy = \Big[\tfrac12 e^{y^2}\Big]_0^1 = \tfrac12 e - \tfrac12 = \frac{e-1}{2} \approx 0.859

Problem 4 Β· Transfer: An Inner Integral in xx

Given: ∫01β€‰β£βˆ«y1sin⁑xx dx dy\displaystyle\int_0^1\!\int_y^{1} \frac{\sin x}{x}\,dx\,dy β€” sin⁑xx\frac{\sin x}{x} has no elementary antiderivative. Exchange the order and evaluate.

βœ… Correct! The slice length xx cancels the 1x\frac{1}{x}, leaving ∫01sin⁑x dx=1βˆ’cos⁑1β‰ˆ0.460\int_0^1 \sin x\,dx = 1 - \cos 1 \approx 0.460.
❌ Sign of the antiderivative. The antiderivative of sin⁑x\sin x is βˆ’cos⁑x-\cos x, so [βˆ’cos⁑x]01=βˆ’cos⁑1+1\big[-\cos x\big]_0^1 = -\cos 1 + 1.
❌ The outer integral was not carried out. After the inner integral you have ∫01sin⁑x dx\int_0^1 \sin x\,dx; sin⁑1\sin 1 is the integrand's value at x=1x = 1, not the integral.
❌ The lower limit was dropped. βˆ’cos⁑x-\cos x at x=0x = 0 is βˆ’1-1, so [βˆ’cos⁑x]01=βˆ’cos⁑1βˆ’(βˆ’1)\big[-\cos x\big]_0^1 = -\cos 1 - (-1).
Show solution

Draw the region. 0≀y≀10 \le y \le 1 and y≀x≀1y \le x \le 1: the triangle below the line y=xy = x, right of it up to x=1x = 1, with corners (0,0)(0,0), (1,0)(1,0), (1,1)(1,1).

Fix xx. A vertical line at xx enters at y=0y = 0 and leaves at the line y=xy = x. The outer variable xx runs from 00 to 11.

∫01β€‰β£βˆ«y1sin⁑xx dx dy=∫01β€‰β£βˆ«0xsin⁑xx dy dx\int_0^1\!\int_y^{1} \frac{\sin x}{x}\,dx\,dy = \int_0^1\!\int_0^{x} \frac{\sin x}{x}\,dy\,dx

Inner integral. sin⁑xx\frac{\sin x}{x} is constant in yy:

∫0xsin⁑xx dy=sin⁑xxβ‹…x=sin⁑x\int_0^{x} \frac{\sin x}{x}\,dy = \frac{\sin x}{x}\cdot x = \sin x

Outer integral.

∫01sin⁑x dx=[βˆ’cos⁑x]01=1βˆ’cos⁑1β‰ˆ0.460\int_0^1 \sin x\,dx = \big[-\cos x\big]_0^1 = 1 - \cos 1 \approx 0.460

Same move as in the video: the new inner integral multiplies the integrand by a slice length that cancels the troublesome denominator.

Solved: 0 / 4