Let
A displaced fluid element remains in pressure balance, changes temperature adiabatically, and retains its composition. Comparing its density with the environment after an upward displacement gives the Ledoux criterion for stability,
The reverse inequality causes convection. For uniform composition, or if composition is ignored, and this reduces to the Schwarzschild criterion
for stability. A molecular weight increasing inward has and stabilizes the stratification.