I'm working on a homework assignment for my artificial intelligence course and I became a bit stuck on one part.
The problem asks to retrieve the optima of the function and then to tell for each optima whether it is a minimum or a maximum.
The function is as follows: $$ f(x,y,z) = x \ln x + y \ln y + z \ln z + \alpha(x + y + z - 1) $$
The gradient was calculated to be: $$ \nabla f(x,y,z) = (\ln x + \alpha + 1)\vec{i} + (\ln y + \alpha + 1)\vec{j} + (\ln z + \alpha + 1)\vec{k} $$
In order to find the critical points I then set $\nabla f(x,y,z) = 0 $, which gave me the following critical points:
$$ (0,0,0),(\frac{1}{e^{\alpha + 1}},\frac{1}{e^{\alpha + 1}},\frac{1}{e^{\alpha + 1}}),(1,1,1) $$
What is the best approach to test if each critical point it is a maximum or a minimum in the function?
I also have calculated the Hessian matrix for an earlier part of this problem. The hessian matrix came to be:
$$ \left[ \begin{array}{ccc} \frac{1}{x} & 0 & 0 \\ 0 & \frac{1}{y} & 0 \\ 0 & 0 & \frac{1}{z} \end{array} \right] $$
Is there a way to utilize the hessian matrix to test for convexity at those points and therefore if convex it is a minimum? The problem with that thought was that when I calculated it out they all turned out to be minimums which doesn't seem right to me.