Power-law quantum virial theorem (source code)

= Power-law quantum virial theorem
{title2=$2\langle T\rangle=n\langle V\rangle$}

For a bound stationary state in a homogeneous potential $V(\lambda x)=\lambda^nV(x)$, scaling a normalized wavefunction gives stationarity of $\lambda^2\langle T\rangle+\lambda^{-n}\langle V\rangle$ at $\lambda=1$. Hence $2\langle T\rangle=n\langle V\rangle$.