$$f(x,y,z) = x^{2}y^{2}z^{2}$$ If: $$g(x,y,z)=x^{2}+y^{2}+z^{2}+1 = 0$$
The method I know is to create the following function:
$F(x,y,z,\lambda)=f(x,y,z)-\lambda g(x,y,z)$
Then create system of equations:
$\frac{dF}{dx}=0$
$\frac{dF}{dy}=0$
$\frac{dF}{dz}=0$
$\frac{dF}{d\lambda}=0$
The results are possible minimum/maximum points.
Then I need to create Hessian matrix with 0 as top left value. If the determinant is positive, it's maximum, etc...
My problem is - It quite doesn't work here, and I don't know why. The system of equation gives $x^{2}=y^{2}=z^{2}$, so saying that $r=x^{2}=y^{2}=z^{2}$ it's $P=(r,r,r)$.
The Hessian matrix gets really complicated.
$$ H = \left[ \begin{array}{ccc} 0 & 2x & 2y & 2z \\ 2x & 2y^{2}z^{2} - 2\lambda & 4zxy^{2} & 4zxy^{2} \\ 2y & 4xyz^{2} & 2x^{2}z^{2} - 2\lambda & 4zx^{2}y \\ 2z & 4xy^{2}z & 4x^{2}y^{2} & 2x^{2}y^{2} - 2\lambda \end{array} \right] $$
And I'm stuck here, what's wrong?