Beginning with the equation of motion for a frictionless fluid (the Euler equations) and taking the curl, one arrives at the equation of motion for the curl of the fluid velocity, that is to say, the vorticity.
In a fluid that is not all of the same density, a source term appears in the vorticity equation whenever surfaces of constant density (isopycnic surfaces) and surfaces
of constant pressure (isobaric surfaces) are not aligned. The material derivative of the local vorticity is given by:
(where  is the velocity and  is the vorticity,  is the pressure, and  is the density). The baroclinic contribution is the vector:
This vector, sometimes called the solenoidal vector, is of interest both in compressible fluids and in incompressible (but inhomogeneous) fluids. Internal gravity waves as well as unstable Rayleigh–Taylor modes can be analyzed from the perspective of the baroclinic vector. It is also of interest in the creation of vorticity by the passage of shocks through inhomogeneous media, such as in the Richtmyer–Meshkov instability.
Experienced divers are familiar with the very slow waves that can be excited at a thermocline or a halocline, which are known as internal waves. Similar waves can be generated between a layer of water and a layer of oil. When the interface between these two surfaces is not horizontal and the system is close to hydrostatic equilibrium, the gradient of the pressure is vertical but the gradient of the density is not. Therefore the baroclinic vector is nonzero, and the sense of the baroclinic vector is to create vorticity to make the interface level out. In the process, the interface overshoots, and the result is an oscillation which is an internal gravity wave. Unlike surface gravity waves, internal gravity waves do not require a sharp interface. For example, in bodies of water, a gradual gradient in temperature or salinity is sufficient to support internal gravity waves driven by the baroclinic vector.