The spherical harmonics are special functions on the 2-sphere S2. In terms of polar coordinates ξ=(sinθcosρ,sinθsinρ,cosθ) the spherical harmonic of degree m and order l is defined by
Ylm(ξ)=√2m+14πP|l|m(cosθ)eilρ
where P|l|m:[−1,1]→R, m∈N0, and l=−m,…m denote the associated Legendre-Polynomials defined by
Plm(x)=√(m−l)!(m+l)!(1−x2)l/2dldxlPm(x)
and Pm:[−1,1]→R denotes the Legendre polynomials given by their corresponding Rodrigues formula
Pm(x)=12mm!dmdxm(x2−1)m.
Hence in MTEX the spherical harmonics are normalized with respect to the L2(S2) norm.
We get the function values of the spherical harmonics of degree 1 in a point v by the command sphericalY
, i.e.
v = vector3d.X
sphericalY(1,v)
v = vector3d (y↑→x)
x y z
1 0 0
ans =
0.3455 0.0000 0.3455
The spherical harmonics form an orthonormal basis in L2(S2). Hence we describe functions on the 2-sphere by there harmonic representation using the class S2FunHarmonic.
With that we define the spherical harmonic Y11 by
Y = S2FunHarmonic([0;0;0;1])
Y.eval(v)
Y = S2FunHarmonic (y↑→x)
bandwidth: 1
ans =
0.3455
Various normalizations for the sperical harmonics are common in the literature.
Here we define the L2-norm by
‖
such that \| 1 \|_2^2 = 1. Take a look on the section Integration of S2Fun's.
Using that definition the spherical harmonics in MTEX fulfill
\| Y_m^l \|_2 = 1 for all m,l.
norm(Y)
ans =
1
To concluse this section we plot the first ten spherical harmonics
surf(S2FunHarmonic(eye(10)))
