The original PDF has absolute-value bars around both gradients; they are missing from the transcription. The stability argument must respect the sign of the upward coordinate.
Displace a small parcel upward by . Assume it remains in pressure equilibrium with its surroundings but exchanges negligible heat, so it follows an adiabatic process. For a perfect gas with adiabatic index , along that parcel's adiabat. Its temperature gradient is therefore
The last step uses hydrostatic equilibrium, and is the specific heat capacity at constant pressure. At its new height, the temperature difference between the parcel and the environment is . At equal pressure, its relative density excess is the negative of its relative temperature excess. The upward buoyancy acceleration is thus
This is the squared Brunt–Väisälä frequency. Convective stability requires , or, in signed-gradient form,
For a temperature decreasing upward, this is exactly the PDF's Schwarzschild criterion
The absolute-value condition is also sufficient more generally, although a sufficiently steep temperature inversion remains stable even when that stronger condition fails. Reversing the signed inequality, as the bar-free transcription does, would instead describe an unstable temperature decrease.