The First Law of Thermodynamics, State Functions, and Exact vs. Inexact Differentials

We dig into what heat actually IS, why state functions don't care about the path you took, and the difference between exact and inexact differentials — hehe.

From here on it’s Chapter 11. Energy.

Chapters 9 and 10 were skipped in the school curriculum.

Alright then, let’s get into Chapter 11, Energy…

Now we have to throw out another fundamental question…

Sigh… “What IS heat???????” lolllllllllllllllll

I remember this as one of the things that really mental-bombed me earlier too. Heat is energy transferred because of a temperature difference. It isn’t a store of ‘heat inside’ the system. Work is another way energy crosses the boundary; neither transfer creates or destroys energy. Hehehe… that distinction will matter a lot below.

So, to make it even clearer that heat is energy, we’re going to build an equation.

To do that, for now we need to learn the concept of a ‘function of state’.

A function of state is apparently “a physical property that takes a well-defined value for the equilibrium state of a system.”

You might recall the concept of ‘macrostate’ we dealt with earlier. Right?

You could think of it as being in the same vein. But, it’s more special than a macrostate.

That’s because we write this as a function. So then, let me write down the emphasized characteristics of a function of state.

A state function is determined by the state, not by the history of getting there. Its value stays fixed in an unchanging equilibrium state, but it can certainly change with time while the system moves from one state to another.

Things like volume, pressure, temperature, internal energy, and so on.

Also! A function of state is something that has nothing to do with “how you arrived at that state.”

If we said this in coordinate-axis terms, we would say “it doesn’t depend on the path.”

That is, since the initial state and the final state — just those — are what matter,

we can express it like this.

Equation from the original notes

we can express it as,

and if we write this more mathematically,

Equation from the original notes

What I want to say here is,

since a function of state doesn’t depend on path, “it has df. = it has an exact differential.” That’s what this is.

This might seem like I’ve just been saying obvious stuff,

but it’s not…….. hehe

The opposite of exact differential is something called an inexact differential.

For this, ‘how you got from the initial state to the final state’ affects the value.

Let the initial state be A,

the final state be B,

and let $\delta g$ denote an inexact transfer along a path between them.

Now, if there are several different ways to go from the initial state to the final state,

Equation from the original notes

If g were a function of state,

Equation from the original notes

we could have said this,

but since it’s not a function of state, we can’t unconditionally say they’re the same.

Such an inexact differential

Equation from the original notes

doesn’t have this, so we can’t write it like that, and

to denote an inexact differential

Equation from the original notes

we apparently have to write it like this!!!

I’ve organized the content up to this point like this.

Equation from the original notes

Here the drawing’s $\Delta g$ is just a label for the accumulated transfer $\int_A^B\delta g$ along a chosen path. It is not an endpoint difference $g(B)-g(A)$; that would require a state function!

(Since I’m not a math major, I can’t say for sure.)

Lastly, functions of state can be classified into two kinds.

Equation from the original notes

I’ll gloss over this. It’s something we dealt with before!!!

The ideal gas equation of state, which we’ve used so often and will keep using,

pV = nRT — you now have to look at it as “aha!! it’s a single equation connecting each function of state~!”

(Otherwise, things will get awkward when we do the Maxwell relations later lolllllllllllll)

Alright, now it seems it’s time to introduce the first law of thermodynamics.

The concept is simple.

“Energy is neither newly created nor destroyed” — that’s all.

That is, the first law of thermodynamics is exactly what the law of conservation of energy says.

(From here on, in all our discussions, the system has ‘gas’ in it.)

Earlier, as the answer to “Why is heat energy?” I said,

“Heat and work transfer energy across the system boundary.”

Inside that statement, the entirety of the first law of thermodynamics is actually contained.

Let’s think about it simply.

If a gas is heated while it can push a piston outward, its volume can increase. Heating a rigid sealed container would not make its volume increase—so keep the movable piston in mind here!

Huh!!!? The volume gets bigger?!

Yes yes yes, it did work. So like this, we can convert heat into work.

Work??

As with the work-energy theorem, having done work means “having consumed energy.”

Anyway, we can see the relationship heat ~ energy.

So now, let’s say that gas-containing object currently has some amount of energy.

The energy in the system’s microscopic degrees of freedom is called its internal energy. We keep the bulk kinetic energy of the whole system and its potential energy in an external field separate from that,

and we denote internal energy as U.

Now, we don’t look at the internal energy U itself,

but rather we look at the change in internal energy U. This is better for your mental health.

How can we gauge the change in internal energy U?

If we base it on the text above? The change in heat, and how much work was done —

we can say that by that much we can gauge the change in internal energy U.

That is,

Equation from the original notes

this is what I was saying heheheh.

Now let’s consider work. I’ll use work done on the system as positive, matching the first-law sign in the drawings: $dU=\delta Q+\delta W_{\rm on}$.

For pressure–volume work at a piston, $\delta W_{\rm on}=-p_{\rm ext}\,dV$: compression gives positive work on the gas. In the reversible limit the external and gas pressures agree infinitesimally, so we can use the system’s equilibrium pressure and write $\delta W_{\rm on,rev}=-p\,dV$. Friction and finite pressure differences prevent us from simply using that reversible expression with the gas pressure.

Also, finite work is $W=\int\delta W$, not an infinitesimal $dV$ multiplied by a finite-change symbol. The $\delta$ reminds us that work depends on the path. It isn’t a change in some stored state function called $W$.

Let me explain what I just said.

Equation from the original notes

Equation from the original notes

Let’s think about two cases.

Both go from V1 to V2 the same way, but say one side has friction.

For the same amount of volume change, would the same amount of energy be required?

That’s no no — in the case on the right, more energy would be needed, right?

What I wanted to distinguish was an exact state differential, like $dU$, from path-dependent infinitesimal transfers $\delta Q$ and $\delta W$. Reversibility requires more than just being slow: no friction or other dissipative effect, and only infinitesimal driving differences. Even when the work is reversible and equals $-p\,dV$, it remains an inexact transfer—not a state differential $dW$.

What ‘reversible’ means, I’ll cover a liiiiittle bit more in my next posting.

And as for this too, why such a situation is called a ‘reversible change’ will gradually become understandable, and

complete understanding will come around chapter 14. Entropy, so there’s no need to be impatient.

So then, the first law of thermodynamics,

Equation from the original notes

this, I’ll write it like this.

Equation from the original notes

(It makes no sense for U not to be a function of state. If U weren’t a function of state, the law of conservation of energy would be meaningless.)

This too — complete understanding will come around chapter 14. Entropy, so there’s no need to be impatient.

Especially, in the case of a reversible change,

Equation from the original notes

I organized up to the point of writing it like this.

Careful—my original conclusion here was wrong. Reversibility does not make heat path-independent. For a fixed amount of a simple compressible system with only pressure–volume work, the first law gives $\delta Q_{\rm rev}=dU+p\,dV$. The next original line is fine when read with that $\delta Q$:

Equation from the original notes

couldn’t we write it like this?

Between the same endpoints, $\Delta U$ is fixed, but $\int p\,dV$ can differ between reversible paths. So their sum—the heat transferred—can differ too! The next drawing’s switch from $\delta Q$ to $dQ$ does not establish a new state function.

Equation from the original notes

I’ll denote it like this.

For the remaining drawings, read their $dQ$ as $\delta Q_{\rm rev}$ along the specified path. The later entropy relation is $dS=\delta Q_{\rm rev}/T$: entropy is the state function, not heat. OpenStax explains the reversible entropy integral . Now we can express the heat capacities we met earlier in terms of state derivatives—

Equation from the original notes

— we can express in terms of functions of state!!!!

Let me organize this and move on.

For that, the first thing we’re going to do is express dU as a function of T and V.

Not U, but dU (the change dU in U) is what we’re going to express.

In math class, some function z —

and if that function z’s variables are x and y, then the change in z(x, y) is

Equation from the original notes

we expressed it like this, right!!!!?

This is when it’s a two-variable function, and in the case where it has more variables but we express it only in terms of x and y,

Equation from the original notes

That is, to express dU in terms of the variables V and T,

Equation from the original notes

we can express it like this.

Substituting this into

Equation from the original notes

and expressing it,

Equation from the original notes

Substituting this organized dQ into

Equation from the original notes

the defining expressions,

Equation from the original notes

Now hold either $V$ or $p$ constant. For fixed composition and only pressure–volume work, $C_V=(\partial U/\partial T)_V$ and $C_p=(\partial H/\partial T)_p$, where $H=U+pV$. The derivatives of heat written in the drawings mean heat supplied along the named constraint, not partial derivatives of a state function $Q(T,V)$.

  1. Holding V constant in the above equation.. => dV = 0

Equation from the original notes

This is how the book derived it, but there seems to be an inconsistency T_T

So for C_v at least, I’ll derive it from the first law of thermodynamics.

Equation from the original notes

  1. Holding p constant in the above equation, => dp = 0

Equation from the original notes

Huh, it just ended.

Equation from the original notes

Let me forcibly construct the relation between them.

Equation from the original notes

Especially, I’ll define the blue part as gamma.

Equation from the original notes

(This gets used later on~~~~)

Up to this point, everything was derived under the assumption of ‘reversible change’?!! You agree, right?

On top of this, if we throw in the assumption of an ideal gas~~~

Equation from the original notes

using this relationship, we can express it a bit more simply.

And and and and and, with the assumption of an ideal gas, the energy inside the system

has no intermolecular-interaction contribution in the ideal-gas model. For a classical monatomic gas it is just translational kinetic energy; molecular ideal gases can also have rotational and vibrational contributions. At fixed amount and composition, ideal-gas internal energy is a function of $T$, so we can say

Equation from the original notes

Once we plug in the ideal gas assumption, the internal energy U of an ideal gas depends only on T, and has nothing to do with the volume V.

That is,

Equation from the original notes

well, we can organize it like this, and

Equation from the original notes

Equation from the original notes

Once we assume an ideal gas,

the equation simplifies like this!!!!!!!!!

My writing is kinda super….. all over the place. Sorry T_T

P.S.

Did you know? I converted all the blog posts into PDFs and offered the PDF materials for sale :-)

Details of the Korean PDF collection are here .

Heads-up. The historical drawings use $dQ$ and $dW$ loosely. Read them with the adjacent corrected conventions: heat and work remain path-dependent even for reversible processes; $dU$ and $dS$ are exact. The source’s later heat-capacity algebra uses reversible pressure–volume heat along the stated constraints.

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.