---
title: Conic sections
heading: Parabolas, ellipses and hyperbolas, from dish antennas to orbits to radio location
eyebrow: A6 · Lesson 50 · Conic sections
xp: 40
---

::: hook
A satellite dish is a parabola, shaped so that every ray arriving from a distant satellite reflects to a single point where the feed sits. A satellite's orbit is an ellipse with the Earth at one focus. And a radio receiver network that knows only *when* a signal arrived at two stations knows the transmitter lies on a hyperbola. These three curves are one family, the slices of a cone, and in polar coordinates (lesson 48) a single formula draws all of them.
:::

::: play
- The curve is $r = \ell/(1 + e\cos\theta)$ with the focus at the origin. Slide the eccentricity $e$ up from 0, a circle, and the ellipse stretches away from the focus while its nearest point stays close.
- $\ell$, the semi-latus rectum, is the distance from the focus straight up to the curve. At $e = 1$ the far end runs off to infinity and the curve becomes a parabola; beyond that, a hyperbola.
:::

```sim plot
view: complex
range: 4
slider: e = 0..0.9 step 0.05 = 0.6
slider: l = 0.5..1.5 step 0.1 = 1
curve: (l/(1 + e*cos(u)))*exp(j*u) | over: u = 0..2*pi | label: r = ℓ/(1 + e cos θ)
readout: nearest point = l/(1 + e) | digits: 3
readout: farthest point = l/(1 - e) | digits: 3
```

::: predict
## A dish 1.2 m across is 0.15 m deep at its center. How far in front of the center does the feed go?

- [ ] 0.15 m, at the rim's height
- [ ] 0.3 m
- [x] 0.6 m
- [ ] 2.4 m

::: reveal
0.6 m. A parabola $y = x^2/(4f)$ has its focus a distance $f$ above the vertex. The rim is at $x$ = 0.6 m and $y$ = 0.15 m, so $0.15 = 0.36/(4f)$ and $f$ = 0.6 m: the feed sits 0.45 m beyond the plane of the rim. A deeper dish has a shorter focal length and its feed sits inside the bowl.
:::
:::

::: nameit
## One definition: focus, directrix and eccentricity

A conic is the set of points whose distance to a fixed point, the **focus**, is $e$ times their distance to a fixed line, the **directrix**. The number $e$ is the **eccentricity**:
- $e = 0$: a circle;
- $0 < e < 1$: an ellipse;
- $e = 1$: a parabola;
- $e > 1$: a hyperbola.

With the focus at the origin, that definition in polar coordinates is

$$r = \frac{\ell}{1 + e\cos\theta}$$

where $\ell$ is the distance from the focus to the curve straight across from it (at $\theta = 90°$).

## Parabola

$y = \dfrac{x^2}{4f}$, with focus $(0, f)$ and directrix $y = -f$. Every ray parallel to the axis reflects through the focus, which is why dishes, flashlight reflectors and solar furnaces are parabolic. A dish of diameter $D$ and depth $d$ has $f = D^2/(16d)$.

## Ellipse

$\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1$ with $a > b$: semi-major axis $a$, semi-minor axis $b$, foci at $(\pm c, 0)$ with $c^2 = a^2 - b^2$, and $e = c/a$. Every point has the **sum** of its distances to the two foci equal to $2a$. An orbit is an ellipse with the planet at a focus; its closest and farthest distances are $r_p = a(1 - e)$ and $r_a = a(1 + e)$, so

$$a = \frac{r_p + r_a}{2} \qquad e = \frac{r_a - r_p}{r_a + r_p} \qquad \ell = a(1 - e^2)$$

## Hyperbola

$\dfrac{x^2}{a^2} - \dfrac{y^2}{b^2} = 1$, with foci at $(\pm c, 0)$ and $c^2 = a^2 + b^2$. Every point has the **difference** of its distances to the foci equal to $\pm 2a$, and far out the branches approach the asymptotes $y = \pm(b/a)x$. That's the geometry of locating a transmitter from arrival times: two receivers at the foci measure a time difference $\Delta t$, so $2a = v\,\Delta t$, and the transmitter is somewhere on one branch.
:::

::: example
## A dish is 1.2 m across and 0.15 m deep. Find its focal length and its f/D ratio.

::: solution
1. **Place the parabola.** Put the vertex at the origin, so the rim is at $x = D/2$ = 0.6 m, $y = d$ = 0.15 m.
2. **Solve $y = x^2/(4f)$ for $f$ at the rim.**
   $$\begin{aligned} f &= \frac{(D/2)^2}{4d} \\ &= \frac{D^2}{16d} \\ &= \frac{1.44}{2.4} \\ &= 0.6\ \text{m} \end{aligned}$$
   so $f/D$ = 0.5.
3. **See why $f/D$ matters.** Dish designers quote $f/D$ because it sets the angle the feed has to illuminate: at $f/D$ = 0.5 the rim is 53° off the feed's axis, a cone a simple horn can fill.

**Answer:** the focal length is 0.6 m, and $f/D$ = 0.5.
:::
:::

::: example
## A transfer orbit's lowest point is 500 km above the Earth and its highest is 35 786 km up (the geostationary altitude). With the Earth's radius 6371 km, find $a$, $e$ and the polar equation of the orbit.

::: solution
1. **Measure from the focus.** Distances are measured from the Earth's center, the focus:
   $$\begin{aligned} r_p &= 6871\ \text{km} \\ r_a &= 42\,157\ \text{km} \end{aligned}$$
2. **Semi-major axis.**
   $$\begin{aligned} a &= \frac{6871 + 42\,157}{2} \\ &= 24\,514\ \text{km} \end{aligned}$$
3. **Eccentricity.**
   $$\begin{aligned} e &= \frac{42\,157 - 6871}{49\,028} \\ &= 0.7197 \end{aligned}$$
4. **Polar equation.**
   $$\begin{aligned} \ell &= a(1 - e^2) \\ &= 11\,816\ \text{km} \\ r &= \frac{11\,816}{1 + 0.7197\cos\theta}\ \text{km} \end{aligned}$$
5. **Check at the ends.** $\theta = 0$ should give the perigee and $\theta = 180°$ the apogee:
   $$\begin{aligned} r(0) &= \frac{11\,816}{1.7197} \\ &= 6871\ \text{km} \\ r(180°) &= \frac{11\,816}{0.2803} \\ &= 42\,157\ \text{km} \end{aligned}$$

**Answer:** $a$ = 24 514 km, $e$ = 0.7197, and the orbit is $r = \frac{11\,816}{1 + 0.7197\cos\theta}$ km.
:::
:::

::: example
## Two receivers 10 km apart pick up the same pulse, the one on the right 10 µs before the one on the left. On what curve does the transmitter lie?

::: solution
1. **Put the receivers at the foci.** They sit at $(\pm 5, 0)$ km, so $c$ = 5 km.
2. **Find $a$ from the path difference.** Radio travels at $3 \times 10^8$ m/s:
   $$\begin{aligned} 2a &= 3 \times 10^8 \times 10 \times 10^{-6} \\ &= 3\ \text{km} \end{aligned}$$
   so $a$ = 1.5 km.
3. **Find $b$.**
   $$\begin{aligned} b &= \sqrt{c^2 - a^2} \\ &= \sqrt{25 - 2.25} \\ &= 4.770\ \text{km} \end{aligned}$$
4. **Write the hyperbola.**
   $$\frac{x^2}{2.25} - \frac{y^2}{22.75} = 1 \qquad (x > 0)$$
   It's the right branch, because the right receiver heard the pulse first, so the transmitter is nearer it.
5. **Read a bearing.** Far away the branch follows its asymptote, at $\arctan(b/a)$ = 72.5° from the baseline, so a single time difference gives a bearing.
6. **Add a receiver.** A third receiver gives a second hyperbola, and the transmitter is where they cross.

**Answer:** the transmitter lies on the right branch of $\frac{x^2}{2.25} - \frac{y^2}{22.75} = 1$, in km, with the receivers at the foci.
:::
:::

::: check
given: D = 0.6 | 1.2 | 2.4 | 3.7 m; d = 0.08 | 0.12 | 0.2 m
answer: D^2/(16*d)
unit: m
tolerance: 0.5%

## A parabolic dish is {D} across and {d} deep at its center. What is its focal length?

::: right
Right. The rim sits at $x = D/2$, $y = d$ on $y = x^2/(4f)$, so $f = D^2/(16d)$ = {answer}.
:::

::: misses
- [D^2/(4*d)] That puts the rim at $x = D$. The rim is half the diameter from the axis.
- [D^2/(8*d)] Check the factor: $(D/2)^2 = D^2/4$, then divide by $4d$.
- [d] The depth is how far the vertex is below the rim; the focus is usually well beyond it.
- [any] Not yet. Put the rim's coordinates, $D/2$ and $d$, into $y = x^2/(4f)$ and solve for $f$.
:::
:::

::: check
kind: parts
given: a = 6 | 10 | 13; b = 2 | 4 | 5

## An ellipse has semi-major axis {a} and semi-minor axis {b} (in centimeters, say).

::: part
answer: sqrt(a^2 - b^2)
tolerance: 0.5%

### How far from the center is each focus?

::: misses
- [sqrt(a^2 + b^2)] That's the hyperbola's rule. For an ellipse $c^2 = a^2 - b^2$.
- [a - b] Subtract the squares, then take the square root.
- [any] Not yet. Use $c^2 = a^2 - b^2$.
:::
:::

::: part
answer: sqrt(a^2 - b^2)/a
tolerance: 0.5%

### What is its eccentricity?

::: misses
- [b/a] That's the ratio of the axes. The eccentricity is $c/a$.
- [any] Not yet. Divide the focal distance by the semi-major axis.
:::
:::

::: right
Right. The nearer $b$ is to $a$, the closer the foci sit to the center and the rounder the ellipse.
:::
:::

::: check
kind: parts
given: hp = 300 | 500 | 1000; ha = 20000 | 35786 | 40000

## A satellite's orbit comes within {hp} km of the Earth's surface and reaches {ha} km at its highest. Take the Earth's radius as 6371 km.

::: part
answer: (2*6371 + hp + ha)/2
unit: km
tolerance: 0.2%

### What is the semi-major axis, in km?

::: misses
- [(hp + ha)/2] Those are altitudes. Measure from the Earth's center, the focus, by adding its radius to each.
- [any] Not yet. Add 6371 km to each altitude, then average them.
:::
:::

::: part
answer: (ha - hp)/(2*6371 + hp + ha)
tolerance: 0.2%

### What is the eccentricity?

::: misses
- [(ha - hp)/(hp + ha)] Use distances from the Earth's center, not altitudes, in $e = (r_a - r_p)/(r_a + r_p)$.
- [any] Not yet. Use $e = (r_a - r_p)/(r_a + r_p)$ with distances from the center.
:::
:::

::: right
Right. The radius cancels in the difference but not in the sum, so the altitudes alone can't give the eccentricity.
:::
:::

::: check
given: l = 1 | 2 | 5; e = 0.3 | 0.6 | 1 | 1.5; th = 30 | 60 | 120 °; let den = 1 + e*cos(th°)
answer: l/(1 + e*cos(th°))
tolerance: 0.5%

## A conic is $r = \given{l}/(1 + \given{e}\cos\theta)$. How far from the focus is it at $\theta$ = {th}?

::: right
Right. $\cos$ {th} makes the denominator {den}, so $r$ = {answer}.
:::

::: misses
- [l/(1 - e*cos(th°))] Check the sign: the formula has $1 + e\cos\theta$.
- [l*(1 + e*cos(th°))] Divide by $1 + e\cos\theta$ rather than multiplying.
- [any] Not yet. Evaluate $1 + e\cos\theta$ and divide $\ell$ by it.
:::
:::

::: check
kind: parts
given: base = 4 | 10 | 20; dt = 2 | 5 | 10

## Two receivers {base} km apart hear the same radio pulse {dt} µs apart (radio travels $3 \times 10^8$ m/s). The transmitter lies on a hyperbola with the receivers at its foci.

::: part
answer: 3e8*dt*1e-6/2/1000
unit: km
tolerance: 0.5%

### What is its $a$, in km?

::: misses
- [3e8*dt*1e-6/1000] That's $2a$, the full path difference. Halve it.
- [any] Not yet. The path difference $v\,\Delta t$ equals $2a$.
:::
:::

::: part
answer: sqrt((base/2)^2 - (3e8*dt*1e-6/2/1000)^2)
unit: km
tolerance: 0.5%

### What is its $b$, in km?

::: misses
- [sqrt(base^2 - (3e8*dt*1e-6/2/1000)^2)] $c$ is half the distance between the receivers.
- [any] Not yet. Use $b^2 = c^2 - a^2$ with $c$ half the baseline.
:::
:::

::: right
Right. A larger time difference means a larger $a$, a branch bent more tightly around the receiver that heard first.
:::
:::

::: check
kind: choice

## What curve is $4x^2 - 9y^2 = 36$?

- [x] A hyperbola
- [ ] An ellipse
- [ ] A parabola
- [ ] A circle

::: right
Right. Dividing by 36 gives $x^2/9 - y^2/4 = 1$: squared terms with opposite signs, a hyperbola with $a$ = 3 and $b$ = 2.
:::

::: misses
- [2] An ellipse needs both squared terms with the same sign.
- [3] A parabola has only one variable squared.
- [4] A circle has both squares with equal coefficients and the same sign.
:::
:::

::: check
kind: derivation
vars: f = 0.5..3, x = -3..3, y = 0..3

## Derive the parabola's equation from its definition: the points equally far from the focus $(0, f)$ and the directrix $y = -f$.

::: step
answer: sqrt(x^2 + (y - f)^2)

### What is the distance from $(x, y)$ to the focus?
:::

::: step
answer: y + f

### What is the distance from $(x, y)$ to the directrix, for a point above it?
:::

::: step
answer: x^2/(4*f)

### Set them equal, square both sides and solve for $y$.
:::

::: right
Right. Squaring gives $x^2 + y^2 - 2fy + f^2 = y^2 + 2fy + f^2$, the $y^2$ and $f^2$ cancel, and $x^2 = 4fy$.
:::
:::

::: check
kind: python
given: f = 0.3 | 0.6 | 1.2; fd = 0.35 | 0.5 | 0.8

## A ray coming straight down from the plane $y = H$ (take $H = 2f$) hits a reflector at height $y(x)$, then travels to the point $(0, f)$. Its path length is $H - y(x) + \sqrt{x^2 + (y(x) - f)^2}$. For a dish of focal length `f` = {f} m and diameter $D = f/\text{fd}$ with `fd` = {fd}, compute the path length at 201 points from $x = -D/2$ to $D/2$, first for the parabola $y = x^2/(4f)$ (set `spread` to the largest minus the smallest path) and then for a sphere of radius $2f$, $y = 2f - \sqrt{4f^2 - x^2}$ (set `spread_sphere`).

```python starter
import numpy as np
D = f / fd
x = np.linspace(-D / 2, D / 2, 201)
spread = 0
spread_sphere = 0
print(spread, spread_sphere)
```

```python solution
import numpy as np
D = f / fd
H = 2 * f
x = np.linspace(-D / 2, D / 2, 201)
def paths(y):
    return H - y + np.sqrt(x**2 + (y - f)**2)
p = paths(x**2 / (4 * f))
spread = p.max() - p.min()
q = paths(2 * f - np.sqrt(4 * f**2 - x**2))
spread_sphere = q.max() - q.min()
print(spread, spread_sphere)
```

```python tests
import numpy as np
D = f / fd; H = 2 * f; xx = np.linspace(-D / 2, D / 2, 201)
pp = H - xx**2 / (4 * f) + np.sqrt(xx**2 + (xx**2 / (4 * f) - f)**2)
ys = 2 * f - np.sqrt(4 * f**2 - xx**2)
qq = H - ys + np.sqrt(xx**2 + (ys - f)**2)
assert spread < 1e-12 * f, f"Every path off the parabola should be the same length, {H + f:g} m, to rounding error; your spread is {spread:.3g} m."
assert abs(spread_sphere - (qq.max() - qq.min())) < 1e-12 * f, f"The sphere's paths spread by {qq.max() - qq.min():.4g} m."
```

::: right
Right. Off the parabola every path is exactly $H + f$, which is why a dish focuses perfectly; off the sphere the paths from the rim are shorter, by more as the dish gets deeper (smaller $f/D$). At microwave wavelengths a spread of even a tenth of a wavelength costs gain.
:::
:::

::: explain
## Why does a parabolic dish bring every incoming ray to one point, while a spherical dish doesn't?

::: model
A parabola is the set of points equally far from the focus and the directrix. A ray arriving parallel to the axis travels from a plane wavefront to the dish and then to the focus, and for every point on the parabola that total path is the same, because the distance to the focus equals the distance to the directrix. Equal paths mean the reflections all arrive at the focus in step and add up. A sphere's points are equally far from its center instead, so parallel rays striking it at different heights reflect to different points along the axis, which smears the focus. That's spherical aberration.
:::
:::

::: practice

::: check
given: rp = 6800 | 7000 | 8000; ra = 12000 | 20000 | 42000
answer: (ra - rp)/(ra + rp)
tolerance: 0.5%

## An orbit's closest and farthest distances from the planet's center are {rp} km and {ra} km. What is its eccentricity?

::: misses
- [(ra - rp)/ra] Divide by the sum of the two distances, which is $2a$.
- [any] Use $e = (r_a - r_p)/(r_a + r_p)$.
:::
:::

::: check
given: f = 0.25 | 0.5 | 1.5 m; x = 0.3 | 0.6 | 1.0 m
answer: x^2/(4*f)
unit: m
tolerance: 0.5%

## A parabolic reflector has focal length {f}. How high is its surface above the vertex at {x} from the axis?

::: misses
- [x^2/f] Use $y = x^2/(4f)$.
- [any] Use $y = x^2/(4f)$.
:::
:::
:::
