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−βEi∑j=1ne−βEj

where:

Derivation insight: principle of maximum entropy

The Boltzmann distribution is derived by maximizing the Shannon entropy:

S=−∑i=1npiln⁡pi

subject to:

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

L=−∑i=1npiln⁡pi+α(1−∑i=1npi)+β(⟨E⟩−∑i=1npiEi)

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

ln⁡pi=−1−α−βEi⇒pi∝e−βEi

Normalization then gives the Boltzmann form above.

Related:
Classical Statistical Mechanics