In
physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
, a partition function describes the
statistical
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
properties of a system in
thermodynamic equilibrium
Thermodynamic equilibrium is a notion of thermodynamics with axiomatic status referring to an internal state of a single thermodynamic system, or a relation between several thermodynamic systems connected by more or less permeable or impermeable ...
. Partition functions are
functions of the thermodynamic
state variables, such as the
temperature
Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measurement, measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making ...
and
volume
Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch) ...
. Most of the aggregate
thermodynamic variables of the system, such as the
total energy,
free energy,
entropy
Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
, and
pressure
Pressure (symbol: ''p'' or ''P'') is the force applied perpendicular to the surface of an object per unit area over which that force is distributed. Gauge pressure (also spelled ''gage'' pressure)The preferred spelling varies by country and eve ...
, can be expressed in terms of the partition function or its
derivative
In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
s. 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
In thermodynamics, heat is energy in transfer between a thermodynamic system and its surroundings by such mechanisms as thermal conduction, electromagnetic radiation, and friction, which are microscopic in nature, involving sub-atomic, ato ...
with the
environment at fixed temperature, volume, and
number of particles
In thermodynamics, the particle number (symbol ) of a thermodynamic system is the number of constituent particles in that system. The particle number is a fundamental thermodynamic property which is conjugate to the chemical potential. Unlike m ...
. The grand canonical partition function applies to a
grand canonical ensemble
In statistical mechanics, the grand canonical ensemble (also known as the macrocanonical ensemble) is the statistical ensemble that is used to represent the possible states of a mechanical system of particles that are in thermodynamic equilibri ...
, in which the system can exchange both heat and particles with the environment, at fixed temperature, volume, and
chemical potential
In thermodynamics, the chemical potential of a Chemical specie, species is the energy that can be absorbed or released due to a change of the particle number of the given species, e.g. in a chemical reaction or phase transition. The chemical potent ...
. Other types of partition functions can be defined for different circumstances; see
partition function (mathematics)
The partition function or configuration integral, as used in probability theory, information theory and dynamical systems, is a generalization of the definition of a partition function in statistical mechanics. It is a special case of a normaliz ...
for generalizations. The partition function has many physical meanings, as discussed in
Meaning and significance
Meaning most commonly refers to:
* Meaning (linguistics), meaning which is communicated through the use of language
* Meaning (non-linguistic), a general term of art to capture senses of the word "meaning", independent from its linguistic uses
* ...
.
Canonical partition function
Definition
Initially, let us assume that a thermodynamically large system is in
thermal contact
In heat transfer and thermodynamics, a thermodynamic system
A thermodynamic system is a body of matter and/or radiation separate from its surroundings that can be studied using the laws of thermodynamics.
Thermodynamic systems can be passive ...
with the environment, with a temperature ''T'', and both the volume of the system and the number of constituent particles are fixed. A collection of this kind of system comprises an ensemble called a
canonical ensemble. The appropriate
mathematical expression
In mathematics, an expression is a written arrangement of symbols following the context-dependent, syntactic conventions of mathematical notation. Symbols can denote numbers, variables, operations, and functions. Other symbols include punct ...
for the canonical partition function depends on the
degrees of freedom
In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
of the system, whether the context is
classical mechanics
Classical mechanics is a Theoretical physics, physical theory describing the motion of objects such as projectiles, parts of Machine (mechanical), machinery, spacecraft, planets, stars, and galaxies. The development of classical mechanics inv ...
or
quantum mechanics
Quantum mechanics is the fundamental physical Scientific theory, theory that describes the behavior of matter and of light; its unusual characteristics typically occur at and below the scale of atoms. Reprinted, Addison-Wesley, 1989, It is ...
, and whether the spectrum of states is
discrete
Discrete may refer to:
*Discrete particle or quantum in physics, for example in quantum theory
* Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit
* Discrete group, ...
or
continuous.
Classical discrete system
For a canonical ensemble that is classical and discrete, the canonical partition function is defined as
where
*
is the index for the
microstates of the system;
*
is
Euler's number;
*
is the
thermodynamic beta, defined as
where
is the
Boltzmann constant
The Boltzmann constant ( or ) is the proportionality factor that relates the average relative thermal energy of particles in a ideal gas, gas with the thermodynamic temperature of the gas. It occurs in the definitions of the kelvin (K) and the ...
;
*
is the total energy of the system in the respective
microstate
A microstate or ministate is a sovereign state having a very small population or land area, usually both. However, the meanings of "state" and "very small" are not well-defined in international law. Some recent attempts to define microstates ...
.
The
exponential factor
is otherwise known as the
Boltzmann factor.
Classical continuous system
In
classical mechanics
Classical mechanics is a Theoretical physics, physical theory describing the motion of objects such as projectiles, parts of Machine (mechanical), machinery, spacecraft, planets, stars, and galaxies. The development of classical mechanics inv ...
, the
position and
momentum
In Newtonian mechanics, momentum (: momenta or momentums; more specifically linear momentum or translational momentum) is the product of the mass and velocity of an object. It is a vector quantity, possessing a magnitude and a direction. ...
variables of a particle can vary continuously, so the set of microstates is actually
uncountable
In mathematics, an uncountable set, informally, is an infinite set that contains too many elements to be countable. The uncountability of a set is closely related to its cardinal number: a set is uncountable if its cardinal number is larger tha ...
. In ''classical'' statistical mechanics, it is rather inaccurate to express the partition function as a
sum of discrete terms. In this case we must describe the partition function using an
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
rather than a sum. For a canonical ensemble that is classical and continuous, the canonical partition function is defined as
where
*
is the
Planck constant
The Planck constant, or Planck's constant, denoted by h, is a fundamental physical constant of foundational importance in quantum mechanics: a photon's energy is equal to its frequency multiplied by the Planck constant, and the wavelength of a ...
;
*
is the
thermodynamic beta, defined as
;
*
is the
Hamiltonian
Hamiltonian may refer to:
* Hamiltonian mechanics, a function that represents the total energy of a system
* Hamiltonian (quantum mechanics), an operator corresponding to the total energy of that system
** Dyall Hamiltonian, a modified Hamiltonian ...
of the system;
*
is the
canonical position;
*
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
The Planck constant, or Planck's constant, denoted by h, is a fundamental physical constant of foundational importance in quantum mechanics: a photon's energy is equal to its frequency multiplied by the Planck constant, and the wavelength of a ...
).
For generalized cases, the partition function of
particles in
-dimensions is given by
Classical continuous system (multiple identical particles)
For a gas of
identical classical non-interacting particles in three dimensions, the partition function is
where
*
is the
Planck constant
The Planck constant, or Planck's constant, denoted by h, is a fundamental physical constant of foundational importance in quantum mechanics: a photon's energy is equal to its frequency multiplied by the Planck constant, and the wavelength of a ...
;
*
is the
thermodynamic beta, defined as
;
*
is the index for the particles of the system;
*
is the
Hamiltonian
Hamiltonian may refer to:
* Hamiltonian mechanics, a function that represents the total energy of a system
* Hamiltonian (quantum mechanics), an operator corresponding to the total energy of that system
** Dyall Hamiltonian, a modified Hamiltonian ...
of a respective particle;
*
is the
canonical position of the respective particle;
*
is the
canonical momentum of the respective particle;
*
is shorthand notation to indicate that
and
are vectors in three-dimensional space.
*
is the classical continuous partition function of a single particle as given in the previous section.
The reason for the
factorial
In mathematics, the factorial of a non-negative denoted is the Product (mathematics), product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial:
\begin
n! &= n \times ...
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
Dimensionless quantities, or quantities of dimension one, are quantities implicitly defined in a manner that prevents their aggregation into units of measurement. ISBN 978-92-822-2272-0. Typically expressed as ratios that align with another sy ...
. As stated in the previous section, to make it into a dimensionless quantity, we must divide it by ''h''
3''N'' (where ''h'' is usually taken to be the Planck constant).
Quantum mechanical discrete system
For a canonical ensemble that is quantum mechanical and discrete, the canonical partition function is defined as the
trace of the Boltzmann factor:
where:
*
is the
trace of a matrix;
*
is the
thermodynamic beta, defined as
;
*
is the
Hamiltonian operator.
The
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
of
is the number of
energy eigenstates of the system.
Quantum mechanical continuous system
For a canonical ensemble that is quantum mechanical and continuous, the canonical partition function is defined as
where:
*
is the
Planck constant
The Planck constant, or Planck's constant, denoted by h, is a fundamental physical constant of foundational importance in quantum mechanics: a photon's energy is equal to its frequency multiplied by the Planck constant, and the wavelength of a ...
;
*
is the
thermodynamic beta, defined as
;
*
is the
Hamiltonian operator;
*
is the
canonical position;
*
is the
canonical momentum.
In systems with multiple
quantum states ''s'' sharing the same energy ''E
s'', it is said that the
energy levels
A quantum mechanics, quantum mechanical system or particle that is bound state, bound—that is, confined spatially—can only take on certain discrete values of energy, called energy levels. This contrasts with classical mechanics, classical pa ...
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:
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
In physics, statistical mechanics is a mathematical framework that applies statistical methods and probability theory to large assemblies of microscopic entities. Sometimes called statistical physics or statistical thermodynamics, its applicati ...
, 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
In computer science, a state space is a discrete space representing the set of all possible configurations of a system. It is a useful abstraction for reasoning about the behavior of a given system and is widely used in the fields of artificial ...
(which is independent of the choice of
basis):
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
Bra–ket notation, also called Dirac notation, is a notation for linear algebra and linear operators on complex vector spaces together with their dual space both in the finite-dimensional and infinite-dimensional case. It is specifically de ...
, one inserts under the trace for each degree of freedom the identity:
where is a
normalised Gaussian wavepacket centered at position ''x'' and momentum ''p''. Thus
A coherent state is an approximate eigenstate of both operators
and
, 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.
Connection to probability theory
For simplicity, we will use the discrete form of the partition function in this section. Our results will apply equally well to the continuous form.
Consider a system ''S'' embedded into a
heat bath ''B''. Let the total
energy
Energy () is the physical quantity, quantitative physical property, property that is transferred to a physical body, body or to a physical system, recognizable in the performance of Work (thermodynamics), work and in the form of heat and l ...
of both systems be ''E''. Let ''p
i'' denote the
probability
Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
that the system ''S'' is in a particular
microstate
A microstate or ministate is a sovereign state having a very small population or land area, usually both. However, the meanings of "state" and "very small" are not well-defined in international law. Some recent attempts to define microstates ...
, ''i'', with energy ''E
i''. According to the
fundamental postulate of statistical mechanics (which states that all attainable microstates of a system are equally probable), the probability ''p
i'' will be inversely proportional to the number of microstates of the total
closed system
A closed system is a natural physical system that does not allow transfer of matter in or out of the system, althoughin the contexts of physics, chemistry, engineering, etc.the transfer of energy (e.g. as work or heat) is allowed.
Physics
In cl ...
(''S'', ''B'') in which ''S'' is in microstate ''i'' with energy ''E
i''. Equivalently, ''p
i'' will be proportional to the number of microstates of the heat bath ''B'' with energy :
Assuming that the heat bath's internal energy is much larger than the energy of ''S'' (), we can
Taylor-expand to first order in ''E
i'' and use the thermodynamic relation
, where here
,
are the entropy and temperature of the bath respectively:
Thus
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
In probability theory, a normalizing constant or normalizing factor is used to reduce any probability function to a probability density function with total probability of one.
For example, a Gaussian function can be normalized into a probabilit ...
, and so, we can define the partition function to be this constant:
Calculating the thermodynamic total energy
In order to demonstrate the usefulness of the partition function, let us calculate the thermodynamic value of the total energy. This is simply the
expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
, or
ensemble average for the energy, which is the sum of the microstate energies weighted by their probabilities:
or, equivalently,
Incidentally, one should note that if the microstate energies depend on a parameter λ in the manner
then the expected value of ''A'' is
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
The path integral formulation is a description in quantum mechanics that generalizes the stationary action principle of classical mechanics. It replaces the classical notion of a single, unique classical trajectory for a system with a sum, or ...
of
quantum field theory
In theoretical physics, quantum field theory (QFT) is a theoretical framework that combines Field theory (physics), field theory and the principle of relativity with ideas behind quantum mechanics. QFT is used in particle physics to construct phy ...
.
Relation to thermodynamic variables
In this section, we will state the relationships between the partition function and the various thermodynamic parameters of the system. These results can be derived using the method of the previous section and the various thermodynamic relations.
As we have already seen, the thermodynamic energy is
The
variance
In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
in the energy (or "energy fluctuation") is
The
heat capacity
Heat capacity or thermal capacity is a physical property of matter, defined as the amount of heat to be supplied to an object to produce a unit change in its temperature. The SI unit of heat capacity is joule per kelvin (J/K).
Heat capacity is a ...
is
In general, consider the
extensive variable ''X'' and
intensive variable ''Y'' where ''X'' and ''Y'' form a pair of
conjugate variables
Conjugate variables are pairs of variables mathematically defined in such a way that they become Fourier transform duals, or more generally are related through Pontryagin duality. The duality relations lead naturally to an uncertainty relation— ...
. In ensembles where ''Y'' is fixed (and ''X'' is allowed to fluctuate), then the average value of ''X'' will be:
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
In the special case of
entropy
Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
, entropy is given by
where ''A'' is the
Helmholtz free energy
In thermodynamics, the Helmholtz free energy (or Helmholtz energy) is a thermodynamic potential that measures the useful work obtainable from a closed thermodynamic system at a constant temperature ( isothermal). The change in the Helmholtz ene ...
defined as , where is the total energy and ''S'' is the
entropy
Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
, so that
Furthermore, the heat capacity can be expressed as
Partition functions of subsystems
Suppose a system is subdivided into ''N'' sub-systems with negligible interaction energy, that is, we can assume the particles are essentially non-interacting. If the partition functions of the sub-systems are ''ζ''
1, ''ζ''
2, ..., ''ζ''
N, then the partition function of the entire system is the ''product'' of the individual partition functions:
If the sub-systems have the same physical properties, then their partition functions are equal, ''ζ''
1 = ''ζ''
2 = ... = ''ζ'', in which case
However, there is a well-known exception to this rule. If the sub-systems are actually
identical particles
In quantum mechanics, indistinguishable particles (also called identical or indiscernible particles) are particles that cannot be distinguished from one another, even in principle. Species of identical particles include, but are not limited to, ...
, 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
In mathematics, the factorial of a non-negative denoted is the Product (mathematics), product of all positive integers less than or equal The factorial also equals the product of n with the next smaller factorial:
\begin
n! &= n \times ...
):
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.
Meaning and significance
It may not be obvious why the partition function, as we have defined it above, is an important quantity. First, consider what goes into it. The partition function is a function of the temperature ''T'' and the microstate energies ''E''
1, ''E''
2, ''E''
3, etc. The microstate energies are determined by other thermodynamic variables, such as the number of particles and the volume, as well as microscopic quantities like the mass of the constituent particles. This dependence on microscopic variables is the central point of statistical mechanics. With a model of the microscopic constituents of a system, one can calculate the microstate energies, and thus the partition function, which will then allow us to calculate all the other thermodynamic properties of the system.
The partition function can be related to thermodynamic properties because it has a very important statistical meaning. The probability ''P
s'' that the system occupies microstate ''s'' is
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:
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
In thermodynamics, the Gibbs free energy (or Gibbs energy as the recommended name; symbol is a thermodynamic potential that can be used to calculate the maximum amount of Work (thermodynamics), work, other than Work (thermodynamics)#Pressure–v ...
. 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
In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...
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.
Grand canonical partition function
We can define a grand canonical partition function for a
grand canonical ensemble
In statistical mechanics, the grand canonical ensemble (also known as the macrocanonical ensemble) is the statistical ensemble that is used to represent the possible states of a mechanical system of particles that are in thermodynamic equilibri ...
, which describes the statistics of a constant-volume system that can exchange both heat and particles with a reservoir. The reservoir has a constant temperature ''T'', and a
chemical potential
In thermodynamics, the chemical potential of a Chemical specie, species is the energy that can be absorbed or released due to a change of the particle number of the given species, e.g. in a chemical reaction or phase transition. The chemical potent ...
''μ''.
The grand canonical partition function, denoted by
, is the following sum over
microstates
Here, each microstate is labelled by
, and has total particle number
and total energy
. This partition function is closely related to the
grand potential
The grand potential or Landau potential or Landau free energy is a quantity used in statistical mechanics, especially for irreversible processes in open systems.
The grand potential is the characteristic state function for the grand canonical ens ...
,
, by the relation
This can be contrasted to the canonical partition function above, which is related instead to the
Helmholtz free energy
In thermodynamics, the Helmholtz free energy (or Helmholtz energy) is a thermodynamic potential that measures the useful work obtainable from a closed thermodynamic system at a constant temperature ( isothermal). The change in the Helmholtz ene ...
.
It is important to note that 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
:
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
where
is known as the absolute
activity (or
fugacity) and
is the canonical partition function.
See also
*
Partition function (mathematics)
The partition function or configuration integral, as used in probability theory, information theory and dynamical systems, is a generalization of the definition of a partition function in statistical mechanics. It is a special case of a normaliz ...
*
Partition function (quantum field theory)
*
Virial theorem
*
Widom insertion method
References
*
*
*
*
*
{{Statistical mechanics topics
Equations of physics