I try to use residue to calculate this integral $$\int_1^2 \frac{\sqrt {(x-1)(2-x)}} {x}\ dx$$
I let $$f(z)=\frac{\sqrt {(z-1)(2-z)}} {z}$$ and evaluate the integral $$\int_{(\Gamma)} f(z)dz$$ along the contour $\Gamma$ consisting of: $(1)$ circle$(1;\epsilon)$; $(2)$ circle$(2;\epsilon)$; $(3) $circle$(0;R)$; $(4)$ segments $[1+\epsilon,2-\epsilon]$ - upper and lower sides of branch cut $[1,2]$, and $(5)$ segments $[2+\epsilon,R]$
My problem is how to define the argument of $z-1$ and $2-z$ at upper and lower sides of branch cut
In a similar example: http://en.wikipedia.org/wiki/Methods_of_contour_integration#Example_.28VI.29_.E2.80.93_logarithms_and_the_residue_at_infinity
why $\arg(z)$ ranged from $-\pi$ to $\pi$ while $\arg(3-z)$ ranged from $0$ to $2\pi$
the function is analytic in the given domain so integral is zero