Thermodynamic equilibrium
In thermodynamics, a thermodynamic system is said to be in thermodynamic equilibrium when it is in thermal equilibrium, mechanical equilibrium, and chemical equilibrium. The local state of a system at thermodynamic equilibrium is determined by the values of its intensive parameters, as pressure, temperature, etc.  Specifically, thermodynamic equilibrium is characterized by the minimum of a thermodynamic potential, such as the Helmholtz free energy, i.e. systems at constant temperature and volume:
Or as the Gibbs free energy, i.e. systems at constant pressure and temperature:
The process that leads to a thermodynamic equilibrium is called thermalization.  An example of this is a system of interacting particles that is left undisturbed by outside influences. By interacting, they will share energy/momentum among themselves and reach a state where the global statistics are unchanging in time.
Thermal equilibrium is achieved when two systems in thermal contact with each other cease to exchange energy by heat. If two systems are in thermal equilibrium their temperatures are the same.
Thermodynamics deals with equilibrium states. The word equilibrium implies a state of balance. In an equilibrium state, there are no unbalanced potentials (or driving forces) with the system. A system that is in equilibrium experiences no changes when it is isolated from its surroundings.
The opposite of equilibrium systems are nonequilibrium systems that are instantaneously off balance.

# Equilibrium overview
- Two systems are in thermal equilibrium when their temperatures are the same.
- Two systems are in mechanical equilibrium when their pressures are the same.
- Two systems are in diffusive equilibrium when their chemical potentials are the same.

# Conditions for equilibrium
- For a completely isolated system, S = 0 at equilibrium.
- For a system at constant temperature and volume, A = 0 at equilibrium.
- For a system at constant temperature and pressure, G = 0 at equilibrium.
These relationships can be derived by considering the differential form of thermodynamic potentials.

# Thermal equilibrium
Thermal equilibrium is when a system's macroscopic thermal observables have ceased to change with time.  For example, an ideal gas whose distribution function has stabilised to a specific Maxwell-Boltzmann distribution would be in thermal equilibrium.  This outcome allows a single temperature and pressure to be attributed to the whole system.  Thermal equilibrium of a system does not imply absolute uniformity within a system; for example, a river system can be in thermal equilibrium when the macroscopic temperature distribution is stable and not changing in time, even though the spatial temperature distribution reflects thermal pollution inputs and thermal dispersion.

# Local thermodynamic equilibrium
It is useful to distinguish between global and local thermodynamic equilibrium. In thermodynamics, exchanges within a system and between the system and the outside are controlled by intensive parameters. As an example, temperature controls heat exchanges. Global thermodynamic equilibrium (GTE) means that those intensive parameters are homogeneous throughout the whole system, while local thermodynamic equilibrium (LTE) means that those intensive parameters are varying in space and time, but are varying so slowly that for any point, one can assume thermodynamic equilibrium in some neighborhood about that point.
If the description of the system requires variations in the intensive parameters that are too large, the very assumptions upon which the definitions of these intensive parameters are based will break down, and the system will be in neither global nor local equilibrium. For example, it takes a certain number of collisions for a particle to equilibrate to its surroundings. If the average distance it has moved during these collisions removes it from the neighborhood it is equilibrating to, it will never equilibrate, and there will be no  LTE. Temperature is, by definition, proportional to the average internal energy of an equilibrated neighborhood. Since there is no equilibrated neighborhood, the very concept of temperature breaks down, and the temperature becomes undefined.
It is important to note that this local equilibrium applies only to massive particles. In a radiating gas, the photons being emitted and absorbed by the gas need not be in thermodynamic equilibrium with each other or with the massive particles of the gas in order for LTE to exist.
As an example, LTE will exist in a glass of water which contains a melting ice cube. The temperature inside the glass can be defined at any point, but it is colder near the ice cube than far away from it. If energies of the molecules located near a given point are observed, they will be distributed according to the Maxwell-Boltzmann distribution for a certain temperature. If the energies of the molecules located near another point are observed, they will be distributed according to the Maxwell-Boltzmann distribution for another temperature.
Local thermodynamic equilibrium is not a stable state, unless it is maintained by exchanges between the system and the outside. For example, it could be maintained inside the glass of water by regularly adding ice into it in order to compensate for the melting. Transport phenomena are processes which lead a system from local to global thermodynamic equilibrium. Going back to our example, the diffusion of heat will lead our glass of water toward global thermodynamic equilibrium, a state in which the temperature of the glass is completely homogeneous. Template:Ref harvard

# General references
- Mandl, F. (1988). Statistical Physics (Second Edition ed.). John Wiley & Sons.CS1 maint: Extra text (link) .mw-parser-output cite.citation{font-style:inherit}.mw-parser-output q{quotes:"\"""\"""'""'"}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-lock-free a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-lock-subscription a{background:url("")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{display:none;font-size:100%}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
- Template:Note labelGriem, Hans R. (2005). Principles of Plasma Spectroscopy (Cambridge Monographs on Plasma Physics). New York: Cambridge University Press. ISBN 0-521-61941-6.

# Footnotes
-  C.Michael Hogan, Leda C. Patmore and Harry Seidman, Statistical Prediction of Dynamic Thermal Equilibrium Temperatures using Standard Meteorological Data Bases, U.S. Environmental Protection Agency Office of Research and Development EPA-660/2-73-003, August, 1973