Free preview

154 lessons

Essential Calculus for ML

Free preview

Essential Calculus for ML · 154 lessons

Master the fundamentals

No surprise gaps

Actually remember it

Skip what you know

One subscription. All learning paths included.

Our content is best on a larger screen

Double integrals over rectangles

Fubini's theorem

Explanation

The double integral Rf(x,y)dA\displaystyle\iint_R f(x,y)\,dA is the signed volume between the rectangle R: axb, cydR:\ a \le x \le b,\ c \le y \le d and the surface z=f(x,y)z = f(x,y). We have met it in two forms.

Its definition, as the limit of double Riemann sums over RR as the grid is refined:

Rf(x,y)dA=limnk=1nf(xk,yk)ΔA.\iint_R f(x,y)\,dA = \lim\limits_{n \to \infty} \sum\limits_{k=1}^{n} f(x_k, y_k)\,\Delta A .

And a way to compute it, as an iterated integral in either order:

Rf(x,y)dA=ab ⁣cdf(x,y)dydx=cd ⁣abf(x,y)dxdy.\iint_R f(x,y)\,dA = \int_a^b\!\int_c^d f(x,y)\,dy\,dx = \int_c^d\!\int_a^b f(x,y)\,dx\,dy .

That was stated, not explained. Why does integrating twice give the volume, whichever variable goes first?

Slicing the solid into slabs answers it.

The first view cuts the whole solid; the second shows a single slab.

x
y
z
R
The solid between the square R and the surface z=6x2y22, cut into n slabs, with one picked out in red. The slabs only approximate the solid, sometimes falling short of the surface and sometimes poking through it, and the mismatch shrinks as they thin. Choose the direction of the cut and how many slabs, and drag the scene to rotate it.
Slabs6
n=6 slabs, each of thickness Δx=0.5
Slab volumes add to 43.5, against a signed volume of 43.875

The volume of all the slabs is the sum of the individual slab volumes. As the slabs thin they fill the solid, so this sum approaches the signed volume. It is a Riemann sum, and the limit of the sum is written as an integral:

abA(x)dx=limnk=1nA(xk)Δx.\int_a^b A(x)\,dx = \lim\limits_{n \to \infty} \sum\limits_{k=1}^{n} A(x_k)\,\Delta x .

So that integral is the signed volume. Informally, it adds up slab volumes A(x)dxA(x)\,dx from x=ax = a to x=bx = b, with the slabs now infinitely thin.

And since the area of each slab's face is A(x)=cdf(x,y)dyA(x) = \displaystyle\int_c^d f(x,y)\,dy, it is the iterated integral written above.

Cutting across yy instead uses the cross-sections at fixed yy, and the same argument gives the other order.

Fubini's theorem

Theorem

If ff is continuous on the rectangle R:axb, cydR:\,a\le x\le b,\ c\le y\le d, then

Rf(x,y)dA=ab ⁣cdf(x,y)dydx=cd ⁣abf(x,y)dxdy.\iint_R f(x,y)\,dA = \int_a^b\!\int_c^d f(x,y)\,dy\,dx = \int_c^d\!\int_a^b f(x,y)\,dx\,dy .

This is what makes a double integral computable: two ordinary integrals, evaluated one after the other with single-variable tools, in whichever order is easier. The two integral signs become two ordinary integrals, and dAdA becomes dydxdy\,dx.

Practice questions

4 questions

RR is the rectangle 2x1, 0y4-2\le x\le 1,\ 0\le y\le 4. What must be true of ff for Fubini's theorem to apply on RR?

Select the correct answer:

+ 3 more questions

Writing a double integral over a rectangle as an iterated integral

Explanation

Fubini's theorem turns a double integral over a rectangle into an iterated integral. Before anything is integrated, that iterated integral has to be written down, and the only information needed is the four limits of integration that RR supplies.

The picture shows where each limit comes from and which integral sign it belongs on, in either order of integration.

12345−11234−1
a=1
b=5
c=2
d=4
R
Rf(x,y)dA=1524f(x,y)dydx
Written dydx: the inner integral is in y and carries c=2 and d=4; the outer integral is in x and carries a=1 and b=5.

Each pair stays with its own variable: aa and bb sit on the integral written with dxdx, and cc and dd on the integral written with dydy, whichever of the two is inner. By Fubini's theorem, for ff continuous on RR, the order is a free choice:

Rf(x,y)dA=ab ⁣cdf(x,y)dydx=cd ⁣abf(x,y)dxdy.\iint_R f(x,y)\,dA = \int_a^b\!\int_c^d f(x,y)\,dy\,dx = \int_c^d\!\int_a^b f(x,y)\,dx\,dy .

Key Point

The limits of integration describe the base RR in the xyxy-plane. The integrand f(x,y)f(x,y) is still the height above it.

Example

Write R(5xy)dA\displaystyle\iint_R \left(5 - xy\right)\,dA over R:1x3, 2y6R:\,-1\le x\le 3,\ 2\le y\le 6 as an iterated integral, in both orders.

Solution

The rectangle supplies two pairs of limits of integration: 1-1 and 33 bound xx, and 22 and 66 bound yy.

Taking the order dydxdy\,dx, we put the pair belonging to yy on the inner integral, the one written with dydy, and leave the pair belonging to xx on the outer:

R(5xy)dA=13 ⁣26(5xy)dydx.\iint_R \left(5 - xy\right)\,dA = \int_{-1}^{3}\!\int_{2}^{6} \left(5 - xy\right)\,dy\,dx .

For the other order we move each pair to the other position, still keeping it with its own variable, so 1-1 and 33 now sit on the inner integral and 22 and 66 on the outer:

R(5xy)dA=26 ⁣13(5xy)dxdy.\iint_R \left(5 - xy\right)\,dA = \int_{2}^{6}\!\int_{-1}^{3} \left(5 - xy\right)\,dx\,dy .

Since 5xy5 - xy is continuous on RR, Fubini's theorem sets these two iterated integrals equal, and each of them gives the signed volume R(5xy)dA\displaystyle\iint_R \left(5 - xy\right)\,dA.

Practice questions

4 questions

ff is continuous on R:0x2, 1y3R:\,0\le x\le 2,\ 1\le y\le 3, and

Rf(x,y)dA=12.\iint_R f(x,y)\,dA = 12 .

Which statement is true?

Select the correct answer:

+ 3 more questions

Evaluating a double integral over a rectangle

Explanation

Once Rf(x,y)dA\displaystyle\iint_R f(x,y)\,dA is written as an iterated integral, evaluating it is evaluating that iterated integral: inside out, one variable at a time.

Evaluating a double integral over a rectangle

Procedure

  1. Write the double integral as an iterated integral, in either order, with each pair of limits of integration on its own variable.
  2. Evaluate the inner integral between its limits, with the other variable held fixed. The result is an expression in the outer variable.
  3. Evaluate the outer integral between its limits. The result is a number, the signed volume Rf(x,y)dA\displaystyle\iint_R f(x,y)\,dA.

Because the limits of integration are all constants, the inner integral always produces a function of one variable, and the outer integral evaluates that to a number. Either order gives the same number, so choose whichever inner integral is easier.

Example

Evaluate R(1006x2y)dA\displaystyle\iint_R \left(100 - 6x^2y\right)\,dA over R:0x2, 1y1R:\,0\le x\le 2,\ -1\le y\le 1.

0.511.522.533.5−0.5−1−1.50.511.52−0.5−1−1.5−2
x=0
x=2
y=1
y=1
R
x
y

Solution

Reading the limits of integration off RR gives 00 and 22 for xx, and 1-1 and 11 for yy. We take the order dydxdy\,dx, which puts the pair belonging to yy on the inner integral:

R(1006x2y)dA=02 ⁣11(1006x2y)dydx.\iint_R \left(100 - 6x^2y\right)\,dA = \int_0^2\!\int_{-1}^{1} \left(100 - 6x^2y\right)\,dy\,dx .

The inner integral is taken with xx held fixed, so 6x26x^2 is a constant multiple of yy and the antiderivative of yy is y22\dfrac{y^2}{2}:

11(1006x2y)dy=[100y3x2y2]y=1y=1.\int_{-1}^{1} \left(100 - 6x^2y\right)\,dy = \Big[100y - 3x^2y^2\Big]_{y=-1}^{y=1} .

Substituting the limits y=1y = 1 and y=1y = -1:

[100y3x2y2]y=1y=1=(1003x2)(1003x2)=200.\Big[100y - 3x^2y^2\Big]_{y=-1}^{y=1} = \left(100 - 3x^2\right) - \left(-100 - 3x^2\right) = 200 .

The two x2x^2 terms cancel, so the inner integral is the constant 200200. That is the integrand of the outer integral, taken between 00 and 22:

02200dx=[200x]02=400.\int_0^2 200\,dx = \Big[200x\Big]_0^2 = 400 .

So R(1006x2y)dA=400\displaystyle\iint_R \left(100 - 6x^2y\right)\,dA = 400.

Practice questions

6 questions

Evaluate

R(2x+3y2)dA\iint_R \left(2x + 3y^2\right)\,dA

over R:1x3, 0y2R:\,1\le x\le 3,\ 0\le y\le 2.

Select the correct answer:

+ 5 more questions