Thermodynamics for Mathematicians (II)

We continue our discussion of thermodynamics. Warning: some of the examples will involve calculus and a bit of (ordinary) differential equations.

3. Work Done by/on the System

A system can do work, e. g. when a gas expands and pushes against a piston, the work done can be used to power an engine. When energy is supplied to a system in the form of heat, it’s found experimentally that not all of the heat is converted to work by the system. One then postulates that the system absorbs a certain amount of energy also.

Specifically, one postulates that there is a state parameter U of every system, which tells us the amount of internal energy in it. The first law then follows from the law of conservation of energy.

First Law of Thermodynamics. Consider a small infinitesimal time step. Let dU be the change in internal energy in the system, dW be the work done by the system and dQ be the amount of energy supplied to the system in the form of heat. Then dQ = dW + dU.

[ Note that we don’t really care about the absolute internal energy of a system since the first law really deals with the change in energy. This is a recurring theme in classical physics, where the relative change in energy is relevant while the absolute energy is only well-defined up to an additive constant. ]

One must be cautious about the differentials dQdW and dU, specifically dU is an exact differential but dQ and dW are inexact differentials. What do we mean by that? It means, over a longer time step, if we only have access to the system at the initial and final states, then we can measure dU (since it’s only a change in a state variable) but there’s no way to determine the work done dW, as the following example illustrates.

Example 5. Consider the case of a homogeneous gas (PVN) with fixed N. By kinetic theory of gases, one deduces that the small amount of work done is given by dWP·dV. Hence, over time, the total amount of work done is the integral W = \int_{V}^{V'} P\cdot dV. If we only know the initial and final states (PVN) and (P’V’N), we can’t evaluate the integral without knowing the entire path.

Hence for a homogeneous gas, we can write the First Law as: dQ = dU + P\cdot dV, which is the version normally taught in JCs (in Singapore).

Example 6. In the case of an ideal gas, kinetic theory of gases tells us that U = c·PV for some constant c. Hence, we have:

 dQ = dU + P\cdot dV = c (P\cdot dV + V \cdot dP) + P\cdot dV = (c+1) P\cdot dV + c V \cdot dP.

In the case of an adiabatic setting, we have dQ = 0 which gives us a differential equation for the adiabatic expansion / compression of an ideal gas: P^{-1} dP = -\frac{c+1} c V^{-1} dV. This is not hard to solve:

\int_P^{P'} P^{-1} dP = -\frac{c+1}c\int_V^{V'} V^{-1} dV \implies \left(\frac{P'}{P}\right) = \left(\frac{V'}{V}\right)^{-(c+1)/c}.

This gives the equation for an adiabatic transformation of an ideal gas.

4. No Free Lunch

Recall our definition of temperature as an equivalence class under thermal equilibrium. In fact, a moment of thought reveals that two diabatically separated systems A and B behave in the following way:

  • there is no net transfer of heat between A and B (i.e. A and B are in T.E.);
  • there is net transfer of heat from A to B;
  • there is net transfer of heat from B to A.

For the 2nd case we shall say that A is hotter than B or that B is colder than A. Now let’s assume the case where A is hotter than B which is in turn hotter than C. What’s gonna happen when we put A and C together (separated by diabatic wall of course)? In the cases where A and C are in T.E. or C is hotter than A, by connecting the three systems in a loop, we get a never-ending flow of energy from A to B to C and back to A!

The Second Law of Thermodynamics says this is impossible, so we must have A hotter than C. In other words, the set of temperatures forms a totally ordered set!

There’re two variants of this law.

Clausius Law: there is no process whose only net result is the transfer of heat from a body of lower temperature to a body of higher temperature.

Kelvin Law: there is no process whose only net result is the absorption of heat from a source and 100% conversion to (positive) work.

How does one prove the equivalence of Clausius Law and Kelvin Law? For that, we’ll need to rely on some physical intuition. E.g. suppose Kelvin Law fails; then there is a method to extract heat from a source to convert it to 100% work, but we can convert the work to friction to heat up any source, even a colder one, and so Clausius Law fails too. Conversely, suppose Clausius Law fails. Then we can form a never-ending cycle of energy flow as mentioned above and tap the energy to give work, thereby violating Kelvin Law.

5. Heat Engines

Let’s say we now have two huge heat sources at temperatures T1 and T2 respectively, where T1T2. This just means T1 is hotter than T2, i.e. there’s a net flow of heat from the first to second heat source; it does not mean we’ve assigned a real-valued temperature scale. In fact, the very purpose of this section is to do just that: define a temperature scale in terms of non-negative real numbers.

Definition. A heat engine is a process whose net result is to extract heat (energy) Q1 from the first source (at temperature T1), deposit heat Q2 to the second source (at temperature T2), and convert the balance to positive work.

We’ll assume that the heat sources are so huge that the heat engine has little effect on their temperatures.

The value \eta = 1 - Q_2/Q_1 is called the efficiency of the heat engine. To motivate this definition, imagine a mechanical engine which taps into a hot pool of gas, performs work, and loses the remaining energy to the environment (at temperature T2). The work done by the engine is useful since it can be converted to other forms of mechanical work, while the energy lost to the environment is wasted.

The key result we are going to prove is the following. Suppose we connect heat engines E and F to the heat sources T1 and T2 in turn. The first heat engine extracts heat Q1 from the first source and deposits Q2 to the second. The second heat engine extracts heat Q3 from the first source and deposits heat Q4 to the second.

Then the following result holds.

Key result. If E is reversible, then Q_2/Q_1 \le Q_4/Q_3. Equality holds if and only if F is also reversible. [ In particular, this implies that the efficiency of a reversible heat engine is as good as it gets. ]

Proof. Let’s prove Q_3/Q_1 \le Q_4/Q_2 which is equivalent. Approximate Q_4/Q_2 by a rational number M/N, where M and N are positive integers. Thus it suffices to show M/N \ge Q_3/Q_1, or NQ_3 - MQ_1 \le 0. Let’s perform some iterations of the above heat engines: N times of F, followed by M times of the reverse of E.

What’s the net outcome of this exercise? The heat deposited in the cold source is N Q_4 - M Q_2 = 0 while the heat extracted from the hot source is N Q_3 - M Q_1, all of which is converted to work! By Kelvin Law, the work done cannot be positive, so we have N Q_3 - M Q_1 \le 0 as desired.

To prove the second part, if F is reversible, then we can swap E and F to obtain the reverse inequality. Conversely, if equality holds, then M cycles of F form the reverse of N cycles of E so E is reversible. ♦

6. Definition of Temperature

In particular, the efficiency of a reversible heat engine depends only on T1 and T2So let us write f(T_1, T_2) = Q_1/Q_2, which is the reciprocal of the rate of wastage. It follows that if T_1 > T_2 > T_3, then from the following diagram:

the overall net result is an extraction of heat Q_1 from the temperature source T_1 and a deposit of heat Q_3 to the temperature source T_3, with the difference converted to work. But this is precisely the work of a heat engine for T_1 > T_3. [ Note: one subtle assumption is that we can tune F to take in an exact amount of heat Q_2 from source T_2. ]  So, all in all, we have shown:

f(T_1, T_2) f(T_2, T_3) = f(T_1, T_3), when T_1 > T_2 > T_3.

Next, we’ve only defined f(T_1, T_2) for T_1 > T_2. More generally, we shall define f(T_1, T_2) as 1 if T_1 = T_2 and f(T_2, T_1)^{-1} if T_1 < T_2. Under this new definition, we see that for any temperatures T_1, T_2, the reversible heat engine will extract heat Q_1 from the source T_1 and deposit heat Q_2 to the source T_2 and convert the balance to work, where the work done can be negative!

For any three temperatures T_1, T_2, T_3, we now have (regardless of the temperature ordering):

  • f(T_1, T_1) = 1;
  • f(T_1, T_2) = f(T_2, T_1)^{-1};
  • f(T_1, T_2) f(T_2, T_3) = f(T_1, T_3).

Finally, let us fix some base temperature T_0 and define g(T) := f(T, T_0). The above 3 relations then tell us f(T_1, T_2) = g(T_1)/g(T_2) for any two temperatures. So the only function that really matters for reversible heat engines is a single parameter gWe shall define this as our temperature scale.

Definition. For any temperature T, we shall associate to it a real-valued number g(T), which gives us a temperature scale. This is called the thermodynamic temperature of the system. Note that if we had chosen some other base temperature T_0, we would get a constant factor of this scale.

 (To be continued…)

This entry was posted in Notes and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s