The potential function for a three-dimensional doublet, which is a dipole with a moment \( \mu \), is given by \( \phi = \frac{\mu \cos \theta}{4\pi r^2} \). This formulation considers the radial distance \( r \) and the angle \( \theta \) to the dipole axis, following the classical potential theory in fluid dynamics.