I'm trying to solve the following question:
Let $\gamma\subset\mathbb{C}$ be the boundary of the upper (unit) semi-disk (closed path). Calculate: $\int_{\gamma}\left|z\right|\overline{z}dz$.
My approach is to show that $f(z)=\left|z\right|\overline{z}\ $ is holomorphic (maybe using Cauchy-Riemann equation?). Then, by Cauchy's theorem, and conclude that the integral is equal to zero.
I'd love to know if my approach is right.
Thank you.
$f$ is not holomorphic. The integral over the line segment from $-1$ to $1$ is $0$ because $x|x|$ is an odd function. The integral over the semi-cirlular part becomes $\int_0^{\pi} e^{-i\theta} ie^{i\theta}d\theta=\pi i$.