Let $C$ be the interval from point $(x_1,x_2)$ to point $(x_2,y_2)$
Show that $\displaystyle \oint _C xdy-ydx=x_1y_2-x_2y_1$
My attempt:
Acording Green's theoram $\displaystyle \oint _C xdy-ydx=\displaystyle \iint \bigg(\frac{\partial x}{\partial y}-\frac{-\partial y}{\partial x} \bigg)dxdy =\color{red}0$
Why I got zero? how can I solve this? any hints?
Hint: Use this parameterization of the line segment from point $(x_1,y_1)$ to point $(x_2,y_2)$:
$$x=x_1+(x_2-x_1)t$$ $$y=y_1+(y_2-y_1)t$$ $$0\le t\le 1$$
Then $dx=(x_2-x_1)dt,\ dy=(y_2-y_1)dt$, and calculating the integral is straightforward.