How can the partial energy of a system be calculated