An external pressure changes the balance even if the system remains confined. For a material boundary acted on by spatially uniform inward pressure , the surface force contributes , by the divergence theorem. For Newtonian gravitational potential energy, the finite-window identity becomes
Here is the enclosed volume, the outward unit normal, and includes the microscopic translational kinetic energy of the confined particles. Do not also add the same random motions as a separate internal pressure term. A nonuniform external stress needs its surface integral; a fixed observational boundary crossed by matter also needs flux terms.[ref]
With negligible surface pressure, the negative heat capacity of a virialized gravitational system follows from : after a slow loss of total energy and readjustment to virial equilibrium, the average kinetic energy rises. For fixed classical particles with three translational degrees of freedom, define kinetic temperature by . Along this isolated equilibrium sequence, . The system contracts and its binding potential energy becomes more negative, supplying both the outgoing energy and the increased kinetic energy. This is an endpoint comparison, not a claim that every transient contraction obeys the average relation. A collisionless stellar system need not have a common thermodynamic temperature; a pressure-confined system instead has . A stable canonical ensemble in contact with a large thermal reservoir does not support this negative heat capacity branch.[ref]