How to calculate the integral $$\int \frac{dx}{\sqrt{(x^2-B_1^2)(x^2-B_2^2)}}, $$ where $B_1,B_2 \in \mathbb{R}$ are constants.
I think it involves elliptical integrals and more so, that the integral is the form $sn(x)$. I consulted the book Hand Book of Elliptical Integrals for Engineers and Scientis (Byrd and Friedman) but found nothing to help me.
Let $B_1^2 = a$ and $B_2^2 = b$. Then tables (or software) give:
$$\frac{\sqrt{1-\frac{x^2}{a}} \sqrt{1-\frac{x^2}{b}} F\left(\sin ^{-1}\left(\sqrt{\frac{1}{a}} x\right)|\frac{a}{b}\right)}{\sqrt{\frac{1}{a}} \sqrt{\left(a-x^2\right) \left(b-x^2\right)}}$$
Where $F$ denotes an elliptic integral.