Ideal gas Helmholtz energy function
From equations
for the canonical ensemble partition function for an ideal gas, and
for the Helmholtz energy function, one has
using Stirling's approximation
one arrives at
where is the de Broglie thermal wavelength and is the Boltzmann constant.