I wish to study the function $f(x,y,z) = z^3+y^2+xy+yz+3x-3z$ and find its extreme values.
I search for values for which $\nabla f(x,y,z) =0$.
$$\frac{\partial f}{\partial x} = y+3$$ $$\frac{\partial f}{\partial y} = 2y+x+z$$ $$\frac{\partial f}{\partial z} = 3z^2+y-3$$
I wanted to see if the Hessian is positive definite, but when I compute it I get:
$$H=\begin{pmatrix} \frac{\partial^2f}{\partial x\partial x}& \frac{\partial^2f}{\partial x\partial y} & \frac{\partial^2f}{\partial x\partial z}\\ \frac{\partial^2f}{\partial y\partial x}& \frac{\partial^2f}{\partial y\partial y} & \frac{\partial^2f}{\partial y\partial z} \\ \frac{\partial^2f}{\partial z\partial x}& \frac{\partial^2f}{\partial z\partial y} & \frac{\partial^2f}{\partial z\partial z}\end{pmatrix}$$
$$H=\begin{pmatrix}0& 1 & 0\\ 1 & 2 & 1 \\ 0& 1 & 6z\end{pmatrix}$$
However, it is not symetric.
- Did I compute the Hessian correctly?
- If it is in fact not symetric, what can I do to determine if the values are extreme values?
I hope you already have calculated the two critical points. It is the solution of your three equations. Your (symmetric) Hessian Matrix is right.
You have to calculate the eigenvalues of $\textbf H$. The equation is $det(\textbf H-\lambda \textbf I)=0$
$\textbf I$ is the identity matrix and $\lambda$ is a unknwon scalar. In this case the values of the eigenvalues.
Thus the equation is $-\lambda\cdot (2-\lambda)\cdot (6\cdot z-\lambda)-6\cdot z=0$
The critical values for $z$ are $\sqrt 2$ and $-\sqrt 2$. You get two equations
$-\lambda\cdot (2-\lambda)\cdot (6\cdot \sqrt 2 -\lambda)-6\cdot\sqrt 2=0 \qquad (1)$
$-\lambda\cdot (2-\lambda)\cdot (-6\cdot \sqrt 2 -\lambda)+6\cdot \sqrt 2=0 \qquad (2)$
Calculate for each equation the (three) solutions.
If $\lambda_1,\lambda_2$ and $\lambda_3$ are all positive, then the critical point is a local minimum.
If $\lambda_1,\lambda_2$ and $\lambda_3$ are all negative, then the critical point is a local maximum.
Otherwise the critical point is a saddle point.
Using principle minors
Let $|\textbf A_k|$ the k-th principle minor.
If $|\textbf A_k| \ \ \forall \ k$ are strictly postitive then the critical point is a minimum.
If $|\textbf A_{2k}| \ \ \forall \ k$ are strictly positive and if $|\textbf A_{2k+1}| \ \ \forall \ k$ are strictly negative then the critical point is a maximum.
Otherwise the critical point is a saddle point.
Here we have $|\textbf A_1|=|0|=0$. The critical points are saddle points.