**Pre-script** (dated 26 June 2020): This post has become less relevant (even irrelevant, perhaps) because my views on all things quantum-mechanical have evolved significantly as a result of my progression towards a more complete *realist *(classical) interpretation of quantum physics. The text also got mutilated because of the removal of material by the dark force. I keep blog posts like these mainly because I want to keep track of where I came from. I might review them one day, but I currently don’t have the time or energy for it. ðŸ™‚

**Original post**:

**Phew!** I am quite happy I got through Feynman’s chapters on thermodynamics. Now is a good time to review the math behind it. We thoroughly understand the gas equation now:

PV = NkT = (Î³â€“1)U

The gamma (Î³) in this equation is the specific heat ratio: it’s 5/3 for ideal gases (so that’s about 1.667) and, theoretically, 4/3 â‰ˆ 1.333 or 9/7 â‰ˆ 1.286 for diatomic gases, depending on the degrees of freedom we associate with diatomic molecules. More complicated molecules have even more degrees of freedom and, hence, can absorb even more energy, soÂ Î³ gets closer to oneâ€”according to the kinetic gas theory, that is. While we know that the kinetic gas theory is not quite accurate â€“ an approach involving molecular energy states is a better match for reality â€“ that doesn’t matter here. As for the term (specific heat ratio), I’ll explain that later. [I promise. ðŸ™‚ You’ll see it’s quite logical.]

The point to note is that this body of gas (or whatever substance) stores an amount of energy U that is directly proportional to the temperature (T), and Nk/(Î³â€“1) is the constant of proportionality. We can also phrase it the other way around: the temperature is *directly* proportional to the energy, with (Î³â€“1)/Nk the constant of proportionality. It means temperature and energy are in a *linear* relationship. [Yes, *direct* proportionality implies linearity.] The graph below shows the T = [(Î³â€“1)/Nk]Â·U relationship for three different values of Î³, ranging from 5/3 (i.e. the maximum value, which characterizes monatomic noble gases such as helium, neon or krypton) to a value close to 1, which is characteristic of more complicated molecular arrangements indeed, such as heptane (Î³ = 1.06) or methyl butane ((Î³ = 1.08). The illustration shows that, unlike monatomic gas, more complicated molecular arrangements allow the gas to absorb a lot of (heat) energy with a relatively moderate rise in temperature only.

We’ll soon encounter another variable, enthalpy (H), which is also linearly related to energy: H = Î³U. From a math point of view, these linear relationships don’t mean all that much: they just show these variables â€“ temperature, energy and enthalphyÂ â€“ are all directly related and, hence, can be defined in terms of each other.

We can invent other variables, like the Gibbs energy, or the Helmholtz energy. In contrast, entropy, while often being mentioned as just some other state function, is something different altogether. In fact, the term ‘state function’ causes a lot of confusion: pressure and volume are state variables too. The term is used to distinguish these variables from so-called process functions, notably *heat* and *work*. Process functions describe how we go from one equilibrium state to another, as opposed to the state variables, which describe the equilibrium situation itself. Don’t worry too much about the distinctionâ€”for now, that is.

Let’s look at non-linear stuff. The PV = NkT = (Î³â€“1)U says thatÂ pressure (P) and volume (V) are *inversely* proportional one to another, and so that’s a non-linear relationship. [Yes, *inverse*Â proportionality is non-linear.] To help you visualize things, I inserted a simple volume-pressure diagram below, which shows how pressure and volume are related for three different values of U (or, what amounts to the same, three different values of T).

The curves are simple hyperbolas which have the x- and y-axis as horizontal and vertical asymptote respectively. If you’ve studied social sciences (like me!) â€“ so if you know a tiny little bit of the ‘dismal science’, i.e. economics (like me!) â€“ you’ll note they look like indifference curves. The x- and y-axis then represent the quantity of some good X and some good Y respectively, and the curves closer to the origin are associated with lower utility. How much X and Y we will buy then, depends on (a) their price and (b) our budget, which we represented by a linear budget line tangent to the curve we can reach with our budget, and then we are a little bit happy, very happy or extremely happy, depending on our budget. Hence, our budget determines our happiness. From a math point of view, however, we can also look at it the other way around: our happiness determines our budget. [NowÂ *that*‘s a nice one, isn’t it? Think about it! ðŸ™‚ And, in the process, think about hyperbolas too: the y = 1/x function holds the key to understanding both infinity and nothingness. :-)]

U is a state function but, as mentioned above, we’ve got quite a few state variables in physics. Entropy, of course, denoted by Sâ€”and enthalpy too, denoted by H. Let me remind you of the basics of theÂ entropy concept:

- The internal energy U
*changes*because (a) we add or remove some heat from the system (Î”Q), (b) because some work is being done (by the gas on its surroundings or the other way around), or (c) because of both. Using the differential notation, we write: dU = dQÂ â€“ dW,Â*always*. The (differential) work that’s being done is PdV. Hence, we have dU = dQÂ â€“ PdV. - When transferring heat to a system at a certain temperature, there’s a quantity we refer to as the
*entropy*. Remember that illustration of Feynman’s in my post on entropy: we go from one point to another on the temperature-volume diagram, taking infinitesimally small steps along the curve, and, atÂ each step, an infinitesimal amount of work dW is done, and an infinitesimal amount of entropy dS = dQ/T is being delivered. - The total change in entropy, Î”S, is a
*line*integral: Î”S = âˆ«_{LÂ }dQ/T = âˆ«_{LÂ }dS.

That’s somewhat tougher to understand than economics, and so that’s why it took me more time to come with terms with it. ðŸ™‚ Just go through Feynman’s *LectureÂ *on it, or through that post I referenced above. If you don’t want to do that, then just note that, while entropy is a very mysterious concept, it’s deceptively simple from a math point of view: Î”S = Î”Q/T, so the (infinitesimal) change in entropy is, quite simply, the *ratio* of (1) the (infinitesimal or incremental) amount of heat that is being added or removed as the system goes from one state to another through a reversible processÂ and (2) the temperature at which the heat is being transferred. However, I am not writing this post to discuss entropy once again. I am writing it to give you an idea of the math behind the system.

SoÂ dS = dQ/T. Hence, we can re-write dU = dQÂ â€“ dW as:

dU = TdS â€“ PdVÂ â‡” dU + d(PV) = TdSÂ â€“ PdV + d(PV)

â‡” d(U + PV) = dH = TdSÂ â€“ PdV + PdV + VdP = TdS + VdP

The U + PV quantity on the left-hand side of the equation is the so-called *enthalpy* of the system, which I mentioned above. It’s denoted by H indeed, and it’s just another state variable, like energy: *same-same but different*, as they say in Asia. We encountered it in our previous post also, where we said that chemists prefer to analyze the behavior of substances using temperature and pressure as ‘independent variables’, rather than temperature and volume. Independent variables? What does *that* mean, *exactly*?

According to the PV = NkT equation, we only have *two* independent variables: if we assign some value to two variables, we’ve got a value for the third one. Indeed, remember that other equation we got when we took theÂ *totalÂ *differential of U. WeÂ wrote U as U(V, T) and, taking the total differential, we got:

dU = (âˆ‚U/âˆ‚T)dT + (âˆ‚U/âˆ‚V)dV

We did not need to add a (âˆ‚U/âˆ‚P)dP term, because the pressure is *determined* by the volume and the temperature. We could also have writtenÂ U = U(P, T) and, therefore, thatÂ dU = (âˆ‚U/âˆ‚T)dT + (âˆ‚U/âˆ‚P)dP. However, when working with temperature and pressure as the ‘independent’ variables, it’s easier to work with H rather than U. The point to note is that it’s all quite flexible really: we have two independent variables in the system only. TheÂ third one (and all of the other variables really, like energy or enthalpy or whatever) depend on the other two. In other words, from a math point of view, we only have two *degrees of freedom*Â in the system here: **only two variables are actually free to vary**. ðŸ™‚

Let’s look at that dH = TdS + VdP equation. That’s a differential equation in which not temperature and pressure, but entropy (S) and pressure (P) are ‘independent’ variables, so we write:

dH(S, P) =Â TdS + VdP

Now, it is not very likely that we will have some problem to solve with data on entropy and pressure. At our level of understanding, any problem that’s likely to come our way will probably come with data on more common variables, such as the heat, the pressure, the temperature, and/or the volume. So we could continue with the expression above but we don’t do that. It makes more sense to re-write the expression substituting TdS for dQ once again, so we get:

dH = dQ + VdP

That resembles our dU = dQ â€“ PdV expression: it just substitutes V for â€“P. And, yes, you guessed it: it’s because the two expressions resemble each other that we like to work with H now. ðŸ™‚ Indeed, we’re talking the same system and the same infinitesimal changes and, therefore, we can use all the formulas we derived already by just substituting H for U, V for â€“P, and dP for dV. *Huh?*Â Yes. It’s a rather tricky substitution. If we switch V for â€“P (or vice versa) in a partial derivative involving T, we also need to include the minus sign. However, we do *not *need to include the minus sign when substituting dV and dP, and we also don’t need to change the sign of the partial derivatives of U and H when going from one expression to another! It’s a subtle and somewhat weird point, but a *very* important one! I’ll explain it in a moment. Just continue to read as for now. Let’s do the substitution using our rules:

dU = (âˆ‚Q/âˆ‚T)_{V}dT + [T(âˆ‚P/âˆ‚T)_{V}Â âˆ’ P]dV becomes:

dH = (âˆ‚Q/âˆ‚T)_{P}dT + (âˆ‚H/âˆ‚P)_{T}dP =Â C_{P}dT + [â€“TÂ·(âˆ‚V/âˆ‚T)_{P }+ V]dP

Note that, just as we referred to (âˆ‚Q/âˆ‚T)_{VÂ }as the specific heat capacity of a substance *at constant volume*, which we denoted byÂ C_{V}, we now refer toÂ (âˆ‚Q/âˆ‚T)_{P}Â as the specific heat capacityÂ *at constant pressure*, which we’ll denote, logically, as C_{P}. Dropping the subscripts of the partial derivatives, we re-write the expression above as:

dH = C_{P}dT + [â€“TÂ·(âˆ‚V/âˆ‚T)_{Â }+ V]dP

So we’ve got what we wanted: we switched from an expression involving derivatives assuming *constant volume* to an expression involving derivatives assuming *constant pressure*. [In case you wondered what we wanted, this is it: we wanted an equation that helps us to solve another type of problemâ€”another formula for a problem involving a different set of data.]

As mentioned above, it’s good to use subscripts with the partial derivatives to emphasize what changes and what is constant when calculating those partial derivatives but, strictly speaking, it’s not necessary, and you will usually *notÂ *find the subscripts when *googling *other texts. For example, inÂ the Wikipedia article on enthalpy, you’ll find the expression written as:

dH = C_{P}dT + V(1â€“Î±T)dP with Î± = (1/V)(âˆ‚V/âˆ‚T)

Just write it all out and you’ll find it’s the same thing, exactly. It just introduces another coefficient, Î±, i.e. the coefficient of (cubic) thermal expansion. If you find this formula is easier to remember, then please use this one. It doesn’t matter.

Now, let’s explain that funny business with the minus signs in the substitution. I’ll do so by going back to that infinitesimal analysis of the reversible cycle in my previous post, in which we had that formula involving Î”QÂ for the work done by the gas during an infinitesimally small reversible cycle:Â Î”W = Î”VÎ”P = Î”QÂ·(Î”T/T). Now, we can either write that as:

- Î”Q = TÂ·(Î”P/Î”T)Â·Î”V = dQ = TÂ·(âˆ‚P/âˆ‚T)
_{V}Â·dV â€“ which is what we did for our analysis of (âˆ‚U/âˆ‚V)_{TÂ }â€“*or*, alternatively, as - Î”Q = TÂ·(Î”V/Î”T)Â·Î”P = dQ =Â TÂ·(âˆ‚V/âˆ‚T)
_{P}Â·dP, which is what we’ve got to do here, for our analysis of (âˆ‚H/âˆ‚P)_{T}.

Hence,Â dH = dQ + VdP becomes dH =Â TÂ·(âˆ‚V/âˆ‚T)_{P}Â·dP + VÂ·dP, and dividing all by dP gives us what we want to get: dH/dP = (âˆ‚H/âˆ‚P)_{TÂ }= TÂ·(âˆ‚V/âˆ‚T)_{PÂ }+ V.

[…]Â Well… * NO!* We don’t have the minus sign in front of TÂ·(âˆ‚V/âˆ‚T)

_{P}, so we must have done something wrong or, else, that formula above is wrong.

The formula is right (it’s in Wikipedia, so it must be right :-)), so we are wrong. Indeed! The thing is: substituting dT, dV and dP for Î”T, Î”V and Î”P is somewhat tricky.Â The geometric analysis (illustrated below) makes sense but we need to watch the signs.

We’ve got a *volume increase*, a temperature drop and, hence, also a *pressure* ** drop** over the cycle: the volume goes from V to V+Î”V (and then back to V, of course), while the pressure and the temperature go from P to Pâ€“Î”P and T to Tâ€“Î”T respectively (and then back to P and T, of course). Hence, we should write: Î”V = dV, â€“Î”T = dT, and â€“Î”P = dP. Therefore, as we replace the ratio of the infinitesimal change of pressure and temperature, Î”P/Î”T,Â by a proper derivative (i.e. âˆ‚P/âˆ‚T), we should

*add*a minus sign: Î”P/Î”T = â€“âˆ‚P/âˆ‚T. Now

*that*gives us what we want:Â dH/dP = (âˆ‚H/âˆ‚P)

_{TÂ }= â€“TÂ·(âˆ‚V/âˆ‚T)

_{PÂ }+ V, and, therefore,Â we can, indeed, write what we wrote above:

dU = (âˆ‚Q/âˆ‚T)_{V}dT + [T(âˆ‚P/âˆ‚T)_{V}Â âˆ’ P]dV becomes:

dH = (âˆ‚Q/âˆ‚T)_{P}dT + [â€“TÂ·(âˆ‚V/âˆ‚T)_{P }+ V]dP =Â C_{P}dT + [â€“TÂ·(âˆ‚V/âˆ‚T)_{P }+ V]dP

Now, in case you still wonder: what’s the use of all these different expressions stating the same? The answer is simple: it depends on the problem and what information we have. Indeed, note that all derivatives we use in our expression for dH expression assume *constant pressure*, so ifÂ we’ve got that kind of data, we’ll use the chemists’ representation of the system. If we’ve got data describing performance at constant volume,Â we’ll need the physicists’ formulas, which are given in terms of derivatives assuming *constant volume*. It all looks complicated but, in the end, it’s the same thing: theÂ PV = NkT equation gives us two ‘independent’ variables and one ‘dependent’ variable. Which one is which will determine our approach.

Now, weÂ left one thing unexplained. Why do we refer toÂ Î³ as the specific heat ratio? The answer is: it is the *ratio* of the specific heat *capacitiesÂ *indeed, so we can write:

Î³ = C_{P}/C_{V}

However, it is important to note that that’s valid for ideal gases only. In that case, we know that the (âˆ‚U/âˆ‚V)_{PÂ }derivative in ourÂ dU = (âˆ‚U/âˆ‚T)_{V}dT + (âˆ‚U/âˆ‚V)_{T}dV expression is zero: we can change the volume, but if the temperature remains the same, the internal energy remains the same. Hence, dU = (âˆ‚U/âˆ‚T)_{V}dT = C_{V}dT, and dU/dT = C_{V}. Likewise, the (âˆ‚H/âˆ‚P)_{T}_{Â }derivative in ourÂ dH = (âˆ‚H/âˆ‚T)_{P}dT + (âˆ‚H/âˆ‚P)_{T}dP expression is zeroâ€”for ideal gases, that is. Hence, dH = (âˆ‚H/âˆ‚T)_{P}dT =Â C_{P}dT, and dH/dT = C_{P}. Hence,

C_{P}/C_{V}Â = (dH/dT)/(dU/dT) = dH/dU

Does that make sense? If dH/dU =Â Î³, then H must be some linear function of U. More specifically, H must*Â *be some function H =Â Î³U + *c*, with *c* some constant (it’s the so-called constant of integration). Now,Â Î³ is supposed to be constant too, of course. That’s all perfectly fine: indeed, combining the definition of H (H = U + PV), and using the PV = (Î³â€“1)U relation, we have H = U + (Î³â€“1)U = Î³U (hence,Â *c* = 0). So, yes, dH/dU = Î³, andÂ Î³ = C_{P}/C_{V}.

Note the qualifier, however: we’re assuming Î³ is constant (which does *notÂ *imply the gas has to be ideal, so the interpretation is less restrictive than you might think it is). If Î³ isÂ *not* a constant,Â it’s a different ballgame. […] So… Is Î³ actually constant? The illustration below shows Î³ is *not *constant for common diatomic gases like hydrogen or (somewhat less common) oxygen. It’s the same for other gases: when mentioning Î³, we need to state the temperate at which we measured it too. ðŸ˜¦ Â However, the illustration also shows the *assumption *of Î³ being constant holds fairly well if temperature varies only slightly (like plus or minus 100Â° C), so that’s OK. ðŸ™‚

I told you so: the kinetic gas theory is not quite accurate. An approach involving molecular energy states works much better (and is actually correct, as it’s consistent with quantum theory). But so we are where we are and I’ll save the quantum-theoretical approach for later. ðŸ™‚

So… What’s left? Well… If you’dÂ *googleÂ *the Wikipedia article on enthalphy in order to check if I am not writing nonsense, you’ll find it gives Î³ as the ratio of H and U itself: Î³ = H/U. That’s not wrong, obviously (Î³ = H/U = Î³U/U = Î³), but that formula doesn’t really explain *whyÂ *Î³ is referred to as the specific heat *ratio*, which is what I wanted to do here.

OK. We’ve covered a lot of ground, but let’s reflect some more. We did *notÂ *say a lot about entropy, and/orÂ the relation between energy and entropy. Too bad… The relationship between entropy and energy is obviouslyÂ *notÂ *so simple as between enthalpy and energy. Indeed, because of that easy H =Â Î³U relationship, enthalpy emerges as just some auxiliary variable: some temporary variable we need to calculate something. Entropy is, obviously, something different. Unlike enthalpy, entropy involves very complicated thinking, involving (ir)reversibility and all that. So it’s quite *deep*, I’d sayÂ â€“ but I’ll write more about that later. I think this post has gone as far as it should. ðŸ™‚

Some content on this page was disabled on June 16, 2020 as a result of a DMCA takedown notice from The California Institute of Technology. You can learn more about the DMCA here: