Let $f: \mathbb R^3 \to \mathbb R$ be defined by $$f(x,y,z)=x-y+z$$ and $$E:=\{(x,y,z)\in \mathbb R^{3} \mid x^2+2y^2+2z^2\leq1\}$$ Find the extrema of $f$ on $E$.
Path: I have already proven that $E$ is compact and then defined $g_\lambda:=f-\lambda h$ where $h:\mathbb R^{3} \to \mathbb R, h(x,y,z)=x^2+2y^2+2z^2-1$ and $\lambda \in \mathbb R$
Setting $0=\nabla g_{\lambda}(x,y)=\begin{pmatrix} 1-2\lambda x\\ -1-4\lambda y\\ 1-4\lambda z \end{pmatrix}$ while $x^2+2y^2+2z^2\leq1$(*)
It follows that: $\frac{1}{2}=\lambda x, -\frac{1}{4}=\lambda y,\frac{1}{4}=\lambda z$
And this is where I get stuck: and using (*) does not help that much as all we gain from it is that: $x\leq 1, y\leq\frac{1}{\sqrt{2}}$ and $z\leq\frac{1}{\sqrt{2}}$
We could of course look at $(0,0,1),(0,\frac{1}{\sqrt{2}},0),(0,0\frac{1}{\sqrt{2}})$
But what about all the points in between? Aren't there so many points to cover in order to assess the extrema. Is there any standardized way about going about this?
That is why the "$\leq$" is causing trouble.
You only need to worry about the boundary of $$E:=\{(x,y,z)\in \mathbb R^{3} \mid x^2+2y^2+z^2\leq1\}$$
Because the intersection of a plane and a sphere assumes its extremes on the boundary of the sphere.