Understanding the conditions for path-independence
The function
is a favorite example function for driving home the conditions for path-independence.
Recall that one condition for path independence is the following. For a simply connected domain, a continuously differentiable vector field is path-independent if and only if its curl is zero.
For a vector field in two dimensions, , the analogue of curl is
It turns out that for our example , the curl is zero.
So, therefore, .
Can we conclude is path-independent? No, the test does not apply because is a two-dimensional vector field and its domains has a hole in it. is defined everywhere except at the point .
We still don’t know if is path-independent or path-dependent. Let’s try another test.
Since the point of showing this example is to drive home the conditions for path-independence, it is likely the example was chosen to illustrate some of the subtlety involved. If the example has zero curl and is path-independent, the example won’t be particularly instructive. Most likely, the example is path-dependent. So, let’s try a test for path-dependence.
If we can find a closed path along which the integral of is nonzero, then we can conclude is path-dependent. The fact that is not defined at the origin is key. So, let’s try a path that goes around the origin. The simplest such path is the unit circle.
A counterclockwise parametrization of the unit circle is , for . If is the counterclockwise unit circle, then we can calculate
Therefore,
Ah ha! Just as we suspected, the circulation around is not zero. is path-dependent.
The circulation can be clearly seen by plotting the vector field . It’s difficult to plot, because the vector field blows up at the origin. But this figure gives you the idea.

What about the circulation around a closed path
that doesn’t encircle the origin? If doesn’t encircle the origin, then is defined everywhere inside . The part of the domain of inside has no holes in it. Since is defined everywhere in the region inside , we can use Green’s theorem to conlude that
Indeed, the circulation of around is zero. In fact, the circulation around any closed curve that does not contain the origin is zero.