# How to compute complex line integral

I am wondering how to compute the line integral of

$$\mathrm{g}\left(z\right) = z\left(z^{\ast}\right)^{2} - \cos\left(z\right)\quad \mbox{over the curve}\quad \,\mathrm{y}\left(t\right) = \cos\left(2t\right ) + \sin\left(2t\right)\,\mathrm{i}\,,\quad 0 \leq t \leq {\pi \over 2}$$ where $z^{\ast}$ denotes the complex conjugate of $z$.

I am given that the answer is $\pi\mathrm{i} + \sin\left(1\right) - \sin\left(1\right)$

$$\mbox{What I tried, I tried noting that the integral can be }\quad \int_{0}^{\pi/2}\mathrm{g}\left(\mathrm{y}\left(t\right)\right)\,\mathrm{y}'\left(t\right)\,\mathrm{d}t$$ where $\,\mathrm{g}\left(\mathrm{y}\left(t\right)\right) = \mathrm{e}^{-2\mathrm{i}t} - \cos\left(\mathrm{e}^{2\mathrm{i}t}\right)\quad\mbox{and where}\quad \mathrm{y}'\left(t\right) = -2\sin\left(2t\right) + 2\cos\left(2t\right)\mathrm{i}$.

But then I get stuck on computing next, because I have so many terms multiplying , some containg i and some not, some containing exponentials, setc, so I dont know how to proceed, is there something I am missing? Or can anyone help show me how the answer was gotten? Is this on the right track?

Thanks

• 1. What curve is parametrised by $y$? 2. Note that $z(z^{\ast})^2 = \dfrac{\lvert z\rvert^4}{z}$. 3. Use the fundamental theorem of calculus for holomorphic functions. – Daniel Fischer Sep 27 '16 at 20:54
• The curve is the the top semi circle – Quality Sep 27 '16 at 20:57
• Good. Then how does point 2 help here? – Daniel Fischer Sep 27 '16 at 20:58
• Since we can write it not contain conjugate we have that it is holomorphic so we can use FTC, but Im having trouble understanding how to integrate that with the modulus – Quality Sep 27 '16 at 21:16
• What can you say about $\lvert z\rvert$ on the curve? – Daniel Fischer Sep 27 '16 at 21:18
