Problem statement: Let $V = \{(x,y) \in \mathbb{R}^2 : x,y>0\}$ be the first quadrant of the plane. Does there exist a rational function $g : \mathbb{R}^2 \rightarrow \mathbb{R}$ such that $g(V)$ and $g(\mathbb{R}^2 \backslash V)$ are disjoint?
An easier formulation of this problem could be: does there exist a rational function $g(x,y)$ such that $g(x,y)>0$ iff $x,y>0$? I think this could be solved by an appeal to this question, which shows the answer is no for polynomials, but I can't quite work out the details.
I realize there is some ambiguity about whether $g$ is defined everywhere; feel free to interpret that however you wish.
Context: This problem arose while trying to answer another question on this site.
There is no real analytic function like that ( although there exist a smooth function, cf Whitney's theorem).
The proof works the same way. Write $g(x,y) = (x y)^n \cdot h(x,y)$ where $h(x,y)$ is not divisible by $x y$ ( do this locally around $(0,0)$) . Now the proof works again like the proof for polynomials, that is get a contradiction since again $x y$ divides $h(x,y)$.