I'm having an issue where it seems like the region Mathematica shows depends on what the domain is (i.e. not just different parts of the same domain).
The code that gives me 2 intersecting lines $y = x$ and $y = 1 - x$ in the square $[0, 1] \times [0, 1]$:
Clear[polys, result];
polys = {
(x^2 - x) - (y^2 - y),
(2 m*x - x - m + 1/2)^2 + (2 m*y - y - m + 1/2)^2 -
4 (m^2 - m) (x^2 - x)};
result = Resolve[Exists[{m}, polys == 0], Reals];
RegionPlot[result, {x, 0, 1}, {y, 0, 1}]
But, if I just change the y domain to end at $1/2$ instead of $1$, I get a completely empty plane, not just a zoomed in version of the original picture:
Clear[polys, result];
polys = {
(x^2 - x) - (y^2 - y),
(2 m*x - x - m + 1/2)^2 + (2 m*y - y - m + 1/2)^2 -
4 (m^2 - m) (x^2 - x)};
result = Resolve[Exists[{m}, polys == 0], Reals];
RegionPlot[result, {x, 0, 1}, {y, 0, 1/2}]
If I change the $x$ and $y$ bounds in other situations I also get various different pictures. I know in this situation that the correct picture is in fact the two lines intersecting, but I won't know the answer in more complicated situations.
How do I "fix" this issue where Mathematica gives me different regions depending on what the $x$ and $y$ bounds are?
RegionPlot
shows something. Usually RegionPlot only shows 2D-regions I think. $\endgroup$