---
title: Area and length in polar coordinates
heading: Slicing by angle
eyebrow: A6 · Lesson 49 · Polar area and length
xp: 40
---

::: hook
How much of a cardioid microphone's pickup comes from the front half? Where does a directional antenna put most of its reach? Questions like these are about the area inside a polar curve, and the natural way to cut that area up is by angle, into thin pie slices rather than vertical strips. Each slice is nearly a sector of a circle, and adding the sectors gives a new integral. Arc length works the same way.
:::

::: play
- The cardioid is $r = a(1 + \cos\theta)$ and the circle is $r = c$. They cross where $a(1 + \cos\theta) = c$.
- The readouts give the area inside the cardioid, the area inside the circle, and the area inside the cardioid but outside the circle.
- Make the circle as large as the cardioid's front tip. What happens to the last area?
:::
:::

```sim plot
view: complex
range: 2.5
slider: a = 0.5..2 step 0.1 = 1
slider: c = 0.2..2 step 0.1 = 1
curve: a*(1 + cos(u))*exp(j*u) | over: u = 0..2*pi | label: cardioid
curve: c*exp(j*u) | over: u = 0..2*pi | label: circle | color: ch3
readout: area of cardioid = 1.5*pi*a^2 | digits: 4
readout: area of circle = pi*c^2 | digits: 4
readout: cardioid outside circle = a^2*(1.5*acos((c/a - abs(c/a - 2))/2) + 2*sin(acos((c/a - abs(c/a - 2))/2)) + 0.25*sin(2*acos((c/a - abs(c/a - 2))/2))) - c^2*acos((c/a - abs(c/a - 2))/2) | digits: 4
```

::: predict
## A cardioid $r = 1 + \cos\theta$ has total area $\frac{3\pi}{2} \approx 4.71$. Roughly what share of it lies in the front half ($-90° < \theta < 90°$)?

- [ ] 50%
- [ ] 67%
- [x] 92%
- [ ] 100%

::: reveal
About 92%. The front half has area $\frac{1}{2}\int_{-\pi/2}^{\pi/2}(1 + \cos\theta)^2d\theta = 2 + \frac{3\pi}{4} = 4.36$ of the 4.71. The back half is the small dimple. That lopsided split is what makes the cardioid useful on a stage.
:::
:::

::: nameit
## Area

A thin slice between angles $\theta$ and $\theta + d\theta$ is nearly a circular sector of radius $r$, with area $\frac{1}{2}r^2d\theta$. Adding the slices:

$$A = \frac{1}{2}\int_\alpha^\beta r^2\,d\theta$$

Two cautions: choose limits that trace the region exactly once (the circle $r = 2a\cos\theta$ is traced once as $\theta$ runs from $-90°$ to $90°$, and twice over a full turn), and remember that $r^2$ hides the sign of $r$, so a region where $r < 0$ is counted as if it were reflected.

## Area between two curves

Between an outer curve $r_o$ and an inner curve $r_i$, over the angles where $r_o \ge r_i$:

$$A = \frac{1}{2}\int_\alpha^\beta\left(r_o^2 - r_i^2\right)d\theta$$

Find the limits by solving $r_o = r_i$, the crossing points. As with washers, square each radius first, then subtract.

## Arc length

From the parametric form $x = r\cos\theta$, $y = r\sin\theta$, the derivatives combine neatly:

$$L = \int_\alpha^\beta\sqrt{r^2 + \left(\frac{dr}{d\theta}\right)^2}\,d\theta$$

For a circle, $r' = 0$ and $L = r(\beta - \alpha)$, the familiar arc length.
:::

::: example
## Find the area inside the cardioid $r = 1 + \cos\theta$ and outside the circle $r = 1$.

::: solution
1. **Find the crossings.** They cross where $\cos\theta = 0$, at $\theta = \pm 90°$; the cardioid is outside between those.
2. **Set up the area.**
   $$\begin{aligned} A &= \frac{1}{2}\int_{-\pi/2}^{\pi/2}\left[(1 + \cos\theta)^2 - 1\right]d\theta \\ &= \frac{1}{2}\int_{-\pi/2}^{\pi/2}\left(2\cos\theta + \cos^2\theta\right)d\theta \end{aligned}$$
3. **Integrate.** Use $\cos^2\theta = \frac{1}{2}(1 + \cos 2\theta)$:
   $$\begin{aligned} A &= \frac{1}{2}\left(4 + \frac{\pi}{2}\right) \\ &= 2 + \frac{\pi}{4} \\ &= 2.785 \end{aligned}$$

**Answer:** the area is $2 + \frac{\pi}{4} = 2.785$.
:::
:::

::: example
## Find the length of the cardioid $r = a(1 + \cos\theta)$.

::: solution
1. **Find $r^2 + r'^2$.** With $r' = -a\sin\theta$:
   $$\begin{aligned} r^2 + r'^2 &= a^2(1 + 2\cos\theta \\ &\qquad + \cos^2\theta + \sin^2\theta) \\ &= 2a^2(1 + \cos\theta) \\ &= 4a^2\cos^2\frac{\theta}{2} \end{aligned}$$
2. **Integrate.**
   $$\begin{aligned} L &= \int_0^{2\pi}2a\left|\cos\frac{\theta}{2}\right|d\theta \\ &= 4a\int_0^{\pi}\cos\frac{\theta}{2}\,d\theta \\ &= 8a \end{aligned}$$
3. **Notice the result.** It's a curve with a cusp, and still a whole number of $a$'s around.

**Answer:** the cardioid is $8a$ long.
:::
:::

::: example
## Find the area of one petal of $r = \cos 3\theta$.

::: solution
1. **Find the petal's limits.** One petal runs from $\theta = -\pi/6$ to $\pi/6$, where $r = 0$.
2. **Integrate.**
   $$\begin{aligned} A &= \frac12\int_{-\pi/6}^{\pi/6}\cos^2 3\theta\,d\theta \\ &= \frac12\cdot\frac{\pi}{6} \\ &= \frac{\pi}{12} \\ &= 0.262 \end{aligned}$$
3. **Add up all three.** The three petals together cover $\pi/4$, a quarter of the unit disk.

**Answer:** one petal has area $\frac{\pi}{12} = 0.262$.
:::
:::

::: check
given: a = 1 | 2 | 3
answer: pi*a^2/2
tolerance: 0.5%

## What is the total area inside all four petals of the rose $r = \given{a}\cos 2\theta$?

::: right
Right. $\frac{1}{2}\int_0^{2\pi}a^2\cos^22\theta\,d\theta = \frac{\pi a^2}{2}$ = {answer}.
:::

::: misses
- [pi*a^2] $\cos^2 2\theta$ averages to a half over a full turn.
- [pi*a^2/8] That's one petal. There are four.
- [any] Not yet. $\frac{1}{2}\int_0^{2\pi}r^2d\theta$ with $r^2 = a^2\cos^22\theta$.
:::
:::

::: check
given: a = 1 | 1.5 | 2; let a2 = 2*a
answer: pi*a^2
tolerance: 0.5%

## What is the area inside the circle $r = \given{a2}\cos\theta$?

::: right
Right. It's a circle of radius {a}, traced once for $\theta$ from $-90°$ to $90°$: $\pi a^2$ = {answer}.
:::

::: misses
- [2*pi*a^2] Integrating over a full turn traces the circle twice. Use $-90°$ to $90°$.
- [4*pi*a^2] {a2} is the diameter, not the radius.
- [any] Not yet. $\frac{1}{2}\int_{-\pi/2}^{\pi/2}(2a\cos\theta)^2d\theta$.
:::
:::

::: check
given: a = 1 | 2 | 3
answer: a^2*(2 + pi/4)
tolerance: 0.5%

## What is the area inside the cardioid $r = \given{a}(1 + \cos\theta)$ and outside the circle $r = \given{a}$?

::: right
Right. The same steps as the worked example, scaled by $a^2$: {answer}.
:::

::: misses
- [a^2*(2 - pi/4)] Check the integral of $\cos^2\theta$ over $[-\frac{\pi}{2}, \frac{\pi}{2}]$: it's $+\frac{\pi}{2}$.
- [a^2*1.5*pi - pi*a^2] That subtracts the whole circle, but part of the circle sticks out behind the cardioid.
- [any] Not yet. The curves cross at $\pm 90°$; integrate $\frac{1}{2}(r_o^2 - r_i^2)$ between them.
:::
:::

::: check
given: a = 1 | 2 | 5
answer: 8*a

## What is the length of the cardioid $r = \given{a}(1 + \cos\theta)$?

::: right
Right. $8a$ = {answer}.
:::

::: misses
- [2*pi*a] That's a circle of radius $a$. The cardioid reaches out to $2a$.
- [4*a] That's half of it: integrate over the full turn.
- [any] Not yet. $\sqrt{r^2 + r'^2} = 2a|\cos\frac{\theta}{2}|$.
:::
:::

::: check
given: c = 1 | 2; T = 3 | 6
answer: c*0.5*(T*sqrt(T^2 + 1) + ln(T + sqrt(T^2 + 1)))
tolerance: 0.5%

## What is the length of the spiral $r = \given{c}\theta$ from $\theta = 0$ to $\theta = \given{T}$? (Use $\int\sqrt{\theta^2 + 1}\,d\theta = \frac{1}{2}\left[\theta\sqrt{\theta^2 + 1} + \ln(\theta + \sqrt{\theta^2 + 1})\right]$.)

::: right
Right. $\sqrt{r^2 + r'^2} = c\sqrt{\theta^2 + 1}$, which integrates to {answer}.
:::

::: misses
- [c*T^2/2] That ignores the outward motion: $r' = c$ adds to the length.
- [any] Not yet. $r = c\theta$, $r' = c$.
:::
:::

::: check
given: b = 0.2 | 0.3 | 0.5 | 0.7 | 0.8 | 1
answer: 100*(pi + 4*b + b^2*pi/2)/(2*pi + b^2*pi)
tolerance: 0.5%

## What percent of the area inside $r = 1 + \given{b}\cos\theta$ lies in the front half, $-90° < \theta < 90°$?

::: right
Right. Front: $\frac{1}{2}(\pi + 4b + \frac{\pi b^2}{2})$. Total: $\pi + \frac{\pi b^2}{2}$. Share: {answer}%.
:::

::: misses
- [50] The front lobe is bigger than the back.
- [any] Not yet. Integrate $\frac{1}{2}r^2$ over the front half and over the full turn.
:::
:::

::: check
kind: parts
given: n = 2 | 3 | 5

## The rose $r = \cos \given{n}\theta$.

::: part
answer: pi/(4*n)
tolerance: 0.5%

### What is the area of one petal?

::: misses
- [pi/(2*n)] Remember the ½ in $\frac12\int r^2\,d\theta$.
- [any] One petal spans $\theta$ from $-\frac{\pi}{2n}$ to $\frac{\pi}{2n}$.
:::
:::

::: part
answer: pi/4*(2 - (n - 2*floor(n/2)))
tolerance: 0.5%

### What is the total area of all the petals? (Odd $n$ gives $n$ petals; even $n$ gives $2n$.)

::: misses
- [any] Petal area times the number of petals.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..3

## Find the area inside the circle $r = a$.

::: step
answer: a^2/2

### The area element is $\frac12r^2\,d\theta$. What is it for $r = a$?
:::

::: step
answer: pi*a^2

### Integrate over a full turn.
:::

::: right
Right. $\frac12\int_0^{2\pi}a^2\,d\theta = \pi a^2$: the polar area formula checks out on the simplest shape.
:::
:::

::: explain
## Why is the area of a thin polar slice $\frac{1}{2}r^2d\theta$ rather than $r\,d\theta$?

::: model
A thin slice between two nearby directions is almost a sector of a circle of radius $r$, a narrow wedge from the origin out to the curve. A sector with angle $d\theta$ is the fraction $\frac{d\theta}{2\pi}$ of a full circle of area $\pi r^2$, so its area is $\frac{1}{2}r^2d\theta$. The quantity $r\,d\theta$ is the length of the wedge's outer edge, not its area; the wedge is narrow near the origin and wide at the curve, which is where the half comes from.
:::
:::

::: practice

::: check
given: c = 1..12 int
answer: pi*c^2
tolerance: 0.5%

## Use $\frac{1}{2}\int_0^{2\pi}r^2d\theta$ to find the area inside $r = \given{c}$.

::: misses
- [2*pi*c^2] Include the half.
- [any] $\frac{1}{2} \times c^2 \times 2\pi$.
:::
:::

::: check
given: a = 1..9 int
answer: 1.5*pi*a^2
tolerance: 0.5%

## What is the area inside the cardioid $r = \given{a}(1 + \cos\theta)$?

::: misses
- [pi*a^2] Expand $(1 + \cos\theta)^2$: the $\cos^2$ term adds $\frac{\pi}{2}a^2$.
- [any] $\frac{1}{2}\int_0^{2\pi}a^2(1 + \cos\theta)^2d\theta$.
:::
:::

::: check
given: c = 2 | 4; t = 60 | 90
answer: c*t*pi/180
tolerance: 0.5%

## What is the length of the circle $r = \given{c}$ from $\theta = 0$ to {t}°?

::: misses
- [c*t] Convert the angle to radians.
- [any] $r(\beta - \alpha)$ in radians.
:::
:::
:::
