I have the following definite integral to solve
$$\int_{a_1}^{a_2} dx \sqrt{(a_1-x)(x-a_2)(x-c)(x-\bar{c})},$$
where $a_1$ is real and negative, $a_2$ is real and positive and $c$ is a complex number and $\bar{c}$ its complex conjugate.
I am sure that the result involves the eliptic functions and since the boundaries are fixed it can probably be reduced to only having complete eliptic integrals.
I tried to use Formulas like 259.03 together with 341.05 and (for $R_1$ needed) 361.54. in the book https://link.springer.com/book/10.1007%2F978-3-642-65138-0 by Byrd and Freeman. In order to use this formula I rewrote the integral as
$$\int_{a_1}^{a_2} dx \frac{P(x)}{\sqrt{P(x)}}, \quad\text{where}\, P(x) = (a_1-x)(x-a_2)(x-c)(x-\bar{c}).$$
However, I was unable to find a pleasing form and I was wondering whether there is a simpler approach than starting with the quite general formula in 259.03. For example I found Integrals of the square root of a cubic polynomial which unfortunately only covers the cubic case.
Any ideas are highly appreciated!