# Is the second law of thermodynamics routinely violated?

**URL:** https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151
**Category:** Factual Questions
**Created:** [April 28, 2019, 12:15am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151 "2019-04-28T00:15:23Z")
**Posts on this page:** 20
**Page:** 14

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 4:08pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/261 "2019-05-17T16:08:42Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> Well then, your definition is just wrong—if A emits a quantity of heat to B, and A is hotter than B, the combined isolated system A + B will suffer a net increase of entropy, as demonstrated above.  
> The first one says that A is hotter than B, but the third one says that B looses heat, which is gained by A. That this yields negative entropy change isn’t surprising, as it’s a process that violates the second law of thermodynamics.
> 
> The thermodynamically allowed process is given by A, being the hotter one, loosing a quantity of -dQ of heat; therefore, its change in entropy must be dS[sub]A[/sub] = -dQ/T[sub]A[/sub]. Conversely, B, the colder system, gains a quantity dQ of heat; leading to an entropy change dS[sub]B[/sub] = -dQ/T[sub]A[/sub]. The combined entropy change is then  
> dS = dS[sub]A[/sub] + dS[sub]B[/sub] = -dQ/T[sub]A[/sub] + dQ/T[sub]B[/sub]  
> which, for T[sub]A[/sub] \> T[sub]B[/sub] is necessarily greater than zero.

Yes, it is a flow from cold to hot. Major error on my part.

But that still can’t be right… I don’t think it is correct to simply add the change in entropy of subsystems. Those fractions are ratios and I don’t think you can derive

dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]/_T_[SUB]A[/SUB] - dQ[SUB]B[/SUB]/_T_[SUB]B[/SUB]

A more appropriate formula might be

dQ[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]-dQ[SUB]B[/SUB]  
_T_[SUB]AuB[/SUB] = (_T_[SUB]A[/SUB]+_T_[SUB]B[/SUB])/2  
dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = 2·(dQ[SUB]A[/SUB]-dQ[SUB]B[/SUB])/(_T_[SUB]A[/SUB]·_T_[SUB]B[/SUB])

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 4:16pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/262 "2019-05-17T16:16:15Z")

</div>

> [@Max\_S](#):
>
> Yes, it is a flow from cold to hot. Major error on my part.
> 
> But that still can’t be right… I don’t think it is correct to simply add the change in entropy of subsystems. Those fractions are ratios and I don’t think you can derive
> 
> dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]/_T_[SUB]A[/SUB] - dQ[SUB]B[/SUB]/_T_[SUB]B[/SUB]
> 
> A more appropriate formula might be
> 
> dQ[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]-dQ[SUB]B[/SUB]  
> _T_[SUB]AuB[/SUB] = (_T_[SUB]A[/SUB]+_T_[SUB]B[/SUB])/2  
> dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = 2·(dQ[SUB]A[/SUB]-dQ[SUB]B[/SUB])/(_T_[SUB]A[/SUB]·_T_[SUB]B[/SUB])
> 
> ~Max

And here I made the same mistake twice. Let me try again:

But that still can’t be right… I don’t think it is correct to simply add the change in entropy of subsystems. Those fractions are ratios and I don’t think you can derive

dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]/_T_[SUB]A[/SUB] + dQ[SUB]B[/SUB]/_T_[SUB]B[/SUB]

A more appropriate formula might be

dQ[SUB]AuB[/SUB] = dQ[SUB]A[/SUB]+dQ[SUB]B[/SUB]  
_T_[SUB]AuB[/SUB] = (_T_[SUB]A[/SUB]+_T_[SUB]B[/SUB])/2  
dQ[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB] = 2·(dQ[SUB]A[/SUB]+dQ[SUB]B[/SUB])/(_T_[SUB]A[/SUB]·_T_[SUB]B[/SUB])

~Max

---

<div class="post-metadata">

### Author: ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)
#### Post date: [May 17, 2019, 4:32pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/263 "2019-05-17T16:32:29Z")

</div>

> [@Max\_S](#):
>
> But that still can’t be right… I don’t think it is correct to simply add the change in entropy of subsystems.

The entropy of subsystems is explicitly additive. That’s the reason one formulates it as the logarithm of the number of available microstates: upon combining the microstates of two systems into one, you’ll get a total number of microstates that’s the product of the microstates of the two subsystems (if system one can be in microstates A, B, and C, and system two can be in microstates D and E, the total system can be in the microstates AD, AE, BD, BE, CD, and CE). Taking the logarithm of a product is equal to the sum of the logarithms of the factors.

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 4:43pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/264 "2019-05-17T16:43:21Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> The entropy of subsystems is explicitly additive. That’s the reason one formulates it as the logarithm of the number of available microstates: upon combining the microstates of two systems into one, you’ll get a total number of microstates that’s the product of the microstates of the two subsystems (if system one can be in microstates A, B, and C, and system two can be in microstates D and E, the total system can be in the microstates AD, AE, BD, BE, CD, and CE). Taking the logarithm of a product is equal to the sum of the logarithms of the factors.

I have not conceded that (classical thermodynamic) entropy is the logarithm of the number of available microstates. Why else would entropy be additive?

~Max

---

<div class="post-metadata">

### Author: ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)
#### Post date: [May 17, 2019, 4:53pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/265 "2019-05-17T16:53:42Z")

</div>

> [@Max\_S](#):
>
> I have not conceded that (classical thermodynamic) entropy is the logarithm of the number of available microstates. Why else would entropy be additive?
> 
> ~Max

One formulates the entropy in statistical mechanics in that way because the entropy, in classical thermodynamics, is an extensive property, which implies its additivity. If you have problems with classical thermodynamics, too, then that’s a completely separate issue.

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 5:21pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/266 "2019-05-17T17:21:47Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> One formulates the entropy in statistical mechanics in that way because the entropy, in classical thermodynamics, is an extensive property, which implies its additivity. If you have problems with classical thermodynamics, too, then that’s a completely separate issue.

Very well, in that case Ta=Tb or entropy is undefined.

~Max

---

<div class="post-metadata">

### Author: ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)
#### Post date: [May 17, 2019, 6:05pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/267 "2019-05-17T18:05:25Z")

</div>

> [@Max\_S](#):
>
> Very well, in that case Ta=Tb or entropy is undefined.
> 
> ~Max

And how on Earth do you come to that conclusion?

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 6:34pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/268 "2019-05-17T18:34:09Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> And how on Earth do you come to that conclusion?

Classically, entropy can only be defined when temperature is intrinsic. If temperature is intrinsic, _T_[SUB]A[/SUB] must equal _T_[SUB]B[/SUB].

_T_[SUB]AuB[/SUB] = _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB]  
d_Q_[SUB]AuB[/SUB] = d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]  
d_S_[SUB]AuB[/SUB] = d_Q_[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB]

assert d_S_[SUB]AuB[/SUB]\>0 when _T_[SUB]A[/SUB] \> _T_[SUB]B[/SUB]  
contradiction: _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB] and _T_[SUB]A[/SUB] \> _T_[SUB]B[/SUB]

assert d_S_[SUB]AuB[/SUB]\>0 when d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]=0  
d_Q_[SUB]AuB[/SUB] = d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]=0  
d_S_[SUB]AuB[/SUB] = 0/_T_[SUB]AuB[/SUB] = 0  
contradiction: d_S_[SUB]AuB[/SUB] = 0 and d_S_[SUB]AuB[/SUB]\>0

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 17, 2019, 6:44pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/269 "2019-05-17T18:44:25Z")

</div>

> [@Max\_S](#):
>
> Classically, entropy can only be defined when temperature is intrinsic. If temperature is intrinsic, _T_[SUB]A[/SUB] must equal _T_[SUB]B[/SUB].
> 
> _T_[SUB]AuB[/SUB] = _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB]  
> d_Q_[SUB]AuB[/SUB] = d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]  
> d_S_[SUB]AuB[/SUB] = d_Q_[SUB]AuB[/SUB]/_T_[SUB]AuB[/SUB]
> 
> assert d_S_[SUB]AuB[/SUB]\>0 when _T_[SUB]A[/SUB] \> _T_[SUB]B[/SUB]  
> contradiction: _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB] and _T_[SUB]A[/SUB] \> _T_[SUB]B[/SUB]
> 
> assert d_S_[SUB]AuB[/SUB]\>0 when d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]=0  
> d_Q_[SUB]AuB[/SUB] = d_Q_[SUB]A[/SUB]+d_Q_[SUB]B[/SUB]=0  
> d_S_[SUB]AuB[/SUB] = 0/_T_[SUB]AuB[/SUB] = 0  
> contradiction: d_S_[SUB]AuB[/SUB] = 0 and d_S_[SUB]AuB[/SUB]\>0
> 
> ~Max

Sorry, intensive not intrinsic.

Would entropy actually be extensive? Is an extensive variable (dQ) divided by an intensive variable (T) extensive?

~Max

---

<div class="post-metadata">

### Author: ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)
#### Post date: [May 18, 2019, 4:13am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/270 "2019-05-18T04:13:06Z")

</div>

> [@Max\_S](#):
>
> What makes you think the particles in an isolated system will irreversibly mix or that two halves of a system must come to permanent thermal equilibrium

In gases, molecules are moving quite rapidly, and conduction and convection will transport heat, as well as mix up the gas, bringing it to equilibrium pretty fast.

> [@](#):
>
> and why doesn’t Poincaré recurrence disprove that assertion?

Even if gas molecules were mathematical billiard balls, which they are not, any hypothetical recurrence or other macroscopic fluctuations due to the number of molecules not being _truly_ infinite, the system not being observed for an actual infinite amount of time, etc., result in cosmological timescales that are completely beyond the thermodynamic equilibrium picture. Actual gases are zipping around pretty fast, and the relaxation time to equilibrium under everyday conditions is not long.

---

<div class="post-metadata">

### Author: ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)
#### Post date: [May 18, 2019, 11:50am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/271 "2019-05-18T11:50:55Z")

</div>

> [@Max\_S](#):
>
> Classically, entropy can only be defined when temperature is intrinsic. If temperature is intrinsic, _T_[SUB]A[/SUB] must equal _T_[SUB]B[/SUB].

None of this is right, I’m afraid. You can, for example, also increase entropy without any heat transfer—from the first law of thermodynamics, we get (if we leave the amount of stuff invariant)

dU = TdS - pdV

So if we let the energy stay the same, this yields

dS = pdV/T.

In consequence, if we let a system expand, its entropy will increase.

> [@Max\_S](#):
>
> Sorry, intensive not intrinsic.
> 
> Would entropy actually be extensive? Is an extensive variable (dQ) divided by an intensive variable (T) extensive?
> 
> ~Max

Yes. Think about it this way: if you increase the system’s size, the extensive quantity changes in proportion, while the intensive one stays constant; consequently, their ratio also increases in proportion to system size.

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 18, 2019, 7:42pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/272 "2019-05-18T19:42:26Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> None of this is right, I’m afraid. You can, for example, also increase entropy without any heat transfer—from the first law of thermodynamics, we get (if we leave the amount of stuff invariant)
> 
> dU = TdS - pdV
> 
> So if we let the energy stay the same, this yields
> 
> dS = pdV/T.
> 
> In consequence, if we let a system expand, its entropy will increase.

You cannot derive the fundamental thermodynamic relation unless temperature is defined, and because temperature is intensive it is only defined when temperature is uniform. (Unless you are willing to accept my notion of “average temperature”, but apparently I made that up the other day)

Specifically you cannot substitute _T_d_S_ for δ_Q_ without using the second law of thermodynamics, and you cannot use the second law of thermodynamics unless _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB].

> [@Half\_Man\_Half\_Wit](#):
>
> Yes. Think about it this way: if you increase the system’s size, the extensive quantity changes in proportion, while the intensive one stays constant; consequently, their ratio also increases in proportion to system size.

I must remind you that the walls of an isolated system are immovable and the average temperature of an isolated system is constant.

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 18, 2019, 7:50pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/273 "2019-05-18T19:50:40Z")

</div>

> [@DPRK](#):
>
> In gases, molecules are moving quite rapidly, and conduction and convection will transport heat, as well as mix up the gas, bringing it to equilibrium pretty fast.  
> Even if gas molecules were mathematical billiard balls, which they are not, any hypothetical recurrence or other macroscopic fluctuations due to the number of molecules not being _truly_ infinite, the system not being observed for an actual infinite amount of time, etc., result in cosmological timescales that are completely beyond the thermodynamic equilibrium picture. Actual gases are zipping around pretty fast, and the relaxation time to equilibrium under everyday conditions is not long.

I don’t disagree with you, but _in theory_ a formulation of the second law of thermodynamics that says “the entropy\* of an isolated system never decreases over time” is invalid.

\*where entropy means _k_ log _W_.

~Max

---

<div class="post-metadata">

### Author: ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)
#### Post date: [May 19, 2019, 1:21am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/274 "2019-05-19T01:21:07Z")

</div>

> [@Max\_S](#):
>
> I don’t disagree with you, but _in theory_ a formulation of the second law of thermodynamics that says “the entropy\* of an isolated system never decreases over time” is invalid.
> 
> \*where entropy means _k_ log _W_.
> 
> ~Max

You are missing some qualifiers (e.g., “thermodynamic limit”, “ensemble”) and precise definitions before you can argue (are you?) that Boltzmann’s law or his kinetic theory is invalid. What are the properties of your system- still elastic spheres? What are the space and time scales used to compute W? What about the fact that on some scale like your Poincare time no system is isolated?

I gather you are ultimately bothered that systems are constantly fluctuating and nothing in the equations of motion seems to preclude apparently thermodynamically impossible behavior like all the air spontaneously rushing to one side of the room, but we have already seen in this thread that as soon as you are dealing with realistic numbers it becomes impossible to observe any macroscopic fluctuations (say of entropy, however you measure it, in the wrong direction).

What about the other end of things? Would you suggest that a single elastic sphere, bouncing around in a container, is constantly violating the second law of thermodynamics because during any short interval of time it isn’t occupying the entire volume or because if you look at it with time running backwards things seem the same?

---

<div class="post-metadata">

### Author: ![Half\_Man\_Half\_Wit](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/half_man_half_wit/32/21766_2.png) [@Half\_Man\_Half\_Wit](https://boards.straightdope.com/u/Half_Man_Half_Wit)
#### Post date: [May 19, 2019, 9:18am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/275 "2019-05-19T09:18:34Z")

</div>

> [@Max\_S](#):
>
> You cannot derive the fundamental thermodynamic relation unless temperature is defined, and because temperature is intensive it is only defined when temperature is uniform. (Unless you are willing to accept my notion of “average temperature”, but apparently I made that up the other day)
> 
> Specifically you cannot substitute _T_d_S_ for δ_Q_ without using the second law of thermodynamics, and you cannot use the second law of thermodynamics unless _T_[SUB]A[/SUB] = _T_[SUB]B[/SUB].  
> I must remind you that the walls of an isolated system are immovable and the average temperature of an isolated system is constant.
> 
> ~Max

OK, then it seems I underestimated the task before me. I thought I merely had to explain how statistical mechanics and classical thermodynamics connect; but if you’ve got misgivings about classical thermodynamics, as well (such as the incredibly basic notion that entropy is additive), then I don’t think I can provide the requisite material you require to the depth you insist it be presented, not on a message board. If you’re interested, I found a web course [here](https://web.stanford.edu/~peastman/statmech/thermodynamics.html#) you might want to have a look at; it gives exactly my example in Eq. (3).

I don’t expect that to convince you, though. On the one hand, your resistance to accepting the judgment of experts on a subject shows an admirable confidence; but on the other, you just can’t study every aspect of the world to the depth that you don’t have to, at some point, accept what experts say as more likely to be correct than the whims of your imagination. I had hoped that I could at least make the expert consensus plausible to you; I’m sorry I couldn’t.

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 19, 2019, 11:40pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/276 "2019-05-19T23:40:50Z")

</div>

> [@DPRK](#):
>
> You are missing some qualifiers (e.g., “thermodynamic limit”, “ensemble”) and precise definitions before you can argue (are you?) that Boltzmann’s law or his kinetic theory is invalid. What are the properties of your system- still elastic spheres? What are the space and time scales used to compute W? What about the fact that on some scale like your Poincare time no system is isolated?
> 
> I gather you are ultimately bothered that systems are constantly fluctuating and nothing in the equations of motion seems to preclude apparently thermodynamically impossible behavior like all the air spontaneously rushing to one side of the room, but we have already seen in this thread that as soon as you are dealing with realistic numbers it becomes impossible to observe any macroscopic fluctuations (say of entropy, however you measure it, in the wrong direction).
> 
> What about the other end of things? Would you suggest that a single elastic sphere, bouncing around in a container, is constantly violating the second law of thermodynamics because during any short interval of time it isn’t occupying the entire volume or because if you look at it with time running backwards things seem the same?

Imagine a theoretical system in one-dimensional space, a single point particle on the number line marked 0 to 10 meters. This particle is always moving left or right at a constant speed of 1 meter per second, and whenever it reaches either end of the line it starts moving in the opposite direction. The position of this particle and therefore the microstate of the whole system can therefore be realized like so:

```auto

10/π * cos^-1(cos(π(t+h)/10))

```

where _h_ is the initial position of the particle at time _t_ = 0.

_Let t be a non-negative integer representing the number of time-steps, such that t_ ∈ **N** \*.  
Let c be the number of seconds allocated to each time-step, where c\* \> 0\*.  
Let h represent the initial microstate of the system, such that\* 0 ≤ _h_ ≤ 10\*.  
Let the function f(t,h)\* = 10/π \* cos[SUP]-1[/SUP][cos(π(_t_+_h_)/10)]_.  
Let the set X be a microscopic representation of the system indexed by t, such that X[SUB]t[/SUB]_ = _f(t \* c,h)._

I’ll define the number of distinct microstates Ω as 10\*\*c\*^-1 + 1 where _c_ is the number of seconds that pass during one time-step _t_ (10 is the amplitude of the above triangular wave function _f_, + 1 for the initial case _X_[SUB]0[/SUB]). For example if _c_=0.1, Ω = 10 \* 0.1^-1 + 1 = 10 \* 10 + 1= 101. For simplicity’s sake let _c_ = 1, therefore Ω = 11.  
_Let Ω be the total number of distinct microstates, such that_ Ω = 10 \* _c_[SUP]-1[/SUP] + 1\*.\*

Now statistical entropy = _k_ ln Ω = 1.38064852x10^-23 \* ln(11) = about 3.31065 x 10^-23 J/K… wait, I’m confused again. How can statistical entropy change at all in an isolated system like this? Oh yeah, the formula uses _W_, not Ω. _W_ only equals Ω when all the microstates correspond to a single macrostate.

I thought and still think that the macrostate of an isolated system does not change no matter how many time-steps pass - the pressure, volume, number of particles, entropy, heat - all of that remains constant because otherwise we would have to violate the first principle of thermodynamics, the conservation of energy. After much discussion with **Half Man Half Wit** it is apparent to me that we can divide this system into arbitrary [DEL]sub-systems[/DEL] parts, and the macroscopic properties of each part constitutes a different macrostate for the purposes of system-wide entropy. This still doesn’t make sense to me but I also don’t know statistical mechanics. Very well, we will divide the system into two [DEL]sub-systems[/DEL] parts: the left and right sides of the particle.

Now I must define two additional state variables: _v_[SUB]L[/SUB] and _v_[SUB]R[/SUB]. The _v_ stands for volume, but in this case it represents the length of the line segment going from the particle to the left (L) or right (R) end of the system. Therefore _v_[SUB]L[/SUB] = _x_, _v_[SUB]R[/SUB] = 10 - _X[SUB]t[/SUB]_, and _v_[SUB]LuR[/SUB] = 10. This has the effect of making every distinct microstate a distinct macrostate, thus the _W_ for all microstates represented by 1 is different than the _W_ for all microstates represented by 10.

In order to actually calculate _W_ I need to assign a probability to each microstate. Because this system is theoretical and I only wish to theoretically disprove the “second law of thermodynamics”, I am allowed to calculate _W_ with an observation period equal to the period of the system, 20 seconds. Here is a list of microstates over twenty seconds, _X[SUB]0[/SUB] to X[SUB]20[/SUB]_, where _c_ = 1 and _h_ = 0.  
{ 1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1,0 }  
Changing the value of _h_ results in the same set, although individual elements are shifted to the right by the value of _h_. Now the probability _P_(_i_) is the count of _i_ in the above set divided by 20.  
_Let b equal the period of f(t,h),_ 20\*.  
Let i be a number such that\* 0 ≤ _i_ ≤ _b.  
Let the function C(i) be the number of elements of the set_ { _X[SUB]0[/SUB]_, … _X[SUB]b[/SUB]_ } _that are equal to i._  
_Let the probability function P(i) = C(i)/b_

I will now replace Boltzmann’s entropy with Gibbs entropy and plug in _P(t)_ for _p[SUB]i[/SUB]_:  
_Let the entropy S of a system be the Gibbs entropy, such that S_ = -_k_[SUB]B[/SUB] **Σ** _P(t)_ ln _P(t)._

Therefore if _c_ = 1 and _h_ = 0, this is the entropy for the system realized by every possible microstate:

```auto

i - P(i) - S
0 - 1/20 - -2.06803x10[SUP]-24[/SUP] J/K
1 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
2 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
3 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
4 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
5 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
6 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
7 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
8 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
9 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
10 - 1/20 - -2.06803x10[SUP]-24[/SUP] J/K

```

Therefore, in an isolated system described above when _c_ = 1 and _h_ = 0, we can observe a decrease in entropy ten percent of the time.

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 20, 2019, 12:16am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/277 "2019-05-20T00:16:23Z")

</div>

> [@Max\_S](#):
>
> Let i be a number such that\* 0 ≤ _i_ ≤ \*b.

Should have read:  
_Let i be a number such that_ 0 ≤ _i_ \< Ω\*.\*

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 20, 2019, 12:25am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/278 "2019-05-20T00:25:51Z")

</div>

> [@Max\_S](#):
>
> ```auto
> 
> i - P(i) - S
> 0 - 1/20 - -2.06803x10[SUP]-24[/SUP] J/K
> 1 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 2 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 3 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 4 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 5 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 6 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 7 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 8 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 9 - 2/20 - -3.17906x10[SUP]-24[/SUP] J/K
> 10 - 1/20 - -2.06803x10[SUP]-24[/SUP] J/K
> 
> ```

Also the signage of all entropy values in this table are wrong, it should all be positive. This doesn’t change the conclusion that entropy decreases on 2 out of every 20 time-steps.

~Max

---

<div class="post-metadata">

### Author: ![Max\_S](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Max\_S](https://boards.straightdope.com/u/Max_S)
#### Post date: [May 20, 2019, 1:56am UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/279 "2019-05-20T01:56:03Z")

</div>

> [@Half\_Man\_Half\_Wit](#):
>
> OK, then it seems I underestimated the task before me. I thought I merely had to explain how statistical mechanics and classical thermodynamics connect; but if you’ve got misgivings about classical thermodynamics, as well (such as the incredibly basic notion that entropy is additive), then I don’t think I can provide the requisite material you require to the depth you insist it be presented, not on a message board. If you’re interested, I found a web course [here](https://web.stanford.edu/~peastman/statmech/thermodynamics.html#) you might want to have a look at; it gives exactly my example in Eq. (3).
> 
> I don’t expect that to convince you, though. On the one hand, your resistance to accepting the judgment of experts on a subject shows an admirable confidence; but on the other, you just can’t study every aspect of the world to the depth that you don’t have to, at some point, accept what experts say as more likely to be correct than the whims of your imagination. I had hoped that I could at least make the expert consensus plausible to you; I’m sorry I couldn’t.

I’m sorry to see you go, but in case you see this message I did read the Stanford page and I’m still not convinced. I don’t think they are wrong, it is probably something I misunderstand. But this is my thought process:

_Q_ is extensive  
INDENT _dQ_ = _dQ[SUB]A[/SUB]_ + _dQ[SUB]B[/SUB]_

the system is isolated  
(2) _dQ[SUB]B[/SUB]_ = -_dQ[SUB]A[/SUB]_

entropy formula  
(3) _dS_ = _dQ_/_T_  
(4) _dS[SUB]A[/SUB]_ = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_  
(5) _dS[SUB]B[/SUB]_ = _dQ[SUB]B[/SUB]_/_T[SUB]B[/SUB]_

substitute for _dQ[SUB]B[/SUB]_  
(6) _dS[SUB]B[/SUB]_ = -_dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

entropy is extensive  
(7) _dS_ = _dS[SUB]A[/SUB]_ + _dS[SUB]B[/SUB]_

substitute for _dS[SUB]A[/SUB]_ and _dS[SUB]B[/SUB]_  
(8) _dS_ = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_ - _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

substitute entropy formula for _dS_  
(9) dQ/T = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_ - _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

substitute for _dQ_  
(10) (dQA + dQB)/T = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_ - _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

substitute for _dQ[SUB]B[/SUB]_  
(11) (dQA - dQA)/T = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_ - _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

Left hand side is zero  
(12) 0 = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_ - _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_

Addition  
(13) _dQ[SUB]A[/SUB]_/_T[SUB]B[/SUB]_ = _dQ[SUB]A[/SUB]_/_T[SUB]A[/SUB]_

Divide by _dQ[SUB]A[/SUB]_  
(14) 1/_T[SUB]B[/SUB]_ = 1/_T[SUB]A[/SUB]_

Multiply both sides by \*T[SUB]B[/SUB]\*\*_T[SUB]A[/SUB]_  
(15) _T[SUB]A[/SUB]_ = _T[SUB]B[/SUB]_[/INDENT]

I am left concluding that A) it is impossible for an isolated system to have an inconsistent temperature, B) heat is not extensive, or C) entropy is not extensive. I think the latter conclusion is correct.

I suppose I could email Mr. Eastman for his opinion. I might do that.

~Max

---

<div class="post-metadata">

### Author: ![DPRK](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DPRK](https://boards.straightdope.com/u/DPRK)
#### Post date: [May 21, 2019, 2:14pm UTC](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151/280 "2019-05-21T14:14:42Z")

</div>

I think that page is pretty straightforward. Also, again, a system not at equilibrium does not have its temperature defined, which should also be clear from the page.

> [@Max\_S](#):
>
> Imagine a theoretical system in one-dimensional space, a single point particle on the number line marked 0 to 10 meters. This particle is always moving left or right at a constant speed of 1 meter per second, and whenever it reaches either end of the line it starts moving in the opposite direction.

Ok, so this is the example of an ideal gas, except in one dimension and there is only one (!) particle. In which case it is obvious that the particle is equally likely to be at any given point, and spends an equal amount of time in intervals of equal length.

As for the entropy, no, it doesn’t change with time. Nor does the entropy of any gas at equilibrium.

[Previous page](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151.md?page=13)

[Next page](https://boards.straightdope.com/t/is-the-second-law-of-thermodynamics-routinely-violated/833151.md?page=15)
