As per the title i need to translate $2xy=x^2-y^2$ into a polar coordinates function
Why it confuses me:
$$ x = r\cos\phi\\ y = r\sin\phi $$
Then:
$$ 2r^2\cos{\phi}\sin{\phi} = r^2\cos{\phi}-r^2\sin{\phi} = r^2(\cos^2{\phi} - \sin^2{\phi}) \\ r^2\sin{2\phi}=r^2\cos{2\phi} \\ sin{2\phi} = \cos{2\phi} $$
Which gives:
$$ \phi = \frac{\pi}{8} + \frac{\pi n}{2}, \;\;\;\; n \in \mathbb Z $$
But it's just a set of $\phi$ values. How do i plot such a function? In polar coordinates $r$ is a function of some $\phi$, isn't that?

It is $$ \phi= \frac{\pi}{8} + \frac{\pi n}{2}, \;\;\;\; n \in \mathbb Z $$
and not $x$.
So $$x= r\cos (\frac{\pi}{8} + \frac{\pi n}{2})=$$ $$ = r(\cos \frac{\pi}{8} \cos \frac{\pi n}{2}-\sin \frac{\pi}{8} \sin \frac{\pi n}{2})$$ Now try to put $n=0,1,2,3,4...$. We see that:
if we put $n=0,4,8...$ we get the same value. if we put $n=1,5,9...$ we get the same value. ...
So write $n= 4k+r$ where $r\in\{0,1,2,3\}$ and you will get 4 different families of solution.