I need to find the critical points of $$f(x,y,z) = 8x^2 +4yz -16z +600$$ restricted by $4x^2+y^2+4z^2=16$.
I constructed the lagrangian function $$L(x, y, z, \lambda ) = 8x^2 +4yz -16z +600 - \lambda (4x^2+y^2+4z^2-16) $$
but I'm very confused about how to determine those points. I know I need to make a system with all the first derivatives of $L$ equaled to $0$. I did it but every time I try to solve it I get different solutions. How can I get the points?
Thanks.
There are a number of constrained critical points. If you set the gradient of $L$ equal to $0$, you find that $$(4x,z,y-4) = \lambda(4x,y,4z).$$ If $x\ne 0$, we must have $\lambda = 1$ and then $z=y$ and $y-4=4z$. This gives $y=z=-4/3$ and $x=\pm 4/3$.
However, if $x=0$, then we also get additional solutions by setting \begin{equation} (z,y-4) = \lambda(y,4z),\tag{$*$} \end{equation} from which we get $$\frac zy = \frac{y-4}{4z}.$$ (Note that we cannot have $x=y=z=0$ on our constraint set, so this is fine. Note that ($*$) says that $z=0$ if and only if $y=0$.) This yields $4z^2=y(y-4)$, which, if I'm not mistaken, leads, along with the constraint equation, to $y^2-2y-8 = (y-4)(y+2) = 0$, so $y=4$ or $y=-2$. These give additional critical points $(0,4,0)$ and $(0,-2,\pm\sqrt3)$.
Because there's such dispute amongst the various answerers, let me check the values of $f$ at these various points: \begin{multline} f(\pm 4/3, -4/3, -4/3) = \frac{1928}3, \quad f(0,4,0) = 600, \\ f(0,-2,\sqrt3) = 600 - 24\sqrt 3,\quad f(0,-2,-\sqrt3) = 600 + 24\sqrt3. \end{multline} Indeed, $1928/3$ wins out for the maximum value, but only just barely!!
Philosophical Remark: You do not need to solve explicitly for $\lambda$; you can eliminate it as I did by taking ratios. It is to emphasize this pedagogical point that I wrote out the solution so carefully. :)