In Section $17.6,$ we derived the expression for the flux $J_{N}$ of gas molecules through a surface in terms of velocities $v_{x}$ of molecules in the direction perpendicular to the surface. The derivation can be made in a more general way by considering that the molecules can approach the surface with velocity $v$ at angles $\theta$ and $\phi$ in the system of spherical coordinates. In this case, the differential of the flux is given by
\[\mathrm{d} J_{N}=\frac{\rho}{4 \pi} v F(v) \mathrm{d} v \cos \theta \sin \theta \mathrm{d} \theta \mathrm{d} \phi\]
Integrate this equation to obtain the flux $J_{N}$