Thermodynamicsundergraduategraduate◆ Signature simulation

Boltzmann Entropy

Also known as: Boltzmann's Entropy Formula · Statistical Entropy

Entropy counts the number of microscopic ways a macroscopic state can be realized — more ways means higher entropy.

S=kBlnWS = k_B \ln W
Live simulation
warming up the physics…

S = k·ln Ω with Ω actually counted: N gas particles rattle around a box while the simulation live-counts the microstates Ω = C(N, n_left) for the current left/right split and plots the entropy climbing to its maximum at 50:50. Start everything on the left (a low-entropy state) and watch the second law emerge from nothing but random motion — then read off how absurdly improbable a spontaneous return is: 2^−N.

Equivalent forms

S=kBipilnpiS = -k_B \sum_i p_i \ln p_i
W=eS/kBW = e^{S / k_B}
A single logarithm turns combinatorics into thermodynamics — the deepest bridge between the microscopic and macroscopic worlds.