In physics, there are several distinct notions of mixing, all of which try to capture the common-sense notion of mixing, but using rather disparate formal methods, techniques and definitions. One approach is to focus on mixtures of fluids, in three-dimensional space, described by differential equations suitable for fluids, such as the Navier–Stokes equations. The route to the final mixed state typically proceeds through turbulence created during mixing. A second approach considers the mixing of aggregates, such as rocks and sand, which are lumpy on the small scale; this is commonly seen in mixing in process engineering. A third approach uses the mathematical formalisms of measure theory and measure-preserving dynamical systems, to define mixing abstractly for generic dynamical systems in arbitrary dimensions. For example, by assigning a position and a velocity to each atom in a fluid, the mixing takes place in a -dimensional space, where is approximately the Avogadro number and is the dimension of the phase space (position plus velocity) of a single atom.
The mixing of gases or liquids is a complex physical process, governed by a convective diffusion equation that may involve non-Fickian diffusion as in spinodal decomposition. The convective portion of the governing equation contains fluid motion terms that are governed by the Navier–Stokes equations. When fluid properties such as viscosity depend on composition, the governing equations may be coupled. There may also be temperature effects.
Small rigid objects (such as rocks) are sometimes mixed in a rotating drum or tumbler. The 1969 Selective Service draft lottery was carried out by mixing plastic capsules which contained a slip of paper (marked with a day of the year).
The above definition of mixing is meant to capture the intuitive notion of physical mixing. A canonical example is the Cuba libre: suppose one is adding rum (the set ) to a glass of cola. After stirring the glass (the transformation for large ), the bottom half of the glass (the set ) will contain rum, and it will be in equal proportion as it is elsewhere in the glass. The mixing is uniform: no matter which region one looks at, some of will be in that region. The use of in the definition, instead of , is required because the time evolution transformation is typically not an injective function (one-to-one). That is, if maps two points into one, the measure is preserved only by counting the two points in the pre-image, instead of one point in the image.
Every mixing transformation is ergodic, but there are ergodic transformations which are not mixing.