Integration of 1/(square root of a third order polynomial) on the complex plane I have to compute the integral
$$ 
\oint_{a,b} \frac{d \lambda}{\sqrt{(\lambda-\lambda_1)(\lambda-\lambda_2)(\lambda-\lambda_3)}},$$
Here is the picture of the integration contours and cuts:

The "saw-like" lines are the cuts, while a and b are the integration contours. I have to compute the integral on this 2 contours, and I feel completely lost, especially for the a cycle where the contour does not seem to cross the cut. 
With my basic knowledges I know how to compute some easy integrals like a square root of z on the unit circle, but I wonder if I can do the same kind of computation here. Any suggestion?
 A: 
For the path named $(a)$ in your drawing, preserving the value of the integral you may shift the contour. You could e.g. shrink it towards the cut between $\lambda_1$ and $\lambda_2$ or you may blow it up to the one shown in my figure. I'll discuss the latter option. There is a small half-circle around $\lambda_3$ of radius $r>0$, a large (almost complete) circle of radius $R$ and two segments along the cut from $\lambda_3$ to $-\infty$ . Letting $r\rightarrow 0$ and $R\rightarrow +\infty$ the circular parts go to zero (not too difficult to see) and the only remaining part is along the cut. The integral above the cut then gives the same contribution as the lower (the directions are opposite but you get a minus sign from the determination of the square root which changes sign when going through the cut). The path, say below the cut, is given by $z=\lambda_3-t$ with $t$ going from $0$ to $+\infty$. Set $\lambda_{1,2}-\lambda_3=a\pm i b$.  The integral may then be expressed as follows:
$$ 2i \int_0^{+\infty} \frac{dt}{\sqrt{t\ ((t-a)^2+b^2)}} $$
The $i$ outside comes from $\sqrt{z-\lambda_3}=\sqrt{-t}=-i \sqrt{t}$, $t>0$, but the sign is arbitrary, or rather, should be determined by the value of the square root at some fixed chosen point in the complex plane. 
 To my knowledge there is no closed form solution other than this 'abstract' elliptic integral. 
Later edit:
Regarding the loop $(b)$: You may construct a Riemann surface by taking two copies of your cut plane and glue them together across the cuts. The integrand becomes globally holomorphic (or extends to such) on the resulting Riemann surface (topologically a torus).
Loop $(b)$ is then glued together from one  path on each surface. In order to calculate the integral I believe that it is better to make a cut from $\lambda_2$ to $\lambda_3$ and from $\lambda_1$ to $\infty$. You may then play the same game as in the previous case. The function to integrate will, however, this time not be real. 
The two paths (a) and (b) corresponds to  two generators for the torus and yields two ${\Bbb R}$ independent complex numbers $z_a$ and $z_b$.
Any other loop will give rise to an integer combination of the two values, i.e. a lattice $\Lambda = {\Bbb Z} z_a + {\Bbb Z} z_b \subset {\Bbb C}$. The quotient ${\Bbb C}/\Lambda$ is then the above mentioned torus.
