Potential density
Potential density is a dynamically important property: for static stability potential density must decrease upward. If it doesn't, a fluid parcel displaced upward finds itself lighter than its neighbors, and continues to move upward; similarly, a fluid parcel displaced downward would be heavier than its neighbors. This is true even if the density of the fluid decreases upward. In stable conditions (potential density decreasing upward) motion along surfaces of constant potential density (isopycnals) is energetically favored over flow across these surfaces (diapycnal flow), so most of the motion within a 3-D geophysical fluid takes place along these 2-D surfaces.
Density
If the body is not homogeneous, then its density varies between different regions of the object. In that case the density around any given location is determined by calculating the density of a small volume around that location. In the limit of an infinitesimal volume the density of an inhomogeneous object at a point becomes: formula_2, where formula_3 is an elementary volume at position formula_4. The mass of the body then can be expressed as