Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Special Functions >

LegendreP

LegendreP[n, x]
gives the Legendre polynomial P_n(x).
LegendreP[n, m, x]
gives the associated Legendre polynomial .
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • Explicit formulas are given for integers n and m.
  • The Legendre polynomials satisfy the differential equation (1-x^2)(d^2y/dx^2)-2x(dy/dx)+n(n+1)y=0.
  • The Legendre polynomials are orthogonal with unit weight function.
  • The associated Legendre polynomials are defined by .
  • For arbitrary complex values of n, m and z, LegendreP[n, z] and LegendreP[n, m, z] give Legendre functions of the first kind.
  • LegendreP[n, m, a, z] gives Legendre functions of type a. The default is type 1.
  • The symbolic form of type 1 involves (1-z^2)^(m/2), of type 2 involves (1+z)^(m/2)/(1-z)^(m/2) and of type 3 involves (1+z)^(m/2)/(-1+z)m/2.
  • Type 1 is defined only for z within the unit circle in the complex plane. Type 2 represents an analytic continuation of type 1 outside the unit circle.
  • Type 2 functions have branch cuts from -infty to -1 and from +1 to +infty in the complex z plane.
  • Type 3 functions have a single branch cut from -infty to +1.
  • For certain special arguments, LegendreP automatically evaluates to exact values.
  • LegendreP can be evaluated to arbitrary numerical precision.
Compute the 10^(th) Legendre polynomial:
Compute the associated Legendre polynomial :
Compute a half-integer associated Legendre function:
Evaluate for fractional orders:
Evaluate for complex orders and arguments:
Evaluate to high precision:
The precision of the output tracks the precision of the input:
LegendreP threads element-wise over lists:
TraditionalForm formatting:
LegendreP can deal with real-valued intervals:
LegendreP can be applied to a power series:
Different LegendreP types give different symbolic forms:
Types 2 and 3 have different branch cut structures:
Angular momentum eigenfunctions:
Find quantum eigenfunctions for modified Pöschl-Teller potential:
Generalized Fourier transform for functions on interval -1 to 1:
Use FunctionExpand to expand into simpler functions:
Cancellations in the polynomial form may lead to inaccurate numerical results:
Evaluate the function directly:
Visualize distribution of zeros:
Generalized Lissajous figures:
New in 1 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team