Entropy: Thermodynamic and Statistical Mechanical Perspectives

Entropy is hard to get an intuition for! Let's work through Clausius' definition, the second law, and the connection to counting microstates.

So we’re finally getting to learn about this thing called entropy that I’ve only heard about in passing.

Let me give you a heads-up in advance. I don’t really get it lol lol lol

I still have no idea what entropy actually is lol lol lol lol lol lol lol

But lol — it certainly felt like nobody knew it lol lol lol

There’s an anecdote I heard about a master of statistical physics giving a lecture — take it as a joke, not a sourced historical quotation.

“Are there any physicists here who know what entropy is?”

(Silence…)

“Right??? It’s not just me who doesn’t know, right?”

lolololol

That’s the joke, anyway. Entropy has precise definitions; getting an intuition for them is another matter. So let’s not be too sad about it lol lol lol

Alright, let’s go in then.

So we already proved Clausius’ Inequality earlier.

Equation from the original notes

We proved it like this,

and if it goes through a reversible process,

Equation from the original notes

we got as far as saying we can write it like this.

Careful: my old notation dropped an important distinction! Heat remains an inexact transfer even on a reversible path: $\delta Q_{\rm rev}$. The exact differential is $dS=\delta Q_{\rm rev}/T$, not $dQ$. Read the pictures’ $dQ_{\rm rev}$ with that $\delta$ in mind.

Alright, now we’re getting into the definition.

Apparently Mr. Rudolf Clausius made the definition.

Equation from the original notes

Doesn’t it feel kinda iffy? Right?!?!

Yes… this is the definition of entropy.

If I were to emphasize it more, it’s “the definition of thermodynamic entropy.”

(The reason I’m bothering to emphasize it is so you don’t get flustered when the definition of statistical-mechanical entropy comes up later? ^^)

(Rather than the definition of entropy, it’s more like a definition of the change in entropy!?!)

Also, there’s one ‘important concept’ I want to point out here.

Equation from the original notes

doesn’t depend on the path, right?

The integral $\Delta S=\int_A^B\delta Q_{\rm rev}/T$ is the same for every reversible reference path between the same equilibrium endpoints. That is, S is a state function. For an irreversible heat-transfer term, $T$ means the absolute temperature of the boundary or reservoir exchanging that heat; it need not be one uniform temperature inside the system.

Alright, so now using the definition of entropy,

let’s try to state the second law of thermodynamics that we know from common sense.

(It usually gets introduced as the law of increasing entropy, doesn’t it?)

If you go around once via a reversible process,

Equation from the original notes

it’s clearly zero.

Equation from the original notes

Ah but, let’s try going via an irreversible path on the way there, and a reversible path on the way back.

Equation from the original notes

Why? It can be explained by Clausius’ Inequality…

If you follow even a tee~ny bit of irreversibility,

Equation from the original notes

we already proved earlier that the closed-loop integral of this is less than 0, so I don’t think we need a long explanation.

Equation from the original notes

Don’t get confused here. It’s not that dS depended on the path,

Equation from the original notes

it’s this that depends on the path.

dS is

Equation from the original notes

so its change between fixed equilibrium endpoints is well-defined, not necessarily positive,

Equation from the original notes

is saying that $\int_A^B\delta Q/T\le\Delta S$. The actual heat-transfer integral can depend on the path; the endpoint entropy change does not!

This was meant to once again emphasize that the entropy S is a state function.

Now let me add one assumption.

※Assumption alert※

Let’s assume a closed, adiabatic system: neither matter nor heat crosses its boundary.

Equation from the original notes

we can say this, can’t we?

That is,

Equation from the original notes

for this closed, adiabatic system

Equation from the original notes

we can write it like this.

cf. Among thermally isolated systems, what’s the biggest one?

Well if we say the universe, that’d be the biggest, right? (No, this is actually an assumption. The assumption that heat doesn’t go out of the universe, doesn’t come in, is built in…T_T T_T)

This is the second law of thermodynamics that we know from common sense, that we learn in high school physics 2 or in General Physics in our first year of university……

Anyway, this is another expression of the second law of thermodynamics.

Wait, why can we think this is the same as the Clausius or Kelvin expression of the second law of thermodynamics that we covered earlier?!

If you think about it carefully, you can say that Clausius and Kelvin spoke about the direction of heat as a law, right?!?!?!?!

That is, $dS\ge0$ (for a closed, adiabatic system)

is also defining the flow of heat as a law.

It’s a bit of a stretch to say they’re saying the same thing, but in terms of defining the direction of heat, they are the same.

(For an isolated system with fixed constraints, entropy does not decrease, and equilibrium corresponds to its maximum under those constraints.)

Now with this

Equation from the original notes

definition,

let’s think about the first law of thermodynamics once again.

If we write down the first law of thermodynamics, which states the conservation of energy in thermodynamics,

Equation from the original notes

right!!!!

Now an assumption comes in! If we assume it’s a reversible process,

Equation from the original notes

we can write this,

and also, if we assume reversible change,

Equation from the original notes

we can write this.

That is,

Equation from the original notes

we can say this.

Now now now now now now now

This might really get confusing, but I just said that the above equation is correct under the assumption of a reversible process.

But actually, for a fixed-composition simple compressible system, $dU=T\,dS-p\,dV$ is an identity between neighboring equilibrium states. We used a reversible path to derive it, but its state relation does not depend on the actual path between the endpoints.

Let me put it this way.

Equation from the original notes

When we wrote this, the change in Q is an inexact differential and isn’t unique,

and the change in W is also an inexact differential and isn’t unique,

so the change in U might not be unique either!!!!!!

Then shouldn’t we write the change in U as δU instead of dU!!!!!

You might think this, but as I mentioned once before, the change in U absolutely has to be unique.

For our universe, if the change in U weren’t unique,

it would mean that energy could be created from nothing, or that existing energy could suddenly disappear,

and that could violate the law of conservation of energy, which is something like the foundation of our universe, so it wouldn’t make sense if U weren’t a state function.

Yes, so U is also a state function,

and what the first law of thermodynamics tells us is that it can be expressed by the state functions T, S, p, V.

That is, U has a unique value for a given equilibrium state.

(Now what I really want to say)

Equation from the original notes

does not turn $T\,dS$ into the actual heat or $p\,dV$ into the actual work along an irreversible path! There is no general rule that the first term gets larger and the second smaller. For identical equilibrium endpoints, $\Delta U$ is fixed. To calculate it, we may integrate the state relation along a reversible reference path; during a strongly nonequilibrium process, one uniform $T$ and $p$ may not even be defined.

So, as a relation between equilibrium states at fixed composition,

Equation from the original notes

I’m throwing this equation out there.

Take a good look at this equation.

It’s expressing the change of the function U in terms of the change of S and the change of V.

That is, the variables of the function U are expressed by S and V.

That is, we’re thinking of the function U as a two-variable function U(S,V).

In math class we learned that the change dU for a two-variable function U can be expressed like this.

Equation from the original notes

Makes sense, right?

Then let’s compare it with this.

Equation from the original notes

Equation from the original notes

We found out that the state functions T and p can be expressed in terms of other state functions!

Using the reciprocal Theorem on the above two relations,

Equation from the original notes

we can organize it up to here.

(I’ll prove the reciprocal theorem in the following post.)

Lastly, let me organize the statistical mechanical definition of entropy.

In Chapter 4, by using the zeroth law of thermodynamics that temperatures become equal in thermal equilibrium,

“In two connected systems, the most likely way to divide the energy between the two systems”

Equation from the original notes

will reach equilibrium at the distribution that maximizes this.

We then differentiated this with respect to energy

Equation from the original notes

to find the maximum value.

Equation from the original notes

When we did this,

Equation from the original notes

this kind of relation came out, and what this relation means is “they are at the same temperature,” and we used this to define temperature.

Equation from the original notes

we learned that it’s defined like this.

(For details, link. Temperature (Thermal & Statistical Mechanics I Studied #4) )

N-ow. Let me add to this here.

Earlier, with the first law of thermodynamics, we

Equation from the original notes

learned this.

Equation from the original notes

we can write it like this.

Let me put the definition of temperature that we skimmed over in Chapter 4 into the same form.

Equation from the original notes

Therefore,

Equation from the original notes

Like this, we were also able to confirm the statistical mechanical definition of entropy.

Here $\Omega$ is the number of accessible microstates for the specified macrostate, not one microstate. The formula $S=k_B\ln\Omega$ is the microcanonical result, where those states are equally likely.

Thinking about it that way, I can see what the word ‘disorder’ is trying to get at: more compatible microstates means larger entropy.

(But let’s keep those metaphors on a short leash! Entropy has units of $\mathrm{J/K}$, not energy units. ‘Useless energy’ isn’t its definition, and ‘disorder’ is only a loose intuition for microstate multiplicity.)

And the equation above is exactly what Boltzmann defined and is apparently the equation engraved on Boltzmann’s tombstone ^^ hehe

(What we wrote as Ω, they wrote as W~)

Equation from the original notes

Questions or corrections?

Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.

Feedback goes to me privately by email; it is not posted as a public comment.