Proof (Green's theorem)

Let $\v F=(Q, -P)$. Then by Gauss' theorem, $$ \int_A\pdfd Qx-\pdfd Px \,dA = \int_A \nabla\cdot\v F\,dA = \oint_C \v F\cdot\v n\, ds. $$ Parametrise $C$ by $\v x(s) = \big(x(s), y(s)\big)$. Then the tangent vector $\v t=\big(x'(s),y'(s)\big)$, so using the fact that $C$ goes anti-clockwise, to get an outward normal vector for Gauss' theorem, we have $$ \v n = \big(y'(s), -x'(s)\big). $$ Substituting, $$ \int \pdfd Qx - \pdfd Px \, dA = \oint_C \Big(Q\dfd ys + P\dfd xs\Big)\,ds = \oint_C P\,dx + Q\,dy. $$