Note that

Now we just need to compute

for part 2 if the curve does not contain the origin Greens theorem (Stokes theorem)applies and

so the integral is zero if it does consider the new domain with a circle of radius a cut out around the origin the greens theorem applies on the domain with the hole and

By Greens theorem again we get

The last step comes from part 1 as the integral was independent of a.