Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Change of variables and polar coordinates

Use Jacobians to transform double integrals into coordinates that fit the region or the integrand.

This page changes the coordinates of a double integral to fit the region or the integrand. When the Cartesian slices from regions and order of integration are awkward, another coordinate system may be simpler. A disk, for example, has square-root bounds in Cartesian coordinates but constant bounds in polar coordinates.

The new coordinates simplify the description and the Jacobian corrects the area element for how small pieces stretch or shrink. The same tools evaluate weighted integrals in mass, centroids and probability and the series integral in Euler's Basel sum.

The Jacobian records area scaling

Suppose the old coordinates are given in terms of new ones by

(x,y)=g(u,v)=(x(u,v),y(u,v)).(x,y)=g(u,v)=\bigl(x(u,v),y(u,v)\bigr).
[DEFINITION]

Jacobian matrix

The Jacobian matrix of gg is

Jg(u,v)=(∂x∂u∂x∂v∂y∂u∂y∂v).J_g(u,v)= \begin{pmatrix} \dfrac{\partial x}{\partial u}& \dfrac{\partial x}{\partial v}\\[8pt] \dfrac{\partial y}{\partial u}& \dfrac{\partial y}{\partial v} \end{pmatrix}.
[DEFINITION]

Jacobian determinant

The Jacobian determinant is

det⁡Jg(u,v)=∂(x,y)∂(u,v).\det J_g(u,v) =\frac{\partial(x,y)}{\partial(u,v)}.

Its absolute value is the local area-scaling factor:

dA=dx dy=∣det⁡Jg(u,v)∣ du dv.dA=dx\,dy =\left|\det J_g(u,v)\right|\,du\,dv.

The determinant is negative when the map reverses orientation. Area is non-negative, so the change-of-variables formula uses its absolute value.

To see why it measures area, take small increments Δu,Δv\Delta u,\Delta v:

g(u+Δu,v+Δv)−g(u,v)≈Jg(u,v)(ΔuΔv).g(u+\Delta u,v+\Delta v)-g(u,v) \approx J_g(u,v) \begin{pmatrix}\Delta u\\ \Delta v\end{pmatrix}.

The linear map Jg(u,v)J_g(u,v) sends a small coordinate rectangle of area Δu Δv\Delta u\,\Delta v to a parallelogram of area approximately ∣det⁡Jg(u,v)∣Δu Δv|\det J_g(u,v)|\Delta u\,\Delta v. Taking the limit gives the area element dA=∣det⁡Jg(u,v)∣ du dvdA=|\det J_g(u,v)|\,du\,dv.

[THEOREM]

Change of variables

Let Ω\Omega be a region in (x,y)(x,y)-coordinates and let Φ\Phi be a region in (u,v)(u,v)-coordinates. Assume that ff is integrable on Ω\Omega, that gg is C1C^1 on Φ\Phi, that Φ\Phi can be split into finitely many pieces on which gg is one-to-one with non-overlapping interiors and that the Jacobian is nonzero away from boundary or other exceptional sets of area zero. The images of those pieces must cover Ω\Omega once, apart from boundaries of area zero; otherwise the transformed integral can omit or count part of the region more than once. If a map covers the target with multiplicity, split the parameter region into one-to-one pieces (or account for that multiplicity) before applying the formula. Then

∬Ωf(x,y) dx dy=∬Φf(x(u,v),y(u,v))∣det⁡Jg(u,v)∣ du dv.\iint_\Omega f(x,y)\,dx\,dy = \iint_\Phi f\bigl(x(u,v),y(u,v)\bigr) \left|\det J_g(u,v)\right|\,du\,dv.

Applying the theorem involves two separate tasks: rewriting the integrand in terms of u,vu,v and describing the old region in the new coordinates. The second task is geometric and cannot be skipped.

[METHOD]

Choose and apply a coordinate change

To change variables in a double integral:

  1. choose new coordinates suggested by the boundaries or by a repeated expression in the integrand;
  2. solve for xx and yy in terms of the new coordinates when needed;
  3. transform every boundary of the region;
  4. rewrite the integrand;
  5. calculate the absolute Jacobian factor;
  6. integrate over the transformed region.

Good coordinates simplify the region, the integrand or both. A substitution that simplifies the formula but complicates the region may not help.

Polar coordinates

[THEOREM]

Polar area element

For r≥0r\ge0, the polar-coordinate change of variables is

x=rcos⁡θ,y=rsin⁡θ,x=r\cos\theta,\qquad y=r\sin\theta,

and its Jacobian satisfies

∣∂(x,y)∂(r,θ)∣=r.\left|\frac{\partial(x,y)}{\partial(r,\theta)}\right| =r.

Consequently,

dA=r dr dθ,dA=r\,dr\,d\theta,

and

∬Ωf(x,y) dA=∬Φf(rcos⁡θ,rsin⁡θ) r dr dθ.\iint_\Omega f(x,y)\,dA =\iint_\Phi f(r\cos\theta,r\sin\theta)\,r\,dr\,d\theta.

The factor rr is also visible geometrically. A small polar rectangle has radial side approximately drdr and angular side approximately r dθr\,d\theta, so its area is approximately r dr dθr\,dr\,d\theta. The same (r,θ)(r,\theta) pair parametrises complex numbers in polar form, with x+iy=reiθx+iy=re^{i\theta}.

A usual polar description takes r≥0r\ge0 and an angular interval of length at most 2π2\pi. Each point then has one representation, except on a boundary ray and at the origin. Those exceptional sets have area zero, so the change-of-variables theorem still applies.

The radial limits are read along each ray from the boundary of the region; they need not be constant.

[EXAMPLE]

Area of a quarter disk

The first-quadrant portion of the unit disk is

0≤r≤1,0≤θ≤π2.0\le r\le1,\qquad 0\le\theta\le\frac{\pi}{2}.

Its area is

Area⁡(Ω)=∫0π/2∫01r dr dθ=∫0π/212 dθ=π4.\begin{aligned} \operatorname{Area}(\Omega) &=\int_0^{\pi/2}\int_0^1r\,dr\,d\theta\\ &=\int_0^{\pi/2}\frac12\,d\theta =\frac{\pi}{4}. \end{aligned}

[routine]

  1. [1]:Polar area element
[EXAMPLE]

A triangle in polar coordinates

Evaluate

I=∫01∫0x(1+x2+y2) dy dx.I=\int_0^1\int_0^x \left(1+\sqrt{x^2+y^2}\right)\,dy\,dx.

The region is the first-quadrant triangle bounded by x=1x=1 and y=xy=x. In polar coordinates,

0≤θ≤π4,0≤r≤sec⁡θ,0\le\theta\le\frac{\pi}{4}, \qquad 0\le r\le\sec\theta,

because x=rcos⁡θ≤1x=r\cos\theta\le1. Also, x2+y2=r\sqrt{x^2+y^2}=r. Therefore

I=∫0π/4∫0sec⁡θ(1+r)r dr dθ=∫0π/4[r22+r33]0sec⁡θdθ=∫0π/4(sec⁡2θ2+sec⁡3θ3)dθ=12+26+16ln⁡(1+2).\begin{aligned} I &=\int_0^{\pi/4}\int_0^{\sec\theta}(1+r)r\,dr\,d\theta\\ &=\int_0^{\pi/4} \left[\frac{r^2}{2}+\frac{r^3}{3}\right]_{0}^{\sec\theta} d\theta\\ &=\int_0^{\pi/4} \left(\frac{\sec^2\theta}{2} +\frac{\sec^3\theta}{3}\right)d\theta\\ &=\frac12+\frac{\sqrt2}{6} +\frac16\ln(1+\sqrt2). \end{aligned}
[EXAMPLE]

Area enclosed by a spiral

The region swept between

r=θ,0≤θ≤2π,r=\theta,\qquad0\le\theta\le2\pi,

and the xx-axis has

0≤θ≤2π,0≤r≤θ.0\le\theta\le2\pi,\qquad0\le r\le\theta.

Thus

Area⁡(Ω)=∫02π∫0θr dr dθ=∫02πθ22 dθ=4π33.\begin{aligned} \operatorname{Area}(\Omega) &=\int_0^{2\pi}\int_0^\theta r\,dr\,d\theta\\ &=\int_0^{2\pi}\frac{\theta^2}{2}\,d\theta =\frac{4\pi^3}{3}. \end{aligned}

The familiar polar area formula

Area⁡(Ω)=12∫r(θ)2 dθ\operatorname{Area}(\Omega) =\frac12\int r(\theta)^2\,d\theta

is the result of performing the radial integral first.

[routine]

  1. [1]:Polar area element
[EXAMPLE]

The Gaussian integral

Let Ω\Omega be the first quadrant and consider

I=∬Ωe−(x2+y2) dA.I=\iint_\Omega e^{-(x^2+y^2)}\,dA.

The region is unbounded, so apply the change of variables on bounded quarter-disks and then let their radius tend to infinity. The integrand is nonnegative, so monotone convergence justifies this limit. Polar coordinates give

I=∫0π/2∫0∞e−r2r dr dθ=∫0π/212 dθ=π4.\begin{aligned} I &=\int_0^{\pi/2}\int_0^\infty e^{-r^2}r\,dr\,d\theta\\ &=\int_0^{\pi/2}\frac12\,d\theta =\frac{\pi}{4}. \end{aligned}

In Cartesian coordinates the integrand is a product e−x2e−y2e^{-x^2}e^{-y^2}. Because it is nonnegative, Tonelli's theorem (or monotone limits over bounded rectangles) justifies separating the two improper integrals:

I=(∫0∞e−x2 dx)2.I =\left(\int_0^\infty e^{-x^2}\,dx\right)^2.

Hence

∫0∞e−x2 dx=π2.\int_0^\infty e^{-x^2}\,dx=\frac{\sqrt\pi}{2}.

For

G=∫−∞∞e−x2/2 dx,G=\int_{-\infty}^{\infty}e^{-x^2/2}\,dx,

symmetry and u=x/2u=x/\sqrt2 give

G=2∫0∞e−x2/2 dx=22∫0∞e−u2 du=2π.\begin{aligned} G &=2\int_0^\infty e^{-x^2/2}\,dx\\ &=2\sqrt2\int_0^\infty e^{-u^2}\,du =\sqrt{2\pi}. \end{aligned}

[challenge]

  1. [1]:Polar area element

Other coordinate changes

[EXAMPLE]

A linear change of variables

Evaluate

I=∫03∫−xx(2−x−y)2 dy dxI=\int_0^3\int_{-x}^{x}(2-x-y)^2\,dy\,dx

using

u=x+y,v=x−y.u=x+y,\qquad v=x-y.

The inverse transformation is

x=u+v2,y=u−v2,x=\frac{u+v}{2}, \qquad y=\frac{u-v}{2},

and

∣∂(x,y)∂(u,v)∣=∣det⁡(121212−12)∣=12.\left|\frac{\partial(x,y)}{\partial(u,v)}\right| = \left| \det \begin{pmatrix} \frac12&\frac12\\[2pt] \frac12&-\frac12 \end{pmatrix} \right| =\frac12.

The original region is bounded by y=−xy=-x, y=xy=x and x=3x=3. These become

y=−x⟹u=0,y=x⟹v=0,x=3⟹u+v=6.y=-x\Longrightarrow u=0,\qquad y=x\Longrightarrow v=0,\qquad x=3\Longrightarrow u+v=6.

Thus

0≤u≤6,0≤v≤6−u.0\le u\le6,\qquad0\le v\le6-u.

Since x+y=ux+y=u, the integrand is (2−u)2(2-u)^2. Therefore

I=∫06∫06−u(2−u)212 dv du=12∫06(2−u)2(6−u) du=18.\begin{aligned} I &=\int_0^6\int_0^{6-u}(2-u)^2\frac12\,dv\,du\\ &=\frac12\int_0^6(2-u)^2(6-u)\,du =18. \end{aligned}

These coordinates suit the problem because x+yx+y occurs in the integrand and the region becomes a triangle with two sides on the axes.

[EXAMPLE]

A nonlinear change of variables

Evaluate

∬Ω(4x2−2y2) dA,\iint_\Omega(4x^2-2y^2)\,dA,

where

Ω={(x,y):1≤xy≤4, x≤y≤4x}.\Omega=\{(x,y):1\le xy\le4,\ x\le y\le4x\}.

Use

u=xy,v=yx.u=xy,\qquad v=\frac yx.

On Ω\Omega, the inequalities force x>0x>0: if x<0x<0, then 4x<x4x<x and the condition x≤y≤4xx\le y\le4x is impossible. The map therefore has the positive inverse branch

x=uv,y=uv,x=\sqrt{\frac uv},\qquad y=\sqrt{uv},

for u,v>0u,v>0. The region becomes the rectangle

1≤u≤4,1≤v≤4.1\le u\le4,\qquad1\le v\le4.

The forward Jacobian is

∂(u,v)∂(x,y)=det⁡(yx−y/x21/x)=yx+yx=2v.\frac{\partial(u,v)}{\partial(x,y)} =\det \begin{pmatrix} y&x\\[2pt] -y/x^2&1/x \end{pmatrix} =\frac yx+\frac yx=2v.

Hence

dA=∣∂(x,y)∂(u,v)∣ du dv=12v du dv.dA =\left|\frac{\partial(x,y)}{\partial(u,v)}\right|\,du\,dv =\frac1{2v}\,du\,dv.

Since x2=u/vx^2=u/v and y2=uvy^2=uv,

4x2−2y2=4uv−2uv.4x^2-2y^2=\frac{4u}{v}-2uv.

Therefore

I=∫14∫14(4uv−2uv)12v dv du=∫14∫14(2uv2−u) dv du=∫14[−2uv−uv]14 du=∫14−3u2 du=−454.\begin{aligned} I &=\int_1^4\int_1^4 \left(\frac{4u}{v}-2uv\right)\frac1{2v}\,dv\,du\\ &=\int_1^4\int_1^4\left(\frac{2u}{v^2}-u\right)\,dv\,du\\ &=\int_1^4\left[-\frac{2u}{v}-uv\right]_{1}^{4}\,du\\ &=\int_1^4-\frac{3u}{2}\,du =-\frac{45}{4}. \end{aligned}

The answer is negative because the integrand takes both signs; a double integral is not automatically a geometric volume.

On this page