then the total energy depends upon