Thermal Equilibrium

Suppose a system has finitely many states i=1,,n, each with energy Ei. If the probability pi that the system is in state i maximizes entropy subject to a constraint on its expected energy, then the system is said to be in thermal equilibrium.

The expected energy is:

E=i=1npiEi.

In thermal equilibrium, the probabilities pi are given by the Boltzmann distribution:

pi=eβEij=1neβEj

where:

Derivation insight: principle of maximum entropy

The Boltzmann distribution is derived by maximizing the Shannon entropy:

S=i=1npilnpi

subject to:

Using Lagrange multipliers, we introduce multipliers α and β and form the function:

L=i=1npilnpi+α(1i=1npi)+β(Ei=1npiEi)

Taking partial derivatives with respect to pi, we obtain the condition:

lnpi=1αβEipieβEi

Normalization then gives the Boltzmann form above.

Related:
Classical Statistical Mechanics