Vector Fields
( \newcommand{\kernel}{\mathrm{null}\,}\)
We have now seen many types of functions. They are characterized by the domain and the range. Below is a list of some of the functions that we have encountered so far.
Domain | Range | Name |
---|---|---|
R | R | One variable Function |
R | R2 | Parametric Equations |
R2 | R | Function of 2 Variables |
R | Vectors | Vector Valued Function |
By letting the domain be Rn and the range be n-dimensional vectors, we get a new type of functions called a vector field.
A vector field is be a function where the domain is Rn and the range is n-dimensional vectors.
An important vector field that we have already encountered is the gradient vector field. Let f(x,y) be a differentiable function. Then the function that takes a point x0,y0 to ∇f(x0,y0) is a vector field since the gradient of a function at a point is a vector. For example, if
f(x,y)=0.1xy−0.2y
then
∇f(x,y)=0.1yˆi+(0.1x−0.2)ˆj
The sketch of the gradient is pictured below.
The best way to sketch a vector field is to use the help of a computer, however it is important to understand how they are sketched. For this example, we pick a point, say (1,2) and plug it into the vector field
∇f(1,2)=0.2ˆi−0.2ˆj
Next, sketch the vector that begins at (1,2) and ends at (1+.2,.2−.1). Notice that when we sketch vector fields, we use the definition that involves two points rather than the definition that assumes all vectors emanate from the origin.
In physics, many vector fields satisfy the inverse square law. A vector field F satisfying the inverse square law has the property that if
r=xˆi+yˆj+zˆk
and u is the unit vector in the direction of r (u=r||r||), then
F(x,y,z)=k||r||2u
Examples of force fields that satisfy the inverse square law are gravitational force fields and electric force fields. Below is a plot of a vector field that satisfies the inverse square law.
Notice that as the distance from the origin gets small, the vector become small quickly. For gravity, this tells us that as we fly away from the earth, we experience less gravity, until it seems like weightlessness.
Other examples of vector fields that occur in nature include velocity fields. For example, the currents in the ocean ensure movement of the water. The if we sketch the velocity vector of at each point of the ocean, we get a vector field. A similar velocity field is produced from wind in the atmosphere.
Conservative Vector Fields
Our first and most important example was the gradient vector field. Can we go backwards? That is, given a vector field F, can we construct a function f with the property that
F=∇f
The answer to this question is only for some very special vector fields, which we call conservative.
Let F be a vector field. Then F is called conservative if there is a differentiable function f such that
∇f=F
f is called the potential function for F.
Fortunately, we do not need to flounder about to determine if a vector field F is conservative; we use the following argument:
If
F=⟨M,N⟩
is conservative, then
⟨M,Q⟩=∇f=⟨fx,fy⟩
So that
M=fx
and
N=fy
Now take partial derivatives with respect to y of Equation ??? and with respect to x of Equation ??? to get
My=fxy
and
Nx=fyx
Since mixed partial derivative are the same (for nice functions) we get
My=Nx
This turns out to be both a necessary and sufficient condition for a vector field to be conservative.
If M and N have continuous first order partial derivatives, then the vector field
F=Mˆi+Nˆj
is conservative if and only if
My=Nx
Determine which of the two vector fields are conservative
- F=3xyˆi−x2ˆj
- G=(1+2xy)ˆi+(x2−2)ˆj
Solution
For part A. we find
My=3xandNx=−2x
Since they are not equal the vector field is not conservative.
For part B. we find
My=2xandNx=2x
They are equal, so the vector field is conservative.
Once we know that a vector field is conservative, how do we find the potential function? We investigate the relations
M=fxandN=fy
Find the potential function for the conservative vector field in the last example
G=(1+2xy)ˆi+(x2−2)ˆj
Solution
We have
M=1+2xy=fx
Integrating both sides with respect to x we get
x+x2y+c(y)=f(x,y)
Notice that the constant of integration may involve y terms since we are treating y as a constant. Now differentiate with respect to y to get
x2+c′(y)=fy=N=x2−2
Thus
c′(y)=−2
Integrating with respect to y, we get
c(y)=−2y
We do not need a constant of integration here since we just want "a" potential function not the general potential function. Putting it all together, we get the potential function
f(x,y)=x+x2y−2y
The Curl of a Vector Field
If F is a vector field then we want to look at what operation we can do to it. One such operation is called the Curl of F. We define it as follows.
If F is a differentiable vector field with
F=Mˆi+Nˆj+Pˆk
then
CurlF=∇×F=|ˆiˆjˆk∂x∂y∂zMNP|=(Py−Nz)ˆi−(Px−Mz)ˆj+(Nx−My)ˆk
Notice that for a two dimensional vector field, where there is only a k component for a cross product, that if the curl is zero then the vector field field is conservative; actually more is true. Remembering that all second order partial derivatives are independent of order for nice functions, we have
Let F be a three dimensional differentiable vector field with continuous partial derivatives. Then
CurlF=0
if and only if F is conservative.
Determine if the vector field
F=yz2ˆi+(xz2+2)ˆj+(2xyz−1)ˆk
is conservative. If it is, find a potential function.
Solution
We calculate
CurlF=|ˆiˆjˆk∂x∂y∂zyz2xz22xyz−1|=(2xz−2xz)ˆi−(2yz−2yz)ˆj+(z2−z2)ˆk=0
The vector field is conservative. Now equate
fx=yz2
and integrate to get
f=xyz2+c(y,z)
Notice the constant now depends on both y and z, since they were held constant when we integrated. Now take a partial with respect to y to get
xz2=fy=xz2+2
Hence
cy(y,z)=2
Integrate with respect to y to get
c(y,z)=2y+c(z)
Notice that z is the only "constant" remaining. We get
f=xyz2+2y+c(z)
Now take a derivative with respect to z to get
2xyz+c′(z)=fz=2xyz−1
so that
c′(z)=−1
finally integrate to get
c(z)=−z
The potential function is
f(x,y,z)=xyz2+2y−z
The Divergence of a Vector Field
The curl of a vector field was defined as the cross product of the "dell" operator with the vector field. A curious student may try to take a dot product instead and see where it leads.
If F is a differentiable vector field with
F=Mˆi+Nˆj+Pˆk
then
divF=∇⋅F=My+Ny+Pz
Notice that the curl of a vector field is a vector field, while the divergence of a vector field is a real valued function.
Find the divergence of the vector field
F=(x−3y)ˆi+(x2z2+cos(z2))ˆj+(xyz2)ˆk
Solution
We just take the three partial derivatives and add them up
(1)+(0)+(2xyz)=1+2xyz
Contributors and Attributions
- Larry Green (Lake Tahoe Community College)