WOLFRAM

LegendreQ[n,z]

gives the Legendre function of the second kind TemplateBox[{n, z}, LegendreQ].

LegendreQ[n,m,z]

gives the associated Legendre function of the second kind TemplateBox[{n, m, z}, LegendreQ3].

Details

  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • For integers n and m, explicit formulas are generated.
  • The Legendre functions satisfy the differential equation .
  • LegendreQ[n,m,a,z] gives Legendre functions of type a. The default is type 1.
  • LegendreQ of types 1, 2 and 3 are defined in terms of LegendreP of these types, and have the same branch cut structure and properties described for LegendreP.
  • For certain special arguments, LegendreQ automatically evaluates to exact values.
  • LegendreQ can be evaluated to arbitrary numerical precision.
  • LegendreQ automatically threads over lists.
  • LegendreQ can be used with Interval and CenteredInterval objects. »

Examples

open allclose all

Basic Examples  (6)Summary of the most common use cases

Evaluate numerically:

Out[1]=1

Compute the 5^(th) Legendre function of the second kind:

Out[1]=1

Plot over a subset of the reals:

Out[1]=1

Plot over a subset of the complexes:

Out[1]=1

Series expansion at the origin:

Out[1]=1

Asymptotic expansion at Infinity:

Out[1]=1

Scope  (42)Survey of the scope of standard use cases

Numerical Evaluation  (6)

Evaluate numerically at fixed points:

Out[1]=1

Evaluate to high precision:

Out[1]=1

The precision of the output tracks the precision of the input:

Out[2]=2

Evaluate for complex arguments:

Out[1]=1

Evaluate LegendreQ efficiently at high precision:

Out[1]=1
Out[2]=2

Compute worst-case guaranteed intervals using Interval and CenteredInterval objects:

Out[1]=1
Out[2]=2
Out[3]=3

Or compute average-case statistical intervals using Around:

Out[4]=4

Compute the elementwise values of an array:

Out[1]=1

Or compute the matrix LegendreQ function using MatrixFunction:

Out[2]=2

Specific Values  (5)

Legendre function for :

Out[1]=1

Legendre function for fixed :

Out[1]=1

Find a local maximum as a root of (dTemplateBox[{5, x}, LegendreP])/(dx)=0:

Out[1]=1
Out[2]=2

Compute the associated Legendre function of the second kind TemplateBox[{3, 1, x}, LegendreQ3]:

Out[1]=1

Different LegendreQ types give different symbolic forms:

Out[1]=1

Visualization  (3)

Plot the LegendreQ function for various degrees:

Out[1]=1

Plot the real part of TemplateBox[{4, z}, LegendreQ]:

Out[1]=1

Plot the imaginary part of TemplateBox[{4, z}, LegendreQ]:

Out[2]=2

Type 2 and 3 Legendre functions have different branch cut structures:

Out[1]=1
Out[2]=2

Function Properties  (12)

TemplateBox[{m, z}, LegendreQ] is defined for as long as is not a negative integer:

Out[1]=1

In the complex plane, it is defined for as long as is not a negative integer:

Out[2]=2

The range for Legendre functions of integer order:

Out[1]=1

A Legendre function of an odd order is even:

Out[1]=1

A Legendre function of an even order is odd:

Out[1]=1

Legendre function has the mirror property TemplateBox[{n, TemplateBox[{z}, Conjugate, SyntaxForm -> SuperscriptBox]}, LegendreQ]=TemplateBox[{TemplateBox[{n, z}, LegendreQ]}, Conjugate]:

Out[1]=1

LegendreQ is not an analytic function:

Out[1]=1

Nor is it meromorphic:

Out[2]=2

TemplateBox[{m, x}, LegendreQ] is neither non-decreasing nor non-increasing in for positive integer :

Out[1]=1

For and noninteger , it is increasing:

Out[2]=2

TemplateBox[{m, x}, LegendreQ] is not injective in for positive integer :

Out[1]=1

For and noninteger , it is injective:

Out[2]=2
Out[3]=3

TemplateBox[{m, x}, LegendreQ] is surjective in for non-negative even :

Out[1]=1

It is not surjective for other values of :

Out[2]=2
Out[3]=3

LegendreQ is neither non-negative nor non-positive:

Out[1]=1

LegendreQ has both singularity and discontinuity in (-,-1] and [1,):

Out[1]=1
Out[2]=2

TemplateBox[{m, x}, LegendreQ] is neither convex nor concave for most values of :

Out[1]=1

Differentiation  (3)

First derivative:

Out[1]=1

Higher derivatives:

Out[1]=1

Plot higher derivatives for :

Out[2]=2

Formula for the ^(th) derivative:

Out[1]=1

Integration  (3)

Indefinite integral of TemplateBox[{1, x}, LegendreQ]:

Out[1]=1

Definite integral of the odd integrand TemplateBox[{2, x}, LegendreQ] over the interval centered at the origin is 0:

Out[1]=1

Definite integral of the even integrand TemplateBox[{3, x}, LegendreQ] over the interval centered at the origin:

Out[1]=1

This is twice the integral over half the interval:

Out[2]=2

Series Expansions  (4)

Taylor expansion for TemplateBox[{n, x}, LegendreQ]:

Out[1]=1

Plot the first three approximations for TemplateBox[{6, x}, LegendreQ] at :

Out[2]=2

General term in the series expansion of TemplateBox[{n, x}, LegendreQ]:

Out[1]=1

Taylor expansion for the associated Legendre function TemplateBox[{n, m, x}, LegendreQ3]:

Out[1]=1

LegendreQ can be applied to a power series:

Out[1]=1

Function Identities and Simplifications  (2)

Expand LegendreQ of integer or half-integer parameters into simpler functions:

Out[1]=1
Out[2]=2

Recurrence relation:

Out[1]=1

Function Representations  (4)

LegendreQ can be expressed as a DifferentialRoot:

Out[1]=1

Associated Legendre function in terms of the angular spheroidal function:

Out[1]=1

Associated Legendre function in terms of Legendre function of type :

Out[1]=1

TraditionalForm formatting:

Generalizations & Extensions  (2)Generalized and extended use cases

Different LegendreQ types give different symbolic forms:

Out[1]=1
Out[2]=2
Out[2]=2

Types 2 and 3 have different branch cut structures:

Out[1]=1
Out[2]=2

Applications  (4)Sample problems that can be solved with this function

Angular momentum eigenfunctions:

Out[1]=1

Solve a recurrence equation:

Out[1]=1

The PöschlTeller potential is a special class of potentials for which the one-dimensional Schrödinger equation can be solved in terms of special functions.

Find quantum eigenfunctions for the modified PöschlTeller potential:

Out[1]=1

An n-point Gaussian quadrature rule is based on the roots of the n^(th) order Legendre polynomial. Compute the nodes and weights of an n-point Gaussian quadrature rule:

Out[1]=1
Out[2]=2

Use the n-point Gaussian quadrature rule to numerically evaluate an integral:

Out[4]=4

The Kronrod extension of a Gaussian quadrature rule adds n+1 points and reuses the n nodes from Gaussian quadrature, resulting in an integration rule with 2n+1 points. The additional n+1 nodes can be obtained as the roots of a polynomial constructed from the asymptotic expansion of the Legendre function of the second kind (the Stieltjes polynomial):

Out[5]=5

Compute the GaussKronrod nodes and weights:

Out[6]=6
Out[7]=7

Use the (2n+1)-point GaussKronrod rule to numerically evaluate an integral:

Out[8]=8

The difference between the results of the GaussKronrod rule and the Gaussian rule can be used as an error estimate:

Out[9]=9

Compare the result of the GaussKronrod rule with the result from NIntegrate:

Out[10]=10

Properties & Relations  (2)Properties of the function, and connections to other functions

LegendreQ can be expressed as a DifferenceRoot:

Out[1]=1
Out[2]=2

The generating function for LegendreQ:

Out[1]=1
Wolfram Research (1988), LegendreQ, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendreQ.html (updated 2022).
Wolfram Research (1988), LegendreQ, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendreQ.html (updated 2022).

Text

Wolfram Research (1988), LegendreQ, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendreQ.html (updated 2022).

Wolfram Research (1988), LegendreQ, Wolfram Language function, https://reference.wolfram.com/language/ref/LegendreQ.html (updated 2022).

CMS

Wolfram Language. 1988. "LegendreQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/LegendreQ.html.

Wolfram Language. 1988. "LegendreQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/LegendreQ.html.

APA

Wolfram Language. (1988). LegendreQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LegendreQ.html

Wolfram Language. (1988). LegendreQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LegendreQ.html

BibTeX

@misc{reference.wolfram_2025_legendreq, author="Wolfram Research", title="{LegendreQ}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/LegendreQ.html}", note=[Accessed: 17-May-2025 ]}

@misc{reference.wolfram_2025_legendreq, author="Wolfram Research", title="{LegendreQ}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/LegendreQ.html}", note=[Accessed: 17-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_legendreq, organization={Wolfram Research}, title={LegendreQ}, year={2022}, url={https://reference.wolfram.com/language/ref/LegendreQ.html}, note=[Accessed: 17-May-2025 ]}

@online{reference.wolfram_2025_legendreq, organization={Wolfram Research}, title={LegendreQ}, year={2022}, url={https://reference.wolfram.com/language/ref/LegendreQ.html}, note=[Accessed: 17-May-2025 ]}