The idea: one focus, one line, one ratio

Fix a point F (the focus) and a line (the directrix), p away from F. Pick a number e ≥ 0, the eccentricity. The points P whose distance to F is e times their distance to the line form a curve, and that curve is always a conic:

|PF| = e · |PD|        (D = the nearest point of the directrix)

e alone decides which conic: a circle, an ellipse, a parabola or a hyperbola. Put F at the origin and the rule becomes one short polar equation, which the page draws:

Five curves around one focus at the origin, all with ℓ = 2: the circle e = 0, the ellipse e = 0.5, the parabola e = 1, the near branch of the hyperbola e = 1.5, and the hyperbola e = 3; all pass through the two points (0, 2) and (0, −2)
Same focus, same ℓ = 2, five values of e: every curve passes through (0, ±ℓ), and only e changes the shape.
r = ep / (1 + e cos(θ − θ₀))  =  ℓ / (1 + e cos(θ − θ₀)),      ℓ = e·p
numberwhat it does
ethe eccentricity: the shape. 0 circle, below 1 ellipse, 1 parabola, above 1 hyperbola
ℓ = e·pthe semi-latus rectum: r at 90° from the axis. It only scales the curve
θ₀the turn: the direction of the closest point to F (r min)

The page keeps ℓ, not p, as its size number. With p fixed, e = 0 would give r = 0·p = 0, a single point; with ℓ fixed, e = 0 is the circle r = ℓ, and the directrix x = p = ℓ/e comes in from infinity as e grows. The facts table always shows both: p = ℓ/e and ℓ = e·p. (Demo 1: e from 0 to 2 in steps of 0.1)

|PF| = e · |PD|: the focus–directrix rule

For a point P on the curve, |PF| is the red segment to the focus and |PD| the green one, straight across to the directrix. Their ratio is the same number e at every point of the curve.

Left: the ellipse e = 0.5, ℓ = 2 with focus F at the origin and the directrix x = 4; a point P on it with |PF| = 1.48 in red and |PD| = 2.96 in green. Right: the hyperbola e = 2, ℓ = 2 with the directrix x = 1; a point P with |PF| = 2 and |PD| = 1
Ellipse: P is half as far from F as from the directrix. Hyperbola: twice as far.

For e = 1 the two distances are equal, which is the usual definition of a parabola (Parabola: focus and directrix). For a circle there is no directrix: e = 0 is the limit where p = ℓ/e runs off to infinity and every point is ℓ from F. (Demo 2: |PF| = e·|PD| for every point)

From the rule to the polar equation

Put F at the origin and the directrix at x = p (θ₀ = 0). A point at distance r and angle θ has |PF| = r, and its distance to the line is p − r cos θ. The rule gives

r = e (p − r cos θ)
r + e r cos θ = e p
r = ep / (1 + e cos θ)

θ is measured at the focus, not at the centre, so this is the form planets use: the Sun sits at F. Turning the axis by θ₀ replaces θ with θ − θ₀. Polar coordinates themselves are on Polar Coordinates.

  • θ = θ₀: the closest point, r min = ℓ/(1 + e) (the perihelion of an orbit).
  • θ = θ₀ ± 90°: r = ℓ. These two points are the ends of the latus rectum; ℓ is half its length.
  • θ = θ₀ + 180°: r max = ℓ/(1 − e) for e < 1 (the aphelion); for e ≥ 1 there is none.

e decides the type

etypea, bCartesian form (θ₀ = 0)more on
0circlea = b = ℓx² + y² = ℓ²Ellipse
0 < e < 1ellipsea = ℓ/(1 − e²), b = ℓ/√(1 − e²)(x + ae)²/a² + y²/b² = 1Ellipse
1parabolavertex ℓ/2 from Fy² = −2ℓ(x − ℓ/2)Parabola
e > 1hyperbolaa = ℓ/(e² − 1), b = ℓ/√(e² − 1)(x − ae)²/a² − y²/b² = 1Hyperbola

For the ellipse and the hyperbola the centre is ae from F and the second focus 2ae from F, so e = c/a, the same e as on the Ellipse and Hyperbola pages, and ℓ = b²/a. As e climbs towards 1 the ellipse grows without bound: at e = 0.9 with ℓ = 2, a ≈ 10.5 and r max = 20, far past the window, and at e = 1 the far end is gone. The general second-degree equation, where the test is B² − 4AC instead, is on Conic Sections: What A, B, C, D, E, F Do.

e > 1: the near branch and r < 0

For e > 1, 1 + e cos φ (φ = θ − θ₀) is negative for directions near φ = 180°. There r would be negative: a negative r draws the point on the opposite side of F, and those points form the other branch of the hyperbola, the one round the second focus. The page draws the branch with r > 0 (the near branch, round F) in blue and the r < 0 branch pale. The near branch runs off to infinity in the two directions where the denominator is 0:

1 + e cos φ = 0   →   cos φ = −1/e        (e = 2: φ = ±120°)

The asymptotes are parallel to these directions and cross at the centre. A body on the near branch is turned by 2·asin(1/e): 112.9° for 'Oumuamua's e ≈ 1.2. (Demo 3: a hyperbolic flyby ('Oumuamua))

ℓ scales, θ₀ turns

Multiplying ℓ by k multiplies every r by k: the same curve, k times bigger, with F fixed. So two conics with the same e have the same shape; all parabolas (e = 1) are the same shape at different sizes. (Demo 6: ℓ only scales: parabolas) θ₀ turns the whole picture about F: curve, directrix, centre and second focus. (Demo 4: θ₀ turns the curve)

Real orbits

Kepler's first law: a planet moves on an ellipse with the Sun at one focus. Newton showed that any body moving under the Sun's gravity alone follows r = ℓ/(1 + e cos(θ − θ₀)), with e set by its energy: bound orbits have e < 1, an escaping body e ≥ 1.

Left: Earth's orbit, e = 0.0167, with the Sun at the focus and the centre almost on top of it. Right: Halley's comet, e = 0.967, a long thin ellipse from 0.59 AU to 35 AU, with Earth's orbit as a small circle near the Sun at the same scale
Earth's e = 0.0167 is a circle to the eye; Halley's e = 0.967 is a needle 35 AU long.
bodyer min (perihelion)r max (aphelion)
Earth0.01670.983 AU1.017 AU
Mercury0.2060.307 AU0.467 AU
Halley's comet0.9670.59 AU35 AU
'Oumuamua (2017)1.200.256 AUnone: hyperbolic

The page draws each at a stated scale (1 unit = 0.25 AU for Earth and 'Oumuamua, 5 AU for Halley), so the numbers in the facts table are plot units. (Demo 5: real orbits: Earth, then Halley's comet)

What the page leaves out

The second directrix of an ellipse and a hyperbola (on the other side, round the second focus), cutting a cone with a plane, time along an orbit (Kepler's second and third laws: equal areas in equal times), orbits that are not round the origin, and curves bigger than the window x ∈ [−8, 8], y ∈ [−7, 7]: the page shows only the part inside it. The standard forms one at a time are on the Ellipse, Parabola and Hyperbola pages.