BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Entropy, temperature and the second law

Entropy is defined as k times the logarithm of the accessible phase-space volume. Letting two systems share energy and asking for the most probable division gives the equilibrium condition, equal ∂S/∂E, and so the statistical definition of temperature, 1/T = ∂S/∂E. The same argument gives the second law: the entropy of an isolated system never decreases, and dS ≥ δQ/T for a system exchanging heat with a bath. For the ideal gas it yields E = (3/2)NkT and the adiabat VT^(3/2) = constant.

You need this first

Full reading path (7 pages)
  1. Probability: one random variable (8.044)
  2. Probability: two or more random variables (8.044)
  3. Probability: functions of a random variable (8.044)
  4. Probability: sums of random variables and the central limit theorem (8.044)
  5. Thermodynamic variables, temperature and work (8.044)
  6. The first law of thermodynamics and paths (8.044)
  7. Statistical mechanics and the microcanonical ensemble (8.044)
On this page · 5 sections
  1. Entropy
  2. Temperature
  3. The second law
  4. The ideal monatomic gas
  5. Summary

The previous lecture counted the accessible phase-space volume Ω\Omega. This one turns that count into entropy, uses it to define temperature statistically, and derives the second law (slides 1–13; notes pp. 4–7). (MIT's material for this lecture is Greytak's slides and sections 4–6 of his "Notes on the Microcanonical Ensemble"; this page follows them in its own words, with its own worked example.)

Entropy#

Ω(E,V,N)\Omega(E, V, N) grows exponentially with the size of the system. An extensive measure, one that adds when two systems are put together, is its logarithm (slide 2; notes p. 4):

Entropy
S(E,V,N)≡kln⁡Ω(E,V,N)≈kln⁡ρ(E,V,N)≈kln⁡Φ(E,V,N)S(E, V, N) \equiv k\ln\Omega(E, V, N) \approx k\ln\rho(E, V, N) \approx k\ln\Phi(E, V, N)
In words

S( capital E, V, capital N ) is defined as k log capital omega ( capital E, V, capital N ) is approximately k log rho ( capital E, V, capital N ) is approximately k log capital phi ( capital E, V, capital N )

The three forms differ only by terms of order ln⁡N\ln N, while each is proportional to NN, so for a large system they agree. The entropy is a state function; it is extensive; it is a logarithmic measure of how many microscopic states belong to one macroscopic state; and kk, Boltzmann's constant, has units of energy per kelvin.

Temperature#

Take two systems, 1 and 2, each with its own microcanonical ensemble. Isolated from everything else, they may exchange heat (δQ1=−δQ2\delta Q_1 = -\delta Q_2) but not work (δW1=δW2=0\delta W_1 = \delta W_2 = 0), and the coupling is weak enough that each keeps its own identity (slide 3; notes p. 4). The combined system is also microcanonical, and its phase volume counts every way of dividing the total energy EE:

Phase volume of the combined system
Ω(E)=∫0EΩ1(E′) Ω2(E−E′) dE′\Omega(E) = \int_0^E \Omega_1(E')\,\Omega_2(E - E')\,dE'
In words

capital omega ( capital E ) equals the integral of sub 0 ^ capital E capital omega sub 1 ( capital E prime ) capital omega sub 2 the quantity capital E minus capital E prime, d capital E prime

What is the most probable energy of system 1? Its probability density is the share of the combined phase volume with system 1 at E1E_1 (slide 4; notes p. 5):

Probability of the energy division
p(E1)=Ω1(E1) Ω2(E−E1)Ω(E),ln⁡p(E1)=1k[S1(E1)+S2(E−E1)−S(E)]p(E_1) = \frac{\Omega_1(E_1)\,\Omega_2(E - E_1)}{\Omega(E)}, \qquad \ln p(E_1) = \frac1k\left[S_1(E_1) + S_2(E - E_1) - S(E)\right]
In words

p( capital E one ) equals capital omega sub 1 ( capital E one ) capital omega sub 2 the quantity capital E minus capital E one, over the quantity capital omega ( capital E ), log p( capital E one ) equals 1 over k, times the quantity S one ( capital E one ) plus S two the quantity capital E minus capital E one, all minus S( capital E )

which integrates to one over 0≤E1≤E0 \le E_1 \le E. Setting the derivative with respect to E1E_1 to zero, and noting that dE2=−dE1dE_2 = -dE_1, the maximum lies where (slide 5; notes p. 5)

Condition for the most probable energy
(∂S1∂E1)δW1=0=(∂S2∂E2)δW2=0\left(\frac{\partial S_1}{\partial E_1}\right)_{\delta W_1 = 0} = \left(\frac{\partial S_2}{\partial E_2}\right)_{\delta W_2 = 0}
In words

( partial S one over partial capital E one ) sub delta W one equals 0 equals ( partial S two over partial capital E two ) sub delta W two equals 0

The left side depends only on system 1 and the right only on system 2. It fixes the most probable E1E_1, but it also says something deeper: it is the condition for thermal equilibrium. So ∂S/∂E\partial S/\partial E must be some function of the temperature alone, and the choice that matches both the ideal-gas temperature and the thermodynamic (Carnot) temperature is (notes pp. 5–6)

Statistical definition of temperature
(∂S∂E)δW=0=1T\left(\frac{\partial S}{\partial E}\right)_{\delta W = 0} = \frac1T
In words

( partial S over partial capital E ) sub delta W equals 0 equals 1 over T

For large systems p(E1)p(E_1) is extremely sharp (a remark of this page, illustrated below), so the most probable energy is, for all purposes, the energy.

The page's own illustration, computed for two ideal gases with N2=2N1N_2 = 2N_1, using Φ∝E3N/2\Phi \propto E^{3N/2} from the previous lecture in place of Ω\Omega (they differ by a factor of order EE, which matters little for large NN, just as S≈kln⁡ΦS \approx k\ln\Phi), scaled to a peak of 1. The peak sits at E1/E=1/3E_1/E = 1/3, where the energy per particle is the same in both gases, and narrows as the systems grow.

The second law#

An isolated system (slides 6–7; notes p. 6). Now let the two systems start at different temperatures: system 1 has energy E1E_1 just before contact and Eˉ1\bar E_1 once equilibrium is reached (the slides and notes mark it with a star). Since Eˉ1\bar E_1 is the most probable value, p(E1)≤p(Eˉ1)p(E_1) \le p(\bar E_1), with equality only if they were already in equilibrium. In terms of entropy this reads

Entropy cannot decrease
0≤[S1(Eˉ1)−S1(E1)]+[S2(E−Eˉ1)−S2(E−E1)]=ΔS1+ΔS2=ΔS0 \le \left[S_1(\bar E_1) - S_1(E_1)\right] + \left[S_2(E - \bar E_1) - S_2(E - E_1)\right] = \Delta S_1 + \Delta S_2 = \Delta S
In words

0 is less than or equal to the quantity S one ( capital E one bar ) minus S one ( capital E one ), all plus the quantity S two the quantity capital E minus capital E one bar, all minus S two the quantity capital E minus capital E one, equals capital delta S one plus capital delta S two equals capital delta S

Left to itself, an isolated system can only gain entropy; once it is in equilibrium its entropy no longer changes: ΔS≥0\Delta S \ge 0.

Contact with a bath (slide 8; notes pp. 6–7). Now make system 2 enormous, so that no amount of heat from system 1 shifts its temperature. Such a system is a bath (reservoir), at temperature TbathT_{\text{bath}}. No work is done, so by the definition of temperature dS2=dE2/T2=δQ2/T2=−δQ1/TbathdS_2 = dE_2/T_2 = \delta Q_2/T_2 = -\delta Q_1/T_{\text{bath}}, and dS1+dS2≥0dS_1 + dS_2 \ge 0 becomes

Second law with a heat bath
dS1≥δQ1TbathdS_1 \ge \frac{\delta Q_1}{T_{\text{bath}}}
In words

d S one is greater than or equal to delta Q one over T sub bath

with equality for a system that stays in equilibrium with the bath, where dS=δQ/TdS = \delta Q/T. The two inequalities together are the second law of thermodynamics (notes p. 7). Equality needs a quasi-static process, one kept arbitrarily close to equilibrium, which is also what the work formulas of earlier lectures assume (slide 13).

The ideal monatomic gas#

From the previous lecture, Φ=VN(4πemE/3N)3N/2\Phi = V^N(4\pi emE/3N)^{3N/2} for large NN (slide 9):

Entropy of the ideal monatomic gas
S(E,V,N)=kNln⁡[V(4πemE3N)3/2]S(E, V, N) = kN\ln\left[V\left(\frac{4\pi emE}{3N}\right)^{3/2}\right]
In words

S( capital E, V, capital N ) equals k capital N log ( V ( 4 pi e m capital E over the quantity 3 capital N, ) to the power three halves )

(Using Ω\Omega instead adds kln⁡(3NΔ/2E)k\ln(3N\Delta/2E), of order ln⁡N\ln N and negligible; the slide leaves out the factor kk on this term.)

The energy relation (slide 10). Holding NN and VV fixed, no work is done, so

Energy of the ideal gas
1T=(∂S∂E)N,V=32NkE⟹E=32NkT,CV=32Nk\frac1T = \left(\frac{\partial S}{\partial E}\right)_{N,V} = \frac{\frac32Nk}{E} \quad\Longrightarrow\quad E = \frac32NkT, \qquad C_V = \frac32Nk
In words

1 over T equals ( partial S over partial capital E ) sub capital N,V equals the quantity three halves capital N k, all over capital E which gives capital E equals three halves capital N k T, C sub V equals three halves capital N k

since here the internal energy UU is EE. The temperature defined from the entropy agrees with the ideal-gas temperature.

The adiabatic condition (slide 11). A quasi-static adiabatic process has δQ=0\delta Q = 0, hence ΔS=0\Delta S = 0. Eliminating EE with the energy relation, S=kNln⁡[V(2πemkT)3/2]S = kN\ln[V(2\pi emkT)^{3/2}], so at fixed NN

Adiabat of the ideal monatomic gas
VT3/2=constantVT^{3/2} = \text{constant}
In words

V T to the power three halves equals constant

the same as PV5/3PV^{5/3} = constant from Lecture 6, now derived from counting states.

The logic (slide 12). The microcanonical ensemble (fixed EE, equal a priori probabilities) gives the microscopic probability densities; adding the definition of entropy gives the temperature scale and the second-law inequalities.

Worked example

Sharing energy between two gases

One mole of helium (system 1) and two moles of helium (system 2), each at fixed volume, share a total energy of 3 kJ. At first system 1 has E1=2E_1 = 2 kJ and system 2 has 1 kJ. Use R=NAk=8.314R = N_Ak = 8.314 J/K per mole. (a) Find the initial temperatures. (b) Find the equilibrium energies and temperature. (c) Find the entropy change. (d) Separately, one mole of helium at 300 K is compressed quasi-statically and adiabatically to one eighth of its volume. Find its final temperature.

(a) Before contact

T=2E/(3nR)T = 2E/(3nR) for nn moles: T1=2×2000/(3×8.314)≈160.4T_1 = 2 \times 2000/(3 \times 8.314) \approx 160.4 K and T2=2×1000/(3×2×8.314)≈40.1T_2 = 2 \times 1000/(3 \times 2 \times 8.314) \approx 40.1 K.

(b) Equilibrium

Equal ∂S/∂E=32Nk/E\partial S/\partial E = \frac32Nk/E means equal energy per particle, so Eˉ1=3×13=1\bar E_1 = 3 \times \frac13 = 1 kJ and Eˉ2=2\bar E_2 = 2 kJ, at T=2×1000/(3×8.314)≈80.2T = 2 \times 1000/(3 \times 8.314) \approx 80.2 K.

(c) Entropy change

At fixed VV and NN, ΔS=32Nkln⁡(Efinal/Einitial)\Delta S = \frac32Nk\ln(E_{\text{final}}/E_{\text{initial}}) for each gas. System 1: 12.47ln⁡12≈−8.6412.47 \ln\frac12 \approx -8.64 J/K. System 2: 24.94ln⁡2≈+17.2924.94\ln 2 \approx +17.29 J/K. Total ΔS≈+8.64\Delta S \approx +8.64 J/K, positive as the second law demands: the cold gas gains more entropy than the hot gas loses.

(d) Adiabatic compression

VT3/2VT^{3/2} constant gives T2=300×82/3=1200T_2 = 300 \times 8^{2/3} = 1200 K.

Summary#

  • Entropy: S=kln⁡ΩS = k\ln\Omega (≈kln⁡ρ≈kln⁡Φ\approx k\ln\rho \approx k\ln\Phi); a state function, extensive, a logarithmic count of microstates.
  • Two systems sharing energy: the most probable division has equal ∂S/∂E\partial S/\partial E; this is thermal equilibrium, and 1/T=(∂S/∂E)1/T = (\partial S/\partial E) with no work defines temperature.
  • Second law: ΔS≥0\Delta S \ge 0 for an isolated system; dS≥δQ/TbathdS \ge \delta Q/T_{\text{bath}} in contact with a bath; equality only for quasi-static processes.
  • Ideal monatomic gas: S=kNln⁡[V(4πemE/3N)3/2]S = kN\ln[V(4\pi emE/3N)^{3/2}] gives E=32NkTE = \frac32NkT, CV=32NkC_V = \frac32Nk and VT3/2VT^{3/2} = constant on an adiabat.

Symbols on this page

Show the 52 symbols used here
δ\delta delta.
A small amount of heat or work that is not the change of a state function (δQ, δW). Say it: “delta”.
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
ρ\rho rho.
The density of states ∂Φ/∂E. Say it: “rho”.
Ω\Omega capital omega.
The accessible phase-space volume (classically) or number of accessible states (quantum). Say it: “capital omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
∝\propto proportional to.
Is proportional to: doubling one doubles the other. Say it: “is proportional to”.
≡\equiv identical to.
Is defined as (or is identically equal to). Say it: “is defined as”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
∂\partial partial.
Partial derivative: the rate of change with one variable, holding the others fixed. Say it: “partial”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
ρˉ\bar\rho bar.
A mean (average) value, such as ρ̄; in 8.902 also a smoothed field (δ̄). Say it: “bar”.
kk k.
Boltzmann's constant. Unit: eV/K. Say it: “k”.
TT T.
The temperature. Unit: K. Say it: “T”.
Φ\Phi capital phi.
The phase-space volume with energy below E. Say it: “capital phi”.
dd d.
The d of a derivative, differential or integral. Say it: “d”.
nn n.
The number of moles. Unit: mol. Say it: “n”.
ee e.
Euler's number. Say it: “e”.
mm m.
The mass of an atom. Unit: kg. Say it: “m”.
PP P.
The pressure. Unit: Pa. Say it: “capital P”.
QQ Q.
Heat added; δQ is a small amount of it. Unit: J. Say it: “Q”.
NN N.
The number of particles. Say it: “capital N”.
pp p.
A probability density. Say it: “p”.
RR R.
The gas constant N_A k. Unit: J/(mol K). Say it: “R”.
SS S.
The entropy, k ln Ω. Unit: J/K. Say it: “S”.
S1S_{1} S one.
The entropy of system 1. Unit: J/K. Say it: “S one”.
S2S_{2} S two.
The entropy of system 2. Unit: J/K. Say it: “S two”.
T1T_{1} T one.
The temperature of system 1. Unit: K. Say it: “T one”.
T2T_{2} T two.
The temperature of system 2; in (d), the final temperature. Unit: K. Say it: “T two”.
EE E.
The energy (of the combined system, or of one system). Unit: J. Say it: “capital E”.
UU U.
The internal energy. Unit: J. Say it: “U”.
VV V.
The volume. Unit: m³. Say it: “V”.
E1E_{1} E one.
The energy of system 1 (before contact, in the second-law argument); Ē₁ is its most probable, equilibrium value. Unit: J. Say it: “capital E one”.
E2E_{2} E two.
The energy of system 2. Unit: J. Say it: “capital E two”.
W1W_{1} W one.
Work done on system 1. Unit: J. Say it: “W one”.
W2W_{2} W two.
Work done on system 2. Unit: J. Say it: “W two”.
N1N_{1} N 1.
The number of particles in gas 1. Say it: “capital N one”.
N2N_{2} N 2.
The number of particles in gas 2. Say it: “capital N two”.
Q1Q_{1} Q 1.
Heat added to system 1. Unit: J. Say it: “Q one”.
Q2Q_{2} Q two.
Heat added to system 2. Unit: J. Say it: “Q two”.
E′E' E prime.
The integration variable: the energy given to system 1. Unit: J. Say it: “capital E prime”.
CVC_{V} C V.
The heat capacity at constant volume. Unit: J/K. Say it: “C sub V”.
Ω1\Omega_{1} Omega 1.
The accessible phase-space volume of system 1. Say it: “capital omega sub 1”.
Ω2\Omega_{2} Omega 2.
The accessible phase-space volume of system 2. Say it: “capital omega sub 2”.
TbathT_{\text{bath}} T bath.
The temperature of the heat bath (reservoir). Unit: K. Say it: “T sub bath”.
NAN_{A} N A.
Avogadro's number. Unit: 1/mol. Say it: “capital N sub A”.
EfinalE_{\text{final}} E final.
A gas's energy after equilibrium is reached. Unit: J. Say it: “capital E sub final”.
EinitialE_{\text{initial}} E initial.
A gas's energy before contact. Unit: J. Say it: “capital E sub initial”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 33 words used here

New here

second law of thermodynamics.
The law that the entropy of an isolated system never decreases, so heat flows by itself only from hot to cold.
state function.
A quantity fixed by the present state of a system alone, not by how it got there, such as energy, entropy or pressure.
heat bath.
A body so large that it can give or take any amount of heat without changing temperature, used to hold a system at fixed temperature.

Also used

phase space.
The space of all possible states of a system, one axis for each coordinate and one for each momentum. Explained in Statistical mechanics and the microcanonical ensemble.
entropy.
A measure of how many microscopic arrangements of a system match its large-scale state; it never decreases in an isolated system. Explained in Entropy and the second law.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
microcanonical ensemble.
The description of an isolated system whose energy and particle number are fixed, in which every allowed microscopic state is equally likely. Explained in Statistical mechanics and the microcanonical ensemble.
extensive.
Of a quantity: proportional to the size of the system, so it doubles when two identical systems are put together, like volume or energy. Explained in Thermodynamic variables, temperature and work.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.
microscopic.
At the level of the individual atoms and molecules of a system, such as one molecule's velocity, rather than of the system as a whole. Explained in Thermodynamic variables, temperature and work.
macroscopic.
Large enough to see and measure directly, or describing a whole system rather than its single atoms, such as pressure or temperature. Explained in Thermodynamic variables, temperature and work.
energy.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
heat.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.
work.
The energy a force gives to a body as it moves: the part of the force along the motion times the distance moved. Explained in Kinetic energy and work in one dimension.
probability density.
Probability per unit length, area or volume: multiplied by a small interval, it gives the chance that the value falls there. Explained in Normalization, Hermitian operators and the probability current.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
with respect to.
Taking that variable as the one that changes: a derivative with respect to t measures change as t changes, others held fixed. Explained in Average value, weighted averages and probability.
thermal equilibrium.
A state in which energy is shared out evenly and nothing changes on average, so the system can be described by a single temperature. Explained in Temperature and thermal energy.
isolated system.
A system cut off from outside influence: no outside force acts on it, and no energy or matter goes in or out. Explained in Conservation of momentum.
equilibrium.
The settled state a system reaches when left alone: its large-scale properties stop changing, although its atoms keep moving. Explained in Thermodynamic variables, temperature and work.
quasi-static.
Of a process: carried out so slowly that the system stays as close as we like to equilibrium at every step. Explained in Thermodynamic variables, temperature and work.
internal energy.
The total energy held inside a system, in the motion and interactions of its particles, not counting the motion of the system as a whole. Explained in Temperature and thermal energy.
adiabatic.
Happening without any heat flowing in or out. Explained in The first law of thermodynamics.
postulate of equal a priori probabilities.
The basic assumption of statistical mechanics that every accessible microscopic state of an isolated system in equilibrium is equally likely. Explained in Statistical mechanics and the microcanonical ensemble.
adiabat.
A curve joining states that a system can pass through without taking in or giving out heat; along it the entropy stays constant. Explained in The first law of thermodynamics and paths.

Academic

derive.
To obtain a result by reasoning or calculation from other known results.
of order.
Roughly equal to, within a factor of a few; of order one means neither much bigger nor much smaller than one.
arbitrary.
Free to be chosen as one likes; any choice gives a correct result.
assumption.
Something accepted as true, without proof, so that an argument or calculation can proceed; to assume is to accept it so.
negligible.
So small that leaving it out makes no noticeable difference to the result.
hence.
For this reason; as a result of what was just said.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. How is the entropy defined in the microcanonical ensemble?
  2. Two systems exchange energy but no work. What condition fixes the most probable division of the energy?
  3. A system exchanges heat δQ with a large bath at temperature T. What does the second law say?
  4. For an ideal monatomic gas, which follows from 1/T=(∂S/∂E)N,V1/T = (\partial S/\partial E)_{N,V} with S=kNln⁡[V(4πemE/3N)3/2]S = kN\ln[V(4\pi emE/3N)^{3/2}]?
0 of 4 answered

Flashcards

1 / 3