I was given the following problem.
For $n\ge2$ natural and $z\in\mathbf{C}\setminus[-1,1]$, prove the Legendre identity $$\int_{-1}^{+1}\frac{(1-t^2)^{(n-3)/2}}{(z-t)^n}dt = \frac{\sqrt{\pi}\Gamma(\frac{n-1}{2})}{\Gamma(\frac{n}{2})}\frac{z}{(z^2-1)^{(n+1)/2}}.$$
I have come to multiple problems while tackling it. Also, I found nothing on the literature about it, and I am not even sure it is really related to Legendre in any matter.
My attempts. Residue integration does not seem to be the way to go, since the integration is not any contour at all, and completing it would seem to lead to further computational problems.
As far as induction on $n$ and integration by parts go, I have tried for $n$ odd. If we call $n=2k+1$ and define the functions $a_\alpha, b_\beta, c_\gamma$ (with $A_\alpha$ the primitive of $a_\alpha$) by the following:
- $a_\alpha(t) = \frac{1}{(z-t)^\alpha} \Rightarrow A_\alpha(t) = \frac{1}{\alpha-1}\frac{1}{(z-t)^{\alpha - 1}},$
- $b_\beta(t) = (1-t^2)^\beta \Rightarrow b'_\beta(t) = -2\beta \,t\, b_{\beta-1}(t) = -2\beta \, c_{\beta-1}(t),$
- $c_\gamma(t) = t(1-t^2)^\gamma \Rightarrow c'_\gamma(t) = (1+2\gamma)b_\gamma(t) - 2\gamma b_{\gamma-1}(t).$
Then we must find $f(2k+1) = I(a_{2k+1} b_{k-1})$, where $I$ stands for the integration in $[-1,1]$. We would like to prove that $f(2k+3) = \frac{2k}{2k+1}\frac{f(2k+1)}{z^2-1}$, but parting from the left hand side and using integration by parts, one arrive at the formula
$ I(a_{2k+3}b_{k}) = \frac{1}{2k+2}a_{2k+2}b_k|_{-1}^{+1} + \frac{2k }{(2k+2)(2k+1)}a_{2k+1}c_{k-1}|_{-1}^{+1} -\frac{2k(2k-1)}{(2k+2)(2k+1)}I(a_{2k+1}b_{k-1}) + \frac{2k(2k-2)}{(2k+2)(2k+1)}I(a_{2k+1}b_{k-2}). $
That is, we have the sum of some boundary terms that vanish if $k$ is big enough ($k>1, n>5$) a $f(n)=I(a_{2k+1}b_{k-1})$-term and a problematic $I(a_{2k-1}b_{k-2})$ term, which does not let me find any recurrence. Any further calculation sums up to a myriad of boundary terms and integrals, which seems not to lead anywhere good.
I have calculated the integrals for $n=3,5,7,9$ and they all agree to the given formula, with boundary terms and integrals magically conspiring to vanish the right polynomial terms. I did not even touch the case where $n$ is even.
Other guesses. Facts.
The integral can be expressed also as $ f(n) = \int_0^{\pi} \frac{(\sin\theta)^{(n-2)/2}}{(z-\cos\theta)^n} d\theta$. It also does bear some resemblance with Schläfli's integral formula for Legendre polynomials, given by $$ P_n(z) = \frac{1}{2^n 2\pi i}\int_C \frac{(t^2-1)^n}{(t-z)^{n+1}}dt $$ where $C$ is a regular contour surrounding $z$ counterclockwise. But I don't think the same method applies here.
Thank you.