Skip to content
Tutorials Center
My learning

Topics

Lesson 9 of 39 ยท Microstates, Macrostates and Entropy

Temperature from Entropy

Derive the statistical definition of temperature, 1/T = dS/dU, from equilibrium between two systems, and compute the temperature of an Einstein solid from its multiplicity.

What is temperature, microscopically? It is not the average energy per particle in general, though it is related. Statistical mechanics gives a precise and universal definition through entropy. This lesson derives it and tests it numerically.

Equilibrium between two systems

Return to two systems A and B sharing a fixed total energy U. The most probable division maximizes S_total = S_A(U_A) + S_B(U โˆ’ U_A). At the maximum the derivative with respect to U_A is zero:

Text
dS_A/dU_A + dS_B/dU_A = 0,      with U_B = U โˆ’ U_A
dS_A/dU_A โˆ’ dS_B/dU_B = 0

so at equilibrium

Text
dS_A/dU_A = dS_B/dU_B

The quantity dS/dU has the same value in both systems when they are in thermal equilibrium. That is exactly the property of temperature. Thermodynamics says that the temperature is the quantity that equalizes in equilibrium, and that adding heat at fixed volume gives dS = dU/T. We therefore define

Text
1/T = (โˆ‚S/โˆ‚U) at fixed V and N

This is the statistical definition of temperature. A large slope of S against U means a low temperature: energy added there creates a lot of new microstates, so the system readily accepts it.

Direction of heat flow

If 1/T_A > 1/T_B (A is colder), moving energy from B to A raises S_total, since dS_total = (1/T_A โˆ’ 1/T_B) dU_A > 0 when dU_A > 0. Heat flows from hot to cold because that is where entropy grows.

Temperature of an Einstein solid

For the Einstein solid, U = qฮต, and for large N and q:

Text
S/k_B = (q + N) ln(q + N) โˆ’ q ln q โˆ’ N ln N
โˆ‚(S/k_B)/โˆ‚q = ln((q + N)/q)
1/T = โˆ‚S/โˆ‚U = (1/ฮต) โˆ‚S/โˆ‚q = (k_B/ฮต) ln(1 + N/q)

Solving for q:

Text
q/N = 1 / (e^(ฮต/(k_B T)) โˆ’ 1)

The right-hand side is the average number of quanta per oscillator at temperature T. This is the Bose-Einstein occupation formula and shows up again in later chapters.

Python Temperature from the slope of ln Omega

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numerical slope of the exact ln ฮฉ agrees closely with the large-number formula, confirming the derivation.

Temperature against energy

The relation q/N = 1/(e^(ฮต/kT) โˆ’ 1) can be inverted to give the average energy as a function of temperature. At low T almost no quanta are present; at high T, q/N โ‰ˆ k_B T/ฮต, which means the energy per oscillator is k_B T. This is the classical equipartition value for a one-dimensional oscillator (kinetic plus potential, each worth ยฝ k_B T).

Python Average quanta per oscillator against temperature

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

For large kT/ฮต, the exact result is approximately kT/ฮต โˆ’ 1/2, so the line x โˆ’ 0.5 hugs the curve there.

The definition 1/T = โˆ‚S/โˆ‚U also covers odd systems where energy is bounded above (like spins in a field). There S can decrease as U increases, producing a negative absolute temperature. We study this in the lesson on the two-level system.

Why 1/T and not T?

1/T is the more fundamental quantity: it is the slope of a state function, additive-friendly, and always finite for entropy-driven arguments. This is why the course will use ฮฒ = 1/(k_B T) so often.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which is the statistical definition of temperature?

    The inverse temperature is the slope of entropy with respect to energy at fixed volume and particle number.
  2. 2. System A has a steeper S(U) curve than system B at their current energies. Which statement is correct?

    A steeper slope means larger 1/T, so A is colder, and moving energy to A raises the total entropy.
  3. 3. In thermal equilibrium of two systems, what is equal?

    Maximizing total entropy requires dS_A/dU_A = dS_B/dU_B, that is, equal temperatures.
  4. 4. For an Einstein solid, what is the average number of quanta per oscillator at temperature T?

    Solving 1/T = (k/eps) ln(1 + N/q) gives q/N = 1/(e^(eps/kT) - 1).

Summary

  • Maximizing total entropy for two systems gives dS_A/dU_A = dS_B/dU_B; this common slope defines temperature: 1/T = โˆ‚S/โˆ‚U.
  • Heat flows toward the system with larger 1/T (colder), the direction that raises total entropy.
  • Einstein solid: q/N = 1/(e^(ฮต/kT) โˆ’ 1), which tends to kT/ฮต at high temperature.
  • This definition agrees with the thermodynamic temperature.

Next: The Microcanonical Ensemble