The Mathematics of spin-weighted spherical harmonics and related concepts
Spherical harmonics, Spin-weighted fields, Curved sky, Rotation group SO(3), Mathematical conventions
Legendre polynomials
Condon-Shortley phase Convention
The following convention agrees with Associated Legendre polynomials - Wikipedia, and is also the choice in Gorski et al.1 revision 3.80.
Also compare to Technology (U.S.)2 14.7.8, 14.7.10, 14.7.13 which shares the same sign convention here.
Mathematica also shares the same convention in LegendreP—Wolfram Language Documentation.
Note that \(P^{m}_{\ell}\) below is sometimes denoted as \(P_{\ell m}\), for example in CMB.
Definition
The general Legendre equation (which reduces to the Legendre equation when \(m = 0\)),
\[(1-x^{2}){\frac {d^{2}}{dx^{2}}}P_{\ell }^{m}(x)-2x{\frac {d}{dx}}P_{\ell }^{m}(x)+\left[\ell (\ell +1)-{\frac {m^{2}}{1-x^{2}}}\right]P_{\ell }^{m}(x)=0\]
\[x \in \left[ -1 , 1 \right] , \ell , m \in \mathbb{N} \cup \left\{ 0 \right\} , - \ell \leq m \leq \ell\]
Note that the equation is invariant under \(\ell \rightarrow -\ell -1\), hence negative values are ignored WLOG.
It has a solution when \(m = 0\) (Rodrigues’ formula),
\[P_{\ell }(x)={\frac {1}{2^{\ell }\,\ell !}}\ {\frac {d^{\ell }}{dx^{\ell }}}\left[(x^{2}-1)^{\ell }\right]\]
And for general \(m\), the solution is the associated Legendre polynomials, with the Condon-Shortley phase,
\[P_{\ell }^{m}(x)=(-1)^{m}(1-x^{2})^{m/2}{\frac {d^{m}}{dx^{m}}}\left(P_{\ell }(x)\right) , m \geq 0\]
Note that if \(m\) is odd, the associated Legendre “polynomial” is not a polynomial despite the name.
\[P_{\ell }^{m}(x)={\frac {(-1)^{m}}{2^{\ell }\ell !}}(1-x^{2})^{m/2}\ {\frac {d^{\ell +m}}{dx^{\ell +m}}}(x^{2}-1)^{\ell } , - \ell \leq m \leq \ell\]
Note that the differential equation is invariant under \(m \rightarrow -m\), hence the 2 sets of solutions are proportional to each other:
\[P_{\ell }^{-m}(x)=(-1)^{m}{\frac {(\ell -m)!}{(\ell +m)!}}P_{\ell }^{m}(x)\]
Closed form
\[P_{l}^{m}(x)=(-1)^{m}\cdot 2^{l}\cdot (1-x^{2})^{m/2}\cdot \sum _{k=m}^{l}{\frac {k!}{(k-m)!}}\cdot x^{k-m}\cdot {\binom {l}{k}}{\binom {\frac {l+k-1}{2}}{l}}\]
Here, we can see that
\[\lim_{x \rightarrow 1^{-}} \operatorname{sgn} \mathopen{} \left ( P^{m}_{\ell} \mathopen{} \left ( x \right ) \mathclose{} \right ) \mathclose{} \rightarrow \left( -1 \right)^{m}\]
Spherical harmonics
Condon-Shortley phase Convention
The following convention is from the “quantum mechanics” convention in Spherical harmonics - Wikipedia. Note that the formula looks different, but is identical as we absorb the Condon-Shortley phase into the Associated Legendre polynomials.
It also shares the same convention in Gorski et al.3 revision 3.80 after simplifications, albeit it does not define the Associated Legendre polynomials when \(m < 0\).
Mathematica also shares the same convention in SphericalHarmonicY—Wolfram Language Documentation.
Note that \(Y^{m}_{\ell}\) below is sometimes denoted as \(Y_{\ell m}\), for example in CMB.
Definition
\[Y_{\ell }^{m}(\theta ,\varphi )={\sqrt {{\frac {(2\ell +1)}{4\pi }}{\frac {(\ell -m)!}{(\ell +m)!}}}}\,P_{\ell }^{m}(\cos {\theta })\,e^{im\varphi }\]
Here, we can see that
\[\lim_{\theta \rightarrow 0^{+}} \operatorname{sgn} \mathopen{} \left ( Y^{m}_{\ell} \mathopen{} \left ( \theta, 0 \right ) \mathclose{} \right ) \mathclose{} \rightarrow \left( -1 \right)^{m}\]
Spin-weighted spherical harmonics (SWSH)
See Spin-weighted spherical harmonics - Wikipedia for details.
Spin-weighted functions
A function is called spin-weighted \(s\) if it transforms under rotation on the North pole by angle \(\psi\),
\[\eta_s \rightarrow e^{is\psi }\eta_s\]
Operator \(\eth\)
There exists an operator that can raise the spin-weight of a function.
Explicitly,
\[\begin{align*} \eth \eta & =-\left(\sin {\theta }\right)^{s}\left\{{\frac {\partial }{\partial \theta }}+{\frac {i}{\sin {\theta }}}{\frac {\partial }{\partial \phi }}\right\}\left[\left(\sin {\theta }\right)^{-s}\eta \right] \\ {\bar {\eth }}\eta & =-\left(\sin {\theta }\right)^{-s}\left\{{\frac {\partial }{\partial \theta }}-{\frac {i}{\sin {\theta }}}{\frac {\partial }{\partial \phi }}\right\}\left[\left(\sin {\theta }\right)^{s}\eta \right] \end{align*}\]
Note that
\[\bar{\eth}^n g_s = \overline{\eth^n \overline{g_s}}\]
as \(\overline{g_s}\) is of spin-weight \(-s\).
pf. by Mathematical Induction.
Definition
\[{}_{s}Y_{lm} = { \begin{cases} {\sqrt {\frac {(l-s)!}{(l+s)!}}}\ \eth ^{s}Y_{lm}, & 0\leq s\leq l; \\ {\sqrt {\frac {(l+s)!}{(l-s)!}}}\ \left(-1\right)^{s}{\bar {\eth }}^{-s}Y_{lm}, & -l\leq s\leq 0; \\ 0, & l<|s|. \end{cases} }\]
Closed form
Spin-weighted Spherical Harmonics with Condon-Shortley phase. See Spin-weighted spherical harmonics - Wikipedia.
\[\begin{align*} {}_{s}Y_{lm}(\theta ,\phi ) &=\left(-1\right)^{m}{\sqrt {\frac {(l+m)!(l-m)!(2l+1)}{4\pi (l+s)!(l-s)!}}}\sin ^{2l}\left({\frac {\theta }{2}}\right) \\ &\times \sum _{r=0}^{l-s}{l-s \choose r}{l+s \choose r+s-m}\left(-1\right)^{l-r-s}e^{im\phi }\cot ^{2r+s-m}\left({\frac {\theta }{2}}\right). \end{align*}\]
Note on Condon-Shortley phase Convention
Note that there exist different sign conventions. Healpix does not explicitly declare the sign convention used in their documentation/Primer, but
- since its definition of Spherical Harmonics agrees with above,
- we consistently include the Condon-Shortley phase here in both the associated Legendre polynomials and spherical harmonics, and
- Spin-weighted spherical harmonics defined through eth of spherical harmonics does not seem to have different sign convention (for example, compare Zaldarriaga and Seljak,4 no. A2 to the eth defined above.)
- Zaldarriaga and Seljak,5 no. A6 agrees with the closed form formula above.
We should be confident that the above definition agrees with Healpix and the CMB literature.
Wigner matrices
Conventions
Note that different authors use different conventions, sometimes without any notes or explanations.
The main source of confusion probably comes from active vs. passive transformation. Below we use the active transformation commonly found in Quantum Mechanics. See citations below.
Definitions
With the convention of z-y-z convention, right-handed frame, right-hand screw rule, active interpretation
\[D_{m'm}^{j}(\alpha ,\beta ,\gamma )\equiv \langle jm'|{\mathcal {R}}(\alpha ,\beta ,\gamma )|jm\rangle =e^{-im'\alpha }d_{m'm}^{j}(\beta )e^{-im\gamma }\]
See proofs in Sakurai and Napolitano,6 p. 175, 177, 196, 198.
Note that this has a different sign convention from Mathematica.7
The Wigner d-matrix has closed form formula below, with the sign convention given by Wigner,8 which is also used in Sakurai and Napolitano,9 p. 238. See Wigner D-matrix - Wikipedia.
\[\begin{align*} d_{m'm}^{j}(\beta ) &= [(j+m')!(j-m')!(j+m)!(j-m)!]^{\frac {1}{2}} \\ &\times \sum _{s=s_{\mathrm {min} }}^{s_{\mathrm {max} }}\left[{\frac {(-1)^{m'-m+s}\left(\cos {\frac {\beta }{2}}\right)^{2j+m-m'-2s}\left(\sin {\frac {\beta }{2}}\right)^{m'-m+2s}}{(j+m-s)!s!(m'-m+s)!(j-m'-s)!}}\right] \end{align*}\]
where
\[\begin{align*} s_{\mathrm {min} } & =\mathrm {max} (0,m-m') \\ s_{\mathrm {max} } & =\mathrm {min} (j+m,j-m') \end{align*}\]
Note on Convention
Note that Mathematica uses a different convention
in terms of the sign
WignerDPhysics[{j_, m1_, m2_}, θ_] = (-1)^(m1 - m2) WignerD[{j, m1, m2}, θ]and also in label convention: the 3 argument form \((ψ, θ, φ)\) are the 3 Euler angles, and is commonly defined as \((α, β, γ)\), or \((φ, θ, ψ)\) instead.
Relationship with SWSH
In Mathematica,
SpinWeightedSphericalHarmonicY[s_, l_, m_, θ_, φ_] = \
(-1)^m Sqrt[(2 l + 1) / (4 π)] WignerDPhysics[{l,-m,s}, θ] E^(I m φ)
(* with Mathematica's sign convention: *)
SpinWeightedSphericalHarmonicY[s_, l_, m_, θ_, φ_] = \
(-1)^(-s) Sqrt[(2 l + 1) / (4 π)] WignerD[{l,-m,s}, θ] E^(I m φ)Mathematically,
\[\begin{align*} {}_{s} Y_{\ell m} \mathopen{} \left ( \theta, \phi \right ) \mathclose{} & = \left( -1 \right)^{m} \sqrt{\frac{2 \ell + 1}{4 \pi}} d^{\ell}_{- m s} \mathopen{} \left ( \theta \right ) \mathclose{} \mathrm{e}^{\mathrm{i} m \phi} \\ & = \left( -1 \right)^{m} \sqrt{\frac{2 \ell + 1}{4 \pi}} D^{\ell}_{- m s} \mathopen{} \left ( \phi, \theta, 0 \right ) \mathclose{} \end{align*}\]