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,

dE=TdSPdV,

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

Setup

H=Xp(x)lnp(x)dx

Maximizing Entropy with Two Constraints

dH=βdE+γdV

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.