The integral representation of Legendre functions is $P_ν(z)=\frac{2^{-\nu}}{2\pi i} \oint_Γ\frac{(w^2−1)^\nu}{(w−z)^{\nu+1}} dw$. I'm trying to show that this satisfies Legendre's equation.
When I take the derivatives and plug it into the equation, I just get a nasty expression with nasty integrals times functions of z. I don't see how I can combine any of the terms, since they have different powers of z, and all the integrals look different. $P'_ν(z)=\frac{2^{-\nu}}{2\pi i} \oint_Γ\frac{(w^2−1)^\nu(\nu+1)}{(w−z)^{\nu+2}} dw$ and $P'_ν(z)=\frac{2^{-\nu}}{2\pi i} \oint_Γ\frac{(w^2−1)^\nu(\nu+1)(\nu+2)}{(w−z)^{\nu+3}} dw$ So the expression is $$(1−z^2)\oint_Γ\frac{(w^2−1)^\nu(\nu+2)}{(w−z)^{\nu+3}} dw−2z \oint_Γ\frac{(w^2−1)^\nu}{(w−z)^{\nu+2}} dw+ν\oint_Γ\frac{(w^2−1)^\nu}{(w−z)^{\nu+1}} dw $$ Where I factored out a $\frac{2^{-\nu}(\nu+1)}{2\pi i}$ from each of the terms. Which I need to somehow show is equal to zero. I tried to collect all the integrals together, hoping they would combine together to give me a nice term. At first I was hoping it would give me $\frac{d}{dw}$ of the integrand, so I could just use Cauchy's theorem to show that the integral is zero. But the terms didn't seam to collect that way.
Oh and this integrand has branch points $\pm 1,z$, we take a cut between $-1$ and $-\infty$ along the negative real axis, and some cut between 1 and $z$. The contour $\Gamma$ is taken around a curve positively enclosing 1,$z$ (intersecting the real axis to the right of $-1$ as it must).
$\Gamma_1$." />
I figured it out, if you put in $(1-z^2) = -(w^2-1) + 2w(w-z) - (w-z)^2$ and $z = w -(w-z)$ and do the algebra, it comes to $ \frac{d}{dw} \Big[ \frac{(w^2-1)^{\nu+1}}{(w-z)^{\nu+2}}\Big]$ so you can evaluate the integral, by evaluating $\frac{(w^2-1)^{\nu+1}}{(w-z)^{\nu+2}}$ around $\Gamma$ but it is a closed curve so it must vanish. I think that proves it, any thoughts?