BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Double integrals

The double integral of f(x, y) over a region R is the volume under the graph z = f(x, y) above R: cut R into small pieces of area ΔA, add f ΔA, and take the limit. It is computed as an iterated integral, slicing the region: the inner integral, over y with x fixed, has bounds that may depend on x; the outer one, over x, has numbers as bounds. Over the unit square, 1 − x² − y² integrates to 1/3; over the quarter disc, to π/8. The order of integration can be exchanged by redrawing the region, which makes ∫∫ eʸ/y computable: e − 2.

You need this first

Full reading path (14 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. Parametric equations of lines and the cycloid (18.02)
  7. Velocity, acceleration and Kepler's second law (18.02)
  8. Functions of two variables and partial derivatives (18.02)
  9. Tangent planes, critical points and least squares (18.02)
  10. The second derivative test (18.02)
  11. Differentials and the chain rule (18.02)
  12. The gradient and directional derivatives (18.02)
  13. Lagrange multipliers (18.02)
  14. Non-independent variables (18.02)
On this page · 6 sections
  1. The double integral
  2. Iterated integrals
  3. Example: over a square
  4. Example: over a quarter disc
  5. Exchanging the order of integration
  6. Summary

After several weeks of derivatives, this lecture turns to integrals of functions of two variables (transcript, p. 1).

The double integral#

For a function of one variable, ∫abf(x) dx\int_a^b f(x)\,dx is the area under the graph over [a,b][a, b], counted negatively below the axis. For a function of two variables, the graph is a surface, and the double integral over a region RR of the xyxy-plane is the volume under the graph above RR (transcript, p. 1; notes, p. 1):

Double integral
∫∫Rf(x,y) dA=volume below z=f(x,y) above R\int\int_R f(x, y)\,dA = \text{volume below } z = f(x, y) \text{ above } R
In words

the integral of the integral over R of f(x, y) d capital A equals volume below z equals f(x, y) above R

dAdA stands for a small piece of area. As in one variable, it is defined by cutting RR into small pieces of area ΔAi\Delta A_i at points (xi,yi)(x_i, y_i), adding the volumes of the thin columns, and taking the limit as the pieces shrink (p. 1; notes, p. 1):

Definition
∫∫Rf dA=lim⁡ΔA→0∑if(xi,yi) ΔAi\int\int_R f\,dA = \lim_{\Delta A \to 0} \sum_i f(x_i, y_i)\,\Delta A_i
In words

the integral of the integral over R of f d capital A equals the limit as capital delta capital A goes to 0 of the sum over i of f( x sub i, y initial ) capital delta capital A i

Nobody computes it this way, any more than single integrals are computed from Riemann sums. Instead, a double integral is reduced to two single integrals, so all the single-variable techniques come back (p. 1). (A good moment to review integration from 18.01.)

Iterated integrals#

As with partial derivatives, the idea is to slice. Scan the region with planes parallel to the yzyz-plane, x=x = constant. Let S(x)S(x) be the area of the slice under the graph at a given xx. Two nearby slices enclose a volume of about S(x) ΔxS(x)\,\Delta x, so (transcript, pp. 1–2; notes, p. 1):

Volume by slices
volume=∫abS(x) dx,S(x)=∫f(x,y) dy\text{volume} = \int_{a}^{b} S(x)\,dx, \qquad S(x) = \int f(x, y)\,dy
In words

volume equals the integral from a to b of S(x) d x, S(x) equals the integral of f(x, y) d y

Source: 18.02 Lecture 16 transcript, pp. 1–2

Here aa and bb are the smallest and largest values of xx in the region. In S(x)S(x), xx is a fixed parameter and yy the variable of integration, from the left end to the right end of the slice. This is an iterated integral (p. 2; notes, p. 1). The single most important point about double integrals (p. 2):

  • the inner bounds, for yy, can depend on xx: different slices cross the region over different ranges of yy;
  • the outer bounds, for xx, are numbers: the first and the last slice.

(xx and yy still vary independently inside the region; it is only the bounds for yy that depend on xx, p. 2.)

Example: over a square#

Integrate f=1−x2−y2f = 1 - x^2 - y^2 (the downward paraboloid of Lecture 8) over the square 0≤x≤10 \le x \le 1, 0≤y≤10 \le y \le 1 (transcript, p. 2; notes, p. 1). For a rectangle every slice has the same range, so the bounds are easy (p. 2):

Over the unit square
∫01∫01(1−x2−y2) dy dx=∫01[y−x2y−y33]01dx=∫01(23−x2)dx=13\int_0^1\int_0^1 (1 - x^2 - y^2)\,dy\,dx = \int_0^1 \left[y - x^2y - \frac{y^3}{3}\right]_0^1 dx = \int_0^1 \left(\frac23 - x^2\right)dx = \frac13
In words

the integral from 0 to 1 of the integral from 0 to 1 of the quantity 1 minus x squared minus y squared, d y d x equals the integral from 0 to 1 of the quantity y minus x squared y minus y cubed over 3, sub 0 to the power 1 d x equals the integral from 0 to 1 of the quantity two thirds minus x squared, d x equals one third

The inner integral (with xx held constant) leaves a function of xx only, the area of the slice, which counts the part of the slice below the xyxy-plane negatively (p. 2). Then the outer integral gives 23−13=13\frac23 - \frac13 = \frac13 (p. 2; notes, p. 1). Here dAdA became dy dxdy\,dx: the slicing cuts the region into small rectangles of area Δx Δy\Delta x\,\Delta y (p. 3; notes, p. 1). The order is up to us; in theory both work, but one may be much easier, because of the shape of the region or because only one way can be integrated (p. 3).

Example: over a quarter disc#

To get only the volume above the xyxy-plane, integrate the same function over the quarter disc x2+y2≤1x^2 + y^2 \le 1 in the first quadrant, where the paraboloid is above the plane (transcript, p. 3; notes, p. 1). For a fixed xx, yy runs from 0 to the circle, y=1−x2y = \sqrt{1 - x^2}; the first slice is x=0x = 0 and the last x=1x = 1 (p. 3):

Over the quarter disc
∫01∫01−x2(1−x2−y2) dy dx=∫0123 (1−x2)3/2 dx=π8\int_0^1\int_0^{\sqrt{1 - x^2}} (1 - x^2 - y^2)\,dy\,dx = \int_0^1 \frac23\,(1 - x^2)^{3/2}\,dx = \frac{\pi}{8}
In words

the integral from 0 to 1 of the integral over 0 of to the power the square root of 1 minus x squared, end of root, end of power, the quantity 1 minus x squared minus y squared, d y d x equals the integral from 0 to 1 of two thirds the quantity 1 minus x squared, all to the power three halves, end of power, d x equals pi over 8

Source: 18.02 Lecture 16 transcript, pp. 3–4

The inner bound depends on xx, the outer ones are numbers (p. 3). The inner integral is (1−x2)y−y3/3(1 - x^2)y - y^3/3 at y=1−x2y = \sqrt{1 - x^2}, which is (1−x2)3/2(1 - x^2)^{3/2} minus a third of it (p. 3). The outer one needs the substitution x=sin⁡θx = \sin\theta, giving 23∫0π/2cos⁡4θ dθ\frac23\int_0^{\pi/2}\cos^4\theta\,d\theta, and double-angle formulas twice; Auroux leaves the end as an exercise and announces π/8\pi/8 (pp. 3–4; notes, p. 1). That labour shows this is not the right way: polar coordinates, next lecture, make it easy (p. 4).

Exchanging the order of integration#

For a rectangle, the order can be swapped without thought: ∫01∫02dx dy=∫02∫01dy dx\int_0^1\int_0^2 dx\,dy = \int_0^2\int_0^1 dy\,dx, since both describe 0≤x≤20 \le x \le 2, 0≤y≤10 \le y \le 1 (transcript, p. 4; notes, p. 1). In general the bounds cannot simply be swapped: a bound like 1−x2\sqrt{1 - x^2} cannot become an outer bound. Draw the region (p. 4).

The lecture's example is ∫01∫xxeyy dy dx\int_0^1\int_x^{\sqrt x} \frac{e^y}{y}\,dy\,dx, whose inner integral has no formula (p. 4; notes, p. 2). The region lies between y=xy = x and y=xy = \sqrt x for 0≤x≤10 \le x \le 1, two curves that meet at (0,0)(0, 0) and (1,1)(1, 1):

The region of the exchanged integral, for 0≤x≤10 \le x \le 1, lies between y=xy = x (below) and y=xy = \sqrt{x} (above), both computed from their formulas; they meet at (0, 0) and (1, 1), and beyond x=1x = 1 the curves swap and the region ends. Sliced vertically, yy runs from xx to x\sqrt{x}; sliced horizontally, xx runs from y2y^2 to yy.

For a fixed yy, xx runs from the curve y=xy = \sqrt x, that is x=y2x = y^2, to the line x=yx = y; and yy runs from 0 to 1 (p. 4; notes, p. 2). Now the inner integral is easy, because ey/ye^y/y is a constant in xx (p. 4; notes, p. 2):

The exchanged integral
∫01∫y2yeyy dx dy=∫01eyy(y−y2) dy=∫01(ey−yey) dy=[2ey−yey]01=e−2\int_0^1\int_{y^2}^{y} \frac{e^y}{y}\,dx\,dy = \int_0^1 \frac{e^y}{y}(y - y^2)\,dy = \int_0^1 (e^y - ye^y)\,dy = \Big[2e^y - ye^y\Big]_0^1 = e - 2
In words

the integral from 0 to 1 of the integral from y squared to y of e to the power y over y, times d x d y equals the integral from 0 to 1 of e to the power y over y, times the quantity y minus y squared, d y equals the integral from 0 to 1 of the quantity e to the power y minus y e to the power y, d y equals the quantity 2 e to the power y minus y e to the power y, sub 0 to the power 1 equals e minus 2

Source: 18.02 lecture summaries, Week 7 (Prof. Auroux), Lecture 16, pp. 1–2, Lecture 16, p. 2

(The antiderivative of yeyye^y: guess yeyye^y, whose derivative is ey+yeye^y + ye^y, and correct; or integrate by parts, p. 4.)

Worked example

A triangle both ways

Compute ∫∫Rxy dA\int\int_R xy\,dA over the triangle RR with 0≤y≤x≤20 \le y \le x \le 2, in both orders.

dy dx

For fixed xx, yy runs from 0 to xx; xx from 0 to 2. Inner: ∫0xxy dy=x⋅x22=x32\int_0^x xy\,dy = x \cdot \frac{x^2}{2} = \frac{x^3}{2}. Outer: ∫02x32 dx=248=2\int_0^2 \frac{x^3}{2}\,dx = \frac{2^4}{8} = 2.

dx dy

For fixed yy, xx runs from yy to 2; yy from 0 to 2. Inner: ∫y2xy dx=y 4−y22\int_y^2 xy\,dx = y\,\frac{4 - y^2}{2}. Outer: ∫02(2y−y32)dy=[y2−y48]02=4−2=2\int_0^2 \left(2y - \frac{y^3}{2}\right)dy = \left[y^2 - \frac{y^4}{8}\right]_0^2 = 4 - 2 = 2. The same, as it must be.

Summary#

  • ∫∫Rf dA\int\int_R f\,dA is the volume under the graph of ff above RR, the limit of sums ∑f(xi,yi) ΔAi\sum f(x_i, y_i)\,\Delta A_i.
  • It is computed as an iterated integral: inner over yy with xx fixed (bounds may depend on xx), outer over xx (bounds are numbers).
  • Over the unit square, 1−x2−y21 - x^2 - y^2 integrates to 1/31/3; over the quarter disc, to π/8\pi/8.
  • To exchange the order, draw the region and find the bounds the other way; ∫01∫xxeyy dy dx=e−2\int_0^1\int_x^{\sqrt x} \frac{e^y}{y}\,dy\,dx = e - 2.

Symbols on this page

Show the 28 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
∑\sum sum.
Sum: add up the terms over the range written below and above. Say it: “the sum of”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
The smallest value of x in the region: the first slice. Say it: “a”.
zz z.
The height of the graph, z = f(x, y). Say it: “z”.
Σ\Sigma capital sigma.
In the cosmology note, surface density: mass per unit area on the sky. Unit: kg/m². Say it: “capital sigma”.
xx x.
The x coordinate (the outer variable in dy dx order). Say it: “x”.
yy y.
The y coordinate (the inner variable in dy dx order). Say it: “y”.
dd d.
The d of dx, dy or dA in an integral. Say it: “d”.
ee e.
The base of natural logarithms, about 2.718. Say it: “e”.
ff f.
The function being integrated, f(x, y). Say it: “f”.
AA A.
Area; dA is a small piece of area of the region. Say it: “capital A”.
bb b.
The largest value of x in the region: the last slice. Say it: “b”.
RR R.
The region of the xy-plane over which the integral is taken. Say it: “R”.
SS S.
S(x): the area of the slice of the solid at a given x. Say it: “S”.
y1y_{1} y 1.
The lower bound for y at a given x. Say it: “y one”.
y2y_{2} y 2.
The upper bound for y at a given x. Say it: “y two”.
AiA_{i} A i.
The area of the i-th small piece (with Δ in front). Say it: “capital A i”.
xix_{i} x i.
The x coordinate of a point in the i-th small piece. Say it: “x sub i”.
yiy_{i} y i.
The y coordinate of a point in the i-th small piece. Say it: “y initial”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 19 words used here

New here

double integral.
An integral over a region of the plane: cut the region into tiny pieces, multiply each by the function's value there, and add.
iterated integral.
An integral done one variable at a time: first an inner integral with the other variables held fixed, then outer integrals of the result.

Also used

derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
Riemann sum.
An estimate of an integral: cut the interval into strips, multiply each strip's width by a value of the function in it, and add. Explained in Definite integrals and Riemann sums.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
partial derivative.
The rate of change of a function of several variables with respect to one of them, while all the others are held fixed. Explained in Functions of two variables and partial derivatives.
dummy variable.
The variable inside an integral or sum, which could be renamed without changing the result, like the t in ∫ f(t) dt. Explained in The second fundamental theorem of calculus.
polar coordinates.
Coordinates in a flat plane that give a point's distance r from the origin and its angle θ from a fixed direction. Explained in Vectors.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
galaxy.
A huge system of stars, gas and dust, from thousands to over a trillion stars, held together by gravity inside a dark matter halo. Explained in Towards the universe: weighing the Sun and the Galaxy with orbits.
surface density.
An amount of mass, charge or particles per unit area of a thin layer or surface. Explained in Potential–density pairs: from point masses to dark matter halos.
gravitational lensing.
The bending of light by the gravity of mass along its path, which distorts, brightens or multiplies the images of objects behind. Explained in Gravity as curved spacetime.
dark matter.
Matter that gives out no light and is detected only through its gravity; there is about five times more of it than ordinary matter. Explained in Towards the universe: weighing the Sun and the Galaxy with orbits.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
in principle.
According to the rules or theory, even if it would be hard or impossible to do in reality.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

31 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. ∫01∫02xy dx dy=\int_0^1\int_0^2 xy\,dx\,dy =
  2. In ∫ab∫y1(x)y2(x)f dy dx\int_a^b\int_{y_1(x)}^{y_2(x)} f\,dy\,dx, the outer bounds aa and bb are…
  3. Exchanging the order of ∫01∫xxf dy dx\int_0^1\int_x^{\sqrt x} f\,dy\,dx gives…
0 of 3 answered

Flashcards

1 / 3