I would like to find an elementary function of two variables such that the level set $f(x,y)=1$ is the ellipse with equation $2x^2+y^2=1$ and the level set $f(x,y)=2$ is the circle with equation $x^2+y^2=9.$
I have constructed non-elementary functions with those level sets in several ways, but I would like an elementary function to make it easier to give as an example.