add variational method vs virial theorem