I've been reading Tuckerman's statistical mechanics textbook, in Feynman's path-integral chapter, the book introduced a method to convert from thermodynamic to virial energy estimators by using Euler's homogeneous function theorem:
$\alpha(x_1, \cdots, x_P) = \frac{1}{2} m \omega_P^2 \sum_{k=1}^{P} (x_k - x_{k+1})^2$ the function $\alpha$ is a homogeneous function of degree 2. Hence, applying Euler's theorem, which we can write as:
$\alpha(x_1, \cdots, x_P) = \frac{1}{2} \sum_{k=1}^{P}x_k \frac{\partial \alpha}{\partial x_k}$.
I know the general theorem: $n f(x_1, \cdots, x_P) = \sum_{k=1}^{P} x_k \frac{\partial f}{x_k}$
To prove this is correct, I first let $p=1$, then we arrive $\alpha = \frac{1}{2}m \omega_P^2 (x_1^2 - x_1 x_2 )$, which isn't same as the outcome of Euler's theorem? I'm quite confused about this part, thanks in advance for any help!