Submitted:
18 October 2026
Posted:
21 October 2026
You are already at the latest version
Abstract
Using Boltzmann’s Vorlesungen über Gastheorie as a guide, we examine the logic and mathematics underlying his theory of statistical mechanics. These are evaluated by comparison with the results generated by ideal gas simulations which instantiate kinetic theory. We make a clear distinction between kinetic theory as a deterministic physical model and statistical mechanics as a probabilistic model. Boltzmann’s formulation of statistical mechanics in Gastheorie is based on the notion that equilibrium is defined by the most probable macrostate and the premise that progression through ever more probable macrostates is the source of the second law of thermodynamics. The realization that statistical macrostates are mental constructs and not physical states renders both of these propositions meaningless. Instead, equilibrium is properly identified as statistical stationarity, an idea originating with Marian Smoluchowski from his studies of Brownian motion. A two-dimensional simulation demonstrates that the second law of thermodynamics is the direct consequence of Newton’s laws of motion and the law of conservation of energy, thereby resolving Loschmidt’s paradox. In addition, a three-dimensional simulation verifies that the Maxwell energy distribution, not the Boltzmann energy distribution, gives the correct allocation of system energy over the molecules.
Keywords:
ideal gas
; kinetic theory
; second law of thermodynamics
; equilibrium
; macrostate
; entropy
; probability
; statistical stationarity
; Brownian motion
; energy distribution
; Loschmidt’s paradox
; regression to the mean
1. Introduction
Our exploration of the field of classical statistical thermodynamics revolves around Boltzmann’s textbook Vorlesungen über Gastheorie (1896), translated into English as Lectures on Gas Theory (LGT) by Steven G. Brush (1964) [1]. Gastheorie has provided the template for virtually all of the many textbooks on statistical mechanics published since. While kinetic theory and statistical mechanics are often conflated, in the following we will treat them as distinct theories, where kinetic theory is deterministic and based on Newtonian dynamics, while statistical mechanics is based on probability theory as conceived at a time when it was primarily applied to the calculation of gambling odds.
The development of kinetic theory preceded the formulation of statistical mechanics, which was invented by Boltzmann, in part, to circumvent the problem of the computational intractability of kinetic theory at a time when the availability of electronic computers was far in the future. For our purposes, we treat kinetic theory as a surrogate for reality, since it is formulated in terms of fundamental physical laws. We incorporate these laws into simulations which represent the physical behavior of a classical ideal gas, which has been generally accepted as a reasonably accurate model of a simple monatomic gas. Statistical mechanics is based on a probabilistic model which is generally assumed to approximate the physical model of kinetic theory.
Adopting the Bayesian perspective of E. T. Jaynes [2], probabilities are considered epistemological, representing degrees of belief. Recognizing that all mathematical models are inherently epistemological, we nevertheless distinguish between the ontological model of kinetic theory and the epistemological model of statistical mechanics. Therefore, these models are linked only by analogy, not by identity. For example, Maxwell (1860) [3], derives the velocity (speed) distribution of molecules, by which he means the proportional (physical) allocation of molecules to different speeds. Boltzmann’s LGT (1896) describes distributions in terms of probability. While proportionality and probability are not the same, they are widely assumed by to be mathematically equivalent for purposes of comparison, a convention we accept.
In the course of examining Boltzmann’s writings and comparing his assertions to the results of kinetic theory, we have discovered the following inconsistencies. Some are logical and mathematical inconsistencies internal to his theory of statistical mechanics, while others reveal conflicts between his statistical model and our simulations of kinetic theory.
- Boltzmann’s a priori assumption of the equiprobability of microstates, which relies on the notion that cell probabilities are a function only of cell size. While this is true for spatial cells, it is not true for velocity and energy cells, as shown by Maxwell’s speed and energy distributions. We show that equiprobability for energy microstates can be derived directly from the Maxwell energy distribution and does not need to be assumed. Since Maxwell’s derivation preceded Boltzmann’s work, it is the proper prior distribution, not the uniform distribution implied by cell equiprobability. However, the Maxwell speed distribution contradicts the notion that the velocity and energy cells are equiprobable, which is the necessary condition for treating the multinomial coefficient as a macrostate probability.
- Boltzmann’s expressed belief that a system evolves in time through a stepwise sequence of ever more probable macrostates on the way to equilibrium. This is contradicted by 1) Boltzmann’s model, which is grounded on the assumption of time independence and therefore is inherently acausal, which precludes the possibility of an ordered progression through macrostates, 2) microstate equiprobability, which contradicts the notion that the system moves toward equilibrium one macrostate at a time, and 3) our two-dimensional (2D) simulation, which provides no indication that the approach to equilibrium is sequential in Boltzmann’s sense.
- His claim in a paper from 1877 that the distribution of energy among the molecules is exponential, which contradicts his earlier claim in his paper from 1872 that the distribution is Maxwellian, with the latter claim confirmed by our three-dimensional (3D) simulation.
- The arbitrary insertion of ln f into his formulation for the continuous form of his H-theorem, which is necessary for his claim that H can only decrease to a minimum or remain constant.
- The omission of a critical term of the Stirling approximation, which supports his claim that the probability of the most probable macrostate approaches 1 as the number of molecules is increased, while we show the opposite to be true.
- The false belief that the number of microstates in the most probable macrostate exceeds the number of microstates in the remaining macrostates.
- The belief that the number of microstates in the most probable macrostate converges with the total number of microstates as the number of molecules is increased.
While the first three items involve logical and mathematical inconsistencies in Boltzmann’s theory, items 4 and 5 are unwarranted fabrications vital to the mathematical construction of his model. Item 6 describes the genesis of his theory, an incorrect belief that he never thereafter questions. Item 7 is inferred from items 5 and 6.
Our 2D simulation demonstrates that the second law of thermodynamics is a direct consequence of Newton’s laws of motion and the law of conservation of energy. We show that this resolves the reversibility “paradox” formulated by Loschmidt. This is perhaps the most significant of our findings, since it opens the way toward a physical (ontological) understanding of microscopic thermodynamics in place of the probabilistic (epistemological) theory of Boltzmann based on the mathematical concept of entropy.
2. Continuous Velocity
Boltzmann begins with a dynamical description of a gas in the first paragraph of LGT §3, where he provides the following example:
We shall suppose for a moment that in the container there is a single gas composed of completely identical molecules. The molecules will also from now on—unless we specify otherwise—be assumed to behave like completely elastic spheres when they collide with each other. Even if all the molecules initially had the same velocity, there would soon occur collisions in which the velocity of one colliding molecule is nearly in the direction of the line of centers, but that of the other is nearly perpendicular to it. The first molecule would thereby end up with nearly zero velocity, while the velocity of the second would become √2 times as large. In the course of further collisions it would soon happen, if the number of molecules were large enough, that all possible velocities would occur, from zero up to a velocity much larger than the original common velocity of all the molecules; it is then a question of calculating the law of distribution of velocities among the molecules in the final state thus reached, or, as one says more briefly, to find the velocity distribution law.
Proceeding in this manner, the maximum possible magnitude of the velocity after the second round of collisions is (√2)2 = 2, followed by (√2)3 = 2√2 after the third round, etc. This process will continue until the system settles into a “final state” corresponding to thermodynamic equilibrium. We see that the above process provides a straightforward example of the second law of thermodynamics based on kinetic theory. This is overlooked by Boltzmann in his quest to develop a model based on probability theory.
Starting from Boltzmann’s hypothetical initial condition, it will soon be the case that all but one of the molecules will have had at least one collision. If the magnitudes of the velocities are assumed to be continuous, after this event each of the molecules will have a unique magnitude (speed), a condition that will endure for all subsequent collisions. Boltzmann claims that “if the number of molecules were large enough, that all possible velocities [speeds] would occur”. But since the number of possible continuous speeds is theoretically infinite, while the actual number of molecules is finite and the mean time between collisions is measurably greater than zero (about 5 x 10-10 seconds for air at room temperature and atmospheric pressure at sea level), the proportion of theoretically possible speeds that are actually realized will always be infinitesimal.
In the remainder of LGT §3 and §4, Boltzmann derives the principle of detailed balance based on a transport function commonly known as the Boltzmann equation. Detailed balance relies on the premise that the system is in equilibrium, and §4 concludes with the statement:
In other words, it is equally probable that two molecules should separate from each other in a certain way as that they should collide in the opposite way.
This expresses detailed balance in terms of probability, based on the principle of indifference, an epistemological concept. On the other hand, Maxwell (1860) infers detailed balance from the premise that “the directions of the coordinates are completely arbitrary”. This relies on the principle of relativity, an ontological concept.
3. Simulating Kinetic Theory
The probabilistic model of statistical mechanics can be evaluated using a deterministic two-dimensional (2D) ideal gas simulation that instantiates Newton’s laws in the context of kinetic theory. Such 2D simulations are commonly found online, for example, https://en.wikipedia.org/wiki/Maxwell%E2%80%93Boltzmann_distribution.
Our simulation is similarly two-dimensional. Instead of the elastic spheres of kinetic theory, the molecules are envisioned as n elastic “hard disks” moving in two dimensions contained within a box of fixed size. With the Grid Width selection, the initial configuration of the molecules constitutes a square with sides of the selected Grid Width located in the center of the box. Each molecule is initially assigned a velocity of magnitude 1 with the directions of motion selected arbitrarily. An energy microstate is defined as an n-tuple of the energies of the molecules. The simulation computes the allocation of energy to the molecules within a microstate over a sequence of microstates, one for each time step. It can be accessed at https://www.2ndlawsim.com. (Instructions for navigating the app are provided in the Appendix A.)
For our 2D simulation we generally set the number of molecules between 36 and 900. It might appear that these numbers are woefully unrealistic, since the actual number n of molecules in a cubic centimeter of air at sea level is on the order of 1019. However, the proper way to conceive of the simulation is to view the box as a microscopic object of a size proportional to the number of molecules. The molecular density is then the same for all values of n and the simulation represents a large magnification of a tiny box of molecules at room temperature and atmospheric pressure at sea level. The simulated molecular motion can be conceived of as a movie shown in slow motion. Compared to the actual speed of air molecules at room temperature (roughly half a kilometer per second), the simulation slows the molecular speeds by a factor of around 20,000.
In LGT §3, Boltzmann specifies the hypothetical initial condition that all molecules begin with the same speed and energy. (While unlikely to be replicated for a real system, this hypothetical initial condition was selected by Boltzmann for illustrative purposes.) The corresponding initial condition for the distribution of molecules in space is a state where all molecules are confined to one of a set of “coarse-grained” regions of equal size into which the total space has been subdivided.
Once the simulation is run, the trajectories of the molecules are governed by Newton’s laws of motion and the conservation of energy. As such, they are strictly deterministic. Kinetic theory has proven to be a reasonably accurate model for describing simple monatomic gases, so a simulation that incorporates the same physical laws offers a venue for virtual experimentation.
4. The Dynamical Second Law of Thermodynamics
The dynamical basis of the second law can be deduced by simply observing the simulation in the Gas mode. The first thing we notice is that almost none of the molecules appear to be at rest. This confirms Maxwell’s finding with respect to the speed distribution. We see that the gas initially disperses in space, mimicking everyday experience. For an ideal gas, there are neither external forces nor forces acting between the molecules except for the momentary forces due to molecular collisions. Therefore, only the law of inertia and the laws of conservation of momentum and energy account for the motion of the molecules. If our simulation is run in default mode, which implements all three of these laws, and the molecules are initially observed as congregated in a small portion of the box, they will spontaneously disperse to fill the box, in accordance with the second law. If we disable the collisions with Collisions OFF, the gas will expand in a similar fashion, proving that only inertia is required for the expansion to occur. If the walls of the box are removed with Walls OFF, the gas will expand into virtual outer space, further confirming the singular role of inertia in the expansion of the gas.
Although all of the molecules begin with the same speed, it becomes immediately clear that the range of the speeds increases rapidly. This is due to the collisions between molecules, which can be verified by selecting Collisions OFF. In this case it can be seen that the speeds of the molecules remain unchanged from the initial speeds. We conclude that the dispersions of speeds and energies of the molecules are caused exclusively by collisions. While energy is conserved in the simulation, this is not easy to visually observe in real life, which may explain why the first law of thermodynamics was discovered after the second law, which is commonly observed in our everyday experience.
5. Boltzmann’s H-Theorem
In §5, Boltzmann defines his H-theorem by introducing the “entropy principle”, where entropy is presumed to be proportional to the logarithm of probability. He alludes to this principle in §5 by means of a reference to a paper by H. A. Lorentz (1887) [4] which reformulates an earlier paper by Boltzmann (1872) [5] regarding the distribution of molecular energies into a paper which addresses the distribution of molecular velocities and their associated speeds. Whereas Boltzmann (1872) defines the H-theorem in terms of energy, Lorentz (1887) derives the H-theorem in terms of velocity, consistent with the velocity orientation of LGT. So in a roundabout way, Boltzmann references his earlier work.
A close examination of his 1872 paper finds no justification for the incorporation of the logarithmic function into his formula for “E” (later relabeled as H) given by his Eq. (17), which is pulled out of thin air. The same arbitrary substitution in terms of velocity is described in a sentence from LGT page 50:
The result obtained on substituting in [ln f] for ξ, η, ζ the velocity components of a particular gas molecule of mass m at time t, we call the value of the logarithmic function corresponding to the molecule considered at the time considered.
Boltzmann provides no rationale for “substituting in [ln f] for ξ, η, ζ”, reflecting the arbitrary substitution in his above Eq. (17).
The H-theorem in terms of velocity is therefore a self-referential formula which uses the probability distribution f to calculate the expected value of a quantity ln f, which is a monotonic function of the probability. The expected value of ln f is H. If probabilities represent degrees of belief, this creates a mathematical object that is clearly nonphysical, since it relies solely on probability.
6. Discrete Velocity
On page 56 of LGT §6 Boltzmann proposes the following:
We divide the total space into many (ζ) equal-sized volume elements ω (cells), so that the presence of the velocity point of a molecule in each such volume element is to be considered an event equiprobable with its presence in each other volume element …
These volume elements (cells) can be viewed as approximations generated by rounding the actual values of velocity to a level of precision determined by the size of the cell in velocity space. The cell size imposes an epistemological constraint which limits the extent of the knowledge we can have concerning the actual velocity or speed.
However, Boltzmann provides no rationale for the further assumption that equal-sized volumes in velocity space correspond to equal probabilities of the presence of velocity points in each cell. This assumption is the fundamental basis of the gambling model that he adopted as his theory of probability. The mechanisms underlying gambling systems are specifically designed such that the various outcomes are equiprobable, for example, coins, dice, cards, roulette wheels, etc. While this assumption is consistent with observations of the spatial uniformity of gases or liquids in equilibrium, extrapolating it to velocity or energy is unjustified.
However, based on the unsupported assumption of cell equiprobability, Boltzmann develops his model based on the concept of macrostates composed of collections of microstates, which are also equiprobable as a consequence of cell equiprobability. While he doesn’t use the terms “microstate” and “macrostate” in LGT, these terms have been widely adopted in the subsequent literature to clarify the distinction between a specific observed configuration of molecules for which the identical molecules are considered distinguishable, and a generic configuration for which the identical molecules are considered indistinguishable and therefore interchangeable. A macrostate is defined as a collection of microstates which share the same allocation of approximate velocities over the indistinguishable molecules.
Boltzmann presents a simple example in which macrostates are calculated from the number of “velocity points” observed in each of two equal-sized cells. If the probability of a molecular velocity being observed in each of the cells is proportional to the size of the cells in virtual velocity space, then the most probable number of molecules observed with either of the two velocities is n/2, and the number of microstates included in the most probable macrostate is given by the following formula from page 57 of LGT:
However, the velocity is composed of two orthogonal components, direction and magnitude (speed). While the directions are reasonably considered equiprobable, the magnitudes (speeds) are not. As Maxwell (1860) proved, the probability of observing a particular speed is a function of the speed itself, not the size of the volume element. Maxwell reasoned that the velocity distribution can be deduced by combining the fundamental physical laws of conservation of momentum and conservation of energy, and he derives the theoretical allocation of continuous speeds as a three-dimensional distribution given by:
While f(s) is commonly interpreted as a probability distribution function, for Maxwell it represents a proportion of the physical allocation of molecules having a particular speed s, where α is a scaling parameter which is dimensioned in the same units as speed, rendering the exponent dimensionless. Setting α to 1 converts this equation to natural units where C = 4/√π is the normalization constant. This simplifies the math so that the functional relationships are more apparent.
The discrete form of this function can then be written as:
where pi is the proportion of molecules observed as having the approximate speed si. The size of the velocity element corresponds to the precision with which the speed is measured. The number of velocity elements imax is calculated by dividing the total velocity space by the size of the velocity element. The index i ranges between 0 and imax − 1, where i = 0 represents the density of energies between 0 and 0.999…, i = 1 represents the density of energies between 1 and 1.999…, etc. If c is defined as the precision of measurement, 1/c is the size of the volume element relative to the total volume. The discrete value si is coded into the simulation as si = round(sc)/c, where s is the exact speed and round() is the function commonly used in programming languages for rounding to the nearest integer. From Eq. (3), we see that the proportion of molecules observed with speed si is not determined by the size of the velocity element, as Boltzmann asserted, but by the observed speed.
7. Simulating the Speed and Energy Distributions
The discrete Maxwell speed distribution given in Eq. (3) can be factored into two components, a degeneracy factor si2 and an exponential factor:
as noted in Kauzmann (1966) [6]. This distribution applies to three-dimensional space, so to verify it we constructed a three-dimensional (3D) simulation, which can be accessed at https://www.speedenergysim.com. This simulation provides numeric solutions for the speed and energy distributions to the limits of the numeric precision of the computer.
We can compare Eq. (3) to the results of this simulation, where n is the number of molecules of an ideal gas at approximately standard temperature and pressure (STP).
Figure 1a shows the simulated discrete speed distribution for n = 1000 and c = 100, where c is the measure of precision and corresponds to the number of bins in the histogram. The continuous curve represents the theoretical speed distribution.
Following Maxwell’s lead, Boltzmann (1872) derives the energy distribution given in his Eq. (16a) as:
where E is the molecular energy, C is the normalization constant and h is an unspecified parameter (not to be confused with the Planck constant) expressed in units of 1/energy. He identifies this as the “Maxwell distribution”. Since E = ½ ms2, h = 2/m. Setting the molecular mass m to 1 converts m to natural units. This simplifies the math so that the functional relationships are more apparent. The discrete form of Eq. (5) can then be written as:
The degeneracy factor is Ei1/2 and the exponential factor is:
The continuous energy distribution can be derived directly from the continuous speed distribution given in Eq. (2) by setting:
where ds3 denotes a volume element in three-dimensional space.
p(E)dE = p(s)ds3,
Figure 1b shows the energy distribution for n = 1000 and c = 100, where the continuous curve represents the theoretical energy distribution. While the speed distribution is a common feature of most simulations we have surveyed, in our experience the energy distribution is rarely displayed.
Boltzmann continues his analysis of the energy distribution in a subsequent paper published in 1877, Boltzmann (1877b) [7]. This paper derives the energy distribution of the most probable energy macrostate. On the bottom half of page 1988, Boltzmann declares that the probability density function for “the kinetic energy of a molecule” is given by an exponential function of the form of Eq. (7), which he interprets as a probability distribution, not a factor of a probability distribution. He follows this by describing the three-dimensional speed distribution in the form of Eq. (3). These “distributions” clearly contradict each other since the probability of the energy being equal to zero in Eq. (7) is equal to C, while the probability of the speed being equal to zero in Eq. (3) is zero. Since kinetic energy E = ½ ms2, both can’t be true.
8. Microstate Probability
Boltzmann’s macrostate probability is based on the multinomial distribution, which can be factored into the multinomial coefficient and the microstate probability. The former is the basis of Boltzmann’s macrostate distribution and the latter is given by:
where pi is the probability of a molecule being in the ith cell, ni is the number of molecules in the ith cell, M is the number of cells, and Σni = n.
If the cells are equiprobable, as assumed in LGT §6, then pi = p for all pi, and Pmicro = pn, a constant. The multinomial coefficients can then be defined as the relative probabilities of the various macrostates. The corollary of this is that if the pi’s are different, then the microstate probabilities will also, in general, be different.
However, this is not true for all cases, since there are conditions for which the microstates can be equiprobable even if the cell probabilities are not. This is the case where the energies are assigned to the cells according to the Maxwell energy distribution given in Eq. (6).
Since the system energy for M cells is E = n1E1 + n2E2 + ⋯ + nMEM, we find that the microstate probability is given by:
Since E1, E2, ⋯ EM are constants, the product E1E2 ⋯ EM is also constant, and Pmicro is therefore constant, resulting in microstate equiprobability. This proof of microstate equiprobability replaces the “fundamental postulate” of statistical mechanics, which mandates microstate equiprobability so that the multinomial coefficient can be used to represent macrostates.
However, when we reexamine Boltzmann’s macrostate probability, we encounter the problem that the multinomial coefficient no longer represents the relative probability of energy macrostates. The reason is that combinatorial mathematics can be used to create equiprobable microstates only if the discrete elements (cells) on which it is based are equiprobable. While equiprobable microstates can be deduced from equiprobable cells for the spatial distribution, for the energy distribution equiprobable microstates require the unequal distribution of cell probabilities given by the Maxwell energy distribution. This nullifies the use of the multinomial distribution for calculating macrostate probabilities for energy (and velocity) and confines its use to spatial probabilities, which Boltzmann mostly ignores subsequent to Boltzmann (1877a).
9. Varying Measurement Precision
We next explore the effects of varying measurement precision c on the observed two-dimensional energy distribution. For this we return to our 2D simulation https://www.2ndlawsim.com. For convenience, we assign the value 1 to the initial speed of each molecule so that the total energy of the system is n/2. We can measure the energy of each molecule to a certain level of precision designated as c, corresponding to the precision to which the value of energy can be observed. If c = 10, the energy is measured to one decimal place; if c = 100, the energy is measured to 2 decimal places, etc. Of course, c can be any integer for which n/c is an integer and need not correspond to decimal places. Initially the molecules will all have the same energy, but after successive collisions the number of different energies will increase. If the energy is continuous, after n ─ 1 of the molecules have participated in at least one collision, each of the molecules will have a unique energy and the number of distinct values of energy will be n, one for each molecule. The condition of uniqueness will continue to hold for all subsequent collisions. If the energy is rounded to the level of precision determined by c, it will be observed as discrete. We will designate each of these discrete values of energy as an observed energy level. In this case, even after many collisions it will be likely that more than one molecule will be found in some of the observed energy levels, so that the number of observed energy levels will generally be less than n. The observed energy levels bear a resemblance to Boltzmann’s concept of macrostates, since they are epistemological groupings of physical states. The observed energy levels group the molecules within a microstate according to their approximate energies observed to a given level of precision.
If we select Energy Micro from the input screen, the simulation will display a sequence of observed microstates sampled at regular intervals. Each microstate consists of a set of the numbers of molecules occupying each observed energy level.
Figure 2a plots the sequence of observed energies of each of 100 molecules as a proportion of the total energy of the system. Note that n = 100 for a 2D simulation represents the same molecular density as n = 1000 for a 3D simulation. Each of the 1000 time steps corresponds to an observed microstate where the energies are rounded to 1/c, the inverse of the level of precision. It shows that the maximum observed energy allocation (the upper envelope of the microstate sequence) at first rises rapidly and then levels off with time. Since each molecule is portrayed by a different color, we can see that the maximum observed molecular energy manifests in different molecules as time passes. Since the molecules are identical except for their energies, all molecules have equal chances to predominate. Figure 2b plots the corresponding continuous microstate energies of the molecules, energies which can only be distinguished if the measurement precision is perfect. These plots show that the distribution stabilizes in the condition of statistical stationarity, signifying equilibrium.
Figure 3a shows that the number of observed energy levels increases rapidly with time and levels off at a value less than the maximum number of theoretical energy levels n. Since the precision of measurement is less than perfect, multiple values of the continuous energy can appear in the same observed energy level, reducing the number of distinct observed energy levels. For the continuous case of Figure 3b, the number of theoretical energy levels remains constant at n once equilibrium is reached, since the energy of each molecule is unique.
Figure 3c shows that increasing the precision to one decimal place results in a greater number of observed energy levels.
As the precision is increased in Figure 3e to c = 40, the number of observed energy levels approaches the theoretical limit. Greater precision results in more possible observed energy levels and reduced occupation numbers in the observed energy levels. The number of observed energy levels plateaus at a level determined by the precision of measurement. A low level of precision will result in observed energy levels that encompass relatively large volumes of energy space. As the precision is increased, the volumes of the observed energy levels become smaller so that fewer molecules occupy an observed energy level, leading to a saturation point for which each observed energy level contains only one molecule, corresponding to the continuous case.
The monotonicity of the case of perfect precision corresponds to the concept of the absolute entropy defined by classical thermodynamics. On the other hand, Boltzmann’s entropy incorporates fluctuations due to “coarse-graining”, a necessary feature of statistical mechanics. The entropy fluctuations are thus an artifact of Boltzmann’s probabilistic model, for which the “grains” are measurable ─ not a property of the physical model of kinetic theory, for which the grains are infinitesimal.
However, in a real system the observed equilibrium distribution may be limited by practical limits on c. For instance, there may be a physical limit on the precision to which physical energy can be measured related to the wavelength of the radiation by which it is observed. Thus our knowledge (epistemology) is limited by a physical (ontological) constraint, since we cannot see beyond the limit of precision.
10. The Second Law of Thermodynamics for Energy Dispersion
The second law for energy dispersion is illustrated by Figure 2 and Figure 3, which show that after an initial transition, the system settles into an equilibrium state corresponding to statistical stationarity. However, invoking kinetic theory, Loschmidt observes that if the directions of the velocities of the molecules were simultaneously reversed, they would still follow Newton’s laws of motion, recovering the initial conditions. From this he concludes that the irreversibility of the second law cannot be attributed to the laws of motion.
However, William Thomson provides a more complete explanation of irreversibility in a paper from 1874 entitled “The Dissipation of Energy” [8]:
Suppose now the temperature to have become thus very approximately equalized at a certain time from the beginning, and let the motion of every particle become instantaneously reversed. Each molecule will retrace its former path, and at the end of a second interval of time, equal to the former, every molecule will be in the same position, and moving with the same velocity, as at the beginning; so that the given initial unequal distribution of temperature will again be found, with only the difference that each particle is moving in the direction opposite to that of its initial motion. This motion will not prevent an instantaneous subsequent commencement of equalization, which, with entirely different paths for the individual molecules, will go on in the average according to the same law as that which took place immediately after the system was first left to itself.
Boltzmann reiterates this explanation in terms of H in the last paragraph of LGT page 59:
Consider any motion for which H decreases from time t0 to time t1. When one reverses all the velocities at time t0, he would by no means arrive at a motion for which H must increase; on the contrary, H would probably still decrease. It is only when one reverses the velocities at time t1 that he obtains a motion for which H must increase during the time interval t1 – t0, and even then H would probably decrease again after that, so that motions for which H continually remains very near to its minimum value are by far the most probable.
Since H represents Boltzmann’s deterministic transport equation, it is supposedly a manifestation of kinetic theory, which is also the basis of Loschmidt’s “paradox”. Loschmidt’s mistake is that he terminates his thought experiment prematurely. If the motion of the molecules continues uninterrupted after the initial conditions are recovered (except for reversal of the velocities), H will decrease as before. Since the original decrease in H would also result from reversed initial conditions, the decrease in H is shown to be independent of the directions of the initial velocities, that is, any arbitrarily selected initial directions will achieve the same result. Thus if no additional reversals are invoked, H will decrease irreversibly as before. In other words, the directions of motion of the molecules are irrelevant to the direction of time.
While Boltzmann was clearly aware of Thomson’s explanation of irreversibility, it appears that Loschmidt was not. However it seems that Thomson’s rationale (as paraphrased by Boltzmann) has largely been forgotten, while Loschmidt’s paradox is presented as an unresolved mystery in every textbook on statistical mechanics we have reviewed. This “paradox” continues to be a barrier to deeper understanding even after having been resolved by Thomson and reiterated by Boltzmann long ago.
As illustrated by the example at the beginning of LGT §3 and confirmed by our simulation, the increasing range of the molecular speeds is a direct consequence of collisions. We can see that disabling the collisions by selecting Collisions OFF will leave the speeds of the molecules unchanged over time, preventing the dispersion of energy. Therefore, the second law pertaining to energy dispersion is a direct consequence of the relationship between Newton’s third law (conservation of momentum) and the first law of thermodynamics (conservation of energy).
11. Discrete Space
As pointed out in Section 6, Eq. (1) cannot properly be applied to the velocity distribution. However, it can logically be applied to the spatial distribution of molecules since all positions in space can properly be considered equiprobable. The origin of this equation appears to be a paper from 1877 entitled “On the Relation of a General Mechanical Theorem to the Second Law of Thermodynamics”, Boltzmann (1877a) [9]. This paper verbally outlines his theory of statistical mechanics while eschewing the use of mathematical equations for this purpose. He describes a scenario where it is equally likely that a molecule is found in either the right or left half of a “closed container”. This is analogous to the probability of a fair coin landing on heads or tails, or of drawing with replacement a black or white ball from an urn containing equal numbers of black and white balls, as described at the beginning of LGT §6. He postulates that the initial distribution of the molecules is uneven or “not uniform”. He then claims:
For the initial conditions which we originally assumed, the [distribution of the] spheres will be almost always uniform at time t1…
Time t1 presumably coincides with equilibrium, and uniform means that the number of molecules will be exactly the same in both halves of the container. He continues with:
Indeed it is clear that any individual uniform distribution [microstate], which might arise after a certain time from some particular initial state, is just as probable as an individual non-uniform distribution [microstate]; just as in the game of Lotto, any individual set of five numbers is as improbable as the set 1, 2, 3, 4, 5. It is only because there are many more uniform distributions than non-uniform ones that the distribution of states will become uniform in the course of time. [italics ours]
To test this conjecture, we constructed the following table:
Table 1 shows that Znon ≥ Zmp, with the strict inequality Znon > Zmp obtaining for all n > 2, contradicting Boltzmann’s conjecture. He could have done the same calculations in a few minutes. Instead, he based his entire theory of statistical mechanics on the opposite idea, leading him to identify the most probable macrostate with equilibrium.
12. The Discrete Spatial Distribution at Equilibrium
While Boltzmann doesn’t address the spatial distribution of molecules in LGT, he does so briefly in Boltzmann (1877a) and Part V of Boltzmann (1877b). Eq. (1) is widely included in texts on statistical mechanics to represent the most probable spatial macrostate for a container divided into two identical halves. The factorials in this formula are then approximated by applying a truncated version of Stirling’s formula which yields n! ≈ (n/e)n. (A detailed derivation of Stirling’s formula is described in Reif (1965) [10], Appendix A∙6.) This approximation is almost universally adopted by textbooks on statistical mechanics. The result when applied to Eq. (1) yields:
for large n, where Ztot is the total number of ways that n distinguishable molecules can be arranged between the two halves of the system. This agrees with the contention in Boltzmann (1877a) that the number of “uniform” microstates, where the number of molecules in both sides of the container is exactly equal, exceeds the remaining number of “non-uniform” microstates.
Zmp ≈ Ztot = 2n
On the other hand, when we apply the long form of Stirling’s formula, n! ≈ √(2πn) (n/e)n, to Eq. (1), we get:
This equation was published in a paper by Denur in 2011 [11] and contradicts Boltzmann’s belief that equilibrium is defined by the most probable macrostate, pointing out instead that:
The maximum possible entropy obtains if the system is freely allowed to visit all microstates—and hence also all macrostates … It is this distribution, and not the most probable macrostate alone, that characterizes true thermodynamic equilibrium.
Denur’s Eq. (2) is identical to the above Eq. (12) and shows that (substituting Denur’s W for Boltzmann’s Z) the probability Pmp = Wmp/Wtot of the most probable spatial macrostate decreases as the number of molecules n is increased, the opposite of what is claimed in Boltzmann (1877a). Since the probability of a molecule being contained in a spatial cell is proportional to the volume of the cell, Eq. (1) is correct for the spatial distribution.
That Denur’s interpretation is mathematically correct is demonstrated by Table 1 in our Section 11. For a container divided into two halves, the macrostate distribution corresponds to the binomial distribution. This distribution is plotted in Figure 4 for various values of n, showing clearly that the probability of the most probable macrostate declines with increasing n, while the width of the distribution expands commensurably so that the total probability remains at 1.
On page 96 of his textbook [12], A. B. Pippard discusses the topic of fluctuations in the volume of a gas in equilibrium. He points out that minor fluctuations in volume are not rare, but commonplace. In personal correspondence with Denur [13], Bruno J. Zwolinski proposed that fluctuations away from the most probable macrostate are incorporated within thermodynamic equilibrium. This concurs with Pippard, who on page 97 asserts that not only minor but even major fluctuations are not deviations from equilibrium, but included in the equilibrium distribution, so that even the largest fluctuations in the volume of the gas only represent unlikely macrostates. As a consequence, spatial equilibrium must incorporate all of the available spatial microstates of the system, not just those associated with the most probable macrostate. Similarly, Zwolinski suggested that the entropy of an isolated system at thermodynamic equilibrium is always fixed at its maximum possible value, rendering this fixed maximized entropy larger than that corresponding to the system being trapped in the most probable macrostate. This suggestion invites comparison of the probabilities corresponding to these entropies, leading to the mathematical result reached in
Denur (2011) given by Eq. (12) above.
13. Applying the Long Form of the Stirling Approximation
While most textbooks dismiss the long form of the Stirling approximation early on, we have found two that carry the long form to the end. The first is Elementary Statistical Physics (1986) [14] by Charles Kittel. In Eq. (6.10) of his textbook, Kittel derives the expression for the dimensionless entropy of the most probable macrostate by taking the logarithm of its probability. Substituting ln Zmp for his σ and n for his N results in:
where n ln 2 is the total entropy ln Ztot of the system, as given by Kittel’s Eq. (6.11). He follows with the conclusion that:
We see clearly in this example that for the purpose of calculating the entropy no significant error is made if we say that all of the accessible phase space has the properties of the most probable condition of the system.
This rationale is less convincing if one portrays Eq. (13) in terms of probability rather than entropy, as in Eq. (12). In the General references immediately following his Table of Contents, Kittel lists the earlier work of Mayer and Mayer entitled Statistical Mechanics (1940) [15]. In their Eq. (3.9) they derive the probability of the most probable macrostate using the long form of the Stirling approximation, which they designate as w0 and which corresponds to our Eq. (12).
They follow this with Eq. (3.10) which represents the ratio wm /w0, where wm is the probability of a macrostate for which the number of molecules in one-half of a container deviates from the most probable number by ±m. (We have replaced their n with our m to avoid confusion, since elsewhere we reserve n for the number of molecules.) They call this ratio the “fractional deviation from equality”, from which they reason that nearby macrostates are almost as probable as the most probable macrostate. They interpret this to mean that equilibrium should encompass relatively nearby macrostates in addition to the most probable macrostate. Mayer and Mayer thereby redefine equilibrium, departing from Boltzmann, who consistently claims that only the most probable macrostate constitutes equilibrium.
Dreiss independently derived Eq. (12) without prior awareness of Mayer and Mayer. His revelation occurred while reviewing a textbook by N. Laurendeau [16], which asserted the dominance of the most probable macrostate for large values of n, rendering the impact of the rest of the macrostates negligible. However, Dreiss reasoned that either of the two next-to-most-probable macrostates should be almost as probable as the most probable macrostate. For a system divided into two equal-sized cells, the ratio of the two probabilities is easily found to be n/(n+2), which approaches 1 for large n, rendering it impossible for the most probable macrostate to dominate the distribution. This error was communicated to Laurendeau in a letter from 2009, which went unanswered due to Laurendeau’s untimely death. This error was subsequently found to be almost universal in the literature on statistical mechanics, with the exceptions of Kittel and Mayer and Mayer, as noted above.
Unlike Kittel and the Mayers, Denur and Dreiss both recognized the implications of Eq. (12) for Boltzmann’s original version of statistical mechanics. While Kittel’s error can be attributed to his focus on entropy rather than probability, the Mayers’ rationale seems intuitively plausible. However, a closer look reveals that as the number of molecules n is increased, more and more of the probability distribution is contained in a fixed percentage of macrostates. This is because the width of the distribution, as measured by the standard deviation, increases at the rate of √n, while the number of macrostates Zfp included in a fixed percentage of macrostates centered on the most probable macrostate is proportional to n. This means that the number of macrostates which have probabilities near that of the most probable macrostate is a diminishing proportion of macrostates included in the set defined by the fixed percentage of n. This is accompanied by an increasing proportion of the total microstates being found within the specified range of macrostates, such that Zfp/Ztot approaches 1 as n is increased. However, this should not be interpreted to mean that Zfp approaches Ztot for large n, since the total number of microstates Ztot continues to increase faster than the number of microstates in Zfp. Since the difference Ztot − Zfp increases with n, Zfp can’t be said to converge with Ztot. So the fixed percentage version of equilibrium contradicts not only the Boltzmann definition but also Denur’s conclusion that equilibrium should properly include all of the microstates of the system.
14. The Discrete Spatial Distribution in Time
A spatial model incorporating time is described in a paper from 1906 translated in Marian Smoluchowski: His Life and Scientific Work (1999) [17]. This model approximates the spatial dynamics of an ideal gas by means of a random walk, a type of Markov process, which is described in Section 12.5 of Reif (1965) [18].
A major fault of Boltzmann’s statistical mechanics is its failure to explicitly incorporate time, which necessitates his speculative rationale that a system moves through a progression of ever more probable macrostates on the way to equilibrium. The explicit introduction of time was the main consequence of the independent explorations of Brownian motion by Einstein and Marian Smoluchowski. While both addressed fluids containing particles in suspension and molecules in solution, Smoluchowski extended the model of Brownian motion to cover the diffusion of gases. This involved assuming that each molecule be considered a Brownian particle, causing the aggregate distribution to disperse with time. Smoluchowski considered his model to be an extension of Boltzmann’s theory and after Boltzmann’s death in 1906 was regarded heir to Boltzmann’s legacy. (Along with Einstein, he provided the theoretical foundation for the experiments of Jean Perrin confirming the existence of atoms [19].)
In the simplest version of Brownian motion, time is represented as a series of discrete steps, each representing a collision. Between collisions, a molecule is assumed to travel in a straight line for a distance equal to the mean free path between collisions. The straight line is the consequence of the law of inertia in the absence of external forces. If the directions of motion after each collision is taken to be isotropic, then there is always a higher probability of the distance from the origin increasing rather than decreasing in the next step until the boundaries of the container intervene. This process results in the continuous mixing of the molecules known as self-diffusion.
In each of the three spatial directions, the progression through time can be modelled as a 1-dimensional random walk. On page 6 of the recently translated Studies on Brownian Motion and Related Phenomena [20] the average displacement ν of a molecule in each direction is given by:
where m is the number of discrete time steps. Applying the long form of the Stirling approximation yields:
Therefore, the average dispersal of molecules increases with the square root of time, in agreement with the empirically observed behavior of the second law. Smoluchowski considers an ideal gas to be a superposition of n molecules, each moving in a Brownian trajectory. If enclosed, the gas will attain an equilibrium which he describes as a “statistically stationary state”, a “stationary state of equilibrium”, “stable equilibrium”, etc.
Boltzmann’s model is grounded on the assumption of time independence, meaning that the location and velocities of a collision have no relevance to past or future collisions. As such, it is inherently acausal, which precludes the possibility of an ordered progression through states. Implicit in Boltzmann’s association of macrostate probability with time is the necessity that the system remain in a particular macrostate until all of its associated microstates Wmac have occurred without intervening transitions to microstates included in other macrostates. This constraint contradicts the a priori assumption that all microstates are equally probable, since a microstate confined to a particular macrostate would have a probability of 1/Wmac, while the microstates contained in all other macrostates would have a probability of zero. In other words, the concept of progression through a sequence of macrostates contradicts the assumption that all microstates are equally probable with probability equal to 1/Wtot. Since both cannot simultaneously be true, Boltzmann’s hypothesis that macrostate probability is related to time is thus logically inconsistent.
Progression implies causality, which at minimum requires that the current position of a molecule be conditioned on the previous position, as in Smoluchowski’s model. In the simplest version of his model, the speeds of the molecules are assumed to be constant and are approximated by the average speed, so that the model represents a random walk. Smoluchowski’s model generates a well-defined transport equation, since the next step in a random walk is contingent on its current position. The extent of spatial diffusion as measured by the standard deviation of the distribution of molecules is an increasing function of √t, which is comparable to √m in Eq. (15). This provides a formulation of the second law which is monotonic with time.
At the beginning of a time step, a molecule of a Boltzmann gas is equally likely to collide at any location in the container regardless of its position at the beginning of the previous time step, while in Smoluchowski’s model the position of a molecule after a time step is restricted to a point on the spherical surface defined by the mean free path from its previous position. Needless to say, the number of accessible locations of a molecule in the next time step is very much smaller for Smoluchowski than for Boltzmann.
Incorporating the conditionality of the random walk model developed by Smoluchowski into statistical mechanics results in a Markov model based on probable cause, which bears a much closer resemblance to deterministic kinetic theory, which is strictly causal. The persistence of Boltzmann’s time-independent formulation of statistical mechanics in the current literature on statistical mechanics leaves the field constrained by the simplistic concept of unconditional probability.
15. Simulating the Spatial Distribution
For the 2D simulation, the dispersion of the molecules can be tracked by comparing the numbers of molecules in concentric bands of equal area radiating from the center. The spatial dispersion of molecules can be observed by selecting Spatial Micro, which displays a sequence of microstates defined by the number of indistinguishable molecules in each concentric band. Equilibrium corresponds to the statistical stationarity of the number of molecules in each band, as well as the statistically stationary distribution of molecules over all bands. The occupation numbers fluctuate, but the average magnitudes of the fluctuations decline as the areas of the bands are decreased, corresponding to increasing spatial precision.
The area of the bands is set the same for all bands and is given by πr2, where r is the selected radius of the circle encompassing the molecules closest to the center of the box. The spatial precision is therefore proportional to 1/r. The number of concentric bands is given by:
where w is the width of the square box of gas and the bracket denotes the integer floor of the bracketed number. The radius of the circle enclosing all bands is rb, so the total area of the bands is Atot = πrb2 = bπr2. The area of the box outside of the circle defined by rb is disregarded, so that Atot is always less than the area w2 of the square box. If ri is the outside radius of the ith band, then the molecule is considered within the band if the distance of the molecule from the origin rmol satisfies:
where r0 = 0 and ri = r√i for i > 0.
ri ≥ rmol > ri−1 ,
The number of concentric bands in Figure 5 is 25, as calculated from Eq. (16) for r = 50 and w = 500. Figure 5a shows that the proportion of molecules in each band converges with time. Figure 5b shows the distribution of molecules over the bands after 15 time steps in the 25 concentric bands counting from the origin, demonstrating the approach to equilibrium. Since equilibrium has not yet been attained after 15 time steps, the proportion of molecules in the bands closer to the origin is still greater than in those further away, as expected.
Figure 6a, Figure 6c and Figure 6e below display the proportions of the n molecules in the various spatial bands for r = 100, 50 and 25, respectively and show that the magnitude of the fluctuations in these proportions decreases as the precision increases, approaching zero for perfect precision. Figure 6b, Figure 6d and Figure 6f below show the molecular occupation numbers for each of the spatial bands for the last allocation in the respective sequence of time steps.
Figure 6a and Figure 6b show that for r = 100 (low precision), all occupation numbers are above zero in equilibrium. This is because the number of bands is significantly less than the number of molecules, which means that all spatial bands are likely to be occupied.
Figure 6c and Figure 6d show that at a higher level of precision corresponding to r = 50, there are fewer molecules per band, so some of the bands will occasionally be empty.
Figure 6e and Figure 6f show that for even greater precision where r = 25, it is increasingly likely that some of the bands will be empty.
These plots clearly exhibit fluctuations which are statistically stationary with stable means and standard deviations, consistent with Smoluchowski’s Brownian model of molecular motion. Boltzmann’s conjecture that uniform microstates predominate is shown to be false in Figure 6. While Figure 6f appears to approach uniformity, this is misleading since for uniformity the microstates would be evenly spaced. The reason for the uniformity of occupation numbers is that as precision is increased, there is room for an increasing number of unique observed microstates with occupation numbers equal to 1 and the number of microstates that are not unique will decrease commensurably.
The tendency of the most probable macrostate to decline with increasing n is confirmed by our 2D simulation. Figure 7 compares the results of the simulation with values calculated using Eq. (12). The discrepancy for n ≤ 64 is due primarily to the inexactness of even the long form of the Stirling approximation for smaller values of n. For n > 64, the probability of the simulated most probable macrostate is greater than the calculated value, since the law of energy conservation limits access of molecules to distant locations, which in turn limits the accessibility of microstates incorporating such locations.
16. The Second Law of Thermodynamics for Spatial Dispersion
The second law for spatial dispersion can be observed by running the 2D simulation. A sample result is plotted in Figure 5, which shows that after an initial transition, the system approaches spatial equilibrium, which corresponds to statistical stationarity. In the hypothetical case where the directions of the molecular velocities are arbitrarily reversed, after returning to the initial positions they will resume the approach toward spatial equilibrium, as explained by William Thomson in the quotation included in Section 10.
Thomson resolved Loschmidt’s paradox using simple logic, which was subsequently reiterated by Boltzmann in LGT. This leads to the conclusion that the directions of motion of the molecules are irrelevant to the direction of time, as can be demonstrated by reversing the directions of the molecules in the simulation. If the Gas mode is selected, Speed is set sufficiently low and the directions of the molecules are Reversed within a few seconds, the molecules will return to or near to their initial positions and then once again disperse, demonstrating the irreversibility of the second law. (The simulated display of reversibility deteriorates with time due to the accumulation of rounding errors from the calculations involving collisions. If the collisions are turned OFF, the reversal will be exact.) If the velocities are reversed immediately after the simulation is started, the effect will be the same, leading to the conclusion that the gas will expand regardless of the initial orientations of the velocities.
Our explanation of the spatial second law of thermodynamics is nowhere to be found in the current literature, as far as we know. The closest we have come is The Feynman Lectures on Physics Vol. I, Chapter 52: Symmetry in Physical Laws [21]. In Section 52-2 he writes:
Next we mention a very interesting symmetry which is obviously false, i.e., reversibility in time. The physical laws apparently cannot be reversible in time, because, as we know, all obvious phenomena are irreversible on a large scale…
This reverses the direction of Loschmidt’s logic, which starts from the premise that Newton’s laws are reversible, and then concludes that they can’t be the source of the second law. Feynman turns this logic on its head by acknowledging the empirical evidence of the second law, and concluding that the premise of reversibility must be false. He subsequently tries to identify the specific law(s) implicated using the concept of mirror symmetry, but comes up short due to his confusion of mirror symmetry with left-right symmetry, as can be observed in his Fig. 52-2. (For mirror symmetry to work, the mirror must be perpendicular to the direction of motion.)
The caveat “on a large scale” suggests that irreversibility is an emergent property of a thermodynamic system. However, our simulation demonstrates that Feynman’s logic is confirmed at small scales as well, since Newton’s laws of motion are not scale-dependent.
17. Discussion
The early pioneers of kinetic theory and statistical mechanics were handicapped by the absence of microscopic data with which to test their theories, having access only to the macroscopic measurements of classical thermodynamics. This renders the term “statistical” in statistical mechanics misleading, since the distributions are derived from probability theory, not statistical sampling. In addition, since Boltzmann was one of the first to apply probability to physics, there was confusion as to whether probability referred to a physical state or a state of mind, a confusion that persists and has been inherited by quantum theory. The mathematical tool kit used by Boltzmann lacked the concept of conditionality, which was first introduced into statistical mechanics by Smoluchowski in 1906, the year of Boltzmann’s death. Boltzmann ostensibly built statistical mechanics on the foundation of kinetic theory, which was already well established, having been formalized by David Bernoulli in 1738 [22]. For instance, in 1857 Clausius [23] wrote:
Krönig assumes that the molecules of a gas do not oscillate about definite positions of equilibrium, but that they move with constant velocity in straight lines until they strike against other molecules, or against some surface which is to them impermeable. I share this view completely, and I also believe that the expansive force of the gas arises from this motion.
This clearly identifies inertia as the source of the expansion of a gas, providing a physical explanation of the spatial second law of thermodynamics which is identical to ours. Boltzmann either overlooked or ignored such insights in pursuit of his probabilistic model.
On page 38 of LGT Boltzmann observes that “the velocity distribution is changed only by collisions, and not by the progressive motion of the molecules”. Since the outcome of collisions can be determined by combining conservation of momentum with conservation of energy, as proposed by Maxwell, the dispersion of velocity and energy among virtual gas molecules observed in our 2D simulation provides a graphic demonstration of the second law of thermodynamics for velocity and energy. Boltzmann’s observation also implies the orthogonality of energy dispersion and spatial dispersion for an ideal gas. Conversely, in LGT and his other writings, Boltzmann provides no explanation of how probability might have physical consequences such as the empirically observed second law. As observed in Section 4, such causality is the sole province of Newton’s laws and the law of conservation of energy.
These insights from kinetic theory are largely absent from the modern literature. However, they are easily observed in ideal gas simulations such as ours. Computers have been available for over 70 years that are capable of simulating the behavior of gases [24,25], although these early simulations lacked the modern graphical interfaces which make many observations regarding gas theory visually apparent.
In LGT §8 Boltzmann explicitly states the fundamental belief which underlies his theory:
In nature, the tendency of transformations is always to go from less probable to more probable states.
He provides no support for this statement, treating it as self-evident. On the next page he concludes:
The second law is thus found to be a probability law.
While he might have been aware of Laplace’s papers on Bayesian probability theory, he may have chosen to ignore Laplace’s ideas since they contradicted his belief that probability is a property of nature. (While he references Laplace several times in LGT, none of the references pertain to probability theory.)
Although a contemporary of Francis Galton, Boltzmann appears not to have been aware of Galton’s discovery of regression toward the mean, since it is nowhere referenced. While Galton at first sought physical causes to explain regression, after 10 years he finally realized that regression toward the mean was a “probability law” which required no causal explanation. Boltzmann, conversely, having found the “cause” of the second law in regression, interpreted it as a physical law, as did Galton at first. However, the “tendency of transformations” he identified is simply an artifact of his probabilistic model and has no physically causal basis.
An excellent account of regression is included in Thinking, Fast and Slow by Daniel Kahneman [26]. On page 183 of his book, Kahneman writes:
The statistician Howard Wainer has drawn up a long list of eminent researchers who have made the same mistake—confusing mere correlation with causation. Regression effects are a common source of trouble in research, and experienced scientists develop a healthy fear of the trap of unwarranted causal inference.
Boltzmann provides a classic example of this error and may have been the first scientist to be deceived by regression. While he can be excused due to his lack of awareness of the phenomenon, this misunderstanding has persisted to the present day in virtually all of the literature on statistical mechanics, which largely ignores advances in the field of probability theory that have occurred since Boltzmann’s time.
The most common physical explanation of the second law in classical thermodynamics is that heat always flows from hot to cold, retaining the caloric interpretation of heat as a fluid. We could as easily claim that cold flows from cold to hot, which is equally informative. However, if we imagine that a hot gas and a cold gas are separated by an insulated barrier which is subsequently removed, we can envision the hot and cold molecules mixing as a consequence of the Brownian motion described by Smoluchowski. At the same time, the molecules can be modeled as exchanging energy via a Markov process, as described by Brian Zhang (2019) [27]. The combined result would model the approximate uniformity of molecular density and temperature which characterizes a gas in equilibrium.
Kinetic theory has long been recognized as chaotic [28]. As such, the Boltzmann transport equation is solvable only by numeric means such as our simulations. Detailed exploration of deterministic chaos had to wait for the development of modern computer simulations such as those pioneered by Benoit Mandelbrot [29]. The foundation of Boltzmann’s probabilistic second law is the idea of randomness as a property of nature. But if randomness is considered merely an approximation of deterministic chaos, then the question of who’s rolling the dice becomes moot.
18. Conclusion
Simple observation of simulated molecular motion confirms that the second law of thermodynamics is the direct consequence of Newton’s first and third laws of motion and the law of conservation of energy. Since these are the only rules governing molecular motion that are coded into our computer simulations, no other explanation is possible. We see that Boltzmann’s imaginary macrostate model is the sole source of the uncertainty which constitutes the basis of statistical mechanics.
The central tenets of statistical mechanics are 1) that thermodynamic equilibrium corresponds to the most probable macrostate and 2) that the empirically observed second law of thermodynamics is a “probability law”, for which the approach to equilibrium involves a progression through a sequence of increasingly probable macrostates. Only the locations in coarse-grained physical space can be considered equiprobable, and Denur’s derivation shows that the probability of such a system being in its most probable macrostate approaches zero for large systems. Therefore, Boltzmann’s identification of equilibrium with the most probable macrostate fails on its own terms and his notion of a progression through macrostates is both mathematically and logically untenable.
While Boltzmann’s multinomial model is mathematically consistent when applied to the spatial distribution of molecules, it fails when applied to velocity and energy, since it depends on the assumption that cell probabilities must be equal for equal-sized cells in velocity/energy space. Deriving the speed distribution from first principles by combining the established physical laws of conservation of momentum and energy, Maxwell showed that the equality of cell probabilities cannot be true, which eliminates the mathematical foundation of Boltzmann’s model of statistical mechanics as it pertains to velocity and energy.
Kinetic theory preceded Boltzmann’s statistical mechanics. The primary barrier to the discovery of the dynamical basis of the second law was and continues to be the almost universal belief in Loschmidt’s paradox. In Lectures on Gas Theory Boltzmann reiterates William Thomson’s resolution of this alleged paradox, which applies simple logic from kinetic theory to show that the second law does not depend on the directions of motion of the molecules or the direction of time. With this insight and the empirical aid of computer simulations which instantiate kinetic theory, we see that Boltzmann’s probabilistic formulation of the second law should be replaced by two deterministic laws, one relating to the positions of molecules in physical space and the other relating to their velocities or energies. We demonstrate via our simulations that these orthogonal second laws of thermodynamics are not only compatible with Newton’s laws of motion, but rely on them, since the second law for position is a direct consequence of the law of inertia, and the second law for velocity and energy is a direct consequence of combining the laws of conservation of momentum and conservation of energy.
Author Contributions
Conceptualization, E.D. and J.D.; methodology, E.D. and J.D.; software, E.D.; validation, J.D.; formal analysis, E.D. and J.D.; writing—original draft preparation, E.D.; writing—review and editing, E.D. and J.D.; visualization, E.D.; supervision, E.D. and J.D. Both authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data can be generated by running the simulations, whose code is available on request.
Acknowledgments
Arthur von Waldburg provided programming assistance crucial to the development of the 2D simulation utilized in our paper. He also provided a number of useful comments and suggestions regarding our paper. ChatGPT 5.5 assisted with the coding for the 3D simulation. The authors have reviewed and edited the output and take full responsibility for the content of this code. We are very grateful to Bruno John Zwolinski (see Reference 13) for the following initial elucidations regarding equilibrium statistical mechanics: (a) The entropy of an isolated system at thermodynamic equilibrium is always fixed at its maximum value corresponding to equiprobability of all of its microstates and hence to its freely fluctuating among all of its macrostates. (b) Fluctuations away from a system's most probable macrostate do not decrease its entropy. To the contrary, they contribute to its fixed maximum entropy being larger than that corresponding to the system being trapped in its most probable macrostate.
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A
In the simulation https://www.2ndlawsim.com setup screen the Number of Molecules (n) should be the square of an integer and will be adjusted accordingly if not. Precision (c) determines the integer precision to which the energy can be observed (c = 1 corresponds to a round number, c = 10 corresponds to 1 decimal place, c = 100 corresponds to 2 decimal places, etc.). Initial Radius is the radius of the circle which defines the constant area of the concentric spatial bands. Grid Width sets the width of the initial grid of molecular positions, with minimum width = 1 and maximum width = 500. Max Grid sets the grid width to 500, which corresponds to a uniform initial distribution of molecules throughout the entire box. Selecting Energy Micro or Spatial Micro displays a time sequence of microstates. The other controls are self-explanatory. Once the controls are selected, Set and then Run will start the animation. After Pause is pressed, the animation can then be resumed with Run or restarted with Set. Selecting Reverse when the molecules are in motion will reverse the directions of motion of the molecules.
References
- Boltzmann, L. Lectures on Gas Theory (1896). University of California Press: Berkeley, 1964. Translated by Stephan G. Brush. Dover print edition 1995.
- Jaynes, E. T. “Information Theory and Statistical Mechanics” The Physical Review, Vol. 106, No. 4, 620-30, May 15, 1957. [CrossRef]
- Maxwell, J. C. “Illustrations of the Dynamical Theory of Gases” (1860) in Brush, S. G. The Kinetic Theory of Gases: An Anthology of Classic Papers with Historical Commentary. Imperial College Press: London, 2003, 148-54.
- Lorentz, H. A. “Uber das Gleichgewicht der Lebendigen Kraft Unter Gasmolekulen” Wien. Ber. 95, 115 (1887), 91.
- Boltzmann, L. “Further Studies on the Thermal Equilibrium of Gas Molecules” (1872) in Brush, Op. Cit., 292-4.
- Kauzmann, W. Kinetic Theory of Gases W. A. Benjamin: New York, 1966, 140-1.
- Sharp, K. and Matschinsky, F. Translation of Ludwig Boltzmann’s Paper “On the Relationship between the Second Fundamental Theorem of the Mechanical Theory of Heat and Probability Calculations Regarding the Conditions for Thermal Equilibrium” Sitzungberichte der Kaiserlichen Akademie der Wissenschaften. Mathematisch-Naturwissen Classe. Abt. II, LXXVI 1877, pp 373-435 (Wien. Ber. 1877, 76:373-435). Reprinted in Wiss. Abhandlungen, Vol. II, reprint 42, p. 164-223, Barth, Leipzig, 1909 Entropy 2015, 17, 1971-2009. [CrossRef]
- Thomson, W. “The Kinetic Theory of the Dissipation of Energy” (1874) in Brush, Op. Cit., 350-61.
- Boltzmann, L. “On the Relation of a General Mechanical Theorem to the Second Law of Thermodynamics” (1877) in Brush, Op. Cit., 362-7.
- Reif, F. Fundamentals of Statistical and Thermal Physics Waveland Press: Long Grove, IL, 1965, Appendix A∙6.
- Denur, J. “Work from the Most Probable Macrostate, and Relation to the Adiabatic Piston Problem” AIP Conference Proceedings 1411, 27 (2011). [CrossRef]
- Pippard, A. B. Elements of classical thermodynamics for advanced students of physics Cambridge University Press: London, 1964, 7, 96-109.
- Zwolinski, B. J. Personal Correspondence.
- Kittel, C. Elementary Statistical Physics Wiley & Sons: New York, 1958, 1986, Section 6.
- Mayer, J. E. and Mayer, M. G. Statistical Mechanics John Wiley & Sons: New York, 1940, Sections 3c, 3e, and 4b, and Appendix AIV.
- Laurendeau, N. Statistical Thermodynamics Cambridge University Press: New York, 2005, 35-7.
- Chandrasekhar, S., Kac, M., Smoluchowski, R. Marian Smoluchowski: His Life and Scientific Work Polish Scientific Publishers PWN: Warszawa, 1999, 48-9.
- Reif Op. Cit., 486-8.
- Grzanka, J. The Forgotten Genius of Physics, a work on Marian Smoluchowski Peter Lang: Berlin, 2025, 49-55.
- Smoluchowski, M. Studies on Brownian Motion and Related Phenomena Minkowski Institute Press: Montreal. 2023, 6.
- Feynman, R., Leighton, R. B., Sands, M. L. The Feynman Lectures on Physics Vol. I Basic Books: New York, 2011, Ch. 52.
- Bernoulli, D. “On the Properties and Motions of Elastic Fluids” (1738) in Brush, Op. Cit., 57-65.
- Clausius, R. “The Nature of the Motion which we call Heat” (1857) in Brush, Op. Cit., 113.
- Metropolis, N., et al “Equation of State Calculations by Fast Computing Machines” University of Chicago, Chicago, Illinois (Received March 6, 1953). [CrossRef]
- Alder, B. J. and Wainwright, T. “Molecular Dynamics by Electronic Computers” Radiation Laboratory, University of California, Livermore, California (1958).
- Kahneman, D. Thinking, Fast and Slow Farrar, Straus and Giroux: New York (2011), 175-84.
- Zhang, B. “Coconuts and Islanders: A Statistics-First Guide to the Boltzmann Distribution” University of Oxford, April 10, 2019.
- Dorfman, J. R. “Deterministic Chaos and the Foundations of the Kinetic Theory” University of Maryland, College Park, Maryland (1997). [CrossRef]
- Mandelbrot, B. B. The Fractal Geometry of Nature W. H. Freeman: New York, 1982.
Figure 1.

Figure 2.

Figure 3.

Figure 4.

Figure 5.

Figure 6.

Figure 7.

| n | Zmp | Ztot | Znon | Zmp /Znon |
| 2 | 2 | 4 | 2 | 1.00 |
| 4 | 6 | 16 | 10 | .60 |
| 6 | 20 | 64 | 44 | .45 |
| 8 | 70 | 256 | 186 | .38 |
where Zmp is calculated using Eq. (1) and is equal to the number of uniform microstates, Ztot = 2n is the total number of microstates, Znon = Ztot − Zmp is the number of non-uniform microstates and Zmp /Znon is the ratio of uniform to non-uniform microstates.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.