Let $\mathbf{v}(t, x, y, z)$ be a continuously differentiable vector field over the region $D$ in space and let $p(t, x, y, z)$ be a continuously differentiable sealar function. The variable $t$ represents the time domain. The Law of Conservation of Mass asserts that
$$
\frac{d}{d t} \iiint_D p(t, x, y, z) d V=-\iint_S p \mathrm{v} \cdot \mathrm{n} d \sigma,
$$
where $S$ is the surface enclosing $D$.
a. Give a physical interpretation of the conservation of mass law if $\mathbf{v}$ is a velocity flow field and $p$ represents the density of the fluid at point $(x, y, z)$ at time $t$.
b. Use the Divergence Theorem and Leibniz's Rule,
$$
\frac{d}{d t} \iiint_D p(t, x, y, z) d V=\iiint_D \frac{\partial p}{\partial t} d V,
$$
to show that the Law of Conservation of Mass is equivalent to the continuity equation,
$$
\nabla \cdot p \mathbf{v}+\frac{\partial p}{\partial t}=0
$$
(In the first term $\nabla \cdot p v$, the variable $t$ is held fixed, and in the second term $\partial p / \partial t$, it is assumed that the point $(x, y, z)$ in $D$ is held fixed.)