To find is vector field $\vec{w}(\vec{x})$ so that the divergence results in a specified constant $C$.
I set up the folling the equation:
$$ \frac{\partial x_1}{\partial x_1} + \frac{\partial x_2}{\partial x_2} + \frac{\partial x_3}{\partial x_3} = C$$
I thought that is a partial differential equation way too intricated to be solved reasonably.
Is there another, simpler was to find $\vec{w}$ ?
A vector field of the form
$$ {\bf w}({\bf x}) = \frac{c}{3} {\bf x} + \nabla\times{\bf F} $$
has constant divergence
$$ \nabla \cdot {\bf w} = \frac{c}{3}\nabla \cdot {\bf x} + \nabla \cdot (\nabla \times {\bf F}) = c $$
${\bf F}$ is an arbitrary $C^1$ field