I want to know a concrete derivation of 3D Stokes stream function.
The statement is, for example in 3D spherical coordinates (with symmetry in rotation about the $z$-axis), if $$\nabla \cdot u=0\tag{1}$$ which is $${1\over r^2}{\partial \over \partial r}(r^2 u_r)+{1\over r \sin\theta}{\partial \over \partial \theta}(\sin\theta u_\theta)=0,\tag{2} $$ then there is a scalar $\psi$ which satisfies $$u_r={1\over r^2\sin\theta}{\partial \psi\over \partial \theta}, \qquad u_\theta =-{1\over r \sin\theta}{\partial \psi\over \partial r}.\tag{3} $$
It is easy to show that those form satisfies the continuity equation, but i've found it hard to prove that $\psi$ exists and that it is the only solution.