The first law of thermodynamics basically states that energy is conserved. But that doesn't mean that all processes that conserve energy can happen. For example, when a hot object is put in contact with a cold object, heat does not flow from the cold object to the hot object even though energy is conserved. Or, a pond does not suddenly freeze on a hot summer day by giving up heat to its environment, even though this does not violate energy conservation. If these things did occur, they would violate the second law of thermodynamics. It tells us that processes happen in one direction and not the other. These are called irreversible processes. In this lecture and the next one, we will talk about the second law of thermodynamics, which is probably the most famous law of thermodynamics, as well as the closely related topics of heat engines and entropy.
Heat engines go through a cycle, i.e., they do the same thing over and over again. In each cycle, (1) heat is transferred from a high temperature reservoir, (2) work is done by the engine, and (3) heat is expelled to a lower temperature reservoir. For example in a steam engine, heat is absorbed by water which becomes steam, the steam does work by driving a turbine, then the steam is condensed by giving up its heat to cooling water.
Let's examine this using the first law of thermodynamics. Let
the net heat absorbed by the engine be
Qnet=|Qhot|-|Qcold|where Qhot is the amount of heat absorbed by the engine from
the hot reservoir and Qcold the amount of heat released to the
cold reservoir. The engine does work Weng which is
negative because negative work is done on the engine
and this reduces the internal energy of the engine. So
W=-Weng.
Because the engine goes through a cycle, the initial
and final energies are the same and
.
So the first law becomes
(1) |
Weng=|Qhot|-|Qcold| | (2) |
The thermal efficiency e of a heat engine is defined as the ratio
of the net work done by the engine to Qhot, the heat absorbed
from the high temperature reservoir during one cycle:
(3) |
Reversible processes tend to proceed very slowly since you have to maintain equilibrium (or quasi-equilibrium) at every step along the way. So if you compress a gas reversibly with a piston, you can imagine doing it by dropping grains of sand one by one onto the piston.
(4) |
Weng=|Qhot|-|Qcold| | (5) |
It turns out that for a Carnot cycle
Example: Quiz 18.2 Three engines operate between reservoirs separated in temperature by 300 K. The reservoir temperatures are as follows:
Assume the engines are Carnot engines to get the best theoretically possible efficiency. Take the ratios Tcold/Thot. The smallest ratio corresponds to the most efficient engine because the efficiency e=1-Tcold/Thot. So
We are used to gasoline powered engines in our car, steam engines, nuclear powered generators, etc. One type of engine you may not be aware of is a solid state engine with no moving parts. If you take a bar of a metal or a semiconductor, heat one end and cool the other, you can get electrons to flow from the hot end to the cold end and these electrons do work.
A refrigerator is just a heat engine run in reverse.
|Qhot|=|Qcold|+W | (8) |
Rather than efficiency, we talk about the coefficient of performance
(COP) of refrigerators and heat pumps. The coefficient of performance
for a refrigerator is the ratio of the heat removed from the
cold reservoir to the work done:
(9) |
A perfect refrigerator could do the heat transfer without doing any work (W=0). This would correspond to a COP=. But it is impossible for heat to flow from a cold reservoir to a hot reservoir without doing any work. This leads us to the Clausius formulation of the second law of thermodynamics which states that it is impossible to make a perfect refrigerator.
The best refrigerator we can make is one using the Carnot cycle.
Just take the Carnot engine and run it in reverse to get a refrigerator.
For a Carnot refrigerator the coefficient of performance is
(10) |
For a heat pump we care about the heat Qhot dumped into the hot
reservoir, so the coefficient of performance for a heat pump is
the ratio of |Qhot| to the work W done:
(11) |
(12) |
Example: If a refrigerator is be maintained at -3o C, and the outside air is at 27o C, what minimum amount of work has to be done to remove a joule of heat from inside the refrigerator?
The minimum amount of work will be done by the most efficient
refrigerator. That is a Carnot refrigerator. For a Carnot
refrigerator,
|Qhot|/|Qcold|=Thot/Tcold or
|Qhot|=(Thot/Tcold)|Qcold| and we know that
|Qcold| = 1 Joule. The work done by the refrigerator
is
(13) |
First let's go over the macroscopic definition. If a heat
reservoir at temperature T absorbs heat Q, the entropy
change of the reservoir is
dQ=TdS | (16) |
(17) |
For a Carnot cycle the entropy change is zero:
.
This is certainly true for the engine because it returns to
its initial state after 1 cycle, and entropy is solely a function
of the state.
During the 2 adiabatic parts of the Carnot cycle, Q=0, so
during the adiabatic processes. (A process where
is called an isentropic process.)
So the only entropy change occurs in the heat reservoirs during
the isothermal processes when the temperature is fixed.
Now recall from eq. (6) that
(19) |
(20) |
(21) |
Of course the Carnot
engine is an ideal engine (though not perfect). Engines
we meet in the real world are not as efficient. In those
engines the change in entropy is greater than zero. One
way of stating the second law of thermodynamics is to say
that in an isolated system, i.e., one in which no heat or
work can enter or leave, the entropy never decreases. It
always increases or stays the same. Mathematically we write
(22) |
Let's consider a perfect engine again.
(23) |
Similarly for a perfect refrigerator,
(24) |
is the macroscopic definition of entropy. Actually we've only been considering the entropy change. Now let's consider the microscopic definition. With the microscopic definition we can define the absolute value of the entropy, not just the change in entropy.
Let's begin by defining microstates versus macrostates of a system. A macrostate is specified by macroscopic variables such as temperature, pressure, energy, number of particles, etc. To specify a microstate, we need to specify the positions and velocities of all the particles. So if we have an ideal gas, we can specify its macrostate by its temperature, pressure (or volume), number of particles, etc. There are a lot of microstates which have the same temperature, pressure, and particle number. And since the particles are moving around, the system is changing from one microstate to another.
Your book gives the example of dice. The macrostate corresponds to the sum of the 2 dice. The microstate corresponds to the particular combination of die. Any particular combination is as likely as any other. So the microstates are equally likely. But some macrostates are more likely than others. The macrostate of 7 has 6 combinations of the dice while the macrostate of 2 has only 1 combination. So throwing a 7 is much more probable than throwing a 2.
Similarly, all the microstates of a physical system are equally likely when the system is in equilibrium. But if a given macrostate A has more microstates associated with it than some other macrostate B, then the system is more likely to be in macrostate A than in macrostate B. The more microstates a macrostate has associated with it, the more disordered we consider the macrostate to be. Suppose that a given macrostate has only one microstate associated with it. That macrostate would be very ordered. Suppose that each object in your bedroom could only be in one place; each object has its place and there is no other place you can put it. Then your room would be very ordered. On the other hand, suppose your stuff could be anywhere. Then there are a lot of arrangements that are possible. If we look at any single arrangement chosen at random, then your room will probably look messy and disordered. So the more microstates a macrostate has, the more likely it is that the system will be in that macrostate and the more disordered the system will tend to be. Disordered macrostates are more likely than ordered macrostates.
Notice that we are talking in terms of probabilities. In physics 3A when you studied Newtonian mechanics, you were usually talking about a single object and you could use Newton's equations of motion to determine its motion and trajectory. But the world has more than just one object. In fact most things have something like Avogadro's number of atoms and molecules. When we talk about an ideal gas, we think of it as having of order particles. It would be hopeless to try to calculate the trajectory of each and every particle. And, besides, that's not really what we want. We want to know macroscopic quantities like temperature and pressure. We want to know what the macrostate is, not the microstate. So rather than talk in terms deterministic equations of motion, we talk in terms of probabilities.
So each macrostate, which is specified by certain values of
the macroscopic variables like temperature, pressure, etc.,
has a number of microstates that have these values of the macroscopic
variables. Let be the number of microstates for a given
macrostate. (Your book uses W instead of , but we already
use W for work.) is a number of order Avogadro's number.
To make the number more managable, let's take the logarithm. The entropy
S is proportional to the logarithm of . The proportionality
constant is kB, Boltzmann's constant.
So we have a microscopic and a macroscopic definition of entropy. They look very different but they are in fact equivalent. We can illustrate this using an ideal gas (what else?). Suppose an ideal gas goes from an initial macrostate with volume Vi to a final macrostate with volume Vf. The temperature stays the same: Ti=Tf. What is the change of entropy ?
The entropy change will depend only on the initial and final
macrostates of the system, not on the path between them. So
we can choose any path that's convenient. First let's use the
macroscopic definition, eq. (14). We will
choose an isothermal path in which the system stays at
temperature T. In the notes on Chapter 17, we showed
that for an isothermal process,
, so
,
so Q=-W. We calculated the work W and hence the heat Q with
the help of the ideal gas law:
Now let's see what we get with the microscopic definition of
entropy. In this case it's easier to choose a different path.
Let's choose the free expansion process. So initially the
gas is confined to a volume Vi that is separated from the
rest of the container by a partition. The volume of the
entire container is Vf. The container has perfectly thermally
insulating walls so no heat enters or leaves the system.
When we remove the partition, the gas expands to fill the
entire box and its final volume is Vf. No work is done, so
W=0. Since Q=0 and W=0,
and hence
. So Ti=Tf as stipulated in the problem.
In order to use the microscopic definition of entropy in eq.
(25), we need to count microstates. To do this,
let's assume that a gas molecule takes up a tiny volume Vm.
When the gas is initially confined to the volume Vi, there
are (Vi/Vm) places to put a molecule. Suppose we have 2
molecules. Then there are
(Vi/Vm)2 ways to arrange the 2
molecules. (The molecules in an ideal gas do not interact,
so they can sit on top of each other. So there is no excluded
volume.) Extrapolating, we see that there are
(Vi/Vm)Nways to arrange N molecules.
(Vi/Vm)N is the number of
microstates. Similarly in the final state there are
(Vf/Vm)N arrangements of N molecules. So using
eq. (25), we find that the entropy
in the initial state is
(28) |
(29) |
Notice that even though Q=0 for the free expansion process, . This is because only holds for a reversible process and free expansion is not a reversible process. If I start with a box that has one side with gas and the other side empty, then I take out the partition, gas fills the whole box. If I put the partition back, gas does not go to one side of the box, leaving the other side empty. So free expansion is not a reversible process.
Let me summarize the second law of thermodynamics in terms of entropy: An equilibrium macrostate of a system can be characterized by a quantity S (called ``entropy'') which has the properties that
(31) |
(32) |
Example: Problem 18.22. An airtight freezer holds 2.50 mol of air at 25.0o C and 1.00 atm. The air is then cooled to -18o C. (a) What is the change in entropy of the air if the volume is held constant? (b) What would be the change if the pressure were maintained at 1 atm during the cooling?
a) We want to find . So start with
.
T changes, so we need to keep it inside the integral. We need dQin terms of T. Notice that the
volume = constant which means that W=0. So
.
So
dQ=dEint. Now recall that for an ideal gas that undergoes
a temperature change,
. This is true
even is the volume changes, though it's fixed in this case. Recall
that Eint just depends on the state of the system, not on
how the system got to that state. For an ideal gas, all that
matters is the temperature of the system. So I can choose any
path I want as long as the initial and final states have the
correct initial and final temperatures. So I choose a fixed volume
path and get
. If the temperature
just changes a little, then
dEint=nCV dT. So
dQ=dEint=nCV dT and we can write
(33) |
(b) We want at constant pressure. Again we use
. We can express dQ in terms of known
variables using the first law of thermodynamics. For any
infinitesimal step in a process on an ideal gas,
dEint | = | dQ+dW | |
dQ | = | dEint-dW=nCVdT+pdV | |
dS | = | (34) |
= | |||
= | (35) |
= | |||
= | |||
= | |||
= | (36) |
Example: Problem 18.27. The temperature at the surface of the Sun is approximately 5700 K, and the temperature at the surface of the Earth is approximately 290 K. What entropy change occurs when 1000 J of energy is transferred by radiation from the Sun to the Earth?
1000 J of energy is such a small amount of energy that the temperature
of the Sun and Earth don't change.
We use
. The Sun loses heat, so Qsun<0, which
means that its entropy decreases.
= - 1000 J/5700 K. The Earth gains heat, so
QEarth>0, which
means that the Earth's entropy increases.
= 1000 J/290 K. The net
change in entropy is the sum of the changes (which winds up being
a difference since the Sun loses entropy and the Earth gains
entrtopy):
(37) |
Example: Problem 18.28. A 1.00 kg iron horseshoe is taken from a forge at 900o C and dropped into 4.00 kg of water at 10.0o C. Assuming that no energy is lost by heat to the surroundings, determine the total entropy change of the horseshoe-water system.
We use
(38) |
= | |||
= | (40) |
Note that since the volume of the water and iron don't change much in this process, there isn't much difference between CV and Cp. We just call the specific heat C.
(41) |
(42) |
(43) |
pAVA | = | pBVB=nRThot | |
pCVC | = | pDVD=nRTcold | (45) |
= | |||
= | (46) |
(47) |
(48) |
(49) |
(50) |