There's this problem in my homework, I did it, but somehow it just doesn't seem right. I wonder where the problem is... Please help me :)
Show that $\int_\gamma z^n dz=0$ for any closed smooth $\gamma$ and any integer $n\neq -1$. [If $n$ is negative, assume that $\gamma$ does not pass through the origin, since otherwise the integral is not defined.]
$\rightarrow$ Sol. Let $z=\gamma(t)$, $dz=\gamma'(t)dt$, $a\leq t\leq b$, $\gamma(a)=\gamma(b)$. Then: \begin{align*} &\int_\gamma z^n dz\\ =&\int_a^b\gamma(t)^n\gamma'(t)dt\\ =&\int_{\gamma(a)}^{\gamma(b)} z^n dz\\ =&\frac{z^{n+1}}{n+1}\bigg|_{\gamma(a)}^{\gamma(b)}\\ =&0\\ \end{align*}
What could the problem be? Thank you!