Partition function (statistical mechanics)
In physics, a partition function describes the statistical properties of a system in thermodynamic equilibrium. Partition functions are functions of the thermodynamic state variables, such as the temperature and volume. Most of the aggregate thermodynamic variables of the system, such as the total energy, free energy, entropy, and pressure, can be expressed in terms of the partition function or its derivatives. The partition function is dimensionless. Each partition function is constructed to represent a particular statistical ensemble (which, in turn, corresponds to a particular free energy). The most common statistical ensembles have named partition functions. The canonical partition... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In physics, a partition function describes the statistical properties of a system in thermodynamic equilibrium. Partition functions are functions of the thermodynamic state variables, such as the temperature and volume. Most of the aggregate thermodynamic variables of the system, such as the total energy, free energy, entropy, and pressure, can be expressed in terms of the partition function or its derivatives. The partition function is dimensionless. Each partition function is constructed to represent a particular statistical ensemble (which, in turn, corresponds to a particular free energy). The most common statistical ensembles have named partition functions. The canonical partition function applies to a canonical ensemble, in which the system is allowed to exchange heat with the environment at fixed temperature, volume, and number of particles. The grand canonical partition function applies to a grand canonical ensemble, in which the system can exchange both heat and particles with the environment, at fixed temperature, volume, and chemical potential. Other types of partition functions can be defined for different circumstances; see partition function (mathematics) for generalizations. The partition function has many physical meanings, as discussed in Meaning and significance. Z = \sum_i e^{-\beta E_i}, where i is the index for the microstates of the system; e is Euler's number; \beta is the thermodynamic beta, defined as \tfrac{1}{k_\text{B} T} where k_\text{B} is the Boltzmann constant; E_i is the total energy of the system in the respective microstate. The exponential factor e^{-\beta E_i} is otherwise known as the Boltzmann factor. {{math proof | title = Derivation of canonical partition function (classical, discrete) | proof = There are multiple approaches to deriving the partition function. The following derivation follows the more powerful and general information-theoretic Jaynesian maximum entropy approach. According to the second law of thermodynamics, a system assumes a configuration of maximum entropy at thermodynamic equilibrium. We seek a probability distribution of states \rho_i that maximizes the discrete Gibbs entropy S = - k_\text{B} \sum_i \rho_i \ln \rho_i subject to two physical constraints: The probabilities of all states add to unity (second axiom of probability): \sum_i \rho_i = 1. In the canonical ensemble, the system is in thermal equilibrium, so the average energy does not change over time; in other words, the average energy is constant (conservation of energy): \langle E \rangle = \sum_i \rho_i E_i \equiv U . Applying variational calculus with constraints (analogous in some sense to the method of Lagrange multipliers), we write the Lagrangian (or Lagrange function) \mathcal{L} as \mathcal{L} = \left( -k_\text{B} \sum_i \rho_i \ln \rho_i \right) + \lambda_1 \left( 1 - \sum_i \rho_i \right) + \lambda_2 \left( U - \sum_i \rho_i E_i \right) . Varying and extremizing \mathcal{L} with respect to \rho_i leads to \begin{align} 0 & \equiv \delta \mathcal{L} \\ &= \delta{\left( - \sum_i k_\text{B} \rho_i \ln \rho_i \right)} + \delta{\left( \lambda_1 - \sum_i \lambda_1 \rho_i \right)} + \delta{\left( \lambda_2 U - \sum_i \lambda_2 \rho_i E_i \right)} \\[1ex] &= \sum_i \left[ \delta{\left(-k_\text{B} \rho_i \ln \rho_i\right)} - \delta{\left(\lambda_1 \rho_i\right)} - \delta{\left(\lambda_2 E_i \rho_i \right)} \right] \\ &= \sum_i \left[ \frac{\partial}{\partial \rho_i } \left(-k_\text{B} \rho_i \ln \rho_i\right) \delta\rho_i - \frac{\partial}{\partial \rho_i} \left(\lambda_1 \rho_i\right) \delta\rho_i - \frac{\partial}{\partial \rho_i } \left( \lambda_2 E_i \rho_i \right) \delta\rho_i \right] \\[1ex] &= \sum_i \left[ -k_\text{B} \ln \rho_i - k_\text{B} - \lambda_1 - \lambda_2 E_i \right] \delta\rho_i. \end{align} Since this equation should hold for any variation \delta ( \rho_i ) , it implies that 0 \equiv - k_\text{B} \ln \rho_i - k_\text{B} - \lambda_1 - \lambda_2 E_i . Isolating for \rho_i yields \rho_i = \exp \left( \frac{-k_\text{B} - \lambda_1 - \lambda_2 E_i}{k_\text{B}} \right) . To obtain \lambda_1 , one substitutes the probability into the first constraint: \begin{align} 1 &= \sum_i \rho_i \\ &= \exp \left( \frac{-k_\text{B} - \lambda_1}{k_\text{B}} \right) Z , \end{align} where Z is a number defined as the canonical ensemble partition function: Z \equiv \sum_i \exp \left( - \frac{\lambda_2}{k_\text{B}} E_i \right) . Isolating for \lambda_1 yields \lambda_1 = k_\text{B} \ln(Z) - k_\text{B} . Rewriting \rho_i in terms of Z gives \rho_i = \frac{1}{Z} \exp \left( - \frac{\lambda_2}{k_\text{B}} E_i \right) . Rewriting S in terms of Z gives \begin{align} S &= - k_\text{B} \sum_i \rho_i \ln \rho_i \\ &= - k_\text{B} \sum_i \rho_i \left( - \frac{\lambda_2}{k_\text{B}} E_i - \ln(Z) \right) \\ &= \lambda_2 \sum_i \rho_i E_i + k_\text{B} \ln(Z) \sum_i \rho_i \\ &= \lambda_2 U + k_\text{B} \ln(Z) . \end{align} To obtain \lambda_2 , we differentiate S with respect to the average energy U and apply the first law of thermodynamics, dU = T dS - P dV : \frac{dS}{dU} = \lambda_2 \equiv \frac{1}{T} . (Note that \lambda_2 and Z vary with U as well; however, using the chain rule and \frac{d}{d\lambda_2} \ln(Z) = - \frac{1}{k_\text{B}} \sum_i \rho_i E_i = - \frac{U}{k_\text{B}}, one can show that the additional contributions to this derivative cancel each other.) Thus the canonical partition function Z becomes Z \equiv \sum_i e^{-\beta E_i} , where \beta \equiv 1/(k_\text{B} T) is defined as the thermodynamic beta. Finally, the probability distribution \rho_i and entropy S are respectively \begin{align} \rho_i & = \frac{1}{Z} e^{-\beta E_i} , \\ S & = \frac{U}{T} + k_\text{B} \ln Z . \end{align} }} Z = \frac{1}{h^3} \int e^{-\beta H(q, p)} \, d^3 q \, d^3 p, where h is the Planck constant; \beta is the thermodynamic beta, defined as \tfrac{1}{k_\text{B} T} ; H(q, p) is the Hamiltonian of the system; q is the canonical position; p is the canonical momentum. To make it into a dimensionless quantity, we must divide it by h, which is some quantity with units of action (usually taken to be the Planck constant). For generalized cases, the partition function of N particles in d -dimensions is given by Z = \frac{1}{h^{Nd}} \int \prod_{i=1}^{N} e^{-\beta \mathcal{H}(\textbf{q}_i, \textbf{p}_i)} \, d^d \textbf{q}_i \, d^d \textbf{p}_i, Z=\frac{1}{N!h^{3N}} \int \, \exp \left(-\beta \sum_{i=1}^N H(\textbf q_i, \textbf p_i) \right) \; d^3 q_1 \cdots d^3 q_N \, d^3 p_1 \cdots d^3 p_N = \frac{Z_{\text{single}}^N}{N!} where h is the Planck constant; \beta is the thermodynamic beta, defined as \tfrac{1}{k_\text{B} T} ; i is the index for the particles of the system; H is the Hamiltonian of a respective particle; q_i is the canonical position of the respective particle; p_i is the canonical momentum of the respective particle; d^3 is shorthand notation to indicate that q_i and p_i are vectors in three-dimensional space. Z_{\text{single}} is the classical continuous partition function of a single particle as given in the previous section. The reason for the factorial factor N! is discussed below. The extra constant factor introduced in the denominator was introduced because, unlike the discrete form, the continuous form shown above is not dimensionless. As stated in the previous section, to make it into a dimensionless quantity, we must divide it by h 3N (where h is usually taken to be the Planck constant). Z = \operatorname{tr} ( e^{-\beta \hat{H}} ), where: \operatorname{tr} ( \circ ) is the trace of a matrix; \beta is the thermodynamic beta, defined as \tfrac{1}{k_\text{B} T} ; \hat{H} is the Hamiltonian operator. The dimension of e^{-\beta \hat{H}} is the number of energy eigenstates of the system. Z = \frac{1}{h} \int \left\langle q, p \right\vert e^{-\beta \hat{H}} \left\vert q, p \right\rangle \, dq \, dp, where: h is the Planck constant; \beta is the thermodynamic beta, defined as \tfrac{1}{k_\text{B} T} ; \hat{H} is the Hamiltonian operator; q is the canonical position; p is the canonical momentum. In systems with multiple quantum states s sharing the same energy E s , it is said that the energy levels of the system are degenerate. In the case of degenerate energy levels, we can write the partition function in terms of the contribution from energy levels (indexed by j) as follows: Z = \sum_j g_j \, e^{-\beta E_j}, where g j is the degeneracy factor, or number of quantum states s that have the same energy level defined by E j = E s . The above treatment applies to quantum statistical mechanics, where a physical system inside a finite-sized box will typically have a discrete set of energy eigenstates, which we can use as the states s above. In quantum mechanics, the partition function can be more formally written as a trace over the state space (which is independent of the choice of basis): Z = \operatorname{tr} ( e^{-\beta \hat{H}} ), where is the quantum Hamiltonian operator. The exponential of an operator can be defined using the exponential power series. The classical form of Z is recovered when the trace is expressed in terms of coherent states and when quantum-mechanical uncertainties in the position and momentum of a particle are regarded as negligible. Formally, using bra–ket notation, one inserts under the trace for each degree of freedom the identity: \boldsymbol{1} = \int |x, p\rangle \langle x,p| \frac{dx \,dp}{h}, where is a normalised Gaussian wavepacket centered at position x and momentum p. Thus Z = \int \operatorname{tr} \left( e^{-\beta\hat{H}} |x, p\rangle \langle x, p| \right) \frac{dx \,dp}{h} = \int \langle x,p| e^{-\beta\hat{H}} |x, p\rangle \frac{dx \,dp}{h}. A coherent state is an approximate eigenstate of both operators \hat{x} and \hat{p} , hence also of the Hamiltonian , with errors of the size of the uncertainties. If and can be regarded as zero, the action of reduces to multiplication by the classical Hamiltonian, and reduces to the classical configuration integral. p_i = \frac{\Omega_B(E - E_i)}{\Omega_{(S,B)}(E)}. Assuming that the heat bath's internal energy is much larger than the energy of S ( ), we can Taylor-expand \Omega_B to first order in E i and use the thermodynamic relation \partial S_B/\partial E = 1/T , where here S_B , T are the entropy and temperature of the bath respectively: \begin{align} k \ln p_i &= k \ln \Omega_B(E - E_i) - k \ln \Omega_{(S,B)}(E) \\[5pt] &\approx -\frac{\partial\big(k \ln \Omega_B(E)\big)}{\partial E} E_i + k \ln\Omega_B(E) - k \ln \Omega_{(S,B)}(E) \\[5pt] &\approx -\frac{\partial S_B}{\partial E} E_i + k \ln \frac{\Omega_B(E)}{\Omega_{(S,B)}(E)} \\[5pt] &\approx -\frac{E_i}{T} + k \ln \frac{\Omega_B(E)}{\Omega_{(S,B)}(E)} \end{align} Thus p_i \propto e^{-E_i/(kT)} = e^{-\beta E_i}. Since the total probability to find the system in some microstate (the sum of all p i ) must be equal to 1, we know that the constant of proportionality must be the normalization constant, and so, we can define the partition function to be this constant: Z = \sum_i e^{-\beta E_i} = \frac{\Omega_{(S,B)}(E)}{\Omega_B(E)}. \begin{align} \langle E \rangle = \sum_s E_s P_s &= \frac{1}{Z} \sum_s E_s e^{- \beta E_s} \\[1ex] &= - \frac{1}{Z} \frac{\partial}{\partial \beta} Z(\beta, E_1, E_2, \dots) \\[1ex] &= - \frac{\partial \ln Z}{\partial \beta} \end{align} or, equivalently, \langle E\rangle = k_\text{B} T^2 \frac{\partial \ln Z}{\partial T}. If the microstate energies depend on a parameter λ in the manner E_s = E_s^{(0)} + \lambda A_s \qquad \text{for all}\; s then the expected value of A is \langle A\rangle = \sum_s A_s P_s = -\frac{1}{\beta} \frac{\partial}{\partial\lambda} \ln Z(\beta,\lambda). This provides us with a method for calculating the expected values of many microscopic quantities. We add the quantity artificially to the microstate energies (or, in the language of quantum mechanics, to the Hamiltonian), calculate the new partition function and expected value, and then set λ to zero in the final expression. This is analogous to the source field method used in the path integral formulation of quantum field theory. \langle E \rangle = - \frac{\partial \ln Z}{\partial \beta}. The variance in the energy (or "energy fluctuation") is \left\langle (\Delta E)^2 \right\rangle \equiv \left\langle (E - \langle E\rangle)^2 \right\rangle = \left\langle E^2 \right\rangle - {\left\langle E \right\rangle}^2 = \frac{\partial^2 \ln Z}{\partial \beta^2}. The heat capacity is C_v = \frac{\partial \langle E \rangle}{\partial T} = \frac{1}{k_\text{B} T^2} \left\langle (\Delta E)^2 \right\rangle. In general, consider the extensive variable X and intensive variable Y where X and Y form a pair of conjugate variables. In ensembles where Y is fixed (and X is allowed to fluctuate), then the average value of X will be: \langle X \rangle = \pm \frac{\partial \ln Z}{\partial \beta Y}. The sign will depend on the specific definitions of the variables X and Y. An example would be X = volume and Y = pressure. Additionally, the variance in X will be \left\langle (\Delta X)^2 \right\rangle \equiv \left\langle (X - \langle X\rangle)^2 \right\rangle = \frac{\partial \langle X \rangle}{\partial \beta Y} = \frac{\partial^2 \ln Z}{\partial (\beta Y)^2}. In the special case of entropy, entropy is given by S \equiv -k_\text{B}\sum_s P_s \ln P_s = k_\text{B} (\ln Z + \beta \langle E\rangle) = \frac{\partial}{\partial T} (k_\text{B} T \ln Z) = -\frac{\partial A}{\partial T} where A is the Helmholtz free energy defined as , where is the total energy and S is the entropy, so that A = \langle E\rangle -TS= - k_\text{B} T \ln Z. Furthermore, the heat capacity can be expressed as C_\text{v} = T \frac{\partial S}{\partial T} = -T \frac{\partial^2 A}{\partial T^2}. Z = \prod_{j=1}^{N} \zeta_j. If the sub-systems have the same physical properties, then their partition functions are equal, ζ 1 = ζ 2 = ... = ζ, in which case Z = \zeta^N. However, there is a well-known exception to this rule. If the sub-systems are actually identical particles, in the quantum mechanical sense that they are impossible to distinguish even in principle, the total partition function must be divided by a N! (N factorial): Z = \frac{\zeta^N}{N!}. This is to ensure that we do not "over-count" the number of microstates. While this may seem like a strange requirement, it is actually necessary to preserve the existence of a thermodynamic limit for such systems. This is known as the Gibbs paradox. P_s = \frac{1}{Z} e^{- \beta E_s}. Thus, as shown above, the partition function plays the role of a normalizing constant (note that it does not depend on s), ensuring that the probabilities sum up to one: \sum_s P_s = \frac{1}{Z} \sum_s e^{- \beta E_s} = \frac{1}{Z} Z = 1. This is the reason for calling Z the "partition function": it encodes how the probabilities are partitioned among the different microstates, based on their individual energies. Other partition functions for different ensembles divide up the probabilities based on other macrostate variables. As an example: the partition function for the isothermal-isobaric ensemble, the generalized Boltzmann distribution, divides up probabilities based on particle number, pressure, and temperature. The energy is replaced by the characteristic potential of that ensemble, the Gibbs Free Energy. The letter Z stands for the German word Zustandssumme, "sum over states". The usefulness of the partition function stems from the fact that the macroscopic thermodynamic quantities of a system can be related to its microscopic details through the derivatives of its partition function. Finding the partition function is also equivalent to performing a Laplace transform of the density of states function from the energy domain to the β domain, and the inverse Laplace transform of the partition function reclaims the state density function of energies. \mathcal{Z}(\mu, V, T) = \sum_i \exp\left(\frac{N_i\mu - E_i}{k_B T} \right). Here, each microstate is labelled by i , and has total particle number N_i and total energy E_i . This partition function is closely related to the grand potential, \Phi_{\rm G} , by the relation -k_\text{B} T \ln \mathcal{Z} = \Phi_{\rm G} = \langle E \rangle - TS - \mu \langle N\rangle. This can be contrasted to the canonical partition function above, which is related instead to the Helmholtz free energy. The number of microstates in the grand canonical ensemble may be much larger than in the canonical ensemble, since here we consider not only variations in energy but also in particle number. Again, the utility of the grand canonical partition function is that it is related to the probability that the system is in state i : p_i = \frac{1}{\mathcal Z} \exp\left(\frac{N_i \mu - E_i}{k_B T}\right). An important application of the grand canonical ensemble is in deriving exactly the statistics of a non-interacting many-body quantum gas (Fermi–Dirac statistics for fermions, Bose–Einstein statistics for bosons), however it is much more generally applicable than that. The grand canonical ensemble may also be used to describe classical systems, or even interacting quantum gases. The grand partition function is sometimes written (equivalently) in terms of alternate variables as \mathcal{Z}(z, V, T) = \sum_{N_i} z^{N_i} Z(N_i, V, T), where z \equiv \exp(\mu/k_\text{B} T) is known as the absolute activity (or fugacity) and Z(N_i, V, T) is the canonical partition function.
Cite this
"Partition function (statistical mechanics)". 1778438625. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1353533325 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy