Warning: Finding extreme value of a multivariable function My question differs from this since I try to use the Hessian criterion so it is not a repeated question.
My question: Problem 9 M.L Krasnov.
Find extrema of $f:U \to \mathbb{R}$ where $U=\{(x_1,\ldots,x_n)\in \mathbb{R}^n:x_{i}>0 \text{ for all }i\in \mathbb{N}\}$ and $$f(x_1,x_2,\ldots,x_n)=x_1x_2^2\ldots x_n^n(1-x_1-2x_2-\ldots-nx_n). $$
Well this is my attempt: Critical points are:
$$\frac{\partial f}{\partial x_n}=nx_1x_2^2x_3^3(1-x_1-2x_2-\cdots-nx_n)-nx_1x_2^2\cdots x_n^n=0$$
so $$x_1=x_2=\cdots =x_n=\frac{2}{n^2+n+2}.$$
These are critical points of $f$.
Computing second partial derivatives for use Hessian in critical point $x_0=\left(\frac{2}{n^2+n+2},\ldots, \frac{2}{n^2+n+2}\right)$ and suppose no loss of generality $i<j<n$ I get:
$$\frac{\partial^2 f}{\partial x_i^2}=i(i-1)\left(\frac{2}{n^2+n+2}\right)^{\frac{n(n+1)}{2}}-2i^2\left(\frac{2}{n^2+n+2}\right)^{\frac{n(n+1)}{2}-1}.$$
So computing the cross derivatives and substituting into $x_1=x_2=\cdots=x_n=(\frac{2}{n^2+n+2})$
$$\frac{\partial^2 f}{\partial x_j \partial x_i}=-ij\left(\frac{2}{n^2+n+2}\right)^{\frac{n(n+1)}{2}-1}.$$
I have tried this exercise for many days without any success, I plan to use Sylvester's criterion to show that this critical point is a local maximum.
Sylvester's criterion: The real-symmetric matrix $A$ is positive definite if and only if all the leading principal minors of $A$ are positive.
Help me please.