Polar focus-directrix property

Let the distance between a focus and the closer directrix be $l/e$, so $l = a|1-e^2|$.

So putting the origin at one of the focus, $$\begin{align*} r &= e\big(\frac le - r\cos \theta\big) \\ r &= \frac{l}{1 + e\cos\theta}. \end{align*}$$