My watch list  

Spherical harmonics

In mathematics, the spherical harmonics are the angular portion of an orthogonal set of solutions to Laplace's equation represented in a system of spherical coordinates. Spherical harmonics are important in many theoretical and practical applications, particularly in the computation of atomic electron configurations, the representation of the gravitational field, geoid, and magnetic field of planetary bodies, characterization of the cosmic microwave background radiation. In 3D computer graphics, spherical harmonics plays a special role in a wide variety of topics including indirect lighting (ambient occlusion, global illumination, precomputed radiance transfer etc) and in recognition of 3D shapes.




Laplace's equation in spherical coordinates is:

\nabla^2 f = {1 \over r^2}{\partial \over \partial r}\left(r^2 {\partial f \over \partial r}\right)    + {1 \over r^2\sin\theta}{\partial \over \partial \theta}\left(\sin\theta {\partial f \over \partial \theta}\right)    + {1 \over r^2\sin^2\theta}{\partial^2 f \over \partial \varphi^2} = 0

(see also del in cylindrical and spherical coordinates). For f(r,θ,φ)=R(r)Θ(θ)Φ(φ), the angular portion of Laplace's equation satisfies

{\Phi(\varphi) \over \sin\theta}{d \over d\theta}\left(\sin\theta {d\Theta \over d\theta} \right) + {\Theta(\theta) \over \sin^2 \theta}{d^2\Phi \over d\varphi^2} + l(l+1)\Theta(\theta)\Phi(\varphi) = 0.

Using the technique of separation of variables, two differential equations result:

\frac{1}{\Phi(\varphi)} \frac{d^2 \Phi(\varphi)}{d\varphi^2} = -m^2
l(l+1)\sin ^2(\theta) + \frac{\sin(\theta)}{\Theta(\theta)} \frac{d}{d\theta} \left [ \sin(\theta) \frac{d\Theta}{d\theta} \right ] = m^2

for some m and l. Hence, the angular solutions can be shown to be a products of trigonometric functions and associated Legendre functions:

Y_\ell^m (\theta, \varphi ) = N \, e^{i m \varphi } \, P_\ell^m (\cos{\theta} ),

where Y_\ell^m is a called a spherical harmonic function of degree \ell and order m, P_\ell^m is an associated Legendre function, N is a normalization constant, and θ and φ represent colatitude and longitude, respectively. The spherical coordinates used in this article are consistent with those used by physicists, but differ from those employed by mathematicians (see spherical coordinates). In particular, the colatitude θ, or polar angle, ranges from 0 ≤ θ ≤ π and the longitude φ, or azimuth, ranges from 0 ≤ φ ≤ 2π. Thus, θ is 0 at the North Pole, π/2 at the Equator, and π at the South Pole.

When Laplace's equation is solved on the surface of the sphere, the periodic boundary conditions in φ, as well as regularity conditions at both the north and south poles, ensure that the degree \ell and order m are integers that satisfy \ell ≥ 0 and |m| ≤ \ell. In contrast, if the function f were only to have been defined for θ ≤ θ0, then the resulting spherical cap harmonics would have been defined for integer order, but non-integer degree. The general solution to Laplace's equation is a linear combination of the spherical harmonic functions multiplied by the solutions of R(r):

f(r, \theta, \varphi) = \sum_{\ell=0}^\infty \sum_{m=-\ell}^\ell r^{-1-\ell} \, f_\ell^m \, Y_\ell^m (\theta, \varphi ) +  \sum_{\ell=0}^\infty \sum_{m=-\ell}^\ell  r^\ell  \, f_\ell^{m'} \, Y_\ell^m (\theta, \varphi ),

where f_\ell^m and f_\ell^{m'} are constants. The terms in the first summation approach zero as r goes to infinity, whereas the terms in the second summation approach zero at the origin.

Orthogonality and normalization

Several different normalizations are in common use for the spherical harmonic functions. In physics and seismology, these functions are generally defined as

Y_\ell^m( \theta , \varphi ) = \sqrt{{(2\ell+1)\over 4\pi}{(\ell-m)!\over (\ell+m)!}}  \, P_\ell^m ( \cos{\theta} ) \, e^{i m \varphi }

which are orthonormal

\int_{\theta=0}^\pi\int_{\varphi=0}^{2\pi}Y_\ell^m \, Y_{\ell'}^{m'*} \, d\Omega=\delta_{\ell\ell'}\, \delta_{mm'},

where δaa = 1, δab = 0 if a ≠ b, (see Kronecker delta) and dΩ = sinθ dφ dθ. The disciplines of geodesy and spectral analysis use

Y_\ell^m( \theta , \varphi ) =  \sqrt{{(2\ell+1) }{(\ell-m)!\over (\ell+m)!}} \, P_\ell^m ( \cos{\theta} )\, e^{i m \varphi }

which possess unit power

{1 \over 4 \pi} \int_{\theta=0}^\pi\int_{\varphi=0}^{2\pi}Y_\ell^m \, Y_{\ell'}^{m'*} d\Omega=\delta_{\ell\ell'}\, \delta_{mm'}.

The magnetics community, in contrast, uses Schmidt semi-normalized harmonics

Y_\ell^m( \theta , \varphi ) = \sqrt{{(\ell-m)!\over (\ell+m)!}}  \, P_\ell^m ( \cos{\theta} ) \, e^{i m \varphi }

which have the normalization

\int_{\theta=0}^\pi\int_{\varphi=0}^{2\pi}Y_\ell^m \, Y_{\ell'}^{m'*}d\Omega={4 \pi \over (2 \ell + 1)}\delta_{\ell\ell'}\, \delta_{mm'}.

In quantum mechanics this normalization is often used, too, and is there named Racah's normalization after Giulio Racah.

Using the identity (see associated Legendre functions)

P_\ell ^{-m} = (-1)^m \frac{(\ell-m)!}{(\ell+m)!} P_\ell ^{m}

it can be shown that all of the above normalized spherical harmonic functions satisfy

Y_\ell^{m*} (\theta, \varphi) = (-1)^m Y_\ell^{-m} (\theta, \varphi),

where the superscript * denotes complex conjugation. Alternatively, this equation follows from the relation of the spherical harmonic functions with the Wigner D-matrix.

Condon-Shortley phase

One source of confusion with the definition of the spherical harmonic functions concerns a phase factor of (-1)m, commonly referred to as the Condon-Shortley phase in the quantum mechanical literature. In the quantum mechanics community, it is common practice to either include this phase factor in the definition of the associated Legendre functions, or to append it to the definition of the spherical harmonic functions. There is no requirement to use the Condon-Shortley phase in the definition of the spherical harmonic functions, but including it can simplify some quantum mechanical operations, especially the application of raising and lowering operators. The geodesy and magnetics communities never include the Condon-Shortley phase factor in their definitions of the spherical harmonic functions.

Spherical harmonics expansion

The spherical harmonics form a complete set of orthonormal functions and thus form a vector space analogous to unit basis vectors. On the unit sphere, any square-integrable function can thus be expanded as a linear combination of these:

f(\theta,\varphi)=\sum_{\ell=0}^{\infty} \sum_{m=-\ell}^\ell f_\ell^m \, Y_\ell^m(\theta,\varphi).

This expansion is exact as long as \ell goes to infinity. Truncation errors will arise when limiting the sum over \ell to a finite bandwidth L. The expansion coefficients can be obtained by multiplying the above equation by the complex conjugate of a spherical harmonic, integrating over the solid angle \Omega\!\,, and utilizing the above orthogonality relationships. For the case of orthonormalized harmonics, this gives:

f_\ell^m=\int_{\Omega} f(\theta,\varphi)\, Y_\ell^{m*}(\theta,\varphi)d\Omega = \int_0^{2\pi}d\varphi\int_0^{\pi}d\theta\sin\theta f(\theta,\varphi)Y_\ell^{m*} (\theta,\varphi).

An alternative set of spherical harmonics for real functions may be obtained by taking the set:

Y_{\ell m} = \begin{cases} Y_\ell^0 \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\quad\quad\mbox{  if } m=0\\ {1\over\sqrt2}\left(Y_\ell^m+(-1)^m \, Y_\ell^{-m}\right) = \sqrt{2} N_{(l,m)} P_\ell^m(\cos \theta) \cos m\varphi  \qquad\quad\quad \mbox{if } m>0 \\ {1\over i\sqrt2}\left(Y_\ell^{-m}-(-1)^{m}\, Y_\ell^{m}\right) = \sqrt{2} N_{(l,m)} P_\ell^{-m}(\cos \theta) \sin m\varphi  \quad\mbox{  if } m<0. \end{cases}

where N(l,m) denotes the normalization constant as a function of l and m. These functions have the same normalization properties as the complex ones above. In this notation, a real square-integrable function can be expressed as an infinite sum of real spherical harmonics as:

f(\theta, \varphi) = \sum_{\ell=0}^\infty \sum_{m=-\ell}^\ell f_{lm} \, Y_{lm}(\theta, \varphi).

See here for a list of real spherical harmonics up to and including l = 5. Note, however, that the listed functions differ by the phase (-1)m from the phase given in this article.

Spectrum analysis

The total power of a function f is defined in the signal processing literature as the integral of the function squared, divided by the area it spans. Using the orthonormality properties of the real unit-power spherical harmonic functions, it is straightforward to verify that the total power of a function defined on the unit sphere is related to its spectral coefficients by a generalization of Parseval's theorem:

\frac{1}{4 \, \pi} \int_\Omega  f(\Omega)^2\, d\Omega = \sum_{l=0}^\infty S_{f\!f}(l),


S_{f\!f}(l) = \sum_{m=-l}^l  f_{lm}^2

is defined as the angular power spectrum. In a similar manner, one can define the cross-power of two functions as

\frac{1}{4 \, \pi} \int_\Omega  f(\Omega) \, g(\Omega) \, d\Omega = \sum_{l=0}^\infty S_{fg}(l),


S_{fg}(l) = \sum_{m=-l}^l  f_{lm} g_{lm}

is defined as the cross-power spectrum. If the functions f and g have a zero mean (i.e., the spectral coefficients f00 and g00 are zero), then Sff(l) and Sfg(l) represent the contributions to the function's variance and covariance for degree \ell, respectively. It is common that the (cross-)power spectrum is well approximated by a power law of the form

S_{f\!f}(l) = C \, \ell^{\beta}.

When β = 0, the spectrum is "white" as each degree possesses equal power. When β < 0, the spectrum is termed "red" as there is more power at the low degrees with long wavelengths than higher degrees. Finally, when β > 0, the spectrum is termed "blue".

Addition theorem

A mathematical result of considerable interest and use is called the addition theorem for spherical harmonics. Two vectors r and r', with spherical coordinates (r,\theta,\varphi) and (r ',\theta ',\varphi '),respectively, have an angle \,\!\gamma between them given by


The addition theorem expresses a Legendre polynomial of order l in the angle \,\!\gamma in terms of products of two spherical harmonics with angular coordinates (\theta,\varphi) and (\theta',\varphi'):

P_l( \cos \gamma ) = \frac{4\pi}{2l+1}\sum_{m=-l}^l Y_{lm}^*(\theta',\varphi') \, Y_{lm}(\theta,\varphi).

This expression is valid for both real and complex harmonics. However, it should be emphasized that the quoted form above is valid only for the orthonormalized spherical harmonics. For unit power harmonics it is only necessary to remove the factor of .

Visualization of the spherical harmonics


The spherical harmonics are easily visualized by counting the number of zero crossings they possess in both the latitudinal and longitudinal directions. For the latitudinal direction, the associated Legendre functions possess l − | m | zeros, whereas for the longitudinal direction, the trigonomentric sin and cos functions possess 2 | m | zeros.

When the spherical harmonic order m is zero, the spherical harmonic functions do not depend upon longitude, and are referred to as zonal. When l = | m | , there are no zero crossings in latitude, and the functions are referred to as sectoral. For the other cases, the functions checker the sphere, and they are referred to as tesseral.

First few spherical harmonics

Analytic expressions for the first few orthonormalized spherical harmonics that use the Condon-Shortley phase convention:

Y_{0}^{0}(\theta,\varphi)={1\over 2}\sqrt{1\over \pi}
Y_{1}^{-1}(\theta,\varphi)={1\over 2}\sqrt{3\over 2\pi} \, \sin\theta \, e^{-i\varphi}
Y_{1}^{0}(\theta,\varphi)={1\over 2}\sqrt{3\over \pi}\, \cos\theta
Y_{1}^{1}(\theta,\varphi)={-1\over 2}\sqrt{3\over 2\pi}\, \sin\theta\, e^{i\varphi}
Y_{2}^{-2}(\theta,\varphi)={1\over 4}\sqrt{15\over 2\pi} \, \sin^{2}\theta \, e^{-2i\varphi}
Y_{2}^{-1}(\theta,\varphi)={1\over 2}\sqrt{15\over 2\pi}\, \sin\theta\, \cos\theta\, e^{-i\varphi}
Y_{2}^{0}(\theta,\varphi)={1\over 4}\sqrt{5\over \pi}\, (3\cos^{2}\theta-1)
Y_{2}^{1}(\theta,\varphi)={-1\over 2}\sqrt{15\over 2\pi}\, \sin\theta\,\cos\theta\, e^{i\varphi}
Y_{2}^{2}(\theta,\varphi)={1\over 4}\sqrt{15\over 2\pi}\, \sin^{2}\theta \, e^{2i\varphi}
Y_{3}^{0}(\theta,\varphi)={1\over 4}\sqrt{7\over \pi}\, (5\cos^{3}\theta-3\cos\theta)
More spherical harmonics up to Y10


The spherical harmonics map can be seen as representations of the symmetry group of rotations around a point (SO(3)) and its double-cover SU(2). As such they capture the symmetry of the two-dimensional sphere (or two-sphere). Each set of spherical harmonics with a given value for the l-parameter map onto a different irreducible representation of SO(3).

In addition, the two-sphere is equivalent to the Riemann sphere. The complete set of symmetries of the Riemann sphere are described by the Mobius transformation group PSL(2,C), which is isomorphic as a real Lie group to the Lorentz group. The analog of the spherical harmonics for the Lorentz group are given by the hypergeometric series; indeed, the spherical harmonics can be re-expressed in terms of the hypergeometric series, as SO(3) is a subgroup of PSL(2,C).

More generally, hypergeometric series can be generalized to describe the symmetries of any symmetric space; in particular, hypergeometric series can be developed for any Lie group[1][2][3][4]

See also


Cited references

  1. ^ N. Vilenkin, Special Functions and the Theory of Group Representations, Am. Math. Soc. Transl., vol. 22, (1968).
  2. ^ J. D. Talman, Special Functions, A Group Theoretic Approach, (based on lectures by E.P. Wigner), W. A. Benjamin, New York (1968).
  3. ^ W. Miller, Symmetry and Separation of Variables, Addison-Wesley, Reading (1977).
  4. ^ A. Wawrzyńczyk, Group Representations and Special Functions, Polish Scientific Publishers. Warszawa (1984).

General references

  • A.R. Edmonds, Angular Momentum in Quantum Mechanics, (1957) Princeton University Press, ISBN 0-691-07912-9.
  • E. U. Condon and G. H. Shortley, The Theory of Atomic Spectra, (1970) Cambridge at the University Press, ISBN 0-521-09209-4, See chapter 3.
  • J.D. Jackson, Classical Electrodynamics, ISBN 0-471-30932-X
  • Albert Messiah, Quantum Mechanics, volume II. (2000) Dover. ISBN 0-486-40924-4.
  • D. A. Varshalovich, A. N. Moskalev, V. K. Khersonskii Quantum Theory of Angular Momentum,(1988) World Scientific Publishing Co., Singapore, ISBN 9971-5-0107-4

Web resources

  • Spherical harmonics on Mathworld
  • Spherical Harmonic Models of Planetary Topography
  • Spherical harmonics generator in OpenGL
  • General Solution to LaPlace's Equation in Spherical Harmonics (Spherical Harmonic Analysis). Solid Earth Geophysics.


  • SHTOOLS: Fortran 95 software archive
  • HEALPIX: Fortran 90 and C++ software archive
  • SpherePack: Fortran 77 software archive
  • SpharmonicKit: C software archive
  • Frederik J Simons: Matlab software archive
  • NFFT: C subroutine library (fast spherical Fourier transform for arbitrary nodes)
  • Shansyn: spherical harmonics package for GMT/netcdf grd files
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Spherical_harmonics". A list of authors is available in Wikipedia.
Your browser is not current. Microsoft Internet Explorer 6.0 does not support some functions on Chemie.DE