Temperature
Antonio J. Pan-Collantes
Department of Mathematics — University of Cádiz
Abstract. An explanation on the notion of temperature from the point of view of classical statistical mechanics.

Context: Classical Statistical Mechanics.
Handwritten: [[temperature-ideas.pdf]]

1. Entropy Alone: A Measure of Uncertainty

First, let's consider a system where energy plays no role.
Imagine a 6x8 grid of 48 holes and 4 indistinguishable balls. We assume all 48 holes are equal—it "costs" nothing to put a ball in any hole, and no arrangement is "better" or "worse" than any other. And no hole can hold more than one ball.

Because all arrangements are equally likely, the only meaningful question we can ask is: "How many total ways can we arrange the 4 balls in the 48 holes?"

This is a combinations problem:

W=(484)=194,580

Entropy (H) is the measure of our uncertainty about this system. If we pick up the box and shake it, we know it will settle into one of these 194,580 microstates. Our uncertainty is given by the number of "yes/no" questions (bits) it would take to find the exact arrangement (see Shannon entropy).

H=log2(W)=log2(194,580)17.57 bits

In this context, entropy is just a single, fixed number. It doesn't change. It simply describes the total statistical complexity of the system's "state space". There is no concept of temperature here.

2. Introducing Energy: The Vertical Grid

Now, let's change the rules. Temperature can only enter the scene when different microstates have different energies. Let's swap our flat grid for a vertical 6x8 grid. We still have 4 balls and 48 holes, but the holes are now on different rows, each with an energy "cost".

The total number of ways to put 4 balls in 48 spots is still a fixed number ((484)), but this number is no longer very useful. Why? Because the system's behavior will be limited by its total energy.

The important question is no longer "How many total arrangements exist?"
The new question is: "How many arrangements (W) exist for a specific total energy E?"

Case 1: System with Total Energy E = 4

Let's find W(E=4), the number of ways to arrange the 4 balls to get a total energy of exactly 4 units.

Pasted image 20251101093745.png

Case 2: System with Total Energy E = 5

Now, let's add 1 unit of energy to the system. Our new total energy is E=5.

3. How This Defines Temperature

Look at what just happened. The number of available microstates (W) is not a fixed number; it depends on the energy E.

This is the key. Thermodynamic entropy (S) is defined as the logarithm of this energy-dependent number.

S(E)=kBln(W(E))

This means entropy itself is a function of energy.

β:=1T:=SE

This formula tells us the physical meaning of temperature:

4. Connecting to Our Daily Lives: "Hot" vs. "Cold"

This abstract definition perfectly explains our daily experience. The bridge is the second law of thermodynamics: when two systems interact, the total entropy of the combined system must increase.
When you touch a cold can of soda, heat flows from your hand to the can. Why?

Let's see what happens when 1 unit of energy (heat) flows from your "hot" hand to the "cold" can:

The Net Result for the Universe:
ΔStotal=ΔShand+ΔScan=(small negative number)+(LARGE POSITIVE NUMBER)=Positive!

Because the total entropy of the universe increased, this process is spontaneous and will happen. Heat must flow from hot to cold, as this is the only direction that satisfies the Second Law.