1. Home
  2. Explore
  3. Physics
  4. Temperature and Thermal Equilibrium

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Temperature and Thermal Equilibrium

Temperature, Entropy, and Statistical Mechanics

What temperature measures

Temperature can be introduced experimentally by observing how energy moves between substances. If two substances are placed in contact and energy naturally flows from substance A to substance B, A is at a higher temperature. If there is no net energy flow, the substances are in thermal equilibrium and have the same temperature.

This gives a way to compare temperatures, but it does not yet explain what a thermometer’s numerical reading represents. Temperature is related to the energy of a substance’s particles, which can move, rotate, vibrate, and interact. However, temperature is not simply internal energy: different substances require different amounts of energy to undergo the same temperature change.

For example, raising the temperature of one gram of mercury by 101010 degrees Celsius requires about 1.41.41.4 joules, whereas raising one gram of water by the same amount requires about 424242 joules. Their different heat capacities mean that the same energy change does not produce the same temperature change. Relationships between energy and temperature can also change during melting, boiling, or other phase changes.

In ordinary circumstances, temperature often varies approximately linearly with a substance’s internal energy. Its relation to volume or pressure can also be useful experimentally. These empirical relationships describe how temperature behaves, but a deeper definition explains how temperature can be calculated from the microscopic state of a system.


Macrostates, microstates, and entropy

A system’s macrostate is described by large-scale properties, such as its shape, volume VVV, particle number NNN, and total internal energy UUU. A microstate specifies the detailed arrangement of the system’s particles, including quantities such as their positions and momenta.

Many different microstates can correspond to the same macrostate. The number of compatible microstates is called the multiplicity, denoted by Ω\OmegaΩ. Boltzmann’s definition of entropy is

S=kln⁡Ω,S = k \ln \Omega,S=klnΩ,

where kkk is Boltzmann’s constant, which supplies the appropriate units. Entropy is commonly measured in joules per kelvin.

Why the count of microstates is finite

In a classical description, positions and momenta can take continuously many values, which would make a direct count of microstates infinite. Statistical mechanics instead counts discrete quantum states. The broad idea is to divide position, momentum, and energy into sufficiently small state-space cells.

Quantum mechanics provides the natural scale for this counting. The position and momentum uncertainties along one coordinate obey

Δx Δpx≥h4π,\Delta x\,\Delta p_x \geq \frac{h}{4\pi},ΔxΔpx​≥4πh​,

where hhh is Planck’s constant. This uncertainty relation indicates the scale at which position and momentum states can be distinguished. In standard state counting, a cell in phase space has volume hhh for each position–momentum coordinate pair, giving a cell volume of h3Nh^{3N}h3N for NNN particles in three dimensions.

The uncertainty inequality by itself does not specify every detail of state counting; the quantum-mechanical description of the available states supplies that structure. Although the number of states is fundamentally discrete, the spacing between them is so tiny for macroscopic systems that entropy can usually be treated as a continuous function.

Temperature and entropy are statistical properties: they become useful descriptions when a system contains very many particles, not as ordinary macroscopic quantities for a single particle.

Temperature from entropy

At fixed volume and fixed particle number, temperature is defined by the rate at which entropy changes as internal energy changes:

1T=(∂S∂U)V,N.\frac{1}{T} = \left(\frac{\partial S}{\partial U}\right)_{V,N}.T1​=(∂U∂S​)V,N​.

Equivalently,

T=[(∂S∂U)V,N]−1.T = \left[ \left(\frac{\partial S}{\partial U}\right)_{V,N} \right]^{-1}.T=[(∂U∂S​)V,N​]−1.

The subscript indicates that volume and particle number are held fixed while the derivative is taken. The partial derivative has units of inverse kelvin, so its reciprocal has units of temperature.


Why energy flows until temperatures match

Consider two systems, A and B, that can exchange energy but are otherwise isolated from their surroundings. Their combined energy is fixed:

UA+UB=constant.U_A + U_B = \text{constant}.UA​+UB​=constant.

If A has ΩA\Omega_AΩA​ microstates and B has ΩB\Omega_BΩB​, the number of joint microstates is the product ΩAΩB\Omega_A\Omega_BΩA​ΩB​. Because logarithms turn products into sums, the total entropy is

Stotal=SA+SB.S_{\text{total}} = S_A + S_B.Stotal​=SA​+SB​.

When the systems exchange energy, the most probable combined macrostate is the one with the largest multiplicity, and therefore the largest total entropy. The systems tend toward that macrostate because there are more microscopic arrangements corresponding to it.

A small increase in A’s energy must be accompanied by an equal decrease in B’s energy. Thus the change in total entropy with respect to energy transferred to A is

∂Stotal∂UA=(∂SA∂UA)VA,NA−(∂SB∂UB)VB,NB.\frac{\partial S_{\text{total}}}{\partial U_A} = \left(\frac{\partial S_A}{\partial U_A}\right)_{V_A,N_A} - \left(\frac{\partial S_B}{\partial U_B}\right)_{V_B,N_B}.∂UA​∂Stotal​​=(∂UA​∂SA​​)VA​,NA​​−(∂UB​∂SB​​)VB​,NB​​.

At maximum entropy, this derivative is zero. Therefore,

(∂SA∂UA)VA,NA=(∂SB∂UB)VB,NB.\left(\frac{\partial S_A}{\partial U_A}\right)_{V_A,N_A} = \left(\frac{\partial S_B}{\partial U_B}\right)_{V_B,N_B}.(∂UA​∂SA​​)VA​,NA​​=(∂UB​∂SB​​)VB​,NB​​.

Since each derivative is 1/T1/T1/T, the condition becomes

TA=TB.T_A = T_B.TA​=TB​.

This establishes the central experimental property of temperature: two systems in thermal equilibrium have equal temperatures.

A small model of energy sharing

Suppose two identical systems each contain two particles, and four indivisible units of energy are shared between them. If all four units are assigned to A, the combined arrangement has multiplicity 555. If A receives three units and B receives one, the multiplicity is 888. If the energy is divided evenly, the multiplicity is 999.

The equal-energy macrostate is therefore the most likely among these examples. It is not the only possible outcome, but it corresponds to the largest number of microstates. As the number of particles and energy units increases, the distribution becomes increasingly concentrated around its most probable arrangement. For a glass of water, the particle number is on the order of 102410^{24}1024, so the most probable macroscopic behavior is overwhelmingly likely.


Why temperature is proportional to energy in a simple model

A simplified model helps show why temperature can be proportional to energy even when the microstate count is only approximate.

For two particles with integer-valued energy, a fixed total energy UUU corresponds to U+1U+1U+1 possible assignments: the first particle can have any energy from 000 to UUU, with the second receiving the remainder.

For three particles, the possible states at fixed energy form a two-dimensional set whose size grows approximately as U2U^2U2. For four particles, the count grows approximately as U3U^3U3. More generally, for NNN particles, a rough scaling is

Ω(U,N)≈f(N) UN−1,\Omega(U,N) \approx f(N)\,U^{N-1},Ω(U,N)≈f(N)UN−1,

where f(N)f(N)f(N) is a factor that depends on particle number. For a macroscopic system, replacing N−1N-1N−1 with NNN is a negligible approximation, so one can write

Ω(U,N)≈f(N) UN.\Omega(U,N) \approx f(N)\,U^N.Ω(U,N)≈f(N)UN.

Taking the logarithm gives

S≈k[Nln⁡U+ln⁡f(N)].S \approx k\bigl[N\ln U+\ln f(N)\bigr].S≈k[NlnU+lnf(N)].

At fixed NNN, the factor f(N)f(N)f(N) does not depend on UUU and disappears when the energy derivative is taken:

(∂S∂U)V,N≈kNU.\left(\frac{\partial S}{\partial U}\right)_{V,N} \approx \frac{kN}{U}.(∂U∂S​)V,N​≈UkN​.

Consequently,

T≈UkN.T \approx \frac{U}{kN}.T≈kNU​.

This simple model therefore gives temperature proportional to energy per particle. Its numerical details are crude, but the broad result is sensible: increasing the energy per particle increases the temperature. More accurate microstate counting is needed to predict properties such as heat capacity precisely.


Microstate counting for an ideal gas

An ideal gas is a model of point-like particles with negligible interactions, apart from collisions. For a monatomic ideal gas, each particle’s energy is kinetic:

E=px2+py2+pz22m,E = \frac{p_x^2+p_y^2+p_z^2}{2m},E=2mpx2​+py2​+pz2​​,

where mmm is the particle mass and pxp_xpx​, pyp_ypy​, and pzp_zpz​ are its momentum components.

Position states

For a single particle in a volume VVV, the number of allowed position states is obtained by dividing the volume into quantum-scale cells. For NNN particles, the position-space contribution is proportional to VNV^NVN.

Momentum states

For one particle with a fixed kinetic energy UUU, the allowed momentum values lie on a sphere of radius

r=2mUr = \sqrt{2mU}r=2mU​

in three-dimensional momentum space.

For NNN particles, the constraint applies to the total energy of all particles. The corresponding momentum-space boundary is a hypersphere in 3N3N3N dimensions, with radius 2mU\sqrt{2mU}2mU​. Counting its states requires the volume enclosed by this hypersphere, or equivalently a sufficiently thin energy shell. The energy shell can be treated as having a small but finite thickness: it is wide compared with the spacing between quantum states and narrow compared with macroscopic energy changes.

The volume of an nnn-dimensional ball of radius RRR is

πn/2RnΓ(n2+1),\frac{\pi^{n/2}R^n}{\Gamma\left(\frac{n}{2}+1\right)},Γ(2n​+1)πn/2Rn​,

where Γ\GammaΓ is the gamma function, which extends the factorial to non-integer arguments. Applying this to the 3N3N3N-dimensional momentum space gives the momentum-space volume

(2πmU)3N/2Γ(3N2+1).\frac{(2\pi mU)^{3N/2}}{\Gamma\left(\frac{3N}{2}+1\right)}.Γ(23N​+1)(2πmU)3N/2​.

Combining position and momentum states and dividing by the phase-space cell size gives a count proportional to

VN(2πmU)3N/2h3NΓ(3N2+1).\frac{V^N(2\pi mU)^{3N/2}} {h^{3N}\Gamma\left(\frac{3N}{2}+1\right)}.h3NΓ(23N​+1)VN(2πmU)3N/2​.

Indistinguishable particles

For identical particles, exchanging two particle labels does not produce a physically distinct microstate. The expression above counts each arrangement N!N!N! times, once for each possible particle ordering. The count must therefore be divided by N!N!N!.

A convenient cumulative count of states up to energy UUU is

Ω(U,V,N)=VN(2πmU)3N/2N! h3NΓ(3N2+1).\Omega(U,V,N) = \frac{V^N(2\pi mU)^{3N/2}} {N!\,h^{3N}\Gamma\left(\frac{3N}{2}+1\right)}.Ω(U,V,N)=N!h3NΓ(23N​+1)VN(2πmU)3N/2​.

Counting states in a thin energy shell instead leads to the same thermodynamic entropy for a macroscopic system, apart from negligible terms.


The Sackur–Tetrode equation

Using S=kln⁡ΩS=k\ln\OmegaS=klnΩ with the ideal-gas multiplicity gives an expression containing factorials. For large nnn, Stirling’s approximation states

ln⁡(n!)≈nln⁡n−n.\ln(n!) \approx n\ln n-n.ln(n!)≈nlnn−n.

Applying this approximation to the factorial and gamma-function terms, and neglecting corrections small compared with terms proportional to NNN, yields the Sackur–Tetrode equation for a monatomic ideal gas:

S=Nk[ln⁡(VN(4πmU3Nh2)3/2)+52].S = Nk\left[ \ln\left( \frac{V}{N} \left(\frac{4\pi mU}{3Nh^2}\right)^{3/2} \right) +\frac{5}{2} \right].S=Nk[ln(NV​(3Nh24πmU​)3/2)+25​].

The argument of the logarithm is dimensionless. This equation gives the entropy in terms of the gas’s volume, particle number, total energy, particle mass, and Planck’s constant.

The formula’s detailed constant terms depend on correctly counting position and momentum states, treating particles as indistinguishable, and using the quantum phase-space scale. Many temperature results require less precision because constants independent of energy disappear when entropy is differentiated. The full equation is nevertheless needed to predict absolute entropy values.

Temperature of a monatomic ideal gas

At fixed VVV and NNN, only the ln⁡U\ln UlnU term in the Sackur–Tetrode equation depends on energy. Differentiating gives

(∂S∂U)V,N=3Nk2U.\left(\frac{\partial S}{\partial U}\right)_{V,N} = \frac{3Nk}{2U}.(∂U∂S​)V,N​=2U3Nk​.

Using the statistical definition of temperature,

T=2U3Nk,T = \frac{2U}{3Nk},T=3Nk2U​,

or, equivalently,

U=32NkT.U = \frac{3}{2}NkT.U=23​NkT.

This is the internal energy of a classical monatomic ideal gas.


Heat capacity and degrees of freedom

Heat capacity describes how much energy is required to produce a temperature change under specified conditions. For a monatomic ideal gas at fixed volume,

CV=(∂U∂T)V,N=32Nk.C_V = \left(\frac{\partial U}{\partial T}\right)_{V,N} = \frac{3}{2}Nk.CV​=(∂T∂U​)V,N​=23​Nk.

Per particle, this is 32k\frac{3}{2}k23​k. Per mole, using the ideal gas constant RRR, it is

CV,molar=32R≈12.47 J mol−1K−1.C_{V,\text{molar}} = \frac{3}{2}R \approx 12.47\ \text{J mol}^{-1}\text{K}^{-1}.CV,molar​=23​R≈12.47 J mol−1K−1.

This prediction agrees with the measured constant-volume molar heat capacity of helium under conditions where it behaves approximately as a classical monatomic ideal gas.

Equipartition theorem

The result is an example of the equipartition theorem. In a classical system at thermal equilibrium, each independent quadratic degree of freedom contributes an average energy of 12kT\frac{1}{2}kT21​kT per particle.

A monatomic gas has three translational momentum components, so its average energy per particle is

32kT.\frac{3}{2}kT.23​kT.

A diatomic molecule can also store energy in rotation. In the usual temperature range where two rotational degrees of freedom are active and vibrational modes are not, it has five relevant quadratic degrees of freedom: three translational and two rotational. Its heat capacity at constant volume is then approximately

CV=52Nk.C_V = \frac{5}{2}Nk.CV​=25​Nk.

The number of active degrees of freedom can depend on temperature because quantum effects can make some modes inaccessible over particular temperature ranges.


Absolute entropy and experimental checks

Temperature measurements and energy measurements can reveal changes in entropy through the relation between TTT and UUU. However, integrating an entropy change determines entropy only up to an additive constant. Absolute entropy measurements require a reference state whose entropy is known.

The natural reference is approached at absolute zero. In the simplest description, a system with no energy available for motion is frozen into its lowest-energy state and has zero entropy. More precisely, the third law of thermodynamics assigns zero entropy to a perfect crystal in its unique ground state; some systems can have residual entropy if multiple ground states remain possible.

An ideal-gas formula cannot be used unchanged all the way to absolute zero because real substances change phase. For example, mercury is solid at low temperatures, then liquid, and only becomes a gas at higher temperatures. To estimate its entropy experimentally, measurements of heat capacity can be integrated across temperature ranges, while the energy and entropy changes associated with phase transitions are included. Models of low-temperature solids are also needed. Such procedures enabled comparisons between experimental entropy and the Sackur–Tetrode equation, including tests of the quantum state-counting scale involving Planck’s constant.


Constant-volume and constant-pressure heating

Heat capacity depends on the constraint imposed during heating. The derivation above holds the volume fixed, producing the isochoric heat capacity CVC_VCV​. A different value applies when pressure is held fixed and the gas is allowed to expand.

For a monatomic ideal gas at constant pressure, the energy supplied must both increase the gas’s internal energy and provide the expansion work. The ideal gas law is

PV=NkT.PV = NkT.PV=NkT.

For a temperature increase ΔT\Delta TΔT at constant pressure, the internal-energy increase is

ΔU=CVΔT=32NkΔT.\Delta U = C_V\Delta T = \frac{3}{2}Nk\Delta T.ΔU=CV​ΔT=23​NkΔT.

The expansion work is

PΔV=NkΔT,P\Delta V = Nk\Delta T,PΔV=NkΔT,

as follows from the ideal gas law. Therefore, the energy supplied is

ΔQ=ΔU+PΔV=52NkΔT.\Delta Q = \Delta U + P\Delta V = \frac{5}{2}Nk\Delta T.ΔQ=ΔU+PΔV=25​NkΔT.

Thus the isobaric heat capacity is

CP=52Nk.C_P = \frac{5}{2}Nk.CP​=25​Nk.

Per mole,

CP,molar=52R≈20.79 J mol−1K−1.C_{P,\text{molar}} = \frac{5}{2}R \approx 20.79\ \text{J mol}^{-1}\text{K}^{-1}.CP,molar​=25​R≈20.79 J mol−1K−1.

The difference between the heat capacities is

CP−CV=Nk.C_P-C_V=Nk.CP​−CV​=Nk.

For one mole, this becomes CP−CV=RC_P-C_V=RCP​−CV​=R. The larger value of CPC_PCP​ reflects the extra energy required for expansion at constant pressure.


Thermodynamic variables and partial derivatives

Entropy depends on more than energy. For example, changing a system’s volume can change its number of accessible microstates and thus its entropy. A derivative must therefore specify which other variables are held fixed.

In the conventional definition of temperature, volume and particle number are held fixed:

1T=(∂S∂U)V,N.\frac{1}{T} = \left(\frac{\partial S}{\partial U}\right)_{V,N}.T1​=(∂U∂S​)V,N​.

Pressure is related to how energy changes with volume at fixed entropy and particle number. The fundamental thermodynamic relation is

dU=T dS−P dV+μ dN,dU = T\,dS - P\,dV + \mu\,dN,dU=TdS−PdV+μdN,

where μ\muμ is the chemical potential, the quantity associated with changes in particle number. It follows that

T=(∂U∂S)V,NT = \left(\frac{\partial U}{\partial S}\right)_{V,N}T=(∂S∂U​)V,N​

and

−P=(∂U∂V)S,N.-P = \left(\frac{\partial U}{\partial V}\right)_{S,N}.−P=(∂V∂U​)S,N​.

At fixed UUU and NNN, the same relation gives

(∂S∂V)U,N=PT.\left(\frac{\partial S}{\partial V}\right)_{U,N} = \frac{P}{T}.(∂V∂S​)U,N​=TP​.

For an ideal gas, differentiating the Sackur–Tetrode equation with respect to volume yields

(∂S∂V)U,N=NkV.\left(\frac{\partial S}{\partial V}\right)_{U,N} = \frac{Nk}{V}.(∂V∂S​)U,N​=VNk​.

Equating this to P/TP/TP/T gives the ideal gas law:

PV=NkT.PV = NkT.PV=NkT.

This law is also often written as PV=nRTPV=nRTPV=nRT, where nnn is the amount of gas in moles.


Scope and significance of statistical mechanics

The central method applies widely: identify a macrostate, count the microstates compatible with it, take the logarithm to obtain entropy, and differentiate entropy to obtain temperature. The same broad ideas also appear in information theory, where the possible arrangements of information in a system are analyzed statistically.

The difficulty lies in the counting. The ideal gas is unusually tractable. Solids require detailed models of crystal structure and vibrations, while liquids are generally more difficult to describe. Nevertheless, statistical mechanics connects microscopic particle behavior to macroscopic quantities such as temperature, pressure, entropy, and heat capacity.

Entropy and heat capacity both have units of energy divided by temperature, such as joules per kelvin, but they are different quantities. Entropy measures the statistical multiplicity of a macrostate, whereas heat capacity measures the energy required for a temperature change under specified conditions.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent