I would like to find out the regions where $f(x,y)=0$ for $$f(x,y):=\frac{2 x^2 y^2+2 x y^2-2 x y+y^4-y^3}{4 x^3 y+2 x^2 y-x^2+x y^2}$$ So I wrote this:
ContourPlot[(-2 x y + 2 x y^2 + 2 x^2 y^2 - y^3 + y^4)/
(-x^2 + 2 x^2 y + 4 x^3 y + x y^2) == 0, {x, -4.5, 4.5}, {y, -4.5, 4.5}]
which resulted in
So I thought it's better to just find out where the numerator is zero:
ContourPlot[-2x y + 2x y^2 + 2x^2 y^2 - y^3 + y^4 == 0, {x,-4.5, 4.5}, {y,-4.5, 4.5}]
I know the odd behavior of the first plot maybe has something to do with the denominator becoming zero somewhere, but in that case, $f(x,y)$ will tend to infinity and normally, it shouldn't be on the plot. So my question is, how can we prevent such noise from appearing on the plot? Is there any way other than dismissing the denominator?