# 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

$\newcommand{\braces}{\left\lbrace\,{#1}\,\right\rbrace} \newcommand{\bracks}{\left\lbrack\,{#1}\,\right\rbrack} \newcommand{\dd}{\mathrm{d}} \newcommand{\ds}{\displaystyle{#1}} \newcommand{\expo}{\,\mathrm{e}^{#1}\,} \newcommand{\ic}{\mathrm{i}} \newcommand{\mc}{\mathcal{#1}} \newcommand{\mrm}{\mathrm{#1}} \newcommand{\pars}{\left(\,{#1}\,\right)} \newcommand{\partiald}[]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\root}[]{\,\sqrt[#1]{\,{#2}\,}\,} \newcommand{\totald}[]{\frac{\mathrm{d}^{#1} #2}{\mathrm{d} #3^{#1}}} \newcommand{\verts}{\left\vert\,{#1}\,\right\vert}$ \begin{align} z & = \expo{2\ic t}\implies \left\{\begin{array}{rcl} \ds{\mrm{g}\pars{z}} & \ds{=} & \ds{\expo{-2\ic t} - \cos\pars{\expo{2\ic t}}} \\ \ds{\totald{z}{t}} & \ds{=} & \ds{\expo{2\ic t}\pars{2\ic}} \end{array}\right. \end{align} The integral becomes: \begin{align} &\int_{0}^{\pi/2}\bracks{\expo{-2\ic t} - \cos\pars{\expo{2\ic t}}} \bracks{\expo{2\ic t}\pars{2\ic}}\,\dd t = 2\ic\int_{0}^{\pi/2}\,\dd t - \int_{0}^{\pi/2}\cos\pars{\expo{2\ic t}} \bracks{\expo{2\ic t}\pars{2\ic}}\,\dd t \\[5mm] & = 2\ic\,{\pi \over 2} - \bracks{\sin\pars{\expo{2\ic t}}}_{\ 0}^{\ \pi/2} = \pi\ic - \sin\pars{-1} + \sin\pars{1} = \bbox[10px,border:1px groove navy]{\ds{2\sin\pars{1} + \pi\ic}} \end{align}