I'm trying to understand doing complex integrals on the unit circle and I think I'm confusing myself. Here is what I'm doing:
Let $f(z) = 1$ be the constant function and I want to evaluate its integral on the unit circle.
Method 1: its just constant and the area under a constant is just the length of path which, in this case, is $2\pi$
Method 2: Let $z(t)=e^{it}$ for $t\in[0,2\pi)$ and so $z'(t)=ie^{it}$. So we can do
$\int_0^{2\pi}{f(z(t)) \cdot z'(t)\, dt} = \int_0^{2\pi}{1 \cdot ie^{it}\,dt} = e^{it}\Bigr|_0^{2\pi}=1-1=0$
These can't both be right. I know, with angles, we can say $2\pi=0$ but the area under a curve can't be both $2\pi$ and $0$. The answer in method 1 seems right to me if I imagine it geometrically but I can't figure what I'm doing wrong in method 2.
That integral is equal to $0$. The idea “the integral is the area below the graph” is an intuitive approach for the value of integrals of functions from an interval $[a,b]$ into $[0,\infty)$.