TExcelTAD
Home › Calculus in Depth › Areas and Lengths in Polar Coordinates

Areas and Lengths in Polar Coordinates

A curve r=f(θ)r = f(\theta) sweeps out area like a fan, not like a stack of vertical strips. This lesson derives the polar area formula from circular sectors, uses it for regions between two polar curves, and turns the parametric arc-length formula into its polar form.

Area: sectors instead of rectangles

A circular sector of radius rr and angle Δθ\Delta\theta has area 12r2Δθ\frac{1}{2}r^2\Delta\theta (it is the fraction Δθ/(2π)\Delta\theta/(2\pi) of the disc πr2\pi r^2). Now let r=f(θ)r = f(\theta) be continuous and non-negative on [a,b][a, b] with b−a≤2πb - a \le 2\pi, and let RR be the region bounded by the curve and the rays θ=a\theta = a and θ=b\theta = b. Split [a,b][a, b] into nn pieces of width Δθ\Delta\theta and pick θi∗\theta_i^* in each piece. The thin slice of RR between θi−1\theta_{i-1} and θi\theta_i is close to a sector of radius f(θi∗)f(\theta_i^*), so

A≈∑12f(θi∗)2 Δθ→A=∫ab12r2 dθ=∫ab12f(θ)2 dθA \approx \sum \tfrac{1}{2} f(\theta_i^*)^2\,\Delta\theta \quad\to\quad A = \int_a^b \tfrac{1}{2} r^2\,d\theta = \int_a^b \tfrac{1}{2} f(\theta)^2\,d\theta

The limit is an honest Riemann sum of the continuous function 12f2\frac{1}{2}f^2, so the integral exists. To make it rigorous, squeeze each slice between the sector of the smallest radius mim_i and the sector of the largest radius MiM_i on its interval: the lower and upper sums ∑12mi2Δθ\sum \frac{1}{2}m_i^2\Delta\theta and ∑12Mi2Δθ\sum \frac{1}{2}M_i^2\Delta\theta both tend to the same integral.

Note: Compare the formula with the Cartesian ∫y dx\int y\,dx. In polar form the "height" is replaced by 12r2\frac{1}{2}r^2 because the slices are triangles with apex at the origin, not strips standing on the xx-axis. See Polar Coordinates for the curves themselves.

Example: one petal of a rose

The rose r=cos⁡3θr = \cos 3\theta has three petals. One petal is traced as θ\theta runs from −π/6-\pi/6 to π/6\pi/6 (where cos⁡3θ\cos 3\theta goes 0→1→00 \to 1 \to 0):

A=∫−π/6π/612cos⁡23θ dθ=12∫12(1+cos⁡6θ) dθ=14[θ+sin⁡6θ6]−π/6π/6=14⋅π3=π12A = \int_{-\pi/6}^{\pi/6} \tfrac{1}{2}\cos^2 3\theta\,d\theta = \tfrac{1}{2}\int \tfrac{1}{2}(1 + \cos 6\theta)\,d\theta = \tfrac{1}{4}\left[\theta + \frac{\sin 6\theta}{6}\right]_{-\pi/6}^{\pi/6} = \tfrac{1}{4} \cdot \frac{\pi}{3} = \frac{\pi}{12}

All three petals give π/4\pi/4, a quarter of the unit disc.

python · try it yourself
import sympy as sp

t = sp.symbols("theta")
petal = sp.integrate(sp.cos(3*t)**2 / 2, (t, -sp.pi/6, sp.pi/6))
print("one petal of r = cos 3θ:", petal)
cardioid = sp.integrate((1 + sp.cos(t))**2 / 2, (t, 0, 2*sp.pi))
print("cardioid r = 1 + cos θ :", cardioid)
# a trap: integrating over 0..2π counts each petal twice for r = cos 3θ
print("naive 0..2π for the rose:", sp.integrate(sp.cos(3*t)**2 / 2, (t, 0, 2*sp.pi)))
one petal of r = cos 3θ: pi/12
cardioid r = 1 + cos θ : 3*pi/2
naive 0..2π for the rose: pi/2

The last line is a classic mistake. The rose r=cos⁡3θr = \cos 3\theta is traced completely by θ∈[0,π]\theta \in [0, \pi]; on [π,2π][\pi, 2\pi] it is traced a second time (for negative rr the point lands in the opposite direction), so the naive integral gives π/2\pi/2, twice the true π/4\pi/4. Always find the θ\theta-interval that traces the region once.

Area between two polar curves

If 0≤g(θ)≤f(θ)0 \le g(\theta) \le f(\theta) on [a,b][a, b], the region between them is the outer fan minus the inner fan:

A=∫ab12(f(θ)2−g(θ)2)dθA = \int_a^b \tfrac{1}{2}\left(f(\theta)^2 - g(\theta)^2\right)d\theta

The hard part is the limits. Solve f(θ)=g(θ)f(\theta) = g(\theta) for the intersections, but beware: two polar curves can also meet at a point reached at different angles (very often the pole, where r=0r = 0 on one curve at one angle and on the other at another). Sketch the curves or plot them before trusting the algebra.

Take the region inside the circle r=3cos⁡θr = 3\cos\theta and outside the cardioid r=1+cos⁡θr = 1 + \cos\theta. Setting 3cos⁡θ=1+cos⁡θ3\cos\theta = 1 + \cos\theta gives cos⁡θ=12\cos\theta = \frac{1}{2}, so θ=±π/3\theta = \pm\pi/3:

A=∫−π/3π/312[9cos⁡2θ−(1+cos⁡θ)2]dθ=πA = \int_{-\pi/3}^{\pi/3} \tfrac{1}{2}\left[9\cos^2\theta - (1 + \cos\theta)^2\right]d\theta = \pi
python · try it yourself
import numpy as np
import matplotlib.pyplot as plt
import sympy as sp

t = sp.symbols("theta")
A = sp.integrate(((3*sp.cos(t))**2 - (1 + sp.cos(t))**2) / 2, (t, -sp.pi/3, sp.pi/3))
print("area inside r = 3cos θ, outside r = 1 + cos θ:", sp.simplify(A))

th = np.linspace(0, 2*np.pi, 400)
fig = plt.figure(figsize=(5, 5))
ax = fig.add_subplot(projection="polar")
ax.plot(th, 3*np.cos(th), label="r = 3 cos θ")
ax.plot(th, 1 + np.cos(th), label="r = 1 + cos θ")
band = np.linspace(-np.pi/3, np.pi/3, 200)
ax.fill_between(band, 1 + np.cos(band), 3*np.cos(band), alpha=0.3)
ax.legend(loc="lower left")
print("plotted the circle, the cardioid and the region between them")
area inside r = 3cos θ, outside r = 1 + cos θ: pi
plotted the circle, the cardioid and the region between them

Arc length in polar form

A polar curve is a parametric curve with parameter θ\theta: x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta with r=f(θ)r = f(\theta). Differentiate:

dxdθ=r′cos⁡θ−rsin⁡θdydθ=r′sin⁡θ+rcos⁡θ(dxdθ)2+(dydθ)2=r′2(cos⁡2θ+sin⁡2θ)+r2(sin⁡2θ+cos⁡2θ)=r2+r′2\begin{aligned} \frac{dx}{d\theta} &= r'\cos\theta - r\sin\theta \\ \frac{dy}{d\theta} &= r'\sin\theta + r\cos\theta \\ \left(\frac{dx}{d\theta}\right)^2 + \left(\frac{dy}{d\theta}\right)^2 &= r'^2(\cos^2\theta + \sin^2\theta) + r^2(\sin^2\theta + \cos^2\theta) = r^2 + r'^2 \end{aligned}

The cross terms −2rr′sin⁡θcos⁡θ-2rr'\sin\theta\cos\theta and +2rr′sin⁡θcos⁡θ+2rr'\sin\theta\cos\theta cancel. Plugging into the parametric formula from Calculus with Parametric Curves:

L=∫abr2+(drdθ)2 dθL = \int_a^b \sqrt{r^2 + \left(\frac{dr}{d\theta}\right)^2}\,d\theta

valid when f′f' is continuous and the curve is traced exactly once. For the cardioid r=1+cos⁡θr = 1 + \cos\theta, r2+r′2=2+2cos⁡θ=4cos⁡2(θ/2)r^2 + r'^2 = 2 + 2\cos\theta = 4\cos^2(\theta/2), so L=∫02π2∣cos⁡(θ/2)∣ dθ=8L = \int_0^{2\pi} 2\lvert \cos(\theta/2) \rvert\,d\theta = 8. Note the absolute value: without it the integral over [0,2π][0, 2\pi] is 0.

python · try it yourself
import numpy as np
from scipy.integrate import quad

def polar_length(f, df, a, b):
    val, _ = quad(lambda t: np.sqrt(f(t)**2 + df(t)**2), a, b)
    return val

card = polar_length(lambda t: 1 + np.cos(t), lambda t: -np.sin(t), 0, 2*np.pi)
print(f"cardioid length  : {card:.10f}")
spiral = polar_length(lambda t: t, lambda t: 1.0, 0, 2*np.pi)
print(f"spiral r=θ, 1 turn: {spiral:.6f}")
cardioid length  : 8.0000000000
spiral r=θ, 1 turn: 21.256294

Most polar lengths, like the Archimedean spiral above, have no tidy closed form, so numerical quadrature is the normal tool.

In software

  • Radar and sector hit tests: a vision cone or a pie-chart wedge is a polar region; its area 12r2Δθ\frac{1}{2}r^2\Delta\theta is what you use for coverage or "fraction of the arena visible" metrics.
  • Spiral and rose paths for particle emitters or bullet patterns: the polar arc-length integral tells you how long the path is, so you can space particles evenly or move at constant speed (sample ss, not θ\theta).
  • Polar plots in Matplotlib (projection="polar") are used for antenna patterns, wind roses and robot lidar scans; integrating 12r2\frac{1}{2}r^2 over a scan gives the free area around the robot.

Exercises

Exercise 1: Inside a circle

Use the polar area formula to find the area enclosed by r=4sin⁡θr = 4\sin\theta, θ∈[0,π]\theta \in [0, \pi].

Answer

4π4\pi (it is a circle of radius 2).

Solution
A=∫0π12⋅16sin⁡2θ dθ=8∫0π12(1−cos⁡2θ) dθ=4[θ−sin⁡2θ2]0π=4πA = \int_0^\pi \tfrac{1}{2} \cdot 16\sin^2\theta\,d\theta = 8\int_0^\pi \tfrac{1}{2}(1 - \cos 2\theta)\,d\theta = 4\left[\theta - \frac{\sin 2\theta}{2}\right]_0^\pi = 4\pi

r=4sin⁡θr = 4\sin\theta is x2+y2=4yx^2 + y^2 = 4y, a circle of radius 2 centred at (0,2)(0, 2), so π⋅22=4π\pi \cdot 2^2 = 4\pi agrees.

Exercise 2: A four-petal rose

Find the total area of r=2sin⁡2θr = 2\sin 2\theta (four petals).

Answer

2π2\pi.

Solution

One petal is θ∈[0,π/2]\theta \in [0, \pi/2]:

Apetal=∫0π/212⋅4sin⁡22θ dθ=∫0π/2(1−cos⁡4θ) dθ=π2total=4⋅π2=2π\begin{aligned} A_{\text{petal}} &= \int_0^{\pi/2} \tfrac{1}{2} \cdot 4\sin^2 2\theta\,d\theta = \int_0^{\pi/2} (1 - \cos 4\theta)\,d\theta = \frac{\pi}{2} \\ \text{total} &= 4 \cdot \frac{\pi}{2} = 2\pi \end{aligned}

For an even number of petals (r=sin⁡2θr = \sin 2\theta), θ∈[0,2π]\theta \in [0, 2\pi] traces each petal once, so the direct integral also gives 2π2\pi.

Exercise 3: Between two curves

Find the area inside r=1+cos⁡θr = 1 + \cos\theta and outside the circle r=1r = 1.

Answer

2+π/4≈2.78542 + \pi/4 \approx 2.7854.

Solution

1+cos⁡θ=11 + \cos\theta = 1 gives cos⁡θ=0\cos\theta = 0, θ=±π/2\theta = \pm\pi/2. The cardioid is outside the circle for ∣θ∣<π/2\lvert \theta \rvert < \pi/2.

A=∫−π/2π/212[(1+cos⁡θ)2−1]dθ=∫−π/2π/2(cos⁡θ+12cos⁡2θ)dθ=2+π4A = \int_{-\pi/2}^{\pi/2} \tfrac{1}{2}\left[(1 + \cos\theta)^2 - 1\right]d\theta = \int_{-\pi/2}^{\pi/2} \left(\cos\theta + \tfrac{1}{2}\cos^2\theta\right)d\theta = 2 + \frac{\pi}{4}
python · try it yourself
import sympy as sp

t = sp.symbols("theta")
A = sp.integrate(((1 + sp.cos(t))**2 - 1) / 2, (t, -sp.pi/2, sp.pi/2))
print(A, float(A))
pi/4 + 2 2.7853981633974483

Exercise 4: Length of a spiral

Compute the exact length of the exponential spiral r=eθr = e^\theta for θ∈[0,1]\theta \in [0, 1], then check numerically.

Answer

2(e−1)≈2.4300\sqrt{2}(e - 1) \approx 2.4300.

Solution
r2+r′2=e2θ+e2θ=2e2θ,⋅=2 eθL=2∫01eθ dθ=2(e−1)\begin{aligned} r^2 + r'^2 &= e^{2\theta} + e^{2\theta} = 2e^{2\theta}, \qquad \sqrt{\cdot} = \sqrt{2}\,e^\theta \\ L &= \sqrt{2}\int_0^1 e^\theta\,d\theta = \sqrt{2}(e - 1) \end{aligned}
python · try it yourself
import math
from scipy.integrate import quad

val, _ = quad(lambda t: math.sqrt(2) * math.exp(t), 0, 1)
print(round(val, 6), round(math.sqrt(2) * (math.e - 1), 6))
2.430017 2.430017

Test yourself

Which integral gives the area enclosed by a polar curve r=f(θ)r = f(\theta), a≤θ≤ba \le \theta \le b?

  1. ∫f(θ) dθ\int f(\theta)\,d\theta
  2. ∫12f(θ)2 dθ\int \frac{1}{2} f(\theta)^2\,d\theta
  3. ∫f2+f′2 dθ\int \sqrt{f^2 + f'^2}\,d\theta
  4. ∫πf(θ)2 dθ\int \pi f(\theta)^2\,d\theta

Integrating 12cos⁡23θ\frac{1}{2}\cos^2 3\theta over [0,2π][0, 2\pi] gives π/2\pi/2, but the rose r=cos⁡3θr = \cos 3\theta has area π/4\pi/4. Why?

  1. The formula needs r≥1r \ge 1
  2. SymPy rounded the result
  3. The curve is traced twice on [0,2π][0, 2\pi]
  4. Polar areas are always half the integral

What does the integrand of polar arc length simplify to?

  1. r2+r′2\sqrt{r^2 + r'^2}
  2. 1+r′2\sqrt{1 + r'^2}
  3. r⋅r′r \cdot r'
  4. r2−r′2\sqrt{r^2 - r'^2}