Areas and Lengths in Polar Coordinates
A curve 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 and angle has area (it is the fraction of the disc ). Now let be continuous and non-negative on with , and let be the region bounded by the curve and the rays and . Split into pieces of width and pick in each piece. The thin slice of between and is close to a sector of radius , so
The limit is an honest Riemann sum of the continuous function , so the integral exists. To make it rigorous, squeeze each slice between the sector of the smallest radius and the sector of the largest radius on its interval: the lower and upper sums and both tend to the same integral.
Note: Compare the formula with the Cartesian . In polar form the "height" is replaced by because the slices are triangles with apex at the origin, not strips standing on the -axis. See Polar Coordinates for the curves themselves.
Example: one petal of a rose
The rose has three petals. One petal is traced as runs from to (where goes ):
All three petals give , a quarter of the unit disc.
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 is traced completely by ; on it is traced a second time (for negative the point lands in the opposite direction), so the naive integral gives , twice the true . Always find the -interval that traces the region once.
Area between two polar curves
If on , the region between them is the outer fan minus the inner fan:
The hard part is the limits. Solve for the intersections, but beware: two polar curves can also meet at a point reached at different angles (very often the pole, where 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 and outside the cardioid . Setting gives , so :
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 : , with . Differentiate:
The cross terms and cancel. Plugging into the parametric formula from Calculus with Parametric Curves:
valid when is continuous and the curve is traced exactly once. For the cardioid , , so . Note the absolute value: without it the integral over is 0.
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 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 , not ).
- Polar plots in Matplotlib (
projection="polar") are used for antenna patterns, wind roses and robot lidar scans; integrating 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 , .
Answer
(it is a circle of radius 2).
Solution
is , a circle of radius 2 centred at , so agrees.
Exercise 2: A four-petal rose
Find the total area of (four petals).
Answer
.
Solution
One petal is :
For an even number of petals (), traces each petal once, so the direct integral also gives .
Exercise 3: Between two curves
Find the area inside and outside the circle .
Answer
.
Solution
gives , . The cardioid is outside the circle for .
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 for , then check numerically.
Answer
.
Solution
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 , ?
Integrating over gives , but the rose has area . Why?
- The formula needs
- SymPy rounded the result
- The curve is traced twice on
- Polar areas are always half the integral
What does the integrand of polar arc length simplify to?