Find the maximum and minimum values of the function $f(x,y,z)=xy+z^2$ in the circumference obtained by intersections between the sphere $x^2+y^2+z^2=4$ and the plane $y-x=0$.
I did Lagrange and found the points $(0,0,\pm2)$ I would call them maximum values and that the function have no minimum values. Not sure if that's correct... Thanks.
Edit: Lagrange calculations:
$\begin{cases}f_x\rightarrow y=4x\gamma\\ f_y\rightarrow x=0\\ f_z\rightarrow 2z=2z\gamma\\ 2x^2+z^2=4 \end{cases}$
You know that $x=y$ so you try to maximize/minimize $x^2+z^2$ with the constraint $2x^2+z^2=4$
But : $$x^2+z^2=4-x^2$$ so :
$x^2+z^2$ is maximal when $x^2$ is minimal and this is at $x=0$ and $z=\pm 2$.
$x^2+z^2$ is minimal when $x^2$ is maximal and this is at $x^2=2$ .This happens because : $$x^2 \leq \frac{1}{2} \cdot( 2x^2+z^2)=2$$ and this means that $x= \pm \sqrt{2}$ and $z=0$ .
The minimum is $2$ and it's achieved for $ \left (\pm \sqrt{2},\pm \sqrt{2},0 \right)$ and the maximum is $4$ achieved for $ \left (0,0,\pm 2 \right )$ .