First and Second Laws of Thermodynamics
Definitions
equilibrium: system whose properties do not change appreciably over time. Depends on the timescale of interest! Glass is in equilibrium over the scale of our lifetimes, but flows like a fluid over millenia
closed system: a system which is completely isolated from its surroundings by adiabatic walls
open system: a system which can exchange heat with it’s surroundings
quasistatic process: a thermodynamic transformation which is performed slowly enough so that the system is always in equilibrium.
First law of thermodynamics
You may read different formulations of the first law, but they can all be derived from each other. I will simply use:
There are really three ways to change the energy of a system. We can
- do mechanical work (pressure/volume work)
- attach the system to a heat bath (temperature/entropy “work”)
- allow the system to undergo a chemical reaction
We did not intially discuss #3 in class. In fact, I had originally written the first law in class as “the work required to change the state of a closed sytem is path independent.” That most directly corresponds to #1. Again, there are multiple different formulations, and choosing the most intuitive one can be a challenge.
I’m going to abandon my original approach and just write the first law as
This tells us that the total internal energy of the system is the sum of: work done on the system; heat added to the system; chemical energy from adding partiticles to the system. Notice that work and heat are inexact differentials: they depend on the path taken, or how work is done and how heat is added. (constant pressure process? Constant volume?)
Let’s consider the first two ways of adding energy.
Mechanical Work and Heat Exchange
If we have a quasistatic process, then we can write the work easily in terms of generalized coordinates:
We refer to as a “generalized force” and as a generalized displacement. Probably the most familiar set of generalized coordinates are pressure and volume. is a kind of 3D displacement and is a kind of 3D force.
Here is a table of the generalized pairs that you may encounter and what systems they correspond to:
System | Force | Displacement |
---|---|---|
wire/polymer | tension | length |
film/surfactant | surface tension | area |
gas | ||
dielectic/membrane | electric field | polarization |
chemical reaction | chemical potential | number of particles |
heat bath | temperature | entropy |
You might be a bit confused about being shown as a generalized pair! We will see that, at least for reversible processes, we can write .
Which brings us to:
Reversible Processes
These are a subset of quasistatic processes. They are processes which can be run backwards in time by reversing the “inputs and outputs.” Let’s turn to a classical system from your freshman physics courses for a clearer understanding of what that means.
You all probably recall (or not? ) problems from your freshman physics courses about playing billiards.
The arrows here show the momenta of the eight ball and cue ball (you can find the final velocities of the billiards using conservation of momenta and energy).
If you reverse the directions of the arrows above, you’ve got an equally valid physical process - energy and momenta are still conserved! Provided, of course, that there’s no friction. To be super hand-wavy, but hopefully intuitive:
Thus, if you have a reversible process, you can rewrite the first law as
This is the formulation that will allow us to build up other thermodynamic potentials from first principles. But first, I should make one more point about the first law.
Response functions.
Broadly speaking, response functions are “something you can measure experimentally”. They are changes in thermodynamic variables that you can measure with probes. You need to know about these functions not because they’re inherently fundamental, but because they point you to other fundametal quantities which you can’t measure.
The most widely discussed response function is probably heat capacity. It’s defined as the change in temperature upon addition of heat to a system, or
where denotes the thermodynamic variable held constant during your measurements.
Calorimeters are the experimental devices used to measure heat capacities.
You can generate a measurable quantity of heat from an electical current or from a chemical reaction (burning 02, shown above). You can also measure the change in temperature as a result of the heat input.
Taking a more theoretical perspective, let’s write down the constant volume and constant pressure heat capactities for a system on which we do only P/V work:
These two heat capacities need not be the same!
The Second Law
There are really three ways to formulate the second law:
- An isolated system tends toward maximum entropy
- No process is possible whose sole result is to completely convert heat into work (there are no perfect engines)
- No process is possible whose sole result is to transfer heat from a colder body to a hotter body.
We spent quite a bit of time in Lecture 3 showing #1 from a statistical perspective. Now we will take the view of #3. This will allow us to derive an alternate definition of entropy:
.
To do this, we’ll develop the idea of a Carnot engine.
Carnot engine
This is a reversible, cyclic thermodynamic process which occurs in four steps.
A. Heat comes into the system at constant . B. Adiabatically lower the temperature to C. Expel into the low temperature reservoir at D. Adiabatically raise the temperature to .
Conservation of energy tells us that over the whole cycle, . Thus,
We can define something called the “efficiency” of the engine as
this describes the amount of work that one can extract from heat using a Carnot engine. It is possible to show that
Combining these two definitions of ,
We can rearrange these expressions and write them as integrals:
where now indicates an infinitessimal quantity of heat entering the engine. Finally, we can add zero to the above expression in a very clever way!
We can add the adiabatic paths in this fashion because, by definition,
This proves that the integral of this quantity over a closed, reversible cycle is always zero!
That means that is path independent. Proof:
Here, the superscripts indicate that we’re taking two distinct paths from A to B and then B to A.
When we have a differential that is path independent, we can define a state function such that
which is what we had set out to prove.
Irreversible Processes
If a process is irreversible, it can be shown that This allows yet another reformulation of the second law, which is that