Consider a 1-dimensional fluid motion, the flow taking place along the \(x\)
axis. Let \(v=\) \(v(x, t)\) be the velocity at position \(x\) at time \(t\), so that
if \(x\) is the coordinate of a fluid particle at time \(t\), one has \(d x / d
t=v\). If \(f(x, t)\) is any scalar associated with the flow (velocity,
acceleration, density,...), one can study the variation of \(f\) following the
flow with the aid of the Stokes derivative:
$$
\frac{D f}{D t}=\frac{\partial f}{\partial x} \frac{d x}{d t}+\frac{\partial
f}{\partial t}
$$
[see Problem 12 following Section 2.8]. A picce of the fluid occupying an
interval \(a_{0} \leq\) \(x \leq b_{0}\) when \(t=0\) will occupy an interval \(a(t)
\leq x \leq b(t)\) at time \(t\), where \(\frac{d a}{d t}=\) \(v(a, t), \frac{d b}{d
t}=v(b, t)\). The integral
$$
F(t)=\int_{a(t)}^{b(t)} f(x, t) d x
$$
is then an integral of \(f\) over a definite piece of the fluid, whose position
varies with time; if \(f\) is density, this is the mass of the piece. Show that
$$
\frac{d F}{d t}=\int_{a(t)}^{b(t)}\left[\frac{\partial f}{\partial t}(x,
t)+\frac{\partial}{\partial x}(f v)\right] d x=\int_{a(t)}^{b(t)}\left(\frac{D
f}{D t}+f \frac{d v}{d x}\right) d x,
$$
This is generalized to arbitrary 3-dimensional flows in Section 5.15.