For $-1 \leq \theta \leq 1$ and $\nu > -1/2$, prove that the function $$ f(x; \theta,\nu) = \frac{(1-x^2)^{\nu -1/2}} {(1-2\theta x +\theta^2)^\nu B(\nu+1/2,1/2)} $$ is a valid probability density function for $-1 \leq x \leq 1$. Here $B(.,.)$ denotes the Beta function.
My attempt: I substituted $x=\sin(\alpha)$ in the integral and it reduced to $$ I= \frac{1}{B(\nu+1/2,1/2)}\int_{-\pi/2}^{\pi/2} \frac{\cos(\alpha)^{2 \nu}}{(1-2 \theta \sin(\alpha)+\theta^2)^\nu} d \alpha. $$ But how do I simplify the above integral to a Beta function? Notice that the integral turns out to be independent of $\theta$.

Getting rid of everything unnecessary, we need to evaluate the following integral:
$$I( \nu, \theta) = \int_{-1}^1 \frac{(1-x^2)^{\nu -1/2}} {(1-2\theta x +\theta^2)^\nu }dx$$
We use the substitution:
$$x=-\cos \alpha$$
$$I( \nu, \theta) = \int_{0}^\pi \frac{\sin^{2\nu} \alpha} {(1+2\theta \cos \alpha +\theta^2)^\nu }d \alpha$$
There is a theorem, saying:
See for example Gradstein-Ryzhik 3.036. (the old edition I have has it wrong though, the values of $\theta$ are confused).
You have the first case. Thus:
$$I( \nu, \theta) = \int_{0}^\pi \sin^{2\nu} \alpha ~d \alpha=\frac{\sqrt{\pi} ~\Gamma\left(\nu+\frac{1}{2} \right)}{\Gamma\left(\nu+1 \right)}=B \left( \frac{1}{2},\nu+\frac{1}{2} \right)$$
Use the definition of the Beta function and the properties of the Gamma function to prove this.
See here for example https://en.wikipedia.org/wiki/Beta_function