The task: $$ \text{Calculate } \int_{C}{}f(z)dz\text{, where } f(z)=\frac{\bar{z}}{z+i}\text{, and } C \text{ is a circle } |z+i|=3\text{.} $$ Finding the circle's center and radius: $$ |z+i|=|x+yi+i|=|x+(y+1)i|=3 \\ x^2+(y+1)^2=3^2 $$ Parametrizing the circle: $$ z(t)=i+3e^{-2\pi i t} $$
Now I need to calculate this integral: $$ \int_{0}^{1}{f(z(t))z'(t)dt}= 2\pi\int_{0}^{1}{ \frac{1-3ie^{-2\pi i t}}{e^{4 \pi i t}}dt } $$
Unfortunately I calculated this integral, and it's equal to $0$. Is this correct? I don't think so. Where did I go wrong? Maybe I made a mistake when calculating the integral - what would be the best way to calculate it?
Observe that $$ \frac{\overline{z}}{z+i} =\frac{\overline{z}\cdot \overline{(z+i)}}{(z+i)\cdot \overline{(z+i)}} =\frac{\overline{z}\cdot \overline{(z+i)}}{|z+i|^2} =\frac{1}{9}\cdot \overline{z}\cdot \overline{(z+i)} $$
Your parametrization of the path should be $$ z(t)=\color{red}{-i}+3e^{2\pi i t},\quad [0,1] $$
If your integral is $I$, then \begin{align} 9I &=\int_C \overline{z}\cdot \overline{(z+i)}\,dz\\ &=\int_0^1 (i+3e^{-2\pi i t})\cdot 3e^{-2\pi i t}\cdot 6\pi i\cdot e^{2\pi it} \,dt\\ &=\int_0^1 (i+3e^{-2\pi i t})\cdot 18\pi i\,dt=-18\pi \end{align}
and thus $I=-2\pi$.