How do I show that the set
$$ M=\{[x,y,z]\in{\mathbf R}^3 :\ x^2 + y^2 +z^2 + xy + yz + xz = 1,\ x \ge 0,\ y \ge 0\} $$
is compact?
The set is apparently closed (as it cannot be open given that the condition defining $M$ is a continuous function).
The exercise is to compute extrema of
$$ f(x,y,z) = \sqrt{x^2+y^2+z^2} $$
over this set. Simply assuming it is compact, I suspect maximum is attained for points in ${\mathbf R^3}$ satisfying
$$ x^2 + xy + y^2 = 1\quad {\rm and}\quad z = -(x+y). $$
That's what I need. The calculation wasn't hard using Lagrange's multipliers method assuming $M$ was compact, but I am unsure as how to proceed in showing it actually is.
Any help will be appreciated.
I noticed that for $z \ge 0$, this is simple as all the terms in the first condition defining $M$ are greater than or equal to zero, thus it holds that
$$ x^2 + y^2 +z^2 + xy + yz + xz \ge x^2 + y^2 + z^2 $$
and so $M_{z \ge 0} \subset B([0,0,0], 1)$. But for the $z < 0$ case I just don't see why the set is bounded; surely it is just as easy as the former case.
From $$f(x,y,z):=x^2+y^2+z^2+xy+yz+zx={1\over2}\bigl((x+y+z)^2+x^2+y^2+z^2\bigr)$$ it follows that $$x^2+y^2+z^2\leq 2f(x,y,z)=2\qquad\forall\ (x,y,z)\in M\ .$$ This shows that $M$ is (not only closed, but) also bounded, hence compact.