Let $x>1$ and $n\in N$. Show that the function:
$$P_{n}(x)=\dfrac{1}{\pi}\int_{0}^{\pi}(x+\sqrt{x^2-1}\cos{t})^ndt$$ is a polynomial of degree $n$. Also show that it is equal to $$P_{n}(x)=\dfrac{1}{\pi}\int_{0}^{\pi}\dfrac{1}{(x-\sqrt{x^2-1}\cos{t})^{n+1}}dt$$
Maybe this is related to Legendre Polynomials. But I can't prove it. Any help is appreciated