Chapter 24. Polar coordinates

§24.1 [TEXT] Polar coordinates are a special case of change of variables

Last chapter one of the transition maps we used was

𝐓polar(𝑟,𝜃)=(𝑟cos𝜃,𝑟sin𝜃).

This particular change is so common that you should actually memorize its Jacobian determinant and area scaling factor. Remember from last chapter we computed

𝐽𝐓=(𝜕𝜕𝑟(𝑟cos𝜃)𝜕𝜕𝜃(𝑟cos𝜃)𝜕𝜕𝑟(𝑟sin𝜃)𝜕𝜕𝜃(𝑟sin𝜃))=(cos𝜃−𝑟sin𝜃sin𝜃𝑟cos𝜃).|det𝐽𝐓|=|cos𝜃−𝑟sin𝜃sin𝜃𝑟cos𝜃|=𝑟cos2𝜃−(−𝑟sin2𝜃)=𝑟(cos2𝜃+sin2𝜃)=𝑟.

You should actually just remember the final result of this calculation so you don’t have to work it out again. Colloquially, it can be written like so:

Memorize: The Jacobian for polar coordinates

When converting from Cartesian coordinates (𝑥,𝑦) to polar coordinates (𝑟,𝜃) you should replace d𝑥d𝑦 to 𝑟d𝑟d𝜃. Colloquially, we write

d𝑥d𝑦=𝑟d𝑟d𝜃.

Many other sources will write d𝐴 as a shorthand for both: so if you have (𝑥,𝑦) coordinates then d𝐴=d𝑥d𝑦, while if you have polar coordinates then d𝐴=𝑟d𝑟d𝜃. (They’re equal, after all.) Again, this can be made more precise later on in life once you have access to a new object called a differential form, but for now just treat it as a mnemonic for one really common change of variables, rather than a formal statement.

As training wheels, I’m still going to avoid writing d𝐴 for one more chapter, so that when you see d𝑥d𝑦 or d𝑦d𝑥 you know you’re supposed to make a change of variables (and won’t accidentally write d𝑟d𝜃 with the factor of 𝑟 missing).

§24.2 [TEXT] Polar coordinates can be thought of as a coordinate system

In what follows, true to the name “polar coordinates”, I’ll write just

(𝑟,𝜃)pol≔(𝑟cos𝜃,𝑟sin𝜃)

so I don’t have to keep dragging the 𝐓polar everywhere. (However, other places will just write (𝑟,𝜃) everywhere, since it’s unlikely to be confused with 𝑥𝑦-coordinates due to the letter change.)

The upshot is that in practice:

Idea
Once you remember that d𝑥d𝑦 turns into 𝑟d𝑟d𝜃, you can jump into problems directly in polar coordinates, skipping the 𝑥 and 𝑦 altogether.

For example, if you want to find the area of the unit disk, you know in polar coordinates the unit disk is 0≤𝑟≤1 and 0≤𝜃≤2𝜋, so you can just directly think via the integral

∫𝑟=01∫𝜃=02𝜋𝑟d𝜃d𝑟

and not even bother writing the 𝑥𝑦-version ∬𝑥2+𝑦2≤1d𝑥d𝑦. Compared to back in Section 23.4, it’s the same thing; it’s just a shift in mindset where you go from “take an 𝑥𝑦-picture and translate into polar coordinates” to “take a picture and write it directly in polar coordinates”.

§24.3 [TEXT] Famous example: the offset circle

There’s one particularly famous exercise that’s often used when teaching this stuff. I’m actually going to split it into two parts.

Sample Question
Let ℛ︀ denote the disk of radius 1 centered at (1,0). Express the region ℛ︀ in polar coordinates.

Figure 53: A sketch of (𝑥−1)2+𝑦2≤1. One might expect this to be nasty when converted to polar, but it turns out to be 𝑟≤2cos𝜃 for −𝜋2≤𝜃≤𝜋2, which is much better than expected.

Solution. Here are two ways to proceed.

Geometric approach

See Figure 53. It’s clear from the figure we want −𝜋2≤𝜃≤𝜋2. If one lets 𝑂=(0,0), 𝑃 be a point on the boundary of the circle, and then let 𝐴=(2,0) (so segment 𝐴𝑂 is a diameter of the circle). Then we in fact get a right triangle △𝑂𝑃𝐴 with

∠𝑃=90°,𝑂𝐴=2,and∠𝐴𝑂𝑃=𝜃.

Hence, the boundary of our offset circle is given by 𝑟=2cos𝜃. The disk (i.e. the part inside the boundary) is then

0≤𝑟≤2cos𝜃.
Algebra approach

Initially we have (𝑥,𝑦) such that

(𝑥−1)2+𝑦2≤1.

Expanding this equation gives

𝑥2−2𝑥+1+𝑦2≤1⟹𝑥2+𝑦2≤2𝑥.

In polar coordinates, 𝑥=𝑟cos𝜃 and 𝑦=𝑟sin𝜃, so we substitute to get

𝑟2≤2𝑟cos𝜃.

We need cos𝜃≥0 to be nonnegative for this to be feasible, and we take −𝜋2≤𝜃≤𝜋2 as a result. In that case the condition ends up becoming

0≤𝑟≤2cos𝜃.

In conclusion, the answer is ℛ︀ in polar coordinates is exactly

−𝜋2≤𝜃≤𝜋2 and 𝑟≤2cos𝜃.

□

In other words, the graph of 𝑟=2cos𝜃 is actually just an offset circle. This is a bit of a surprise to people who are seeing it for the first time, and even a bit to me now, but the geometry argument should justify why.

Okay, here’s the famous exercise I promised you.

Sample Question
Let ℛ︀ denote the disk of radius 1 centered at (1,0). Calculate ∬ℛ︀𝑥2+𝑦2d𝑥d𝑦.

Solution. If you try to use 𝑥𝑦 integration, it’s a disaster. But we just saw the polar coordinates for ℛ︀ are surprisingly good. So of course let

𝑥=𝑟cos𝜃,𝑦=𝑟sin𝜃.

In these coordinates, 𝑥2+𝑦2=𝑟, so the integrand becomes 𝑟.

As we just saw, the region ℛ︀ consists of −𝜋2≤𝜃≤𝜋2 and 0≤𝑟≤2cos𝜃, so

∬ℛ︀𝑥2+𝑦2d𝑥d𝑦=∫𝜃=−𝜋2𝜋2∫𝑟=02cos𝜃𝑟⋅𝑟d𝑟d𝜃⏟=d𝑥d𝑦=∫𝜃=−𝜋2𝜋2∫𝑟=02cos𝜃𝑟2d𝑟d𝜃.

First, integrate with respect to 𝑟:

∫𝑟=02cos𝜃𝑟2d𝑟=[𝑟33]𝑟=02cos𝜃=(2cos𝜃)33=8cos3𝜃3.

Now, substitute this result into the outer integral:

∫𝜃=−𝜋2𝜋28cos3𝜃3d𝜃=83∫𝜃=−𝜋2𝜋2cos3𝜃d𝜃.

To evaluate ∫𝜃=−𝜋2𝜋2cos3𝜃d𝜃, we need to find an antiderivative of cos3𝜃. That will require a bit of trigonometry acrobatics: the idea is to use

cos3𝜃=cos𝜃(1−sin2𝜃).

Then, set 𝑢=sin𝜃, so d𝑢=cos𝜃d𝜃:

∫𝜃=−𝜋2𝜋2cos3𝜃d𝜃=∫𝑢=−11(1−𝑢2)d𝑢=[𝑢−𝑢33]−11=(1−13)−(−1+13)=43.

Substitute this result back into the integral:

83∫𝜃=−𝜋2𝜋2cos3𝜃d𝜃=83⋅43=329.

□

§24.4 [TEXT] Example: ugly square roots or 𝑥2+𝑦2 everywhere

One other way to generate exam questions to force students to use polar coordinates is to dump a bunch of square roots everywhere that make 𝑥𝑦-integration infeasible, thus requiring the use of polar coordinates instead. Here’s an example of what that could look like.

Sample Question

Compute the double integral

∫𝑦=03∫𝑥=−9−𝑦2𝑥=9−𝑦2(𝑥2+𝑦2)52d𝑥d𝑦.

Solution. Because of the presence of 9−𝑦2 and the (𝑥2+𝑦2)52, we’re practically forced to use polar coordinates. Indeed, the right way to think of the region we’re integrating over is that it consists of

0≤𝑦≤3 and 𝑥2+𝑦2≤9

which is just the upper half of a circle of radius 3. So using polar coordinates is just obviously the right thing to do, because the limits of integration are amazing:

Thus, the integral in polar coordinates becomes:

∫𝜃=0𝜋∫𝑟=03𝑟5⋅𝑟d𝑟d𝜃⏟=d𝑥d𝑦=∫𝜃=0𝜋∫𝑟=03𝑟6d𝑟d𝜃.

Now, integrate with respect to 𝑟:

∫𝑟=03𝑟6d𝑟=[𝑟77]𝑟=03=377=21877.

Now, integrate with respect to 𝜃:

∫𝜃=0𝜋21877d𝜃=21877⋅𝜋=2187𝜋7.

□

You could easily imagine doing something similar with some different artificial function involving 𝑥2+𝑦2 in some other way:

Sample Question

Compute the double integral

∫𝑦=03∫𝑥=−9−𝑦2𝑥=9−𝑦21𝑥2+𝑦2+17d𝑥d𝑦.

Solution. The region is the same, the only change is what to do with the thing inside:

1𝑥2+𝑦2+17=1𝑟2+17.

So, the overall integral becomes

∫𝜃=0𝜋∫𝑟=031𝑟2+17⋅𝑟d𝑟d𝜃⏟=d𝑥d𝑦.

Now, we evaluate the inner integral:

∫𝑟=03𝑟𝑟2+17d𝑟.

To integrate this, use the substitution 𝑢=𝑟2+17, so d𝑢=2𝑟d𝑟 or 𝑑𝑢2=𝑟d𝑟. When 𝑟=0, 𝑢=17; when 𝑟=3, 𝑢=26. The integral becomes:

∫𝑟=03𝑟𝑟2+17d𝑟=∫𝑢=17261𝑢⋅𝑑𝑢2=12∫𝑢=17261𝑢d𝑢.

Integrating with respect to 𝑢:

12∫𝑢=17261𝑢d𝑢=12[log𝑢]𝑢=1726=12(log26−log17)=12log2617.

Now, integrate with respect to 𝜃:

∫𝜃=0𝜋12log2617d𝜃=𝜋2log2617.

□

§24.5 [TEXT] Example: region described in circular terms

Another way you can force students to use polar coordinates is to give a region which is described as a circle to begin with. Again 𝑥𝑦-coordinates are either infeasible or at least annoying.

Sample Question
The unit circle centered at (0,0) is divided into four quarters by the 𝑥 and 𝑦 axes. Compute the center of mass of the quarter-circle in the first quadrant, assuming a uniform density distribution.

Solution. To find the center of mass of the quarter-circle in the first quadrant, we consider the region bounded by 0≤𝑟≤1 and 0≤𝜃≤𝜋2 in polar coordinates. Since the density is uniform, we can use symmetry and polar coordinates to find the coordinates (𝑥̅,𝑦̅) of the center of mass.

Call the quarter-circle ℛ︀. The area of the quarter-circle is one-fourth of the area of the unit circle:

Area(ℛ︀)=14𝜋.

In polar coordinates, the coordinates 𝑥 and 𝑦 are given by:

𝑥=𝑟cos𝜃,𝑦=𝑟sin𝜃.

The center of mass coordinates (𝑥̅,𝑦̅) are given by

𝑥̅=1Area(ℛ︀)∬ℛ︀𝑥d𝑥d𝑦,𝑦̅=1Area(ℛ︀)∬ℛ︀𝑦d𝑥d𝑦.

Since d𝑥d𝑦=𝑟d𝑟d𝜃, we can express ∬ℛ︀𝑥d𝑥d𝑦 and ∬ℛ︀𝑦d𝑥d𝑦 as follows:

For 𝑥̅, we have:

∬ℛ︀𝑥d𝑥d𝑦=∫𝜃=0𝜋2∫𝑟=01𝑟cos𝜃⋅𝑟d𝑟d𝜃=∫𝜃=0𝜋2cos𝜃∫𝑟=01𝑟2d𝑟d𝜃.

First, integrate with respect to 𝑟:

∫𝑟=01𝑟2d𝑟=[𝑟33]𝑟=01=13.

Thus,

∬ℛ︀𝑥d𝑥d𝑦=∫𝜃=0𝜋2cos𝜃⋅13d𝜃=13∫𝜃=0𝜋2cos𝜃d𝜃.

Now, integrate with respect to 𝜃:

∫𝜃=0𝜋2cos𝜃d𝜃=[sin𝜃]𝜃=0𝜋2=sin(𝜋2)−sin(0)=1.

So,

∬ℛ︀𝑥d𝑥d𝑦=13.

Therefore,

𝑥̅=1Area(ℛ︀)∬ℛ︀𝑥d𝑥d𝑦=1𝜋4⋅13=43𝜋.

By symmetry, the calculation for 𝑦̅ will be identical, since the quarter-circle region is symmetric about the line 𝑦=𝑥:

𝑦̅=1Area(ℛ︀)∬ℛ︀𝑦d𝑥d𝑦=43𝜋.

Hence, the final answer is

(𝑥̅,𝑦̅)=(43𝜋,43𝜋).

□

§24.6 [SIDENOTE] A picture of 𝑟d𝑟d𝜃=(𝑟d𝜃)d𝑟

Here’s a bit of a pictorial explanation of why the result (𝑟d𝜃)d𝑟 makes sense. None of this is considered for exam, nor is it actually precise. But it should help with some convince you that 𝑟d𝑟d𝜃 is correct, and more generally that the Jacobian determinant is the right scaling factor.

The way that people typically draw a picture of d𝑥d𝑦 is to take some point 𝑃=(𝑥,𝑦) in the plane and imagining looking at the arrow pointing from 𝑃 to (𝑥+d𝑥,𝑦) and (𝑥,𝑦+d𝑦), where d𝑥 and d𝑦 are, loosely, “tiny displacements”. Then d𝐴 is drawn as the area of the little rectangle you get. See Figure 54, where the two little arrows are drawn in red, and one gets the shaded blue region shown.

Figure 54: d𝐴=d𝑥d𝑦, drawn as a picture with small red arrows.

In the 𝑥𝑦 picture, the point 𝑃 itself plays little role; the area of the little rectangle is always just d𝑥d𝑦, no matter what point 𝑃 you pick.

However, when you change to polar coordinates, d𝐴 does actually depend on 𝑃: or rather, it doesn’t care about 𝜃, but it cares about 𝑟. If you have polar coordinates 𝑃=(𝑟,𝜃)pol for the starting point and draw two red arrows to (𝑟+d𝑟,𝜃)pol and (𝑟,𝜃+d𝜃)pol, then the first red arrow still always has length d𝑟, but the second red arrow really has length 𝑟d𝜃 — it’s close to d𝜃 arc of a circle of radius 𝑟. You can see this in Figure 55 for two points 𝑃1=(𝑟1,𝜃1)pol, and 𝑃2=(𝑟2,𝜃2)pol. The point 𝑃1 is close to the origin, so both red arrows are small. But the point 𝑃2 farther has a longer red arrow, because the small change d𝜃 is magnified by the radius of the circle. (Some students asked me whether I should be drawing the red arrow curved or straight. The answer is that I don’t care — because we’re thinking of all the displacements as “tiny”, the difference between slightly curling the arrow and having it straight is considered negligible.)

Figure 55: Illustration of d𝐴=d𝑟(𝑟d𝜃). Note that the 𝑟d𝜃 red arrow gets larger the farther from the origin you are.

The two arrows are almost perpendicular, so the area of the “rectangle”

d𝐴≈d𝑟⋅(𝑟d𝜃)

which is what we expected.

So where does the Jacobian come in? Let’s zoom in a lot on another random point 𝑃 in polar coordinates, in Figure 56. This is similar to the last figure, but we’ve chosen a point 𝑃 for which 𝜃>0, so neither red arrow is parallel to the 𝑥-axis. The new feature is that the two red arrows now have their 𝑥 and 𝑦 coordinates written out:

Figure 56: Showing where the polar Jacobian comes from in the change of variables formula. This picture has been exaggerated with a really large d𝜃 to make it legible, but in reality you should imagine d𝜃 is really tiny instead, so that the shaded region is basically a rectangle.

Now, if we are willing to approximate d𝐴 with the parallelogram spanned by 𝐯1 and 𝐯2 — and we are willing to when d𝜃 and d𝑟 are really tiny (in contrast to this cartoon where d𝜃 has been drawn pretty big to make the picture legible) — then the approximation is given by the determinant from all the way back in Section 3.4:

d𝐴≈|det(cos𝜃d𝑟−𝑟sin𝜃d𝜃sin𝜃d𝑟𝑟cos𝜃d𝜃)|=|det(cos𝜃−𝑟sin𝜃sin𝜃𝑟cos𝜃)|d𝑟d𝜃

and there’s the Jacobian determinant we were waiting for! Ta-da.

Any change of variables can be drawn with a similar cartoon to Figure 56 to explain where the Jacobian comes from with precisely the same reasoning. To spell it out in the 2D case, suppose

𝐓(𝑢,𝑣)=(𝑝(𝑢,𝑣),𝑞(𝑢,𝑣))

is any general transition map (so the example we just did was 𝐓(𝑟,𝜃)=(𝑟cos𝜃,𝑟sin𝜃)). One draws red arrows 𝐓(𝑢,𝑣) to 𝐓(𝑢+d𝑢,𝑣) and 𝐓(𝑢,𝑣+d𝑣) for “small” changes d𝑢 and d𝑣. These vectors will correspond approximately to the two vectors

𝐯1=𝐓(𝑢+d𝑢,𝑣)−𝐓(𝑢,𝑣)≈𝜕𝜕𝑢𝐓=𝜕𝑝𝜕𝑢𝐞1+𝜕𝑞𝜕𝑢𝐞2

and

𝐯2=𝐓(𝑢,𝑣+d𝑣)−𝐓(𝑢,𝑣)≈𝜕𝜕𝑣𝐓=𝜕𝑝𝜕𝑣𝐞1+𝜕𝑞𝜕𝑣𝐞2.

which each give a row of the Jacobian matrix; then the determinant gives the area of the parallelogram spanned by 𝐯1 and 𝐯2; that coincides exactly with the (absolute value of the) Jacobian determinant.

The argument in 3D (and 𝑛 dimensions in general) is the same, where the parallelogram is replaced by a parallelepiped, etc.

§24.7 [EXER] Exercises

Exercise 24.1. Compute

∫𝑥=01∫𝑦=01−𝑥2𝑥𝑦d𝑦d𝑥.

Exercise 24.2. Compute

∬(𝑥−1)2+𝑦2≤11𝑥2+𝑦2d𝑥d𝑦.

Exercise 24.3 (*). Compute

∬𝑥2+𝑦2≤1(𝑥+35)2+(𝑦+45)2d𝑥d𝑦.