I have the following Hamiltonian \begin{equation} H(x_{1},x_{2},...,x_{n})=\sum_{n=2}^{N}\frac{1}{2}(x_{n}-x_{n-1})^{2} \end{equation} And I'm interested in getting a general formula for the product of the non-zero eigenvalues of its Hessian \begin{equation} \begin{bmatrix}1 &-1 & 0 & 0 & 0\\-1&2&-1&0&0\\0&-1&2&-1&0\\0&0&-1&2&-1\\0&0&0&-1&1\end{bmatrix} \end{equation} Note that $0$ is an eigenvalue associated to $(1,1,...,1)$, so I cannot work with the determinant.
I tried to consider a change of coordinates $y_{1}=\frac{1}{\sqrt{N}}(1,1,...,1)$, $y_{2}=\frac{1}{\sqrt{2}}(1,-1,0,...0)$,... ,$y_{N}=\frac{1}{\sqrt{2}}(0,0,...,1,-1)$ where the Hamiltonian is
\begin{equation} H(y_{1},y_{2},...,y_{n})=\sum_{n=2}^{N}y_{n}^{2} \end{equation}
And from here I get that the Hessian is \begin{equation} \begin{bmatrix}0 &0 & 0 & 0 & 0\\0&2&0&0&0\\0&0&2&0&0\\0&0&0&2&0\\0&0&0&0&2\end{bmatrix} \end{equation}
But there are some odd things: first of all, when I compute the eigenvalues in Maple for a $4\times4$ system I get $(0,2,2+\sqrt{2},2-\sqrt{2})$ and not $(0,2,2,2)$. Second, $(1,-1,0,...,0)$ and the other vectors are not eigenvectors of the original Hessian. Any idea of what could I be doing incorrectly or how to solve this properly? I'm only interested in the product of the eigenvalues, not really in the eigenvalues and eigenvectors per se, but if you have any idea of how to get any of them that works for me!