{{Short description|Specific microscopic configuration of a thermodynamic system}} {{More citations needed|date=December 2008}}

[[File:Macrostates and microstates of two coins.svg|alt=|thumb|330x330px|A diagram of the microstates and macrostates of flipping a coin twice. All microstates are equally probable, but the macrostate consisting of opposite microstates (with (H, T) equivalent to (T, H)) is twice as probable as the macrostate with equal microstates (H, H) or the macrostate with equal microstates (T, T).]]

In statistical mechanics, a '''microstate''' is a specific configuration of a system that describes the precise positions and momenta of all the individual particles or components that make up the system. Each microstate has a certain probability of occurring during the course of the system's thermal fluctuations. In a quantum system, a microstate is a pure state, which is specified by a wave function.<ref name="peastman">{{cite web |last1=Eastman |title=The Statistical Description of Physical Systems |url=https://web.stanford.edu/~peastman/statmech/statisticaldescription.html |website=Stanford |access-date=13 August 2023}}</ref>

In contrast, a '''macrostate''' of a system is a subset of its microstates; the microstates in a macrostate often share macroscopic properties, such as temperature, pressure, volume and density.<ref name=Pathria>{{cite book|title=Statistical Mechanics|last1=Pathria|first1=R. K.|last2=Beale|first2=Paul D.|edition=3rd|year=2011|publisher=Elsevier|isbn=978-0-12-382188-1|page=2}}</ref><ref>{{cite book|title=Statistical Physics of Particles|last=Kardar|first=Mehran|year=2007|publisher=Cambridge University Press|isbn=978-0-521-87342-0}}</ref><ref name=Reif>{{cite book|title=Fundamentals of Statistical and Thermal Physics| last=Reif| first=Frederick| year=1965| publisher=McGraw-Hill| isbn=978-0-07-051800-1| pages=66–70}}</ref> In this description, microstates appear as different possible ways the system can achieve a particular macrostate. Thus, a macrostate is an equivalence class of microstates<ref>{{cite book |last=Denker |first=John |title=Modern Thermodynamics |year=2014 |publisher=CreateSpace Independent Publishing Platform |isbn=978-1502530356 |chapter=More About Entropy |chapter-url=https://www.av8n.com/physics/thermo/entropy-more.html}}</ref> whose differences are ignored for a given analysis.

In the thermodynamic limit, the microstates visited by a macroscopic system during its fluctuations all have the same macroscopic properties.

== Microscopic definitions of thermodynamic concepts== Statistical mechanics links the empirical thermodynamic properties of a system to the statistical distribution of an ensemble of microstates. All macroscopic thermodynamic properties of a system may be calculated from the partition function that sums <math>\text{exp}(-E_i/k_\text{B} T)</math> of all its microstates.

At any moment a system is distributed across an ensemble of <math>\Omega</math> microstates, each labeled by <math>i</math>, and having a probability of occupation <math>p_i</math>, and an energy <math>E_i</math>. If the microstates are quantum-mechanical in nature, then these microstates form a discrete set as defined by quantum statistical mechanics, and <math>E_i</math> is an energy level of the system.

===Internal energy=== The internal energy of the macrostate is the mean over all microstates of the system's energy <math display="block">U \,:=\, \langle E\rangle \,=\, \sum\limits_{i=1}^\Omega p_i \, E_i</math>

This is a microscopic statement of the notion of energy associated with the first law of thermodynamics.

===Entropy=== For the more general case of the canonical ensemble, the absolute entropy depends exclusively on the probabilities of the microstates and is defined as <math display="block">S \,:=\, -k_\text{B} \sum\limits_{i=1}^\Omega p_i \, \ln (p_i) </math> where <math>k_\text{B}</math> is the Boltzmann constant. For the microcanonical ensemble, consisting of only those microstates with energy equal to the energy of the macrostate, this simplifies to <math display="block">S = k_B\,\ln \Omega</math> with the number <math>\Omega</math> of microstates (often in combination with a uniform or equal probability distribution for the microstates, which in the discrete case has <math>p_i := 1/\Omega</math> for each i). This form for entropy appears on Ludwig Boltzmann's gravestone in Vienna.

The second law of thermodynamics describes how the entropy of an isolated system changes in time. The third law of thermodynamics is consistent with this definition, since zero entropy means that the macrostate of the system reduces to a single microstate.

===Heat and work=== Heat and work can be distinguished if we take the underlying quantum nature of the system into account and consider the Leibniz product rule for the differential of the internal energy:

<math display="block"> \begin{align} dU &= d \sum_{i=1}^N p_i E_i = \sum_{i=1}^N d(p_i E_i) = \sum_{i=1}^N (p_i d E_i + E_i d p_i)\\ &= \underbrace{\sum_{i=1}^N p_i d E_i}_{\delta W} + \underbrace{\sum_{i=1}^N E_i d p_i}_{\delta Q}. \end{align} </math>

For a closed system (no transfer of matter), heat in statistical mechanics is the energy transfer associated with a disordered, microscopic action on the system, associated with changes in occupation numbers of the quantum energy levels of the system (i.e. with changes <math>dp_i</math> of the occupation probabilities of the states), without change in the values of the energy levels themselves.<ref name=Reif/>

Work is the energy transfer associated with an ordered, macroscopic action on the system. If this action acts very slowly, then the adiabatic theorem of quantum mechanics implies that this will not cause jumps between energy levels of the system. In this case, the internal energy of the system only changes due to changes <math>dE_i</math> of the system's energy levels.<ref name=Reif/>

The microscopic, quantum definitions of heat and work are the following:

<math display="block">\begin{align} \delta W &= \sum_{i=1}^N p_i \, dE_i \\ \delta Q &= \sum_{i=1}^N E_i \, dp_i \end{align}</math> so that <math display="block">~dU = \delta W + \delta Q.</math>

The two above definitions of heat and work are among the few expressions of statistical mechanics where the thermodynamic quantities defined in the quantum case find no analogous definition in the classical limit. The reason is that classical microstates are not defined in relation to a precise associated quantum microstate, which means that when work changes the total energy available for distribution among the classical microstates of the system, the energy levels (so to speak) of the microstates do not follow this change.

== The microstate in phase space == === Classical phase space === The description of a classical system of ''F'' degrees of freedom may be stated in terms of a 2''F'' dimensional phase space, whose coordinate axes consist of the ''F'' generalized coordinates ''q<sub>i</sub>'' of the system, and its ''F'' generalized momenta ''p<sub>i</sub>''. The microstate of such a system will be specified by a single point in the phase space. But for a system with a huge number of degrees of freedom its exact microstate usually is not important. So the phase space can be divided into cells of the size ''h''<sub>0</sub>&nbsp;=&nbsp;Δ''q<sub>i</sub>''Δ''p<sub>i</sub>'', each treated as a microstate. Now the microstates are discrete and countable<ref>{{Cite web| url=https://web.stanford.edu/~peastman/statmech/statisticaldescription.html| title=The Statistical Description of Physical Systems}}</ref> and the internal energy ''U'' has no longer an exact value but is between ''U'' and ''U''+''δU'', with <math display="inline">\delta U\ll U</math>.

The number of microstates Ω that a closed system can occupy is proportional to its phase space volume: <math display="block">\Omega(U) = \frac{1}{h_0^\mathcal{F}} \int \mathbf{1}_{\delta U}(H(x)-U) \prod_{i=1}^\mathcal{F} dq_i dp_i</math> where <math display="inline">\mathbf{1}_{\delta U}(H(x)-U)</math> is an Indicator function. It is 1 if the Hamilton function ''H''(''x'') at the point ''x'' = (''q'',''p'') in phase space is between ''U'' and ''U''+'' δU'' and 0 if not. The constant <math display="inline">{1}/{h_0^\mathcal{F}}</math> makes Ω(''U'') dimensionless. For an ideal gas is <math>\Omega (U)\propto\mathcal{F}U^{\frac{\mathcal{F}}{2}-1}\delta U</math>.<ref>{{Cite book|title=Theoretische Physik |last=Bartelmann |first=Matthias |publisher=Springer Spektrum|year=2015|isbn=978-3-642-54617-4|pages=1142–1145}}</ref>

In this description, the particles are distinguishable. If the position and momentum of two particles are exchanged, the new state will be represented by a different point in phase space. In this case a single point will represent a microstate. If a subset of ''M'' particles are indistinguishable from each other, then the ''M!'' possible permutations or possible exchanges of these particles will be counted as part of a single microstate. The set of possible microstates are also reflected in the constraints upon the thermodynamic system.

For example, in the case of a simple gas of ''N'' particles with total energy ''U'' contained in a cube of volume ''V'', in which a sample of the gas cannot be distinguished from any other sample by experimental means, a microstate will consist of the above-mentioned ''N!'' points in phase space, and the set of microstates will be constrained to have all position coordinates to lie inside the box, and the momenta to lie on a hyperspherical surface in momentum coordinates of radius ''U''. If on the other hand, the system consists of a mixture of two different gases, samples of which can be distinguished from each other, say ''A'' and ''B'', then the number of microstates is increased, since two points in which an ''A'' and ''B'' particle are exchanged in phase space are no longer part of the same microstate. Two particles that are identical may nevertheless be distinguishable based on, for example, their location. (See configurational entropy.) If the box contains identical particles, and is at equilibrium, and a partition is inserted, dividing the volume in half, particles in one box are now distinguishable from those in the second box. In phase space, the ''N''/2 particles in each box are now restricted to a volume ''V''/2, and their energy restricted to ''U''/2, and the number of points describing a single microstate will change: the phase space description is not the same.

This has implications in both the Gibbs paradox and correct Boltzmann counting. With regard to Boltzmann counting, it is the multiplicity of points in phase space which effectively reduces the number of microstates and renders the entropy extensive. With regard to Gibbs paradox, the important result is that the increase in the number of microstates (and thus the increase in entropy) resulting from the insertion of the partition is exactly matched by the decrease in the number of microstates (and thus the decrease in entropy) resulting from the reduction in volume available to each particle, yielding a net entropy change of zero.

==See also== * Quantum statistical mechanics * Degrees of freedom (physics and chemistry) * Ergodic hypothesis * Phase space

==References== {{Reflist}}

==External links== * [http://theory.physics.manchester.ac.uk/~judith/stat_therm/node57.html Some illustrations of microstates vs. macrostates]

Category:Statistical mechanics