Select a vector field and one of the points to study. Use the slider for the time to animate the volume. For reference, a coordinate trihedron is drawn at the origin. The initial cubical volume

is drawn in blue; the volume

at the current time is drawn in red. A numerical comparison of the rate of change in volume and the divergence is given in the lower left. The blue paths, which show the paths of the corners of the volume, and the motes, which help show the overall flow, may be switched on or off.

The vector fields: The first six vector fields are linear. They have a constant divergence, although the flow can look different at different points. The first three,

,

, and

, are basic, linear fields: (1) the composition of a rotation about the

axis and a translation along the

axis, (2) an expansion, and (3) a shear motion. The next three,

,

, and

, are slightly more complicated linear fields. The last four vector fields are nonlinear. The first,

, is incompressible (the divergence is zero throughout its domain) and has swirling, helical flow paths. The last three,

,

, and

, like the second, linear one, expand from the origin. These illustrate how flow paths might expand and the divergence of the vector field is positive, zero, or negative, respectively. The last three fields also approach a singularity in finite time. The domain is restricted in these cases and the time slider has no effect outside the domain.

A note on the difference between the instantaneous divergence and the average rate of change of the volume over a finite time: For linear fields the cubical volume remains a parallelepiped throughout time. Its volume

can be computed exactly. Since the relative growth rate of the volume, which is equal to the divergence, is constant, the volume grows exponentially, except for incompressible fields, which have a divergence of zero. For nonlinear fields, the volume deforms and its magnitude

is estimated only approximately. In both the linear and nonlinear cases, the average rate approaches the divergence as the change in time approaches zero, just as in introductory calculus the slope of the secant line approaches the tangent line as the change in

approaches zero.