\[W=\frac{1}{2}\sum_{\ell=1}^{n}x_{\ell}^{2}-\sum_{1\leq\ell<j\leq n}\ln|x_{\ell%
}-x_{j}|.\]