First Law of Thermodynamics

Idea

We can deduce the First Law of Thermodynamics directly from the principle of maximum entropy in Classical Statistical Mechanics.
The usual thermodynamic statement,

d⟨E⟩=TdS−Pd⟨V⟩,

emerges naturally when entropy is maximized subject to multiple constraints.
Related: entropy#Important relation.

Setup

H=−∫Xp(x)ln⁡p(x)dx

Maximizing Entropy with Two Constraints

dH=βd⟨E⟩+γd⟨V⟩

From Information Theory to Thermodynamics

S=kH

Interpretation

This equation decomposes changes in the system’s expected energy into two distinct parts:

Relation to the Classical First Law

In classical thermodynamics, the First Law says that
energy is conserved: it can change form but is neither created nor destroyed.

Thus the statistical mechanics formulation recovers the First Law as a precise statement of conservation of energy.