Skip to main content
Sandbox Physics
Volume 5 · Heat, Probability and Matter

Why does heat flow spontaneously from hot to cold?

Compare the entropy changes of a hot body and a cold body. Use their sum to explain the direction of spontaneous heat flow.

Before you start: Chapter 1 on temperature, Chapter 2 on probabilities and Chapter 3 on the first law.

After this chapter you can: Choose a system boundary, calculate entropy changes and explain the sign of the total for heat exchange.

The same amount of energy leaving a hot body causes a larger entropy increase when it enters a colder body than the entropy decrease it causes at the hot side. Total entropy rises as heat goes from hot to cold. Energy conservation allows the reverse transfer, but the second law rules it out as the sole spontaneous change of the isolated pair.

4.1 Calculate entropy changes for two reservoirs

Let thermal reservoirs at absolute temperatures Th>TcT_h>T_c exchange energy. Use Q>0Q>0 for heat leaving the hot reservoir. The temperatures stay essentially fixed because the reservoirs are large. Their entropy changes add to

ΔSh=−QTh,ΔSc=QTc,ΔStotal=Q(1Tc−1Th)>0.\Delta S_h=-\frac{Q}{T_h},\qquad \Delta S_c=\frac{Q}{T_c},\qquad \Delta S_{\mathrm{total}}=Q\left(\frac{1}{T_c}-\frac{1}{T_h}\right)>0.

For Q=600 JQ=600\,\mathrm J between Th=400 KT_h=400\,\mathrm K and Tc=300 KT_c=300\,\mathrm K, the hot reservoir loses 1.50 J/K1.50\,\mathrm{J/K} of entropy and the cold reservoir gains 2.00 J/K2.00\,\mathrm{J/K}. Their total change is +0.500 J/K+0.500\,\mathrm{J/K}. This sign distinguishes the two directions allowed by energy conservation.

4.2 Use a reversible path to find a state change

4.2.1 Integrate at the changing temperature

Entropy is a state function. To find a change between two equilibrium states, integrate the heat entering the system over its absolute temperature along any reversible path between them.

ΔS=∫ifδQrevT.\Delta S=\int_i^f \frac{\delta Q_{\mathrm{rev}}}{T}.

A finite temperature difference makes direct contact irreversible. The reversible path is a way to compute its endpoints' entropy change. For a body with constant heat capacity CC, choose a sequence of reservoirs that differ from the body's temperature by arbitrarily small amounts. Along that path δQrev=C dT\delta Q_{\mathrm{rev}}=C\,dT, so

ΔS=Cln⁡ ⁣(TfTi).\Delta S=C\ln\!\left(\frac{T_f}{T_i}\right).

Take two bodies with identical heat capacities C=300 J/KC=300\,\mathrm{J/K} and initial temperatures 350 K350\,\mathrm K and 290 K290\,\mathrm K. Put them in contact and insulate them from their surroundings. Energy conservation puts their common final temperature at 320 K320\,\mathrm K. A total of 9.00 kJ9.00\,\mathrm{kJ} passes from the warmer body to the cooler one.

Table 4.1 Analytic entropy changes for the isolated pair as it comes to a common temperature.
BodyInitial temperatureFinal temperatureEntropy change
Hot350 K350\,\mathrm K320 K320\,\mathrm K−26.88 J/K-26.88\,\mathrm{J/K}
Cold290 K290\,\mathrm K320 K320\,\mathrm K+29.53 J/K+29.53\,\mathrm{J/K}
Combined+2.65 J/K+2.65\,\mathrm{J/K}
  • Hot body
  • Cold body
Entropy change as heat moves between two finite bodiesThe hot body loses entropy and the cold body gains more. The total rises to about 2.65 joules per kelvin as the two bodies reach the same temperature.

Figure 4.1 Calculated entropy changes as heat accumulates on the cold side of the isolated pair. The warm body loses entropy, the cool body gains more, and the sum rises. At a common temperature the slope of the total curve reaches zero.

4.2.2 Compare two paths for expanding a gas

For a reversible isothermal expansion of an ideal gas, the temperature stays fixed and the gas receives heat equal to the work it does. Using the ideal-gas law for the pressure in the work integral gives the gas entropy change

ΔSgas=NkBln⁡ ⁣(VfVi).\Delta S_{\mathrm{gas}}=Nk_B\ln\!\left(\frac{V_f}{V_i}\right).

Now let that gas expand freely into a vacuum inside a rigid insulated container. It exchanges no heat and does no work on the surroundings. Its internal energy stays fixed, so its final temperature equals its initial temperature for an ideal gas. The final gas state can match the reversible expansion. Its entropy change is then the same. In free expansion the surroundings receive no entropy, so the positive gas entropy change is also the change for the isolated whole.

4.3 Count the microscopic possibilities

A macrostate can describe the number of particles on one side of a box without specifying which particles they are. For four labelled particles, with each independently able to be left or right, there is one assignment with all four on the left. There are six assignments with two on each side. In this simple counting model, each assignment is equally likely at equilibrium.

S=kBln⁡Ω.S=k_B\ln\Omega .

Here Ω\Omega is the number of allowed microstates for the macrostate. The balanced split exceeds the all-left split in entropy by kBln⁡6k_B\ln6. In a macroscopic system, states with more microscopic possibilities have much larger statistical weight. This helps explain why an initially concentrated gas spreads through the space available to it.

4.4 Compare cooling with and without a heat leak

Open Electrical Calorimeter. Choose Ideal insulation and then Heat escapes. Each preset saves a new simulated warming and cooling record with the same sample and heater settings. In Saved warming and cooling curves, compare the sample trace at the end of heating and at the end of the cooling window.

Table 4.2 Calibrated sample probe observations from the two saved simulated records. Heating ends at 240 s240\,\mathrm s. The room is held at 22.0 ∘C22.0\,{}^\circ\mathrm C.
PresetProbe at 240 s240\,\mathrm sProbe at 840 s840\,\mathrm s
Ideal insulation27.75 ∘C27.75\,{}^\circ\mathrm C27.85 ∘C27.85\,{}^\circ\mathrm C
Heat escapes25.85 ∘C25.85\,{}^\circ\mathrm C22.44 ∘C22.44\,{}^\circ\mathrm C

With ideal insulation, the probe settles toward the slightly warmer bath after the heater turns off. With a heat leak, the bath and probe cool toward room temperature. The model treats the bath, the probe and the room as distinct thermal parts. The temperature traces show the effect of heat flow. An entropy calculation would require these system boundaries, temperatures in kelvin and a model for how the transferred energy changes each part.

4.5 Exercises

  1. A hot reservoir at 500 K500\,\mathrm K transfers 300 J300\,\mathrm J to a cold reservoir at 300 K300\,\mathrm K. Calculate the total entropy change.
  2. Can the entropy of a cup of hot water decrease as it cools? Which other entropy change must you include to test the second law?
  3. Two bodies have the same constant heat capacity and initial temperatures 360 K360\,\mathrm K and 300 K300\,\mathrm K. They exchange heat inside an insulated enclosure. Find their final temperature.
  4. In the isolated two-body model, why does the slope of the total entropy change with respect to transferred heat go to zero at equilibrium?
  5. An ideal gas doubles its volume in a reversible isothermal process. Find its entropy change in terms of NN and kBk_B.
  6. The same initial gas instead expands freely into an insulated vacuum to the same final volume. What are the heat and the gas entropy change?
  7. With four labelled particles that can be left or right, compare the number of assignments with exactly one on the left to the number with all four on the left.
  8. After the heater turns off in the calorimeter Lab, the insulated probe temperature can rise slightly. What supplies that energy?
Exercise 1

The hot side loses 300/500=0.600 J/K300/500=0.600\,\mathrm{J/K} and the cold side gains 300/300=1.00 J/K300/300=1.00\,\mathrm{J/K}. The total change is +0.400 J/K+0.400\,\mathrm{J/K}.

Exercise 2

Yes. The water loses entropy as it gives off heat. Include the entropy gained by the surroundings that receive that heat. The combined isolated system's entropy cannot decrease.

Exercise 3

They meet at 330 K330\,\mathrm K. The equal capacities make the warmer object's temperature drop equal to the cooler object's rise.

Exercise 4

One increment of heat takes away the hot side's entropy per unit energy and adds the cold side's. At a common temperature both have the same reciprocal temperature, so these two contributions cancel.

Exercise 5

The gas entropy grows by NkBln⁡2Nk_B\ln2. In the reversible expansion the reservoir loses the same amount of entropy.

Exercise 6

The heat is zero. The gas still gains NkBln⁡2Nk_B\ln2 because its initial and final states are the same as in the reversible example. The expansion produces entropy within the isolated system.

Exercise 7

There are four ways to choose which one is on the left, and only one way to put all four there. The first macrostate has four times as many assignments.

Exercise 8

The bath remains a little warmer than the probe. Energy flows from the bath to the probe until their temperatures meet, even with the heater off and no heat leaking to the room.

Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

Electrical Calorimeter →Heat a sample in a stirred water bath. Record electrical input and thermometer response, compare a separate water-only blank, and recover specific heat with heat-loss and probe-response corrections.

Sources and reading scope

  1. OpenStax, University Physics Volume 2, §4.6 Entropy

    The section uses reversible heat transfers to compute entropy changes and shows the sign of total entropy for irreversible heat flow.

  2. OpenStax, University Physics Volume 2, §4.7 Entropy on a Microscopic Scale

    The section connects entropy to microscopic multiplicity and uses the number of arrangements to explain equilibrium.

Keep reading

What this page links to directly

See this series on the content map →

Interactive Physics Textbook · Reading path

Heat, Probability and Matter

  1. ArticleWhen does a thermometer represent the sample temperature?
  2. ArticleHow do molecular collisions create pressure?
  3. ArticleHow do heat and work change internal energy?
  4. You are hereWhy does heat flow spontaneously from hot to cold?
  5. ArticleHow much work can a heat engine deliver in one cycle?
  6. ArticleHow do probabilities determine a system's thermal averages?
1 more group

Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

  1. LabElectrical Calorimeter
  2. ArticleThe cup absorbs heat too
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy