In mathematics, the associated Legendre polynomials are the canonical solutions of the general Legendre equation

or equivalently

where the indices and m (which are integers) are referred to as the degree and order of the associated Legendre polynomial respectively. This equation has nonzero solutions that are nonsingular on [−1, 1] only if and m are integers with 0 ≤ m, or with trivially equivalent negative values. When in addition m is even, the function is a polynomial. When m is zero and integer, these functions are identical to the Legendre polynomials. In general, when and m are integers, the regular solutions are sometimes called "associated Legendre polynomials", even though they are not polynomials when m is odd. The fully general class of functions with arbitrary real or complex values of and m are Legendre functions. In that case the parameters are usually labelled with Greek letters.

The Legendre ordinary differential equation is frequently encountered in physics and other technical fields. In particular, it occurs when solving Laplace's equation (and related partial differential equations) in spherical coordinates. Associated Legendre polynomials play a vital role in the definition of spherical harmonics.

Definition for non-negative integer parameters and m

These functions are denoted , where the superscript indicates the order and not a power of P. Their most straightforward definition is in terms of derivatives of ordinary Legendre polynomials (m ≥ 0)

The (−1)m factor in this formula is known as the Condon–Shortley phase. Some authors omit it. That the functions described by this equation satisfy the general Legendre differential equation with the indicated values of the parameters and m follows by differentiating m times the Legendre equation for P:[1]

Moreover, since by Rodrigues' formula,

the Pm
can be expressed in the form

This equation allows extension of the range of m to: m. The definitions of P±m, resulting from this expression by substitution of ±m, are proportional. Indeed, equate the coefficients of equal powers on the left and right hand side of

then it follows that the proportionality constant is
so that

Alternative notations

The following alternative notations are also used in literature:[2]

Closed Form

The Associated Legendre Polynomial can also be written as:[citation needed]

with simple monomials and the generalized form of the binomial coefficient.


The associated Legendre polynomials are not mutually orthogonal in general. For example, is not orthogonal to . However, some subsets are orthogonal. Assuming 0 ≤ m ≤ , they satisfy the orthogonality condition for fixed m:

Where δk, is the Kronecker delta.

Also, they satisfy the orthogonality condition for fixed :

Negative m and/or negative

The differential equation is clearly invariant under a change in sign of m.

The functions for negative m were shown above to be proportional to those of positive m:

(This followed from the Rodrigues' formula definition. This definition also makes the various recurrence formulas work for positive or negative m.)

The differential equation is also invariant under a change from to − 1, and the functions for negative are defined by


From their definition, one can verify that the Associated Legendre functions are either even or odd according to

The first few associated Legendre functions

Associated Legendre functions for m = 0
Associated Legendre functions for m = 1
Associated Legendre functions for m = 2

The first few associated Legendre functions, including those for negative values of m, are:

Recurrence formula

These functions have a number of recurrence properties:

Helpful identities (initial values for the first recursion):

with !! the double factorial.

Gaunt's formula

The integral over the product of three associated Legendre polynomials (with orders matching as shown below) is a necessary ingredient when developing products of Legendre polynomials into a series linear in the Legendre polynomials. For instance, this turns out to be necessary when doing atomic calculations of the Hartree–Fock variety where matrix elements of the Coulomb operator are needed. For this we have Gaunt's formula [3]

This formula is to be used under the following assumptions:

  1. the degrees are non-negative integers
  2. all three orders are non-negative integers
  3. is the largest of the three orders
  4. the orders sum up
  5. the degrees obey

Other quantities appearing in the formula are defined as

The integral is zero unless

  1. the sum of degrees is even so that is an integer
  2. the triangular condition is satisfied

Dong and Lemus (2002)[4] generalized the derivation of this formula to integrals over a product of an arbitrary number of associated Legendre polynomials.

Generalization via hypergeometric functions

Main article: Legendre function

These functions may actually be defined for general complex parameters and argument:

where is the gamma function and is the hypergeometric function

They are called the Legendre functions when defined in this more general way. They satisfy the same differential equation as before:

Since this is a second order differential equation, it has a second solution, , defined as:

and both obey the various recurrence formulas given previously.

Reparameterization in terms of angles

These functions are most useful when the argument is reparameterized in terms of angles, letting :

Using the relation , the list given above yields the first few polynomials, parameterized this way, as:

The orthogonality relations given above become in this formulation: for fixed m, are orthogonal, parameterized by θ over , with weight :

Also, for fixed :

In terms of θ, are solutions of

More precisely, given an integer m0, the above equation has nonsingular solutions only when for an integer ≥ m, and those solutions are proportional to .

Applications in physics: spherical harmonics

Main article: Spherical harmonics

In many occasions in physics, associated Legendre polynomials in terms of angles occur where spherical symmetry is involved. The colatitude angle in spherical coordinates is the angle used above. The longitude angle, , appears in a multiplying factor. Together, they make a set of functions called spherical harmonics. These functions express the symmetry of the two-sphere under the action of the Lie group SO(3).[citation needed]

What makes these functions useful is that they are central to the solution of the equation on the surface of a sphere. In spherical coordinates θ (colatitude) and φ (longitude), the Laplacian is

When the partial differential equation

is solved by the method of separation of variables, one gets a φ-dependent part or for integer m≥0, and an equation for the θ-dependent part

for which the solutions are with and .

Therefore, the equation

has nonsingular separated solutions only when , and those solutions are proportional to


For each choice of , there are 2ℓ + 1 functions for the various values of m and choices of sine and cosine. They are all orthogonal in both and m when integrated over the surface of the sphere.

The solutions are usually written in terms of complex exponentials:

The functions are the spherical harmonics, and the quantity in the square root is a normalizing factor. Recalling the relation between the associated Legendre functions of positive and negative m, it is easily shown that the spherical harmonics satisfy the identity[5]

The spherical harmonic functions form a complete orthonormal set of functions in the sense of Fourier series. Workers in the fields of geodesy, geomagnetism and spectral analysis use a different phase and normalization factor than given here (see spherical harmonics).

When a 3-dimensional spherically symmetric partial differential equation is solved by the method of separation of variables in spherical coordinates, the part that remains after removal of the radial part is typically of the form

and hence the solutions are spherical harmonics.


The Legendre polynomials are closely related to hypergeometric series. In the form of spherical harmonics, they express the symmetry of the two-sphere under the action of the Lie group SO(3). There are many other Lie groups besides SO(3), and analogous generalizations of the Legendre polynomials exist to express the symmetries of semi-simple Lie groups and Riemannian symmetric spaces. Crudely speaking, one may define a Laplacian on symmetric spaces; the eigenfunctions of the Laplacian can be thought of as generalizations of the spherical harmonics to other settings.

See also

Notes and references

  1. ^ Courant & Hilbert 1953, V, §10.
  2. ^ Abramowitz, Milton; Stegun, Irene Ann, eds. (1983) [June 1964]. "Chapter 8". Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. Applied Mathematics Series. Vol. 55 (Ninth reprint with additional corrections of tenth original printing with corrections (December 1972); first ed.). Washington D.C.; New York: United States Department of Commerce, National Bureau of Standards; Dover Publications. p. 332. ISBN 978-0-486-61272-0. LCCN 64-60036. MR 0167642. LCCN 65-12253.
  3. ^ From John C. Slater Quantum Theory of Atomic Structure, McGraw-Hill (New York, 1960), Volume I, page 309, which cites the original work of J. A. Gaunt, Philosophical Transactions of the Royal Society of London, A228:151 (1929)
  4. ^ Dong S.H., Lemus R., (2002), "The overlap integral of three associated Legendre polynomials", Appl. Math. Lett. 15, 541-546.
  5. ^ This identity can also be shown by relating the spherical harmonics to Wigner D-matrices and use of the time-reversal property of the latter. The relation between associated Legendre functions of ±m can then be proved from the complex conjugation identity of the spherical harmonics.