I was doing a physics problem and in order to finish it, I need to prove that:
$$\int_{x1}^{x2}\frac{dx}{{((x1 - x)(x - x2)(x - x3)(x - x4))}^{1/2}} = \int_{x3}^{x4}\frac{dx}{{((x1 - x)(x - x2)(x - x3)(x - x4))}^{1/2}}$$
Where all the roots of the polynomial are real and $x1 < x2 < x3 < x4.$
I don't know the range of validity of my claim, however I do have tested this using mathematica and it was true for all the cases. Also, I know that I can change the integrand using some transformations to get an elliptic integral of first kind. However, I think it will be a lot of work and will not pay the price (maybe I'm wrong), so I'm looking to a more elegant and direct proof.
EVEN MORE: given $0,1 < C < D$ we get an interchange from the Moebius transformation $$ m(z) = \frac{-Cz \; + \; CD}{(D-C-1) \; z \; + \; C} $$ Here $$ m(0) = D, m(D) = 0, m(1) = C, m(C) = 1. $$ Note that if $D-C = 1,$ we have a linear map and Jack's observation applies directly, the two intervals would then be the same length.
Alright, that actually worked, proof by Moebius transformation. Take $$ W = D - C - 1, $$ which could be positive, negative, or zero, we don't know. With $$ x = \frac{-Cz \; + \; CD}{W \; z \; + \; C}, $$ $$ dx = \frac{-C (C + DW)}{ (Wz+C)^2} dz. $$ But $ C + DW = (D-C)(D-1),$ so $$ dx = \frac{-C (D-C)(D-1)}{ (Wz+C)^2} dz. $$ Also use $W+C = D-1, W+1=D-C.$
We need four items, $$ (Wz+C) x = C(D-z), $$ $$ (Wz+C) (1- x) = (W+C) z + (C-CD) = (D-1)z + C (1 -D) = (D-1)(z-C), $$ $$ (Wz+C)(C-x) = C(D-C)(z-1), $$ $$ (Wz+C)(D-x) = (D-C)(D-1)z. $$
Together $$\color{magenta}{ -C (D-C)(D-1) \int_D^C \frac{(Wz+C)^2}{\sqrt{C^2 (D-1)^2(D-C)^2 z (z-1)(z-C)(D-z)}} \frac{dz}{(Wz+C)^2}} $$
$$\color{magenta}{ C (D-C)(D-1) \int_C^D \frac{dz}{ C (D-C)(D-1)\sqrt{ z (z-1)(z-C)(D-z)}} } $$
$$\color{magenta}{ \int_C^D \frac{dz}{\sqrt{ z (z-1)(z-C)(D-z)}} } $$
EXTRA comment: from @Jack's observation, it works for $0,1,C, C+1.$ A fair amount of work to get right, you can then find the derivative by $D$ of the two integrals with roots $0,1,C,D.$ The first one is not so hard, differentiate under the integral sign, the second has the extra problem that $D$ is both a limit and in the integrand, might be better to transform first so that it is no longer one of the integration endpoints; need to think about the extent to which that can be done.
long for a comment; I think you are onto something. $$ \int_0^1 \frac{1}{\sqrt{x - x^2}} = \pi, $$ antiderivative is $ \; \; \; - \arcsin (1-2x), \; \; $ so $$ \int_A^B \frac{1}{\sqrt{(x-A)(B-x)}} = \pi. $$
I found $-1,0 < C< D$ a little more convenient, pull out $(C-x)(D-x)$ and bound without integrating those,... $$ \frac{\pi}{\sqrt{(C+1)(D+1)}} \leq \int_{-1}^0 \frac{dx}{\sqrt{-(x+1)x(C-x)(D-x)}} \leq \frac{\pi}{\sqrt{CD}} $$ while $$ \frac{\pi}{\sqrt{(C+1)(D+1)}} \leq \int_C^D \frac{dx}{\sqrt{(x+1)x(x-C)(D-x)}} \leq \frac{\pi}{\sqrt{CD}} $$
I do not yet have the explicit transformation, if indeed your two integrals are always equal, but I suspect they are. This is too much of a coincidence otherwise. Here my idea is $C,D$ large, maybe close together, maybe far apart, maybe very very far apart. If you are worried about $C,D$ very small, then just take a linear change so that those are $-1,0$ instead