I got myself confused over the following problem: Compute $$\int_\gamma\frac{1}{\sqrt{z}}dz$$ where $\gamma$ is the lower unit circle arc from $-1$ to $1$.
Isn't it correct that I can either choose $$\gamma:[-\pi,0]\to\mathbb C,t\mapsto e^{it}$$ or $$\gamma:[\pi,2\pi]\to\mathbb C, t\mapsto e^{it}$$
It probably must be wrong because in the first case we have $$\int_{-\pi}^0ie^{it/2}dt=2(1+i)$$ where in the second case we have $$\int_\pi^{2\pi}ie^{it/2}dt=-2(1+i)$$ but for whatever reason I can't figure out what's wrong.
$\sqrt z$ is two valued, one being the negative of the other. So the answer depends on how you define $\sqrt z$. With appropriate choice of this function both answers can be considered correct!.