I want to calcalate $a$ from $$\frac{d a}{d u} = \frac{\sqrt{2}}{4\pi} \oint_\alpha \frac{dx}{\sqrt{(x-1)(x+1)(x-u)}}$$ where $\alpha$ is the contour only around cut between -1 and 1. First I want to integrate $u$ and I find some trouble.
Directly integrating $u$ gives $$ a= \frac{-2\sqrt{2}}{4\pi} \oint_\alpha \frac{dx \sqrt{(x-u)}}{\sqrt{(x-1)(x+1)}}$$
If we first change the sign of $u$ $$ \frac{d a}{d u} = \frac{\sqrt{2}}{4\pi} \oint_\alpha \frac{dx}{\sqrt{(x-1)(x+1)(x-u)}} \\ =\frac{\sqrt{2}}{4\pi} \oint_\alpha \frac{dx}{\sqrt{(-x+1)(x+1)(-x+u)}}$$ and then integrating $u$ gives $$ a= \frac{2\sqrt{2}}{4\pi} \oint_\alpha \frac{dx \sqrt{(-x+u)}}{\sqrt{(-x+1)(x+1)}}$$
The answers seem different.
What is wrong with the above calculation?
Thanks in advance.