The problem I have encountered is that two different reference math books have different representations of $\theta$ and $\varphi$ for the spherical coordinate system.
For Figure 1: $$ 0<\theta <\pi ,\ 0<\varphi <2\pi $$ $$ dv=r^2\sin \theta d\varphi d\theta dr $$ For Figure 2: $$ 0<\varphi <\pi ,\ 0<\theta <2\pi $$ $$ dv=r^2\sin \varphi d\theta d\varphi dr $$
The spherical harmonic function in Mathematica is defined as follows:
SphericalHarmonicY[l, m, \[Theta], \[Phi]] I would like to know which of the two plots above corresponds to $\theta$ and $\varphi$ in mathematica's built-in function SphericalHarmonicY? The different angular correspondence is important for me to calculate the triple integral later.




SphericalHarmonicY[1, 1, \[Theta], \[Phi]]$\endgroup$SphericalHarmonicY[1, 1, \[Theta], \[Phi]]= -(1/2) E^(I \[Phi]) Sqrt[3/(2 \[Pi])] Sin[\[Theta]]it is clear that your first definition is used. $\endgroup$