A vector field F is conservative on a domain D if there is a scalar-valued function f such that ∇f=F on all of D.
If F is conservative with potential function f, you can calculate line integrals really quickly. If C is a curve starting at a point Q and ending at P, then
∫CF⋅dr=f(P)−f(Q).
In particular, if C is a closed curve (i.e., a curve that starts and ends at the same point), then ∫CF⋅dr=0.
Example 1.
Calculate ∫C⟨x,y⟩⋅dr, where C is the curve below:
Solution.
When you see a very complicated curve like the one above, you almost never want to try to parametrize and integrate over each segment. Instead, you'll hope that there's a potential function and integrate using that instead. You can eyeball a potential function for ⟨x,y⟩ here:
f(x,y)=2x2+y2.
So, ⟨x,y⟩ is conservative, which means we can calculate the line integral using the endpoints:
∫C⟨x,y⟩⋅dr=f(1,0)−f(0,0)=21.
The domain is very important when determining whether a vector field is conservative or not.
Example 2.
Recall the vortex field:
F(x,y)=∇arctan(xy)=x2+y2⟨−y,x⟩
Be careful, though: arctan(xy) isn't even continuous on all of R2∖{(0,0)}. arctan(xy) is the angle of (x,y) measured from the positive real axis, so
y→0+limarctan(1y)=0buty→0−limarctan(1y)=2π.
F is not conservative on R2∖{(0,0)}, since if C is the unit circle oriented counter-clockwise, then parametrizing it via r(θ)=⟨cosθ,sinθ⟩,
(Remember that if you integrate a conservative vector field over a closed curve, you should get 0.)
Because arctan(xy) is the angle, though, you can calculate line integrals of the vortex field just by counting the number of times the curve loops around the origin: