LegendreP, LegendreQ - Legendre functions and associated Legendre functions of the first and second kinds
|
Calling Sequence
|
|
LegendreP(v, x)
LegendreQ(v, x)
LegendreP(v, u, x)
LegendreQ(v, u, x)
|
|
Parameters
|
|
v
|
-
|
algebraic expression (degree)
|
u
|
-
|
algebraic expression (order)
|
x
|
-
|
algebraic expression (argument)
|
|
|
|
|
Description
|
|
•
|
LegendreP(v, x) and LegendreP(v, u, x) are the Legendre and associated Legendre functions of the first kind. LegendreQ(v, x) and LegendreQ(v, u, x) are the Legendre and associated Legendre functions of the second kind. They satisfy the differential equation:
|
•
|
The points 1, -1, and are singularities of the equation (except in special cases) and ordinary branch points of the functions.
|
•
|
In standard references, the branch cuts are taken to be (, -1) and (-1, 1), and the values of the functions on the branch cut (-1, 1) are obtained by an averaging process (in order to obtain functions which are real valued on this interval).
|
|
Rather than take this approach, Maple defines the default Legendre functions to be continuous onto the cuts, from above for the cut (, -1) and from below for the cut (-1, 1). However, alternative definitions of the Legendre functions are also available, which place the branch cuts as (, -1) and (1, ); these functions are real valued on the interval (-1, 1). The selection between the two definitions for the Legendre functions is accomplished via assignment to the environment variable _EnvLegendreCut. If this environment variable is assigned the value , Maple provides the default behavior, which places a branch cut on the real line coincident with the interval (-1, 1). If this environment variable is assigned the value , Maple places branch cuts on the real line coincident with the intervals (,-1) and (1,).
|
|
If _EnvLegendreCut is either not assigned or has the value , the LegendreP and LegendreQ functions have the following hypergeometric representation:
|
>
|
LegendreP(a,b,z) = convert( LegendreP(a,b,z), hypergeom);
|
| (1) |
>
|
LegendreQ(a,b,z) = convert( LegendreQ(a,b,z), hypergeom);
|
| (2) |
|
The formula above for LegendreP is not valid when the second parameter, b, is a positive integer. In that case, the following formula is used:
|
>
|
LegendreP(a,b,z) = (z+1)^(b/2)*(z-1)^(b/2)*diff(LegendreP(a,z),[z$b]);
|
| (3) |
|
For LegendreQ, the hypergeometric representation shown is not valid when the first parameter a+ is a non-positive integer; in that case the following formula is applied recursively
|
>
|
LegendreQ(a,b,Z) = ((2*a+3)*Z*LegendreQ(a+1,b,Z) + (b-a-2)*LegendreQ(a+2,b,Z))/(a+1+b);
|
| (4) |
|
The toroidal functions can be obtained by leaving _EnvLegendreCut unassigned (or assigning it the value ) and composing with : LegendreP(v, u, cosh(x)), etcetera.
|
|
Similarly, the spherical harmonic functions can be obtained by setting and composing with : LegendreP(v, u, cos(x)), etcetera.
|
|
Commands such as evalf and simplify have a remember table that stores the setting of the environment variable. To change the variable settings, you must first alter the content of the remember table by executing either the restart command or the forget command (as in forget(evalf) or forget(simplify)).
|
•
|
The values returned by these functions when the argument is either 1 or -1 are the values that would be obtained by considering the order and degree parameters fixed and taking the appropriate limit in the argument.
|
|
|
Examples
|
|
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
>
|
|
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
>
|
|
>
|
|
| (18) |
>
|
|
| (19) |
>
|
|
| (20) |
>
|
|
>
|
|
| (21) |
>
|
|
| (22) |
|
|
See Also
|
|
ChebyshevT, ChebyshevU, EllipticE, EllipticF, EllipticPi, evalf, forget, GegenbauerC, HermiteH, initialfunctions, JacobiP, LaguerreL, orthopoly[P], simplify
|
|