Analytical examination of virial properties of groups of galaxies