Problem: I want to graph the curve defined by the equation $\left(x^2+y^2\right)^2=x^2-y^2$ in the $xy$-plane. I want to use pgfplots.
My attempt: I tried \addplot {(x^2+y^2)^2=x^2-y^2} but I am getting several errors about using $y$ in this context or using $=x$.
Question: Is there a workaround for plotting implicit equations? Should I switch it to polar? If so, can I graph a polar equation on the $xy$-plane?
EDITED: My solution was to use \addplot [data cs=polar,domain=0:180,samples=361] (\x,{sqrt(cos(2*x))}). I found this idea in the manual in Section 4.23 on Transforming Coordinate Systems. I also added a plot for the negative square root to plot the lower half of the curve.
