Andrew Mason said:
That is true, but it does not really explain why that occurs.
Heat flows spontaneously from a body at higher temperature to a body at lower temperature because the average translational kinetic energy of the molecules in the hotter body is greater than the average translational kinetic energy of the molecules in the cooler one. This is true not only for ideal gases but for all matter.
No, that isn't completely true. The statistical mechanics approach to thermodynamics explains thermal equilibrium this way:
Suppose that we have two systems [itex]A[/itex], and [itex]B[/itex], having total energy [itex]E[/itex]. The two systems are in thermal contact (that is, they can exchange energy, but not particles). Because of thermal randomness, energy will move back and forth between the two systems, and the division of the total energy [itex]E[/itex] between the two system will fluctuate. If we let [itex]E_1[/itex] be the energy of [itex]A[/itex] and [itex]E_2[/itex] be the energy of [itex]B[/itex], what is the most likely value for [itex]E_1[/itex] and [itex]E_2[/itex]?
Well, we can make a counting argument: Let [itex]W_1(E_1)[/itex] be the number of possible ways to arrange [itex]A[/itex] so that it has energy [itex]E_1[/itex]. Let [itex]W_2(E_2)[/itex] be the number of possible ways to arrange [itex]B[/itex] so that it has energy [itex]E_2[/itex]. Then the total number of ways to arrange the composite system so that it has total energy [itex]E = E_1 + E_2[/itex] is given by:
[itex]W(E) = W_1(E_1) \times W_2(E - E_1)[/itex]
The most likely value for [itex]E_1[/itex] is assumed to be the value that makes [itex]W(E)[/itex] largest. So to find [itex]E_1[/itex], we want to maximize the function:
[itex]f(E_1) = W_1(E_1) \times W_2(E - E_1)[/itex]
where I used the fact that the total energy is [itex]E[/itex] to rewrite [itex]E_2 = E - E_1[/itex].
To maximize a function, you take the derivative and set it to zero. So we have, for a maximum:
[itex]\dfrac{dW_1}{dE_1} W_2 - \dfrac{dW_2}{dE_2} W_1 = 0[/itex]
We can rearrange this as:
[itex]\dfrac{\frac{dW_1}{dE_1}}{W_1} = \dfrac{\frac{dW_2}{dE_2}}{W_2}[/itex]
which can be written, using properties of the logarithm, as:
[itex]\dfrac{d (ln(W_1))}{dE_1} = \dfrac{d (ln(W_2))}{dE_2}[/itex]
The connection between these formulas and thermodynamics is to make the associations:
- The entropy of system [itex]A[/itex] is a function of its energy [itex]E_1[/itex]: [itex]S_1(E_1) = k ln(W_1(E_1))[/itex] where [itex]k[/itex] is Boltzmann's constant.
- The temperature of system [itex]A[/itex] is defined to be: [itex]T_1 = \dfrac{1}{\frac{dS_1}{dE_1}}[/itex]
- The entropy of system [itex]B[/itex] is a function of its energy [itex]E_2[/itex]: [itex]S_2(E_2) = k ln(W_2(E_2))[/itex].
- The temperature of system [itex]B[/itex] is defined to be: [itex]T_2 = \dfrac{1}{\frac{dS_2}{dE_2}}[/itex]
- The systems are said to be "in thermal equilibrium" if [itex]E_1[/itex] and[itex]E_2[/itex] are at their most likely values, which is when [itex]T_1 = T_2[/itex].
This definition of temperature and entropy does not assume anything about the nature of the two systems. But if you do assume that the two systems are made up of particles, and that all the energy is kinetic energy of motion, then that allows you to calculate [itex]W_1[/itex] and [itex]W_2[/itex], and you find that the temperature is proportional to the average kinetic energy. So you don't have to
assum that.