Let be the circle of radius centered at the origin, i.e., and assume is oriented in the counterclockwise direction.

Further let be the “northern semicircle” meaning oriented compatibly with .

Compute
Let be the disk of radius centered at the origin, i.e.,
Then apply Green’s theorem to deduce which is times the area of .
The area of is .
So the integral equals .
Compute .
Note that the field is .
In other words, if is the function , then .
So by the fundamental theorem of line integrals, this integral vanishes.
Note that the field is .
In other words, if is the function , then .
So by the fundamental theorem of line integrals, this integral equals the difference of the potential function at the endpoints.
The endpoints consist of the points and .
So the integral equals .
Since doesn’t bound a region, we can’t apply Green’s theorem directly.
One method to set which, for , traces out . Then the given integral can be appropriately transformed, e.g., and so forth.
There are other methods, though: consider the curve which is the straight line segment from to . Then bounds the upper half-disk, with area .
Note that .
Consequently the given integral equals the circulation around , which, bounding the upper half-disk, is, by Green’s theorem, equal to .