\[P_{n}\left(\cos\theta\right)=\frac{1}{\pi}\int_{0}^{\pi}(\cos\theta+i\sin%
\theta\cos\phi)^{n}\,\mathrm{d}\phi.\]