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

Change of variables in double integrals

Substituting new variables u, v in a double integral changes the area element by a scale factor. For u = 3x − 2y, v = x + y, the unit square becomes a parallelogram of area 5, so du dv = 5 dx dy. In general, a small rectangle becomes a small parallelogram whose area is set by the matrix of partial derivatives: du dv = |J| dx dy, with the Jacobian J = ∂(u, v)/∂(x, y), the determinant of that matrix. Polar coordinates have Jacobian r. A full example changes ∫∫ x²y dx dy over the unit square to ∫∫ v du dv over a triangle: 1/6 either way.

You need this first

Full reading path (16 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)
  15. Double integrals (18.02)
  16. Double integrals in polar coordinates, and their uses (18.02)
On this page · 5 sections
  1. A simple rescaling: the ellipse
  2. A linear change: the factor is a determinant
  3. The Jacobian
  4. A complete example
  5. Summary

Polar coordinates are one change of variables. This lecture handles any change of variables in a double integral: how to substitute (transcript, p. 1).

A simple rescaling: the ellipse#

Find the area of the ellipse (x/a)2+(y/b)2<1(x/a)^2 + (y/b)^2 < 1 with semi-axes aa and bb (transcript, p. 1; notes, p. 1). Setting up xx, yy bounds is unpleasant; but an ellipse is a squashed circle. Put u=x/au = x/a and v=y/bv = y/b; the region becomes the unit disc u2+v2<1u^2 + v^2 < 1. Here xx and yy are changed separately, so du=1adxdu = \frac1a dx, dv=1bdydv = \frac1b dy, and du dv=1ab dx dydu\,dv = \frac{1}{ab}\,dx\,dy (p. 1; notes, p. 1):

Area of an ellipse
∫∫(x/a)2+(y/b)2<1dx dy=∫∫u2+v2<1ab du dv=ab⋅π=πab\int\int_{(x/a)^2 + (y/b)^2 < 1} dx\,dy = \int\int_{u^2 + v^2 < 1} ab\,du\,dv = ab \cdot \pi = \pi ab
In words

the integral of the integral over the quantity x over a, all squared plus the quantity y over b, all squared less than 1 of d x d y equals the integral of the integral over u squared plus v squared less than 1 of a b d u d v equals a b times pi equals pi a b

When uu and vv both depend on xx and yy, more care is needed: what is the scale factor between du dvdu\,dv and dx dydx\,dy? (p. 1; notes, p. 1.)

A linear change: the factor is a determinant#

Take u=3x−2yu = 3x - 2y, v=x+yv = x + y, chosen perhaps to simplify the integrand or the bounds (transcript, p. 1; notes, p. 1). A small xyxy rectangle of area ΔA=Δx Δy\Delta A = \Delta x\,\Delta y becomes, in the uvuv-plane, a parallelogram of area ΔA′\Delta A': a linear map, like a matrix, sends straight lines to straight lines and parallel lines to parallel lines (p. 1). And the ratio is the same everywhere, so the unit square will do (pp. 1–2; notes, p. 1). Its corners (0,0)(0, 0), (1,0)(1, 0), (0,1)(0, 1), (1,1)(1, 1) go to (0,0)(0, 0), (3,1)(3, 1), (−2,1)(-2, 1), (1,2)(1, 2): a parallelogram with sides ⟨3,1⟩\langle 3, 1\rangle and ⟨−2,1⟩\langle -2, 1\rangle, whose area is a determinant (p. 2; notes, p. 1):

The scale factor of a linear change
∣31−21∣=3+2=5=∣3−211∣,du dv=5 dx dy\begin{vmatrix} 3 & 1 \\ -2 & 1 \end{vmatrix} = 3 + 2 = 5 = \begin{vmatrix} 3 & -2 \\ 1 & 1 \end{vmatrix}, \qquad du\,dv = 5\,dx\,dy
In words

3 1; minus 2 1 equals 3 plus 2 equals 5 equals 3 minus 2; 1 1, d u d v equals 5 d x d y

Source: 18.02 Lecture 18 transcript, p. 2; second form: notes, p. 1

So ∫∫… dx dy=∫∫… 15 du dv\int\int \dots\,dx\,dy = \int\int \dots\,\frac15\,du\,dv, with the integrand and the bounds also rewritten in uu and vv (p. 2; notes, p. 1).

The Jacobian#

For a general change of variables the exchange rate varies from point to point (like changing dollars to euros in different places, as Auroux puts it), but near a point the linear approximation applies (transcript, p. 2; notes, p. 1):

Linear approximation
[ΔuΔv]≈[uxuyvxvy][ΔxΔy]\begin{bmatrix} \Delta u \\ \Delta v \end{bmatrix} \approx \begin{bmatrix} u_x & u_y \\ v_x & v_y \end{bmatrix} \begin{bmatrix} \Delta x \\ \Delta y \end{bmatrix}
In words

capital delta u; capital delta v is approximately u sub x u sub y; v sub x v sub y capital delta x; capital delta y

The sides ⟨Δx,0⟩\langle \Delta x, 0\rangle and ⟨0,Δy⟩\langle 0, \Delta y\rangle of a small rectangle go to ⟨uxΔx,vxΔx⟩\langle u_x\Delta x, v_x\Delta x\rangle and ⟨uyΔy,vyΔy⟩\langle u_y\Delta y, v_y\Delta y\rangle, and the area of that parallelogram is the determinant times Δx Δy\Delta x\,\Delta y (p. 2). The determinant of a linear transformation is how it scales areas (p. 2). This defines the Jacobian (p. 3; notes, p. 1):

Jacobian
J=∂(u,v)∂(x,y)=∣uxuyvxvy∣,du dv=∣J∣ dx dyJ = \frac{\partial(u, v)}{\partial(x, y)} = \begin{vmatrix} u_x & u_y \\ v_x & v_y \end{vmatrix}, \qquad du\,dv = |J|\,dx\,dy
In words

J equals partial (u, v) over the quantity partial (x, y), equals u sub x u sub y; v sub x v sub y, d u d v equals the absolute value of J d x d y

∂(u,v)/∂(x,y)\partial(u, v)/\partial(x, y) is only a notation, not a partial derivative of anything (p. 3). The absolute value is needed because a determinant is the area only up to sign: a Jacobian of −10-10 still means du dv=10 dx dydu\,dv = 10\,dx\,dy (p. 3; notes, p. 1). Rows or columns, the determinant is the same (pp. 2–3).

Polar coordinates. With x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta (p. 3; notes, p. 1):

Jacobian of polar coordinates
∂(x,y)∂(r,θ)=∣cos⁡θ−rsin⁡θsin⁡θrcos⁡θ∣=rcos⁡2θ+rsin⁡2θ=r\frac{\partial(x, y)}{\partial(r, \theta)} = \begin{vmatrix} \cos\theta & -r\sin\theta \\ \sin\theta & r\cos\theta \end{vmatrix} = r\cos^2\theta + r\sin^2\theta = r
In words

partial (x, y) over the quantity partial (r, theta ), equals cos theta minus r sine theta; sine theta r cos theta equals r cos squared theta plus r sine squared theta equals r

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

so dx dy=r dr dθdx\,dy = r\,dr\,d\theta (r≥0r \ge 0), a second proof of the polar area element (p. 3).

Both directions. The relation works either way, and the two Jacobians are inverses: ∂(u,v)∂(x,y)⋅∂(x,y)∂(u,v)=1\frac{\partial(u, v)}{\partial(x, y)} \cdot \frac{\partial(x, y)}{\partial(u, v)} = 1, because the two matrices are inverse matrices. So compute whichever is easier (p. 3). But in general the factor is a function of the variables, not a constant (p. 3).

A complete example#

The lecture's deliberately silly example: compute ∫01∫01x2y dx dy\int_0^1\int_0^1 x^2y\,dx\,dy with u=xu = x, v=xyv = xy, where the substitution simplifies nothing but shows every step (transcript, p. 3; notes, p. 1).

1. Area element. ∂(u,v)∂(x,y)=∣10yx∣=x\frac{\partial(u, v)}{\partial(x, y)} = \begin{vmatrix} 1 & 0 \\ y & x \end{vmatrix} = x, positive on the square, so du dv=x dx dydu\,dv = x\,dx\,dy and dx dy=1x du dvdx\,dy = \frac1x\,du\,dv (p. 4; notes, p. 1).

2. Integrand. x2y dx dy=x2y 1x du dv=xy du dv=v du dvx^2y\,dx\,dy = x^2y\,\frac1x\,du\,dv = xy\,du\,dv = v\,du\,dv (p. 4; notes, p. 1).

3. Bounds, the hardest part (p. 4; notes, pp. 1–2). Integrating dudu first means moving along curves v=xy=v = xy = constant, hyperbolas, on which u=xu = x increases. A hyperbola enters the square through the top side y=1y = 1, where y=v/u=1y = v/u = 1, so u=vu = v; it leaves through the right side x=1x = 1, where u=1u = 1. The first hyperbola is v=0v = 0, the last v=1v = 1 (through the corner) (p. 4):

The new integral
∫01∫01x2y dx dy=∫01∫v1v du dv=∫01v(1−v) dv=16\int_0^1\int_0^1 x^2y\,dx\,dy = \int_0^1\int_v^1 v\,du\,dv = \int_0^1 v(1 - v)\,dv = \frac16
In words

the integral from 0 to 1 of the integral from 0 to 1 of x squared y d x d y equals the integral from 0 to 1 of the integral from v to 1 of v d u d v equals the integral from 0 to 1 of v the quantity 1 minus v, d v equals one sixth

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

Another way to the bounds: draw the region in the uvuv-plane. The side x=1x = 1 becomes u=1u = 1; y=1y = 1 becomes u=vu = v; y=0y = 0 becomes v=0v = 0; and the whole side x=0x = 0 is squashed to the single point u=v=0u = v = 0 (as the origin is in polar coordinates). The square becomes a triangle, and the bounds can be read off it (p. 4; notes, p. 2). (The final evaluation, 16\frac16, is ours; the lecture stops at the bounds. Computed directly, ∫01∫01x2y dx dy=13⋅12\int_0^1\int_0^1 x^2y\,dx\,dy = \frac13 \cdot \frac12 gives the same.)

Worked example

A tilted square, and an ellipse

(a) Compute ∫∫R(x+y)2 dA\int\int_R (x + y)^2\,dA over the tilted square RR: 0≤x+y≤20 \le x + y \le 2, 0≤x−y≤20 \le x - y \le 2. (b) Find the area of the ellipse x2/9+y2/4<1x^2/9 + y^2/4 < 1.

(a) Jacobian

Let u=x+yu = x + y, v=x−yv = x - y, so RR becomes the square 0≤u,v≤20 \le u, v \le 2. ∂(u,v)∂(x,y)=∣111−1∣=−2\frac{\partial(u, v)}{\partial(x, y)} = \begin{vmatrix} 1 & 1 \\ 1 & -1 \end{vmatrix} = -2, so du dv=2 dx dydu\,dv = 2\,dx\,dy and dx dy=12 du dvdx\,dy = \frac12\,du\,dv. (Check: the area of RR is 12⋅4=2\frac12 \cdot 4 = 2; it is a square with side 2\sqrt2.)

(a) The integral

∫∫R(x+y)2 dA=∫02∫02u2 12 du dv=12⋅83⋅2=83≈2.67\int\int_R (x + y)^2\,dA = \int_0^2\int_0^2 u^2\,\frac12\,du\,dv = \frac12 \cdot \frac83 \cdot 2 = \frac83 \approx 2.67.

(b) Rescaling

With a=3a = 3 and b=2b = 2, the area is πab=6π≈18.85\pi ab = 6\pi \approx 18.85.

Summary#

  • A change of variables needs a scale factor between area elements: du dv=∣J∣ dx dydu\,dv = |J|\,dx\,dy.
  • The Jacobian J=∂(u,v)/∂(x,y)J = \partial(u, v)/\partial(x, y) is the determinant of the matrix of partial derivatives ux,uy,vx,vyu_x, u_y, v_x, v_y: small rectangles become small parallelograms. Take its absolute value.
  • For a linear change the factor is constant (5 for u=3x−2yu = 3x - 2y, v=x+yv = x + y); in general it varies from point to point.
  • Polar coordinates: ∂(x,y)/∂(r,θ)=r\partial(x, y)/\partial(r, \theta) = r. The two Jacobians of a change are inverses.
  • Steps: area element, integrand, bounds (slice in the xyxy picture, or draw the region in the uvuv-plane).

Symbols on this page

Show the 31 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”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
⟨\langle angle brackets.
The average (mean value) of what is inside, ⟨…⟩. Say it: “the average of”.
∂\partial partial.
Partial derivative: the rate of change with one variable, holding the others fixed. Say it: “partial”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
The ellipse's semi-axis along x; in the cosmology note, the scale factor of the universe. Say it: “a”.
xx x.
The original first coordinate. Say it: “x”.
yy y.
The original second coordinate. Say it: “y”.
tt t.
In the cosmology note, time. Unit: s. Say it: “t”.
dd d.
The d of dx, dy, du, dv in an area element. Say it: “d”.
vv v.
The second new variable. Say it: “v”.
rr r.
The polar distance from the origin. Say it: “r”.
AA A.
Area in the xy-plane (ΔA, a small piece). Say it: “capital A”.
bb b.
The ellipse's semi-axis along y. Say it: “b”.
RR R.
The region of integration. Say it: “capital R”.
vxv_{x} v x.
The partial derivative ∂v/∂x. Say it: “v sub x”.
vyv_{y} v y.
The partial derivative ∂v/∂y. Say it: “v sub y”.
uu u.
The first new variable. Say it: “u”.
VV V.
In the cosmology note, a comoving volume. Say it: “capital V”.
JJ J.
The Jacobian ∂(u, v)/∂(x, y): the determinant of the matrix of partial derivatives. Say it: “J”.
A′A' A prime.
Area in the uv-plane (ΔA′, the image of a small piece). Say it: “capital A prime”.
uxu_{x} u sub x.
The partial derivative ∂u/∂x. Say it: “u sub x”.
uyu_{y} u sub y.
The partial derivative ∂u/∂y. Say it: “u sub y”.

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

Words on this page

Show the 24 words used here

New here

change of variables.
Rewriting a problem in new variables suited to it; in an integral this needs a factor, the Jacobian, for how areas or volumes stretch.
scale factor.
The number by which lengths, areas or volumes are multiplied when a shape is stretched or shrunk.
linear approximation.
Replacing a function near a point by the straight line, or flat plane, that best matches it there, using its first derivatives.
Jacobian.
The determinant of the partial derivatives of new variables with respect to old ones: how much a change of variables stretches areas or volumes.

Also used

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.
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. Explained in Double integrals.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
ellipse.
An oval curve: the set of points whose distances from two fixed points, the foci, add up to the same total. Explained in Kepler's laws and orbits.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
linear.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
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.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
hyperbola.
An open curve with two separate branches: the set of points whose distances from two fixed points differ by the same amount. Explained in Quadratics and power laws.
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.
comoving.
Moving along with the expansion of the universe, or measured on a grid that stretches with it, so the expansion itself is divided out. Explained in The homogeneous expanding universe.
comoving volume.
A volume measured in comoving coordinates, which stays the same as the universe expands; counts per comoving volume remove the effect of expansion. Explained in Observational cosmology: redshift and cosmic distances.
density.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
notation.
A system of symbols used to write ideas down briefly, such as dy/dx for a derivative.
read off.
To take a value directly from a graph, table or formula, without further calculation.

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

32 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. For u=2xu = 2x, v=3yv = 3y, du dv=du\,dv =
  2. If the Jacobian ∂(u,v)/∂(x,y)\partial(u, v)/\partial(x, y) is −4-4, then…
  3. If ∂(u,v)/∂(x,y)=5\partial(u, v)/\partial(x, y) = 5, then ∂(x,y)/∂(u,v)=\partial(x, y)/\partial(u, v) =
0 of 3 answered

Flashcards

1 / 3