Temperature, Pressure, and Chemical Potential as Entropy Derivatives
Here is a question that sounds almost too basic to ask: what is temperature? Not how you measure it — thermometers and mercury and expansion — but what it fundamentally is. The surprising and beautiful answer of statistical thermodynamics is that temperature is a derivative of entropy: , the rate at which a system's entropy rises as you feed it energy. Pressure and chemical potential are two more entropy slopes. All three intensive variables — the quantities that equalize when systems reach equilibrium — are simply the partial derivatives of the single fundamental relation . Why should temperature be rather than something else? Because that is what the second law forces. Bring two isolated systems into thermal contact and let them share energy at fixed total energy. The total entropy is maximized at equilibrium, and maximizing under requires . Some derivative of entropy is equal across the two systems at equilibrium — and that is exactly what we mean by "same temperature" (the zeroth law). Identifying the common value with pins down the definition. The same argument with volume exchange defines , and with particle exchange defines . This is not merely a redefinition; it explains the direction of natural processes. Because entropy is a concave function of energy — its second derivative is negative — the entropy-maximum is genuinely a peak, and the approach to it forces energy to flow from the body with the smaller (higher ) to the one with the larger (lower ). Heat flows from hot to cold not by decree but because that is the direction that raises total entropy. The sign of a second derivative encodes the arrow of thermal processes. Assembling the three slopes gives the entropy-representation fundamental relation , which rearranges into the familiar . These derivatives are the gateway from the abstract entropy surface to every measurable thermodynamic quantity, and they are where the statistical definition of temperature (via ) meets the thermodynamic one.
- The three intensive variables are entropy slopes: , , .
- These definitions are forced by the second law: maximizing total entropy under exchange of a conserved quantity equalizes the corresponding entropy derivative across subsystems.
- Equal ⟺ equal temperature (zeroth law); equal at fixed ⟺ equal pressure; equal ⟺ equal chemical potential.
- Entropy is concave in energy (), so the extremum is a genuine maximum and heat flows hot → cold — the sign encodes the arrow of thermal processes.
- The three slopes assemble into , equivalently .
- Key idea: temperature, pressure, and chemical potential are the three first derivatives of the entropy , defined by the second law's requirement that they equalize at equilibrium.
Temperature, pressure, and chemical potential are the three first partial derivatives of the fundamental relation : , , . These definitions are forced by the second law — maximizing total entropy under exchange of a conserved quantity equalizes the matching derivative — and the concavity of in makes heat flow from hot to cold.
Where this lives today
The entropy-slope definition of temperature is not a philosophical nicety — it is the operationally correct definition used at the frontiers of physics, precisely where the naive "average kinetic energy" picture fails. In laser cooling and ultracold-atom experiments, temperatures of nanokelvin are defined and measured through the entropy–energy relationship of the trapped gas; the concept of a spin temperature, distinct from the motional temperature, is routine in NMR and in nuclear-magnetic experiments, and negative temperatures — impossible under the kinetic-energy definition — are now produced deliberately in cold-atom systems with bounded energy spectra, where makes the system hotter than infinity. In semiconductor physics and electrochemistry, the chemical potential (the Fermi level) is the central quantity: it is what equalizes across a junction at equilibrium, what a voltage shifts, and what determines whether electrons flow. Battery voltages, solar-cell efficiencies, and transistor operation are all read off chemical-potential differences. In astrophysics and cosmology, the same entropy-derivative definitions describe systems from neutron-star matter to the primordial plasma. And conceptually, this article is where thermodynamic temperature () is shown to be identical to the statistical temperature from — the bridge that lets a single appear both in an engineer's Carnot engine and in a physicist's Boltzmann factor .
The physical picture
Forget mercury and thermometers for a moment and ask what happens when two bodies touch and share heat. Energy flows between them, but the total energy is fixed. The second law says the total entropy will climb to its maximum. Now, entropy is a function of each body's energy, and , and moving a sliver of energy from body 2 to body 1 changes the total by . Entropy keeps rising until this bracket vanishes — until the two energy-slopes of entropy are equal. That common value at equilibrium is what we call temperature — more precisely, its reciprocal: . The definition is not arbitrary; it is chosen so that "thermal equilibrium" (equal slopes) coincides with "same temperature." A body whose entropy rises steeply as you add energy (large ) is cold; one whose entropy barely responds (small ) is hot. Feeding energy to a cold body buys a lot of entropy, so energy flows toward it.
Volume and particle number tell the same story with different exchanges. Let the two bodies also move a shared piston (exchange volume) at fixed total volume: total entropy peaks when matches, and identifying that with makes the condition "equal pressure" (mechanical equilibrium). Let them exchange particles through a permeable wall: the peak is where matches, i.e. is equal — "equal chemical potential" (diffusive equilibrium). Three conserved exchanges, three intensive variables, three equilibrium conditions.
The core equations
The three intensive variables are the three first partial derivatives of the entropy in the entropy representation. Temperature is the inverse of the energy slope:
where: — entropy; — internal energy; the derivative is at fixed . A steep slope (large ) means low temperature — adding energy buys a lot of entropy. This is the statistical-mechanical definition of temperature. The volume slope of entropy gives :
where: — pressure. At fixed energy, entropy rises as the system expands (more accessible states), and the rate, weighted by , is the pressure. The particle-number slope gives :
where: — chemical potential. Adding a particle usually lowers the entropy available per unit energy (the minus sign), and measures the energy cost of adding a particle at fixed . Assembling the three slopes gives the entropy-representation fundamental relation, and rearranging it recovers the energy representation:
where: the two forms are algebraically equivalent, related by solving one for . The entropy form makes the entropy-maximum principle natural; the energy form makes the energy-minimum principle natural. The equilibrium and stability conditions follow from maximizing total entropy under exchange. For thermal contact between two subsystems:
where: the first-order condition gives thermal equilibrium (); the second-order condition (concavity of ) makes it a genuine maximum, guarantees , and forces heat to flow from hot to cold.
The goal is to derive the definition of temperature (and the direction of heat flow) directly from the second law, showing that both the value condition (equal temperatures at equilibrium) and the approach condition (heat flows hot to cold) come from the first and second derivatives of the entropy. This is the article's owned result: not just that , but that the concavity is what makes the equilibrium a stable maximum and dictates the arrow of thermal processes. We work it on two systems sharing energy and verify the sign symbolically.
Step 1. Two isolated systems, energies with fixed, are brought into thermal contact. The total entropy is ; the second law says it climbs to a maximum. Extremize: . Why: moving energy into system 1 removes it from system 2, so the two slopes appear with opposite signs.
Step 2. The stationarity condition is . Define this common equilibrium value as , so equal slopes means — thermal equilibrium is equal temperature, the zeroth law recovered from entropy maximization. Why: identifying the equalized derivative with is exactly the definition that makes "thermal equilibrium" and "same temperature" the same statement.
Step 3. Check it is a maximum, not a saddle: , which holds because entropy is concave in energy for each subsystem (, equivalent to ). For two ideal gases , so . Why: concavity of is the thermal-stability condition; without it the "equilibrium" would be unstable and the system would spontaneously separate hot from cold.
Step 4. Direction of heat flow: away from equilibrium, if then , so . Entropy therefore increases by decreasing — energy leaves the hotter body 1 and flows to the colder body 2. Heat flows hot → cold, forced by the second law and the concavity. Why: the sign of the first derivative away from the peak, guaranteed by the concave shape, is precisely the arrow of thermal processes. *Verified: the stationarity condition , the negative second derivative , and the hot→cold sign of for a hotter body are all checked symbolically in verify_aq-sm-intensive-variables-entropy-derivatives.py.*
Go deeper · Derivation B · 1 minPressure and chemical potential from volume and particle exchange
The goal is to complete the trio by deriving and as entropy slopes the same way temperature was derived — from maximizing total entropy under exchange of volume and of particles. This shows that all three intensive variables share one origin (the second law) and that the three equilibrium conditions (equal , equal , equal ) are three instances of one principle. We also confirm the ideal-gas forms so the abstract slopes become the familiar equation of state.
Step 1. Let two subsystems share a movable, diathermal piston, exchanging both energy and volume at fixed totals. Maximizing over both and gives two conditions: and . Why: two independent conserved exchanges give two independent equilibrium conditions.
Step 2. The first gives . Define the second common value as ; then combined with gives — mechanical equilibrium. Why: identifying the equalized volume-slope with makes "mechanical equilibrium" coincide with "equal pressure."
Step 3. For a permeable wall exchanging particles (and energy), maximizing over gives ; defining this as yields at equal — diffusive equilibrium. Particles flow from high to low , exactly as heat flows from high to low . Why: the chemical potential is the "pressure" for particle flow, and its gradient drives diffusion.
Step 4. Check the ideal gas: from the Sackur–Tetrode , gives ; gives . The abstract slopes reproduce the ideal-gas equation of state exactly. Why: this is the consistency check that the entropy-slope definitions are the same and that appear in the everyday gas law. *Verified: and are checked symbolically; the numeric for at is confirmed in the verify script.*
Limiting cases
How the entropy slopes behave:
| Case | Result | Meaning |
|---|---|---|
| Thermal contact | Equal temperature = thermal equilibrium (zeroth law). | |
| Ideal gas | , | Recovers and . |
| Concavity of | Stable maximum; heat flows hot → cold. | |
| Bounded spectrum | can go negative | Negative temperature: is hotter than . |
| Adding tiny energy hugely raises entropy near the ground state. | ||
| Diffusive contact | equal | Particles flow high → low . |
Worked examples
1 · Two bodies reach a common temperature by sharing energy (confidence builder)
Two identical blocks of the same material, one at (hot) and one at (cold) in units where each has entropy (an ideal-gas-like form), are brought into contact with fixed. Find the equilibrium split and confirm energy flows from hot to cold.
Step 1. Total entropy: . Extremize: .
Step 2. Solve: , so . Equal energies, hence equal temperatures () — the blocks equilibrate to the same temperature, as expected for identical bodies.
Step 3. Direction check at the initial hot state : . Entropy increases by decreasing — energy leaves the hotter block 1. Heat flows hot → cold, confirmed numerically.
Step 4. Stability: everywhere — the extremum is a genuine maximum, so the equilibrium is stable and the blocks stay equilibrated. The whole thermal behavior came from the first and second derivatives of entropy.
2 · The statistical temperature of a real gas (exam level)
One mole of monatomic ideal gas has internal energy . Using only the entropy-slope definition , find its temperature, then find the pressure at from .
Step 1. From the Sackur–Tetrode entropy, (for one mole). So .
Step 2. Invert: . The temperature emerged purely from how fast entropy rises with energy — no thermometer, no "average kinetic energy," just a derivative of . (Equivalently .)
Step 3. Pressure from the volume slope: , and . At : ≈ 1 atm.
Step 4. Consistency: both intensive variables — temperature from and pressure from — came from the same entropy surface and reproduce the ideal-gas equation of state at standard conditions. This is the operational meaning of " and are entropy slopes": they are computable directly from .
Origins · 1 minchemical potential and how this was discovered
The chemical potential — the least intuitive of the three intensive variables — was introduced by Josiah Willard Gibbs in his 1875–78 memoir On the Equilibrium of Heterogeneous Substances as the quantity governing the flow of matter, exactly parallel to temperature governing heat flow and pressure governing volume change. Defined through the entropy slope or equivalently , it is the energy cost of adding one particle to the system, and its gradients drive diffusion, osmosis, chemical reactions, and phase changes. Particles flow from high chemical potential to low, just as heat flows from high temperature to low. Gibbs's introduction of unified chemistry and thermodynamics: the condition for chemical and phase equilibrium is simply the equality of chemical potentials, and the entire edifice of physical chemistry — reaction equilibria, electrochemistry, membrane transport, semiconductor doping — rests on this single concept.
Going further
References. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., chs. 2–3 · Reif, Fundamentals of Statistical and Thermal Physics, ch. 3 (§3.3, the statistical definition of temperature) · Pathria & Beale, Statistical Mechanics, 3rd ed., ch. 1 · Kardar, Statistical Physics of Particles, ch. 4 · Kittel & Kroemer, Thermal Physics, ch. 2–3 (temperature and chemical potential) · Schroeder, An Introduction to Thermal Physics, ch. 3.
Provenance. The entropy-slope definitions , , are standard (Callen chs. 2–3; Reif §3.3). The two-subsystem derivation of , the concavity , and the hot→cold heat-flow sign are checked symbolically. Numerical instances: two blocks at equilibrium with ; ideal-gas at and . All in verify_aq-sm-intensive-variables-entropy-derivatives.py. .
Builds on: Second Law of Thermodynamics and Entropy · First Law of Thermodynamics and Internal Energy · Zeroth Law of Thermodynamics and Empirical Temperature · Work, Heat, and Inexact Differentials. Leads to: Thermodynamic Potentials and the Fundamental Relation · Legendre Transforms · Maxwell Relations · The Microcanonical Ensemble and the Postulate of Equal a Priori Probabilities.
Why is temperature the inverse of the entropy slope, 1/T, and not the slope itself?
It is a matter of definition, chosen to match everyday temperature and make the equilibrium condition read naturally. If you defined "temperature" as directly, then a hot body (which barely gains entropy per unit energy) would have a small value and a cold body a large one — backwards from intuition. Taking the reciprocal, , makes hot bodies have large and cold bodies small , and makes the ideal-gas result come out as the familiar with the right units. The factor also ensures that the energy-representation relation has (not ) multiplying , matching . So the inverse is not arbitrary — it is the choice that aligns the entropy-slope definition with the temperature you already know.
How can this definition give negative temperatures — isn't that below absolute zero?
Negative temperature is not "colder than absolute zero" — it is hotter than infinite temperature, and it is only possible for systems with a bounded energy spectrum. For an ordinary system, adding energy always increases entropy, so and . But consider a set of spins in a magnetic field: they have a maximum possible energy (all spins anti-aligned). As you approach that maximum, adding energy actually decreases the number of accessible states, so and hence . Such a population-inverted state will dump energy into any normal () system it contacts — which is why is "hotter" than . The temperature scale, ordered by hotness, runs . Lasers exploit exactly this population inversion. It is a striking confirmation that the entropy-slope definition, not the kinetic-energy picture, is the correct one.
What does the chemical potential actually "do" — I understand T and P but μ is fuzzy.
Think of it as the "temperature for particles." Just as temperature governs the flow of energy (heat moves from high to low ) and pressure governs the flow of volume (a piston moves toward lower ), the chemical potential governs the flow of particles: matter moves from high to low . Concretely, is the energy cost of adding one particle. When two regions can exchange particles, they reach equilibrium when their chemical potentials are equal — that is why a dissolved solute spreads until its concentration (and hence ) is uniform (diffusion), why water crosses a membrane toward higher solute concentration (osmosis, lower solvent ), and why electrons flow across a semiconductor junction until the Fermi levels ( for electrons) align. Every "particles want to go somewhere" phenomenon is a chemical-potential gradient.
Do the three equilibrium conditions (equal T, P, μ) all have to hold at once?
Only if the two systems can exchange all three quantities. The rule is: for each conserved quantity the systems can exchange, the corresponding intensive variable equalizes. If a wall conducts heat but is rigid and impermeable, only energy is exchanged, so only (thermal equilibrium) is required — the pressures and chemical potentials can differ. If the wall is also movable, volume is exchanged too and is added. If it is also permeable, particles flow and joins. So the equilibrium conditions are modular: each type of contact enforces its own equality. This is exactly why you can have, say, two gases at the same temperature but different pressures (separated by a rigid diathermal wall) sitting in stable equilibrium — a common and important situation.
Is the temperature defined here the same as the one from the partition function?
Yes, provably. This article defines from the entropy surface. Statistical mechanics computes that entropy from a microscopic model via (microcanonical) or derives the canonical ensemble with its Boltzmann factor . When you carry out the derivation of the canonical ensemble from a system in contact with a large reservoir, the parameter that appears in the Boltzmann factor is exactly — the same as here. So the temperature that governs how entropy responds to energy (this article), the temperature in the Boltzmann factor, and the temperature of a Carnot engine are all the identical physical quantity. Demonstrating this equality is one of the central consistency results of statistical mechanics, and it is why "temperature" is unambiguous across the whole subject.
Why does entropy have to be concave in energy — what breaks if it isn't?
Concavity of — meaning — is the condition for thermal stability, and it is equivalent to a positive heat capacity, . Here is what breaks without it. Suppose entropy were convex over some energy range (curving upward). Then splitting the system into two halves at different energies would raise the total entropy compared to keeping them equal — the uniform state would be unstable and the system would spontaneously develop hot and cold regions, which is absurd for a homogeneous body in equilibrium. Concavity guarantees that the entropy-maximum found by equalizing temperatures is a genuine, stable peak rather than a saddle or a minimum, and it ensures that adding energy always raises the temperature (positive ). Systems that violate concavity — most famously self-gravitating ones, which can have negative heat capacity — do not have a stable homogeneous equilibrium and require special non-extensive treatment. So concavity is not a technicality; it is what makes ordinary thermal equilibrium possible.