I have an ellipse with polar form equation: $$r=\frac{a\left(1-e^{2}\right)}{1+e\cos\left(\theta\right)}$$ where $e$ is eccentricity, and $a$ is semi-major axis. How do I convert this from polar form to canonical form $\frac{x^2}{b^2}+\frac{y^2}{c^2}=1?$
I tried to use $b$ = $a(1-e^2)$ and $c = 1+e \cos{\theta}$, but that didn't work, because I don't know what $\theta$ is. Is there a solution to this?