I have $r^2=2\cos2\theta$ and I'm being asked to convert this equation to rectangular coordinates. So I'm using double angle trigonometric identities to get:
$$ r^2=2\cos2\theta \\ r^2=2(\cos^2\theta-\sin^2\theta) \\ r^2=2\cos^2\theta-2\sin^2\theta $$
Then I do the following substitutions based on the facts that $y=r\sin\theta$ and $x=r\cos\theta$:
$$ r^2=\frac{2x^2}{r^2}-\frac{2y^2}{r^2} \\ (r^2)^2=2x^2-2y^2 \\ (x^2+y^2)^2=2x^2-2y^2 $$
However this doesn't feel right, since I would be getting a fourth-degree equation. Can you find any error in my development? Or how should I go on solving this problem? Thanks in advance.