Now, start with a vector field; in some cases, we can work backwards and find that it is the gradient of some scalar function. This leads to the following definition: if a vector field can be written as the gradient of some potential function (i.e. if some function ϕ(x,y) exists such that F(x,y)=∇ϕ(x,y)) then this field is conservative.
Terminology
The term "conservative" is related to the concept of conservation of energy. Some forces are conservative (like gravity and magnetism), meaning that if you travel along a closed path through a gravitational or magnetic field, the initial and final energy will be equal (conserved). Some forces, however, are not conservative (the notable example being friction).
Testing to see if a field is conservative
In 2-D: a vector field F=⟨f(x,y),g(x,y)⟩ is conservative if and only if fy=gx.
In 3-D: a vector field
F=⟨f(x,y,z),g(x,y,z),h(x,y,z)⟩
is conservative if and only if fy=gx, fz=hx, and gz=hy.
Determine whether or not F=⟨−y,x+y⟩ is conservative.
Solution
Since f(x,y)=−y and g(x,y)=x+y, fy=−1 and gx=1. Then, since fy=gx, this field is not conservative.
Determine whether or not F=⟨2xy−z2,x2+2z,2y−2xz⟩ is conservative.
Solution
f(x,y,z)=2xy−z2g(x,y,z)=x2+2zh(x,y,z)=2y−2xz⟶fy=2x,fz=−2z⟶gx=2x,gz=2⟶hx=−2z,hy=2⟶fy=gx,fz=hx, and gz=hy⟹Conservative
Test whether F=⟨−y,−x⟩ is conservative or not.
Yes
Test whether F=⟨e−xcosy,e−xsiny⟩ is conservative or not.
Yes
Test whether F=⟨yz,xz,xy⟩ is conservative or not.
Yes
Finding the Potential Function
Suppose we start with a conservative vector field, and we want to know what its potential function is. We can work backward by integrating the component functions of the vector field.
For instance, suppose F=⟨4x+y,x+2y⟩. Then we want to find the potential function ϕ(x,y) where F=∇ϕ(x,y), meaning that ϕx=4x+y and ϕy=x+2y. Start by integrating ϕx with respect to x:
ϕ=∫4x+ydx=2x2+xy+c(y)
Notice that the constant of integration is a function of y (constant with respect to x).
Similarly, we can integrate ϕy with respect to y:
ϕ=∫x+2ydy=xy+y2+c(x)
Notice that the only term that didn't appear in the first integral is y2, so that must be c(y):
ϕ(x,y)=2x2+xy+y2.
Find the potential function ϕ(x,y,z) if F=⟨2xy−z2,x2+2z,2y−2xz⟩.
Solution
Start by integrating ϕx with respect to x, noting that the constant of integration will be a function of y and z:
ϕxϕ=2xy−z2=∫2xy−z2dx=x2y−z2x+c(y,z)
If we do the same with respect to y and z, we can find the missing terms:
ϕyϕϕzϕ=x2+2z=∫x2+2zdy=x2y+2yz+c(x,z)=2y−2xz=∫2y−2xzdz=2yz−xz2+c(x,y)
Combining all the terms that appear in the three integrals (include each term only once):
ϕ=x2y−xz2+2yz
Find the potential function ϕ(x,y,z) if F=⟨z,1,x⟩.
ϕ(x,y,z)=xz+y
Find the potential function ϕ(x,y,z) if F=⟨e−xcosy,e−xsiny⟩.
ϕ(x,y)=−e−xcosy
Find the potential function ϕ(x,y,z) if F=⟨yz,xz,xy⟩.
ϕ(x,y,z)=xyz
Fundamental Theorem for Line Integrals
For a line integral in a vector field, there is a fundamental theorem analogous to the well-known fundamental theorem of calculus:
A vector field F is conservative (i.e. F=∇ϕ(x,y)) if and only if
∫CF⋅Tds=∫CF⋅r′(t)dt=ϕ(B)−ϕ(A),
where A and B are the starting and ending points of the path C, respectively.
In physical terms, this means that the line integral is independent of path; this will come into play when we calculate work done by a conservative force (after the next example).
Suppose ϕ(x,y)=21(x2−y2), so F(x,y)=∇ϕ(x,y)=⟨x,−y⟩. If A=(1,0) and B=(0,1), consider the following two paths from A to B:
C1C2=r1(t)=⟨cost,sint⟩ for 0≤t≤2π (quarter circle)=r2(t)=⟨1−t,t⟩ for 0≤t≤1 (straight line)
Show that ∫C1F⋅r′(t)dt=∫C2F⋅r′(t)dt (the line integral is independent of path).
The work done on an object by moving through a conservative force field (like a magnetic field or a gravitational field) depends only on the starting and ending points, not on the path taken (based on the fundamental theorem). Basically, the positive and negative changes in energy cancel each other out along different paths (and if the object returns to its starting point, the net work will be zero, since the initial and final energies will be the same).
W=∫CF⋅r′(t)dt=ϕ(B)−ϕ(A)
Suppose ϕ(x,y)=3x+x2y−y3, so F(x,y)=∇ϕ(x,y)=⟨3+2xy,x2−3y2⟩. Find the work done on an object moving along the following path C:r⃗(t)=⟨etsint,etcost⟩ for 0≤t≤π.
Solution
First, is F conservative? If so, we can calculate the work done by subtracting the final potential from the initial potential.
fy=2x=gx⟹ conservative
Therefore,
WW=∫CF⋅r′(t)dt=ϕ(B)−ϕ(A)A: when t=0,r=⟨0,1⟩B: when t=π,r=⟨0,−eπ⟩=ϕ(0,−eπ)−ϕ(0,1)=−(−eπ)3+1=e3π+1
Find the work required to move an object along a line segment from (0,0) to (2,4) if F=⟨x,2⟩, measured in N.
W=10J
Find the work required to move an object from (1,2,1) to (2,4,6) if F=⟨x,y,z⟩, measured in N.