I'm doing some exercises on complex integration, and stumbled over this:
$$\int_\gamma \bar{z} dz,$$
Where $\gamma$ is any closed $C^1$ curve which is the boundary of a bounded, connected, open $U \subset \mathbb{C}$, and $\bar{z}$ denotes the complex conjugate of $z$. One should express the result in terms of the quantity
$$\int_\gamma x dy ,$$
Which coincides with the area enclosed by $\gamma$.
I had no idea how to do this, so I checked the solution. It sais:
$$\int_\gamma \bar{z} dz = \int_\gamma z + \bar{z} dz = 2 \int_\gamma x dz.$$
This part is clear (the identity is holomorphic). Then they assume that $t \mapsto x(t) + iy(t), \quad t \in [0,1]$ is a parametrization of $\gamma$. They compute
$$\int x dx = \int_0^1 x(t)\dot{x}(t) dt = \frac{1}{2}[x(1)^2 - x(0)^2] = 0,$$
since $\gamma$ is closed. I do get that what's stated is true, however I don't see the motivation to compute this part. Then comes the conclusion
$$\int_\gamma \bar{z} dz = 2i\int_\gamma x dy.$$
I really don't see what's done here in the last part, no idea how that follows.
Any help?