Energy and the number of particles are additive properties

The entropy


and
are Lagrange multipliers.
By standard arguments

The partition function is

If H is separable


This completes the derivation.
However, let us continue with a derivation of the magnitude of the fluctuations in the system:
By differentiation of


This equation shows that the energy will fluctuate in a finite system. The fluctuations in the total energy scales as N0.5 while the energy per atom scales as N -0.5.
The magnitude of the fluctuations severely complicates the investigation of thermodynamic behaviour through simulations.
Author Per Stoltze stoltze@fysik.dtu.dk