The Second Law of Thermodynamics and the Clausius Inequality

We dive into the second law of thermodynamics, unpacking how Clausius and Kelvin's seemingly different statements are actually the same thing — and why the Carnot engine is the key!

What we’ll cover in this Chapter 13 is the second law of thermodynamics, and there’s nothing really to set up beforehand, so I think we can just dive right in.

Clausius’ statement of the second law of thermodynamics: a process whose (sole result) is the flow of heat from a colder body to a hotter body is impossible.

Kelvin’s statement of the second law of thermodynamics: a process whose (sole result) is the complete conversion of heat into work is impossible.

The two physicists arrived at these statements after much deliberation, and these statements are going to turn out to be the same statement in about 60 seconds or so. Clausius seems to be saying that heat flow has a direction, and Kelvin seems to be talking about the relationship between heat and work.

So how on earth are these the same statement!?

To explain this, the Carnot engine is introduced. First off, the definition of the “engine” that we all know as common sense: an engine is defined as “a system that operates as a cyclic process that converts heat into work,” and that engine has to be a cyclic process that operates continuously and well~, performing a regular function.

Wait, then what on earth is a Carnot engine!!!

A Carnot engine is an engine that follows the ‘Carnot Cycle,’ and such an engine is called a Carnot engine.

Wait, then are there engines that don’t follow the Carnot cycle?? When you learn thermodynamics in high school or in college general physics class, they always teach you about the Carnot engine, right?????

The Carnot engine seems so obvious,… but in fact, the engines from before Sadi Carnot showed his genius probably didn’t follow the Carnot cyclic process, right? They say such engines exist. And of course they don’t cycle through the Carnot cycle either.

For instance, they say Hero of Alexandria made an engine in the 1st century. The principle doesn’t really need explanation I think, but apparently you couldn’t do any big work with it, it was just at the level of a toy.

Then there’s the one designed by Thomas Newcomen (1664~1729). It was used to pump water up from mines, apparently?! The steam part heats up and goes up, then cools and comes back down, then heats up and goes up again, and comes back down again.. you can roughly picture the mechanism, right?!!

And another one was designed by a minister named Stirling, so it’s called the Stirling engine (stirling’s engine). Two pistons move in opposite phases and are made to move by the temperature difference. Going back and forth between cooling and heating!

And then there’s also the engine used in cars, the ‘internal combustion engine,’ so the car engine isn’t all there is to engines in the world, it’s just one of many many engines…? lol

You know how a car engine works, right?!

Anyway, there are engines like these! Engines that don’t cycle through the Carnot cycle! Anyway, let’s find out what on earth a Carnot engine really is.

We learned about the Carnot cycle in high school physics II as well, but they never teach you what the engine actually looks like, always out of nowhere

A hand-sketched closed loop with arrows, the kind of cycle diagram that gets thrown at you

they just throw this kind of diagram at you and start talking, right???

So I copied down just the essence of Carnot’s life… (p.185).

Lazare Carnot (the father) was preoccupied throughout his life with the problem of mechanical motion, and in particular had great interest in the study of waterwheel motion. A waterwheel has falling water produce useful work. The water falls from a high-potential-energy reservoir to a low-potential-energy reservoir, and as it falls, the water turns the waterwheel and drives useful machinery like a flour mill.

Sadi Carnot (the son) was struck by the similarity between a waterwheel and a steam engine, in which heat flows from a high-temperature heat source into a low-temperature heat source. Carnot’s genius was that, instead of focusing on the details of the heat engine, he decided to think of the engine in an abstract form that focused only on the pure flow of heat between two heat sources.

He idealized the operation of an engine composed only of a simple gas cycle (this is the Carnot cyclic process we know). He realized that to be as efficient as possible, the engine must pass slowly through a series of equilibrium states — that is, it must be reversible. At any stage, one must be able to reverse the operation and turn the cycle in the other direction. He was then able to use this fact to prove that all reversible heat engines operating between two temperatures have the same efficiency.

Ahaaa! So from the start Carnot devised that cycle — he didn’t devise the shape or design of the engine!

The Carnot cycle

Now, let’s take a look at the Carnot cycle. The cycle that Carnot devised consists of two adiabats and two isotherms. Schematized on a $V$-$p$ graph,

Hand-drawn p-V diagram of the Carnot cycle: two black isotherms (isotherm 1 lower, isotherm 2 upper) and two red dotted adiabats (adiabat 1 on the left, adiabat 2 on the right), with the four corners A, B, C and D

When you cycle around in the order $A, B, C, D$, in the (reversible) adiabatic process, it’s literally ‘adiabatic’ so there’s no heat exchange ($\Delta Q = 0$), and in the isothermal process there is heat exchange! ($\Delta Q \neq 0$)

Heat Q_h (the heat that flows in when the temperature is maintained at T_h) is the heat that flows in during the isothermal expansion $A \to B$ process. The reason it’s called isothermal ’expansion’ is, looking at the x-axis, the x-axis is $V$, and the $A \to B$ process is one where $V$ gets bigger, so it’s called isothermal expansion!

And, heat Q_\ell (the heat that flows out when the temperature is maintained at T_\ell) is the heat that flows out during the isothermal compression $C \to D$ process. Likewise, since it’s a process where $V$ gets smaller, it’s called isothermal compression.

It’s what we did in Isothermal Expansion and Contraction, Adiabatic Expansion and Contraction (Thermal & Statistical Mechanics I Studied #18)!!!?!?!? Now you can understand the reason too.

Two hand-drawn balloons, a small one marked T and a bigger one marked T’, each with the word balloon inside

The balloon’s volume changes. To do isothermal expansion, that is, for the temperature to be maintained, some heat $Q$ must come in for $T$ to be continuously maintained, and conversely, when it changes from a big balloon to a small balloon, for the temperature to stay constant, I don’t know exactly but for $T$ to be maintained, a specific amount of heat $Q$ has to leave in order to keep the temperature!!!

Then, you can also understand why the adiabatic process on the adiabat moves between two lines of different temperatures, right?

Is the wording hard? You’ll understand in a bit. I’m going to organize it further.

Example 13.1

So let me work through an example related to the Carnot cycle. Not only does it help with understanding, but we have to solve it for the later discussion T_T

Example 13.1: for an ideal gas going through a Carnot cycle, express Q_h/Q_l in terms of T_h and T_l

A p-V diagram of the Carnot cycle with the four corner points A, B, C and D

Let me begin.

The cycle steps: i) isothermal expansion A to B, ii) adiabatic expansion B to C, iii) isothermal compression C to D, iv) adiabatic compression D to A

Let’s go through them one by one

The two equations to use: isothermal dQ = n_m R T ln(V_2/V_1), adiabatic T_1 V_1^(γ−1) = T_2 V_2^(γ−1); I’m gonna put these to use

This is what we did earlier~~ (the isothermal and adiabatic post, #18)

Step i) isothermal expansion A to B: dQ = Q_h = n_m R T_h ln(V_B/V_A)

Step ii) adiabatic expansion B to C: T_h V_B^(γ−1) = T_l V_C^(γ−1), so T_h/T_l = V_C^(γ−1)/V_B^(γ−1)

Step iii) isothermal compression C to D: dQ = −Q_l = n_m R T_l ln(V_D/V_C)

Step iv) adiabatic compression D to A: T_l V_D^(γ−1) = T_h V_A^(γ−1), so T_h/T_l = V_D^(γ−1)/V_A^(γ−1)

Mashing ii) and iv) together: T_h/T_l = (V_C/V_B)^(γ−1) = (V_D/V_A)^(γ−1), so V_C/V_B = V_D/V_A and V_B/V_A = V_C/V_D; we can even get this

Writing out Q_h/Q_l: n_m R T_h ln(V_B/V_A) over −n_m R T_l ln(V_D/V_C), which simplifies to (T_h/T_l) ln(V_B/V_A)/ln(V_C/V_D); with V_B/V_A = V_C/V_D the logs cancel, so Q_h/Q_l = T_h/T_l

The conclusion is out. This conclusion is something we’ll keep using!!!

In a Carnot engine, the ratio of the heat flowing in and out equals the ratio of the temperatures of the two heat reservoirs!!!

(That is, under the assumptions of a reversible process and ideal gas)

At the very beginning, we defined an engine as a system that operates as a cyclic process converting heat into work. And, out of all the many cyclic processes, we looked at the cyclic process that Sadi Carnot devised, and an engine that follows that cyclic process would naturally be an engine that follows the Carnot cyclic process, and a system that converts heat into work while following that process is what’s called a Carnot engine, right?!!?

Solving Example 13.1, I caught on. No actually I caught on back in Chapter 12.

In an engine that converts incoming heat into work… when exactly does the heat Q_h, the material that gets turned into work, come in?!

It comes in precisely during the isothermal expansion process. And then the gas keeps doing work in the adiabatic expansion process, right?!?! With $pV^\gamma$.

After doing work like this, in order to do work through the isothermal expansion process in the next cycle, we have to receive heat, the material, again. To do that, the isothermal compression process is indispensable!!! Wouldn’t we do isothermal compression before doing work again or whatever???? That is, a certain amount of heat Q_\ell must necessarily go out.

Ah… so out of the received Q_h, we leave aside the heat Q_\ell that has to go out for the next process, and the remaining Q_h - Q_\ell amount of heat is what gets converted into work — that’s the engine that follows the Carnot cyclic process, so that’s the Carnot engine!!!

The engine’s efficiency

Now, about the engine’s efficiency. Efficiency means — how much of the input is converted into work relative to the input~~~~ Can’t we call that efficiency??? That is, the efficiency of the engine is

Efficiency: eta = W/Q_h

we can express it this way

The efficiency of the Carnot engine that follows the Carnot cyclic process is

Carnot engine efficiency: eta_carnot = W/Q_h = (Q_h − Q_l)/Q_h = 1 − Q_l/Q_h

And, borrowing the result of Example 13.1,

The same efficiency with temperatures: eta_carnot = 1 − T_l/T_h

we can also express it this way!!!

The secret of the Carnot engine

Now, let me spill the secret of the Carnot engine. The secret of the Carnot engine!!!!

Carnot’s theorem: among engines operating between two given temperatures, there is no.ne more efficient than the Carnot engine.

We were learning about the world’s strongest — no, the universe’s strongest!!! a super ideal engine that doesn’t exist in our world. That is, efficiency higher than

The Carnot efficiency, a ceiling that no engine passes: eta_carnot = 1 − Q_l/Q_h = 1 − T_l/T_h

is of course nonexistent, and even this doesn’t exist. The engines in the world are all~~~~ said to have lower efficiency than that. And by quite a lot, it’s said…

What’s the reason?

If we think about it simply, first of all, our assumptions were wrong, right. In reality the gas isn’t an ideal gas, and above all the series of processes aren’t reversible changes, things like that, right???? lol is it too obvious? Anyway let me do the proof.

Diagram of a Carnot engine: it takes Q_h from the hot reservoir at T_h, delivers work W and gives off Q_l to the cold reservoir at T_l

The Carnot engine works like this.

Engine E, taking Q’_h and giving off Q’_l, drives the Carnot engine run in reverse (it takes Q_l from the cold reservoir and gives Q_h to the hot one) with the same work W

But ※assumption alert※ let’s suppose there’s an engine more efficient than the Carnot engine. And let’s connect this more-efficient-than-Carnot engine with the Carnot engine like this. The reason such a connection is possible is because the Carnot engine is reversible! Since we said that engine $E$ has higher efficiency than the Carnot engine,

Proof steps: eta_E > eta_carnot means W/Q’_h > W/Q_h, so Q’_h < Q_h; energy conservation gives W = Q’_h − Q’_l = Q_h − Q_l and so Q_h − Q’_h = Q_l − Q’_l; looking at the picture, Q_h − Q’_h flows into the T_h place, and it comes out of the T_l place, Q_l − Q’_l, exactly that much

Beep beep beep beep!!! Beep bip bip bip bip!!! This violates the second law of thermodynamics. How can it flow from a lower temperature place to a higher one… T.T

Yes. It has become something ridiculous. That is, the assumption was wrong. There is no engine more efficient than the Carnot engine!!!

How could you beat an engine made under the super-ultra-premium assumption of being reversible T_T

Since the engines in the world aren’t (ridiculously) reversible engines, they have lower efficiency than the Carnot engine. And if all the engines in the world were reversible engines, the efficiency would all be the same as the Carnot engine!!!

This way Kelvin’s statement of the second law of thermodynamics also makes sense: it’s impossible for every last bit of heat to turn into work… There has to be some bit of Q_\ell that needs to drop out! yoho

Clausius’ Inequality

Now we’ll prove Clausius’ Inequality \oint \frac{\delta Q}{T} \le 0.

First, there’s a Carnot engine cycling through the Carnot cycle. Then let’s look at exactly 1 period of the Carnot cycle that the Carnot engine cycles through, that is, just one lap.

During one lap, this one has heat $Q$ flowing in during isothermal expansion, and heat $Q$ flowing out during isothermal compression. Let me divide the inflowing/outflowing heat $Q$ by the respective temperature at each time and then add them all up.

With the reversible process and ideal gas assumptions together, Q_h/Q_l = T_h/T_l, so the sum of ΔQ_rev/T = Q_h/T_h + (−Q_l/T_l) = 0

Okay, I get that that sum is 0, but what about the part where being less than 0 is allowed!!!???

I don’t like the textbook’s proof of Clausius’ Inequality, so I’ll use a different method. However, the conclusion of Clausius’ Inequality is actually something you may have already been subtly intuiting while studying Carnot’s theorem.

That thing everyone’s intuiting right now! Yes, that’s the one.

Anyway let me prove Clausius’ Inequality. We can do it using Carnot’s theorem. Carnot’s theorem: the efficiency of the Carnot engine is the king-king-best.

Proof: eta_engine ≤ eta_carnot leads, step by step, to Q_h/T_h + (−Q’_l/T_l) ≤ 0, that is the integral over the cycle of δQ/T ≤ 0; equality holds when Q’_l = Q_l, the reversible (Carnot) case

Ugh… what is this… just sort of obvious… I also thought of it this way.

Handwritten note: the universe’s strongest engine takes in Q_h and sends out Q_l

Handwritten note: other ordinary engines take in the same Q_h and send out a Q’_l bigger than Q_l

Why?!

Because it’s irreversible, for example, including things like friction heat.. we lose that too… something like that???? lol

Comments

Discussion happens via GitHub Discussions. You'll need a GitHub account to comment.