The density gradient is the gradient of a spatial mass density field. With an upward vertical coordinate in the Boussinesq approximation, the squared buoyancy frequency is . A negative vertical density gradient therefore gives stable density stratification.
New to topics? Read the docs here!