MAT1052 · Week 14 · Double Integrals in Polar Coordinates

Double integrals in polar coordinates

You learn to convert double integrals to polar coordinates (dA = r dr dθ) on regions bounded by disks, annuli, sectors and polar curves, to transform Cartesian integrals to polar, and to compute volume and area. The value of the Gaussian integral also comes out of this.

polar coordinatespolar rectanglearea elementr dr dθpolar regionannuluscardioidrose curveGaussian integralchange of variables

The last week of the course. Last week you took double integrals in Cartesian coordinates. But if the region is a disk, annulus or sector, the limits turn into radical expressions (y=1−x2y = \sqrt{1-x^2}) and the integral often gets ugly, even impossible to compute. Polar coordinates make these regions like rectangles: “radius from 00 to 22, angle from 00 to 2π2\pi”. If there is x2+y2x^2+y^2 in the integrand, it also becomes a single r2r^2. The exam has at least one polar question, and often a “convert to polar and evaluate” question.

Golden rules:

  1. dA=r dr dθdA = r\,dr\,d\theta. The extra factor rr is never forgotten.
  2. If the region is bounded by a disk, annulus, sector or a curve r=f(θ)r = f(\theta), and/or the integrand has x2+y2x^2+y^2, switch to polar.
  3. First sketch the region, read off the θ\theta range and the rr range for each θ\theta.
  4. When converting from Cartesian, put rcos⁡θr\cos\theta, rsin⁡θr\sin\theta in place of xx, yy; set up the limits again from the region.

Polar coordinates reminder

A point is given by its distance rr from the origin and the angle θ\theta it makes with the positive xx axis:

x=rcos⁡θ,y=rsin⁡θ,x2+y2=r2,tan⁡θ=yx.x = r\cos\theta,\qquad y = r\sin\theta,\qquad x^2+y^2 = r^2,\qquad\tan\theta = \frac yx.

CartesianPolar
x2+y2=a2x^2+y^2 = a^2 (circle)r=ar = a
y=xy = x, x>0x>0 (line)θ=π4\theta = \frac\pi4
x2+y2=2axx^2+y^2 = 2axr=2acos⁡θr = 2a\cos\theta (center (a,0)(a,0))
x2+y2=2ayx^2+y^2 = 2ayr=2asin⁡θr = 2a\sin\theta (center (0,a)(0,a))
x=ax = a (vertical line)r=asec⁡θr = a\sec\theta

Why r dr dθr\,dr\,d\theta?

In a Cartesian grid the small piece was a rectangle, with area Δx Δy\Delta x\,\Delta y. In a polar grid the small piece is an annular sector: inner radius rr, thickness Δr\Delta r, angular width Δθ\Delta\theta. The length of its outer edge is about rΔθr\Delta\theta (arc length = radius ×\times angle). So the area is about

ΔA≈(r Δθ)(Δr)=r Δr Δθ.\Delta A\approx(r\,\Delta\theta)(\Delta r) = r\,\Delta r\,\Delta\theta.

As you move away from the origin, the same Δθ\Delta\theta gives a wider arc; the factor rr accounts for this.

Theorem. If D={α≤θ≤β, r1(θ)≤r≤r2(θ)}D = \{\alpha\le\theta\le\beta,\ r_1(\theta)\le r\le r_2(\theta)\} then

∬Df(x,y) dA=∫αβ ⁣ ⁣∫r1(θ)r2(θ)f(rcos⁡θ, rsin⁡θ) r dr dθ.\iint_Df(x,y)\,dA = \int_\alpha^\beta\!\!\int_{r_1(\theta)}^{r_2(\theta)}f(r\cos\theta,\,r\sin\theta)\,r\,dr\,d\theta.

Writing regions in polar form

Regionrrθ\theta
x2+y2≤a2x^2+y^2\le a^20≤r≤a0\le r\le a0≤θ≤2π0\le\theta\le2\pi
Annulus a2≤x2+y2≤b2a^2\le x^2+y^2\le b^2a≤r≤ba\le r\le b0≤θ≤2π0\le\theta\le2\pi
Upper half disk0≤r≤a0\le r\le a0≤θ≤π0\le\theta\le\pi
Right half disk0≤r≤a0\le r\le a−π2≤θ≤π2-\frac\pi2\le\theta\le\frac\pi2
First-quadrant quarter0≤r≤a0\le r\le a0≤θ≤π20\le\theta\le\frac\pi2
Inside r=2acos⁡θr = 2a\cos\theta0≤r≤2acos⁡θ0\le r\le2a\cos\theta−π2≤θ≤π2-\frac\pi2\le\theta\le\frac\pi2

Template: draw a ray from the origin into the region. Where does the ray enter the region (lower limit r1r_1) and where does it exit (upper limit r2r_2)? From which angle to which angle must you rotate the ray to sweep the region (α\alpha, β\beta)?

Example 1. The area of a disk of radius 33: ∫02π ⁣ ⁣∫03r dr dθ=2π⋅92=9π\displaystyle\int_0^{2\pi}\!\!\int_0^3r\,dr\,d\theta = 2\pi\cdot\frac92 = 9\pi. Check: π⋅32\pi\cdot3^2 ✓.

Example 2. ∬Dx2+y2 dA\displaystyle\iint_D\sqrt{x^2+y^2}\,dA, DD the unit disk. x2+y2=r\sqrt{x^2+y^2} = r:

∫02π ⁣ ⁣∫01r⋅r dr dθ=2π⋅13=2π3.\int_0^{2\pi}\!\!\int_0^1r\cdot r\,dr\,d\theta = 2\pi\cdot\frac13 = \frac{2\pi}{3}.

Example 3 (annulus, quarter). ∬x dA\iint x\,dA on the part of the annulus 1≤x2+y2≤41\le x^2+y^2\le4 in the first quadrant:

r: 1 → 2,   θ: 0 → π/2,   x = r cos θ
∫_0^{π/2} ∫_1^2 (r cos θ) r dr dθ = (∫_0^{π/2} cos θ dθ)(∫_1^2 r² dr)
                                  = 1 · (8 - 1)/3 = 7/3

When the limits are constant and the integrand has the form g(θ)h(r)g(\theta)h(r), the integral separates into a product of two single integrals. This happens very often in polar questions.

Example 4 (bounded by a polar curve). The area inside the circle r=4sin⁡θr = 4\sin\theta. The circle is traced once on the interval θ∈[0,π]\theta\in[0,\pi].

∫0π ⁣ ⁣∫04sin⁡θr dr dθ=∫0π8sin⁡2θ dθ=8⋅π2=4π.\int_0^\pi\!\!\int_0^{4\sin\theta}r\,dr\,d\theta = \int_0^\pi8\sin^2\theta\,d\theta = 8\cdot\frac\pi2 = 4\pi.

Check: x2+y2=4yx^2+y^2 = 4y, that is, x2+(y−2)2=4x^2+(y-2)^2 = 4, radius 22, area 4π4\pi ✓.

PITFALL · the θ\theta range. If you write 0≤θ≤2π0\le\theta\le2\pi for the circle r=2cos⁡θr = 2\cos\theta, you go around the circle twice and find twice the area. Use the interval in which the polar curve is traced once: the angles where r≥0r\ge0. For rose curves (r=cos⁡2θr = \cos2\theta), find the r≥0r\ge0 interval for one petal as well.

Converting from Cartesian to polar

Example 5. ∫−11 ⁣ ⁣∫01−x2(x2+y2) dy dx\displaystyle\int_{-1}^1\!\!\int_0^{\sqrt{1-x^2}}(x^2+y^2)\,dy\,dx.

1) Read the region: -1 ≤ x ≤ 1,  0 ≤ y ≤ √(1-x²)  → the UPPER half of the unit disk
2) Polar limits: 0 ≤ r ≤ 1,  0 ≤ θ ≤ π
3) Integrand: x² + y² = r²;   dy dx → r dr dθ
4) ∫_0^π ∫_0^1 r² · r dr dθ = π · (1/4) = π/4

In Cartesian this integral would need a long computation with terms like y3/3y^3/3 and (1−x2)3/2(1-x^2)^{3/2}.

TIP · a radical in the limit is a signal. If you see a2−x2\sqrt{a^2-x^2} or a2−y2\sqrt{a^2-y^2} in a limit, the region is most likely a piece of a disk. If the integrand also has x2+y2x^2+y^2, the question is calling you to polar.

The Gaussian integral

∫e−x2dx\int e^{-x^2}dx has no elementary antiderivative; but its value over the whole line is found with the polar trick. If I=∫−∞∞e−x2dxI = \int_{-\infty}^\infty e^{-x^2}dx then

I2=∫−∞∞e−x2dx∫−∞∞e−y2dy=∬R2e−(x2+y2)dA=∫02π ⁣ ⁣∫0∞e−r2r dr dθ=2π⋅12=π.I^2 = \int_{-\infty}^\infty e^{-x^2}dx\int_{-\infty}^\infty e^{-y^2}dy = \iint_{\mathbb R^2}e^{-(x^2+y^2)}dA = \int_0^{2\pi}\!\!\int_0^\infty e^{-r^2}r\,dr\,d\theta = 2\pi\cdot\frac12 = \pi.

I=πI = \sqrt\pi. The 2π\sqrt{2\pi} in the formula of the normal distribution in probability comes from here. The heart of the trick is again the factor rr: the expression e−r2re^{-r^2}r has an antiderivative, while e−r2e^{-r^2} does not.

Volume

For solids whose base region is a disk or annulus, the volume ∬(top−bottom) dA\iint(\text{top}-\text{bottom})\,dA is still valid; you just write it in polar form. To find the base, equate the two surfaces or look at where the surface meets z=0z = 0. In Q7 the paraboloid gives the circle r=3r = 3 at z=0z = 0; in Q8 the cylinder determines the base directly as r≤1r\le1.

Common mistakes

WrongCorrect
dA=dr dθdA = dr\,d\thetadA=r dr dθdA = r\,dr\,d\theta
Leaving xx, yy in the integrandPut x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta
Counting a polar curve twice on [0,2π][0,2\pi]The interval in which it is traced once (r≥0r\ge0)
0≤θ≤2π0\le\theta\le2\pi for the upper half disk0≤θ≤π0\le\theta\le\pi
0≤θ≤π0\le\theta\le\pi for the right half−π2≤θ≤π2-\frac\pi2\le\theta\le\frac\pi2
Order: putting the θ\theta limit inside with dθ drd\theta\,drUsually rr inside (its limit may depend on θ\theta), θ\theta outside
∫02πcos⁡2θ dθ=0\int_0^{2\pi}\cos^2\theta\,d\theta = 0π\pi (its average is 12\frac12)
Taking the height in a sphere as a single halfTop minus bottom: 2a2−r22\sqrt{a^2-r^2}

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Evaluate ∬D(x2+y2) dA\displaystyle\iint_D(x^2+y^2)\,dA where DD is the disk x2+y2≤4x^2+y^2\le4.

Show answer
8π8\pi

Polar: x2+y2=r2x^2+y^2 = r^2, dA=r dr dθdA = r\,dr\,d\theta, 0≤r≤20\le r\le2, 0≤θ≤2π0\le\theta\le2\pi.∫02π ⁣ ⁣∫02r2⋅r dr dθ=2π⋅244=8π\displaystyle\int_0^{2\pi}\!\!\int_0^2r^2\cdot r\,dr\,d\theta = 2\pi\cdot\frac{2^4}{4} = 8\pi.

Question 2medium

Use a double integral to find the area of the region inside the circle r=2cos⁡θr = 2\cos\theta.

Show answer
π\pi

r=2cos⁡θr = 2\cos\theta is traced once on the interval θ∈[−π2,π2]\theta\in[-\frac\pi2,\frac\pi2] (a circle with center (1,0)(1,0) and radius 11).∫−π/2π/2 ⁣ ⁣∫02cos⁡θr dr dθ=∫−π/2π/22cos⁡2θ dθ=π\displaystyle\int_{-\pi/2}^{\pi/2}\!\!\int_0^{2\cos\theta}r\,dr\,d\theta = \int_{-\pi/2}^{\pi/2}2\cos^2\theta\,d\theta = \pi.
Check: the area of a disk of radius 11 is π\pi.

Question 3medium

Evaluate ∬De−(x2+y2) dA\displaystyle\iint_De^{-(x^2+y^2)}\,dA where DD is the unit disk.

Show answer
π(1−e−1)≈1.986\pi(1-e^{-1})\approx1.986

∫02π ⁣ ⁣∫01e−r2r dr dθ\displaystyle\int_0^{2\pi}\!\!\int_0^1e^{-r^2}r\,dr\,d\theta. u=r2u = r^2, du=2r drdu = 2r\,dr: the inner integral is [−12e−r2]01=12(1−e−1)\left[-\tfrac12e^{-r^2}\right]_0^1 = \tfrac12(1-e^{-1}).
Multiply by 2π2\pi: π(1−e−1)\pi(1-e^{-1}). (Without the factor rr this integral could not be computed.)

Question 4hard

Use polar coordinates to show that ∫−∞∞e−x2dx=π\displaystyle\int_{-\infty}^{\infty}e^{-x^2}dx = \sqrt\pi.

Show answer
π\sqrt\pi

Let I=∫−∞∞e−x2dxI = \int_{-\infty}^\infty e^{-x^2}dx. I2=∫−∞∞ ⁣ ⁣∫−∞∞e−(x2+y2)dx dyI^2 = \displaystyle\int_{-\infty}^\infty\!\!\int_{-\infty}^\infty e^{-(x^2+y^2)}dx\,dy, the whole plane.
Polar: ∫02π ⁣ ⁣∫0∞e−r2r dr dθ=2π⋅12=π\displaystyle\int_0^{2\pi}\!\!\int_0^\infty e^{-r^2}r\,dr\,d\theta = 2\pi\cdot\frac12 = \pi.
Since I>0I>0, I=πI = \sqrt\pi.

Question 5medium

Convert to polar coordinates and evaluate ∫01 ⁣ ⁣∫01−x2(x2+y2)3/2 dy dx\displaystyle\int_0^1\!\!\int_0^{\sqrt{1-x^2}}(x^2+y^2)^{3/2}\,dy\,dx.

Show answer
π/10\pi/10

The region: 0≤x≤10\le x\le1, 0≤y≤1−x20\le y\le\sqrt{1-x^2}, the unit quarter disk (first quadrant). 0≤r≤10\le r\le1, 0≤θ≤π20\le\theta\le\frac\pi2.(x2+y2)3/2=r3(x^2+y^2)^{3/2} = r^3. ∫0π/2 ⁣ ⁣∫01r3⋅r dr dθ=π2⋅15=π10\displaystyle\int_0^{\pi/2}\!\!\int_0^1r^3\cdot r\,dr\,d\theta = \frac\pi2\cdot\frac15 = \frac{\pi}{10}.

Question 6medium

Evaluate ∬D1x2+y2 dA\displaystyle\iint_D\frac{1}{x^2+y^2}\,dA over the annulus 1≤x2+y2≤91\le x^2+y^2\le9.

Show answer
2πln⁡32\pi\ln3

Annulus: 1≤r≤31\le r\le3, 0≤θ≤2π0\le\theta\le2\pi. ∫02π ⁣ ⁣∫131r2r dr dθ=2π[ln⁡r]13=2πln⁡3\displaystyle\int_0^{2\pi}\!\!\int_1^3\frac{1}{r^2}r\,dr\,d\theta = 2\pi\left[\ln r\right]_1^3 = 2\pi\ln3.

Question 7medium

Find the volume of the solid under the paraboloid z=9−x2−y2z = 9-x^2-y^2 and above the xyxy-plane.

Show answer
81π/281\pi/2

z=0z = 0: x2+y2=9x^2+y^2 = 9, the base is a disk of radius 33.∫02π ⁣ ⁣∫03(9−r2)r dr dθ=2π[9r22−r44]03=2π(812−814)=81π2\displaystyle\int_0^{2\pi}\!\!\int_0^3(9-r^2)r\,dr\,d\theta = 2\pi\left[\tfrac{9r^2}{2}-\tfrac{r^4}{4}\right]_0^3 = 2\pi\left(\tfrac{81}{2}-\tfrac{81}{4}\right) = \frac{81\pi}{2}.

Question 8hard

Find the volume of the solid inside the sphere x2+y2+z2=4x^2+y^2+z^2 = 4 and inside the cylinder x2+y2=1x^2+y^2 = 1.

Show answer
4π3(8−33)≈11.74\dfrac{4\pi}{3}(8-3\sqrt3)\approx11.74

The upper half is z=4−r2z = \sqrt{4-r^2}, the lower half −4−r2-\sqrt{4-r^2}; the height is 24−r22\sqrt{4-r^2}. The base is r≤1r\le1.∫02π ⁣ ⁣∫0124−r2 r dr dθ\displaystyle\int_0^{2\pi}\!\!\int_0^12\sqrt{4-r^2}\,r\,dr\,d\theta. u=4−r2u = 4-r^2: the inner integral is [−23(4−r2)3/2]01=23(8−33)\left[-\tfrac23(4-r^2)^{3/2}\right]_0^1 = \tfrac23(8-3\sqrt3).
Multiply by 2π2\pi: 4π3(8−33)≈11.745\tfrac{4\pi}{3}(8-3\sqrt3)\approx11.745.

Question 9medium

Evaluate ∬Dx dA\displaystyle\iint_Dx\,dA where DD is the right half of the disk x2+y2≤4x^2+y^2\le4.

Show answer
16/316/3

Right half: −π2≤θ≤π2-\frac\pi2\le\theta\le\frac\pi2, 0≤r≤20\le r\le2. x=rcos⁡θx = r\cos\theta.∫−π/2π/2cos⁡θ dθ∫02r2 dr=2⋅83=163\displaystyle\int_{-\pi/2}^{\pi/2}\cos\theta\,d\theta\int_0^2r^2\,dr = 2\cdot\frac83 = \frac{16}{3}.

Question 10hard

Find the area of one petal of the rose r=cos⁡2θr = \cos2\theta.

Show answer
π/8\pi/8

One petal is traced on the interval −π4≤θ≤π4-\frac\pi4\le\theta\le\frac\pi4 where r≥0r\ge0.∫−π/4π/4 ⁣ ⁣∫0cos⁡2θr dr dθ=12∫−π/4π/4cos⁡22θ dθ=12⋅π4=π8\displaystyle\int_{-\pi/4}^{\pi/4}\!\!\int_0^{\cos2\theta}r\,dr\,d\theta = \frac12\int_{-\pi/4}^{\pi/4}\cos^22\theta\,d\theta = \frac12\cdot\frac\pi4 = \frac\pi8.

Question 11medium

Find the area enclosed by the cardioid r=1+cos⁡θr = 1+\cos\theta.

Show answer
3π/23\pi/2

∫02π ⁣ ⁣∫01+cos⁡θr dr dθ=12∫02π(1+2cos⁡θ+cos⁡2θ) dθ\displaystyle\int_0^{2\pi}\!\!\int_0^{1+\cos\theta}r\,dr\,d\theta = \frac12\int_0^{2\pi}(1+2\cos\theta+\cos^2\theta)\,d\theta.=12(2π+0+π)=3π2= \frac12(2\pi+0+\pi) = \frac{3\pi}{2}.

Question 12easy

Evaluate ∬Dxy dA\displaystyle\iint_Dxy\,dA where DD is the part of the disk x2+y2≤9x^2+y^2\le9 in the first quadrant.

Show answer
81/881/8

xy=r2cos⁡θsin⁡θxy = r^2\cos\theta\sin\theta. ∫0π/2cos⁡θsin⁡θ dθ∫03r3 dr=12⋅814=818\displaystyle\int_0^{\pi/2}\cos\theta\sin\theta\,d\theta\int_0^3r^3\,dr = \frac12\cdot\frac{81}{4} = \frac{81}{8}.

Verification: All polar integrals were computed in node with nested Simpson (over r and θ); where possible they were also verified independently over the same region with Cartesian nested Simpson, and the Gaussian integral with tanh-sinh over the whole line (verify/MAT1052/14.mjs).

Review card

x = r cos θ, y = r sin θ, x² + y² = r², tan θ = y/x dA = r dr dθ (do NOT FORGET the r!) ∬_D f dA = ∫_α^β ∫_{r1(θ)}^{r2(θ)} f(r cos θ, r sin θ) r dr dθ When polar? The region is a disk/annulus/sector; x²+y² in the integrand Disk r≤a: 0≤r≤a, 0≤θ≤2π. Annulus: a≤r≤b. Quarter: 0≤θ≤π/2 Right half: -π/2≤θ≤π/2. Upper half: 0≤θ≤π r = 2a cos θ: center (a,0), -π/2≤θ≤π/2. r = 2a sin θ: center (0,a), 0≤θ≤π Area = ∫∫ r dr dθ = (1/2)∫ r(θ)² dθ Average of cos²θ is 1/2: ∫_0^{2π} cos²θ dθ = π Gauss: ∫_{-∞}^{∞} e^{-x²} dx = √π Volume: top - bottom surface; base = the xy projection of the intersection