$$x(x^2 + y^2) = a(x^2 - y^2)$$
I was trying to find the equation of the tangent as $$(Y-0) = \frac{dy}{dx}(X - 0)$$ where $$\frac{dy}{dx} = \frac{2ax-3x^2-y^2}{2(x+a)y}$$ So here putting the values of $(x,y)$ as $(0,0)$ makes the derivative non existent. I am stuck at this point and unable to proceed further.

Alternatively, when expressed in polar form, the curve is
$$r\cos\theta=a\cos2\theta$$
The tangent(s) at the pole are given by values of $\theta$ as $r\rightarrow0$
Therefore $\theta=\pm\frac{\pi}{4}\implies y=\pm x$