User:Dan Nessett/Sandboxes/Sandbox 1

It is demonstrated that the associated Legendre functions are orthogonal in two different ways and their normalization constant for each is derived.

Theorem (orthogonality relation 1)

 * $ \displaystyle \int_{-1}^1 P_l^m \left({x}\right) P_k^m \left({x}\right) \mathrm \ d x = \frac 2 {2 l + 1} \frac {\left({l+m}\right) !} {\left({l-m}\right) !} \delta_{lk}$

where:
 * $ \displaystyle P_{l}^{m} \left( x\right) =\frac{\left( -1\right) ^{m} }{2^{l} l!} \left(1-x^{2} \right) ^{\frac{m}{2} } \frac{d^{l+m} }{dx^{l+m} } \left[ \left(x^{2} -1\right) ^{l} \right], \quad 0\leq m\leq l.$

Proof
The associated Legendre functions are regular solutions to the associated Legendre differential equation given in the main article.

The equation is an example of a more general class of equations known as the Sturm-Liouville equations.

Using Sturm-Liouville theory, one can show the orthogonality of functions with the same superscript m and different subscripts:


 * $ \displaystyle K_{kl}^{m} =\int\limits_{-1}^{1}P_{k}^{m} \left( x\right) P_{l}^{m} \left( x\right) \ dx = 0 \quad\hbox{if}\quad k \ne l $

However, one can find $K_{kl}^{m} $ directly from the above definition, whether or not $k=l$.

This involves evaluating the overlap integral directly from the definition of the associated Legendre functions given in the main article.

Indeed, inserting the definition of the function twice:
 * $ \displaystyle

K_{kl}^{m} =\frac{1}{2^{k+l}\; k! \; l! } \int\limits_{-1}^{1} \left\{ \left({1-x^{2}}\right)^{m} \frac{d^{k+m} }{dx^{k+m} } \left[ \left({x^{2} -1}\right)^{k} \right] \right\} \left\{ \frac{d^{l+m} }{dx^{l+m} } \left[ \left( x^{2} -1\right) ^{l} \right] \right\} \ dx. $

Since k and l occur symmetrically, one can without loss of generality assume that  l &ge; k.

Use the well-known integration-by-parts equation
 * $ \displaystyle

\int_{-1}^1 u\; v'\; dx = \left. u\,v\right|_{-1}^1 - \int_{-1}^{1} v u' \;dx $

l + m times, where the curly brackets in the integral indicate the factors, the first being u and the second v&rsquo;.

For each of the first m integrations by parts, u in the $$ uv|_{-1}^1$$ term contains the factor  (1&minus;x2), so the term vanishes. For each of the remaining l integrations, v in that term contains the factor  (x2&minus;1) so the term also vanishes.

This means:
 * $ \displaystyle

K_{kl}^{m} =\frac{\left( -1\right) ^{l+m} }{2^{k+l} \; k!\; l! } \int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l} \frac{d^{l+m} }{dx^{l+m} } \left[ \left( 1-x^{2} \right) ^{m} \frac{d^{k+m} }{dx^{k+m} } \left[ \left( x^{2} -1\right) ^{k} \right] \right] dx. $

Expand the second factor using Leibnitz' rule:


 * $ \displaystyle \frac{d^{l+m} }{dx^{l+m} } \left[ \left( 1-x^{2} \right) ^{m}

\frac{d^{k+m} }{dx^{k+m} } \left[ \left( x^{2} -1\right) ^{k} \right] \right] =\sum\limits_{r=0}^{l+m} \binom{l+m}{r} \frac{d^{r} }{dx^{r} } \left[ \left( 1-x^{2} \right) ^{m} \right] \frac{d^{l+k+2m-r} }{dx^{l+k+2m-r} } \left[ \left( x^{2} -1\right) ^{k} \right]. $

The leftmost derivative in the sum is non-zero only when r &le; 2m \left(remembering that m &le; l).

The other derivative is non-zero only when k + l + 2m &minus; r &le; 2k, that is, when r &ge; 2m + l &minus; k. Because l &ge; k these two conditions imply that the only non-zero term in the sum occurs when r = 2m and l = k.

So:
 * $ \displaystyle

K_{kl}^{m} =\ \left({-1}\right)^{l}\ \delta_{kl} \; \frac{\left({-1}\right)^{l+m} }{2^{2l}\, \left({l!}\right)^{2}} \binom{l+m}{2m} \int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l} \frac{d^{2m} }{dx^{2m} } \left[ \left( 1-x^{2} \right) ^{m} \right] \frac{d^{2l} }{dx^{2l} } \left[ \left( 1-x^{2} \right) ^{l} \right] dx, $

where &delta;kl is the Kronecker delta that shows the orthogonality of functions with l &ne; k.

The factor $\left({-1}\right)^{l}$ at the front of $K_{kl}^{m}$ comes from switching the sign of x2-1 inside \left({x2-1}\right)l.

To evaluate the differentiated factors, expand \left({1&minus;x&sup2;}\right)k using the binomial theorem:
 * $ \displaystyle

\left( 1-x^{2} \right) ^{k} =\sum\limits_{j=0}^{k} \binom{k}{j} \left({ -1}\right)^{k-j} x^{2\left({k-j}\right)}. $

The only term that survives differentiation 2k times is the x2k term, which after differentiation gives
 * $ \displaystyle

\left({-1}\right)^k \, \binom{k}{0}\, 2k! = \left({-1}\right)^{k}\, \left({2k}\right)! \, . $

Therefore:
 * $ \displaystyle

K_{kl}^{m} =\ \left({-1}\right)^{l}\delta _{kl}\; \; \frac{1}{2^{2l}\; \left({l!}\right) ^{2} } \frac{\left({2l}\right)!\,\left({l+m}\right)!}{\left({l-m}\right)!} \int\limits_{-1}^{1}\left({x^{2} -1}\right)^{l} \ dx \qquad\qquad\qquad\qquad\qquad\qquad \left({1}\right) $

Evaluate
 * $ \displaystyle

\int\limits_{-1}^{1}\left({x^{2} -1}\right)^{l} \ dx $ by a change of variable:

x=\cos \theta\; \Longrightarrow\; dx=-\sin \theta d\theta\quad\hbox{and}\quad 1-x^{2} =\left({\sin \theta}\right)^2. $

Thus,
 * $ \displaystyle \int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l}  dx

=\left({-1}\right)^{l+1}\int\limits_{\pi}^{0}\left( \sin \theta \right) ^{2l+1} d\theta, $

where we recall that
 * $ \displaystyle  -1 = \cos\,\pi \quad\hbox{and}\quad  1 = \cos\,0.

$

The limits were switched from
 * $ \displaystyle \pi \rightarrow  0 \; \quad\hbox{and}\quad 0 \rightarrow \pi $, which accounts for one minus sign.

Integration of
 * $ \displaystyle

\frac{d\left({\sin^{n-1}\theta\cos\theta}\right)}{d\theta} = \left({n-1}\right)\sin^{n-2}\theta - n\sin^{n}\theta $

gives


 * $ \displaystyle

\int\limits_{0}^{\pi }\sin^n \theta\; d\theta  =\frac{\left. -\sin^{n-1} \theta \cos \theta \right|_{0}^{\pi } }{n} +\frac{\left({n-1}\right) }{n} \int\limits_{0}^{\pi }\sin ^{n-2} \theta \ d\theta. $

Since
 * $ \displaystyle \left. -\sin^{n-1} \theta \cos \theta \right| _{0}^{\pi } =0 \quad\hbox{for}\quad n > 1,$

it follows that
 * $ \displaystyle \int\limits_{0}^{\pi }\sin ^{n} \theta  d\theta  =\frac{\left(

n-1\right) }{n} \int\limits_{0}^{\pi }\sin ^{n-2} \theta \ d\theta $ for n &gt; 1.

Applying this result to
 * $ \displaystyle \int\limits_{0}^{\pi }\left( \sin \theta \right) ^{2l+1}  d\theta  $

and changing the variable back to x yields:


 * $ \displaystyle \int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l}  dx =\ -\ \frac{2l}{2l+1} \int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l-1}  dx

$ for l &ge; 1.

Using this recursively:
 * $ \displaystyle

\int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l} dx =\ \left({-1}\right)^{l}\  \left({\frac{2l }{2l+1} \frac{2\left( l-1\right) }{2l-1} \frac{2\left( l-2\right) }{2l-3} ...\frac{2}{3} }\right)\  \int\limits_{-1}^{1}\   dx $

Noting:


 * $ \displaystyle \int\limits_{-1}^{1}\   dx\ =\ 2$

and


 * $ \displaystyle \frac{2l }{2l+1} \frac{2\left( l-1\right) }{2l-1} \frac{2\left( l-2\right)

}{2l-3} ...\frac{2}{3} \ =\ \frac{2^ll! }{\left({2l+1}\right)\left({2l-1}\right)\left({2l-3}\right)...3}\ =\ \frac{2^ll! }{\frac{\left({2l+1}\right)! }{2^ll!}}\ =\frac{2^{2l} \left( l!\right) ^{2} }{\left( 2l+1\right) !}$


 * $ \displaystyle

\int\limits_{-1}^{1}\left( x^{2} -1\right) ^{l} dx = \ \left({-1}\right)^{l}\ \frac{2^{2l+1} \left( l!\right) ^{2} }{\left( 2l+1\right) !}$

Applying this result to equation (1):


 * $ \displaystyle K_{kl}^{m} =\delta _{kl}\; \frac{1}{2^{2l}\; \left({l!}\right)^{2} } \frac{\left({

2l}\right)!\;\left({l+m}\right)!}{\left({l-m}\right)!}\; \frac{2^{2l+1} \;\left({l!}\right)^{2} }{\left({ 2l+1}\right)!} = \delta _{kl}\,\frac{2}{2l+1} \frac{\left({ l+m}\right) !}{\left({ l-m}\right) !}$

Clearly, if we define new associated Legendre functions by a constant times the old ones,
 * $ \displaystyle

\bar{P}^m_l\left({x}\right) \equiv \sqrt{ \frac{2l+1}{2}\; \frac{\left({l-m}\right)!}{\left({l+m}\right)!} }\; P^m_l\left({x}\right) $ then the overlap integral becomes,
 * $ \displaystyle

K^m_{kl} = \int\limits_{-1}^{1} \bar{P}^m_k\left({x}\right) \bar{P}^m_l\left({x}\right) \;dx = \delta_{kl}, $ that is, the new functions are normalized to unity.

Comments
The orthogonality of the associated Legendre functions can be demonstrated in different ways.

The proof presented above assumes only that the reader is familiar with basic calculus and it is therefore accessible to the widest possible audience.

However, as mentioned, their orthogonality also follows from the fact that the associated Legendre equation belongs to a family known as the Sturm-Liouville equations.

It is possible to demonstrate their orthogonality using principles associated with operator calculus. Let us write
 * $ \displaystyle

P^m_{l}\left({x}\right) = w\left({x}\right)^{1/2} \; \nabla^m P_l\left({x}\right) $ where
 * $ \displaystyle

\nabla \equiv \frac{d}{dx} \quad \hbox{and}\quad w\left({x}\right) \equiv \left({1-x^2}\right)^m. $

Clearly, the case m = 0 is,
 * $ \displaystyle

P^{0}_l\left({x}\right) = \left({1-x^2}\right)^{0/2}\; \nabla^0 P_l\left({x}\right) = P_l\left({x}\right). $

The proof given above starts out by implicitly proving the anti-Hermiticity of &nabla;.

Indeed, noting that w(x) is a function with w(1) = w(&minus;1) = 0 for m &ne; 0, it follows from partial integration that
 * $ \displaystyle

\langle\; w\, g \;|\; \nabla f\; \rangle \equiv \int\limits_{-1}^1\; w\left({x}\right)\,g\left({x}\right)\;\left({\nabla f\left({x}\right)}\right) \; dx = \left. w\left({x}\right)\;g\left({x}\right)f\left({x}\right) \right|_{-1}^{1}  - \int\limits_{-1}^1 \left({\nabla w\left({x}\right)\,g\left({x}\right)}\right) \, f\left({x}\right)\; dx = - \langle\; \nabla \left({w g}\right) \;|\;  f\;\rangle $

Hence
 * $ \displaystyle

\nabla^\dagger = - \nabla \;\Longrightarrow\; \left(\nabla^\dagger\right)^{m} = \left({-1}\right)^{m} \;\nabla^{m}. $

To demonstrate orthogonality of the associated Legendre polynomials, we use a result from the theory of orthogonal polynomials.

Namely, a Legendre polynomial of order l is orthogonal to any polynomial &Pi;p of order p lower than l. In bra-ket notation
 * $ \displaystyle

\langle\; \Pi_p \;|\; P_l \;\rangle = 0\quad \hbox{if}\quad O\left[\Pi_p\right] \equiv p < l. $

Knowing this,
 * $ \displaystyle

\int\limits_{-1}^{1}P_{l}^{m} \left( x\right) P_{k}^{m} \left( x\right) \ dx \equiv \langle\; w\, \nabla^m P_k \;|\; \nabla^m P_l\;\rangle = \left({-1}\right)^m \langle\; \nabla^m \{w\, \nabla^m P_k\} \;|\;  P_l\;\rangle. $

The bra is a polynomial of order k, because
 * $ \displaystyle

O\left[\nabla^m P_k\right] = k-m, \quad O\left[w\left({x}\right)\right] = 2m \; \Longrightarrow\; O\left[w\left({x}\right)\, \nabla^m P_k\left({x}\right) \right] = k+m \; \Longrightarrow\; O\left[ \nabla^m  \{w\left({x}\right)\, \nabla^m P_k\left({x}\right)\}\right] = k, $

where it was used that m times differentiation of a polynomial lowers its order by m and that the order of a product of polynomials is the product of the orders.

Since we assumed that k &le; l,  the integral  is non-zero only if k = l. Hence it follows readily that the associated Legendre polynomials of equal superscripts and non-equal subscripts are orthogonal.

However, the hard work (given above) of computing the normalization for the case k = l remains to be done.

Theorem (orthogonality relation 2)

 * $ \displaystyle \int_{-1}^{1}\frac{P_{l}^{m}\left({x}\right) P_{l}^{n} \left({x}\right)}{\left({1-x^{2}}\right)} dx = \delta_{mn}\frac{\left({l+m}\right)!}{m\left({l-m}\right)!}

, m \neq 0 $.

where:


 * $ \displaystyle P_{l}^{m}\left({x}\right) = \frac{\left({-1}\right)^{m}}{\left({2^{l} l!}\right)} \left({1-x^{2}}\right)^{m/2} \frac{d^{l+m}}{dx^{l+m}} \left({x^{2}-1}\right)^{l}

, 0 \leqq m \leqq l$.

Proof
Let:


 * $T_{l}^{mn} = \int_{-1}^{1}\frac{P_{l}^{m}\left({x}\right) P_{l}^{n} \left({x}\right)]}{\left({1-x^{2}}\right)} dx

= \frac{\left({-1}\right)^{m+n}}{\left({2^{l} l!}\right)^2} \int_{-1}^{1} \{\left({1-x^{2}}\right)^{\frac{\left({m+n}\right)}{2}-1} \frac{d^{l+m}}{dx^{l+m}} \left({x^{2}-1}\right)^{l}\} \{\frac{d^{l+n}}{dx^{l+n}} \left({x^{2}-1}\right)^{l}\} dx$.

The functions \left({x$^{2}$-1}\right)$^{k}$ are even functions; so their j$^{th}$ order derivatives are even or odd functions according as j is even or odd.

Therefore, if m or n is even but the other is odd, then one of the two factors in curly braces in the preceding expression is an even function, and the other is an odd function.

This makes the entire integrand an odd function.

When integrated between the limits that are negatives of each other, it yields 0, as it should, since $\delta_{mn} = 0$.

So we need to consider further only even integrands, for which m and n are either both even or both odd. In this case all exponents in the integrand are non-negative integers (except when m = n = 0).

The integrand can be integrated by parts $ \ell+n$ times, the first factor in curly braces and its derivatives being identified as u and the second factor as v' in the formula:


 * $ \displaystyle \int_{-1}^{1} uv' dx = uv \Big|_{-1}^{1} - \int_{-1}^{1} vu' dx$.

Since m and n occur symmetrically, we can assume without loss of generality that $n \leqq m$.

For the first n-1 integrations by parts, the uv term vanishes at the limits because u includes at least one factor of \left({1-x$^{2}$}\right).

The same also is true for the n$^{th}$ integration, unless n = m, in which case the uv term is:


 * $ \displaystyle S_{l}^{m} = \frac{\left({-1}\right)^{m+1}}{\left({2^{l} l!}\right)^{2}} \frac{d^{m-1}}{dx^{m-1}}\{\left({1-x^{2}}\right)^{m-1} \frac{d^{l+m}}{dx^{l+m}}\left({x^{2}-1}\right)^{l}\} \{\frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l} \} |_{-1}^{1}$.

For the remaining $\ell$ integrations the uv term vanishes at the limits because v includes at least one factor \left({1-x$^{2}$}\right) (and perhaps u does also).

The result is:


 * $ \displaystyle T_{l}^{mn} = \delta_{mn}S_{l}^{m} + \frac{\left({-1}\right)^{l+m}}{\left({2^{l} l!}\right)^{2}} \int_{-1}^{1} \left({x^{2}-1}\right)^{l} \frac{d^{l+n}}{dx^{l+n}}\{\left({1-x^{2}}\right)^{\frac{\left({m+n}\right)}{2}-1} \frac{d^{l+m}}{dx^{l+m}}\left({x^{2}-1}\right)^{l}\} \ dx$.

The highest power of x in the binomial expansion of \left({x$^{2}$-1}\right)$^{l}$ is $2\ell$; after $\ell+m$ derivatives of it are taken, the highest power is $\ell-m$.

The highest power of x in the expansion of $\left({1-x^{2}}\right)^{\frac{\left({m+n}\right)}{2}-1}$ is m+n-2; so the highest power in the expression in curly braces is $\ell+n-2$.

After $\ell+n-2$ derivatives of it are taken, the highest power is 0; that is, the expression is a constant.

Taking the remaining 2 derivatives causes the integrand to vanish.

Therefore: $ \displaystyle T_{l}^{mn} = \delta_{mn}S_{l}^{m} = \delta_{mn}\frac{1}{\left({2^{l} l!}\right)^{2}} \frac{d^{m-1}}{dx^{m-1}}\{\left({x^{2}-1}\right)^{m-1} \frac{d^{l+m}}{dx^{l+m}} \left({x^{2}-1}\right)^{l}\} \{\frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l}\} |_{-1}^{1}$.

Since this function is odd, we need evaluate it only at its upper limit x = 1 and double the result.

An expression of the form $\left({x^{2}-1}\right)^{k} = \left({x-1}\right)^{k}\left({x+1}\right)^{k}$ can be differentiated using Leibnitz's rule.

Only one term in the sum is of interest here, namely the one in which \left({x-1}\right)$^{k}$ is differentiated exactly k times so that no factors of \left({x-1}\right) remain.

If it is differentiated fewer times, then it vanishes at x = 1. If it is differentiated more times, then it vanishes everywhere.

So, ignoring terms with factors of \left({x-1}\right), we have (from right to left in the preceding expression):


 * $ \displaystyle \frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l} = [\frac{d^{l}}{dx^{l}}\left({x-1}\right)^{l}]\left({x+1}\right)^{l} = l! \left({x+1}\right)^{l}$, which equals $ 2^{l} \ell!$ when x = 1:


 * $ \displaystyle \frac{d^{l+m}}{dx^{l+m}}\left({x^{2}-1}\right)^{l} = \frac{\left({l+m}\right)!}{l!m!} [\frac{d^{l}}{dx^{l}} \left({x-1}\right)^{l}] [\frac{d^{m}}{dx^{m}}\left({x+1}\right)^{l}]$


 * $ \displaystyle = \frac{\left({l+m}\right)!}{l!m!} [l!] [\frac{l!}{\left({l-m}\right)!} \left({x+1}\right)^{l-m}]$


 * $ \displaystyle = \left({l+m}\right)! \frac{l!}{m!\left({l-m}\right)!} \left({x+1}\right)^{l-m}$


 * $ \displaystyle \frac{d^{m-1}}{dx^{m-1}}\{\left({x^{2}-1}\right)^{m-1} \frac{d^{l+m}}{dx^{l+m}}\left({x^{2}-1}\right)^{l}\}$


 * $ \displaystyle = \left({l+m}\right)! \frac{l!}{m!\left({l-m}\right)!} \frac{d^{m-1}}{dx^{m-1}}\{\left({x-1}\right)^{m-1}\left({x+1}\right)^{l-1}\}$


 * $ \displaystyle = \left({l+m}\right)! \frac{l!}{m!\left({l-m}\right)!} \left({m-1}\right)! \left({x+1}\right)^{l-1}$


 * $ \displaystyle = \left({l+m}\right)! \frac{l!}{m\left({l-m}\right)!} \left({x+1}\right)^{l-1}$, which equals $2^{l-1}\left({l+m}\right)! \frac{l!}{m\left({l-m}\right)!} $ when x = 1.


 * $ \displaystyle T_{l}^{mn} = 2\delta_{mn}\frac{1}{\left({2^{l} l!}\right)^{2}} \{2^{l-1}\left({l+m}\right)! \frac{l!}{m\left({l-m}\right)!}\} \{2^{l} l!\} = \delta_{mn}\frac{\left({l+m}\right)!}{m\left({l-m}\right)!}$

which has been doubled to include the lower limit x = -1.

When n = m = 0:


 * $ \displaystyle T_{l}^{00} = \int_{-1}^{1} \frac{P_{l}^{0}\left({x}\right) P_{l}^{0} \left({x}\right)}{\left({1-x^{2}}\right)} \ dx$


 * $ \displaystyle = \frac{1}{\left({2^{l} l!}\right)^{2}} \int_{-1}^{1} \{\left({1-x^{2}}\right)^{-1} \frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l}\} \{\frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l}\} \ dx $


 * $ \displaystyle = \frac{1}{\left({2^{l} l!}\right)^{2}} \int_{-1}^{1} \frac{1}{2}[\left({x+1}\right)^{-1} - \left({x-1}\right)^{-1}] \{\frac{d^{l}}{dx^{l}}\left({x^{2}-1}\right)^{l}\}^{2} \ dx$.

When expanded in powers of (x+1) and (x-1) by using Leibnitz's rule, the expression in curly braces includes exactly one term, (x-1)$$^{l}$$, having no factor (x+1) and exactly one term, (x+1)$$^{l}$$, having no factor (x-1).

Therefore in a Laurent series expansion of the integrand about either x = 1 or x = -1 all terms except one have non-negative exponents, and their integral is finite.

The one remaining term in the integrand is a constant multiple of 1/\left({x+1}\right) or 1/\left({x-1}\right); so its integral logarithmically diverges at the limits, making T$_{l}^{00}$ infinite.