We have studied functions of two and three variables, where the input of such functions is a point (either a point in the plane or in space) and the output is a number.
We could also create functions where the input is a point (again, either in the plane or in space), but the output is a vector. For instance, we could create the following function: , where . We are to think of assigning the vector to the point ; in some sense, the vector lies at the point .
Such functions are extremely useful in any context where magnitude and direction are important. For instance, we could create a function that represents the electromagnetic force exerted at a point by a electromagnetic field, or the velocity of air as it moves across an airfoil.
Because these functions are so important, we need to formally define them.
(a)
A vector field in the plane is a function whose domain is a subset of and whose output is a two-dimensional vector:
(b)
A vector field in space is a function whose domain is a subset of and whose output is a three-dimensional vector:
This definition may seem odd at first, as a special type of function is called a “field.” However, as the function determines a “field of vectors”, we can say the field is defined by the function, and thus the field is a function.
Visualizing vector fields helps cement this connection. When graphing a vector field in the plane, the general idea is to draw the vector at the point . For instance, using as before, at we would draw .
In Figure 15.2.1(a), one can see that the vector is drawn starting from the point . A total of 8 vectors are drawn, with the - and -values of . In many ways, the resulting graph is a mess; it is hard to tell what this field “looks like.”
In Figure 15.2.1(b), the same field is redrawn with each vector drawn centered on the point . This makes for a better looking image, though the long vectors can cause confusion: when one vector intersects another, the image looks cluttered.
A common way to address this problem is limit the length of each arrow, and represent long vectors with thick arrows, as done in Figure 15.2.2(a). Usually we do not use a graph of a vector field to determine exactly the magnitude of a particular vector. Rather, we are more concerned with the relative magnitudes of vectors: which are bigger than others? Thus limiting the length of the vectors is not problematic.
Drawing arrows with variable thickness is best done with technology; search the documentation of your graphing program for terms like “vector fields” or “slope fields” to learn how. Technology obviously allows us to plot many vectors in a vector field nicely; in Figure 15.2.2(b), we see the same vector field drawn with many vectors, and finally get a clear picture of how this vector field behaves. (If this vector field represented the velocity of air moving across a flat surface, we could see that the air tends to move either to the upper-right or lower-left, and moves very slowly near the origin.)
We can similarly plot vector fields in space, as shown in Figure 15.2.3, though it is not often done. The plots get very busy very quickly, as there are lots of arrows drawn in a small amount of space. In Figure 15.2.3 the field is graphed. If one could view the graph from above, one could see the arrows point in a circle about the -axis. One should also note how the arrows far from the origin are larger than those close to the origin.
It is good practice to try to visualize certain vector fields in one’s head. For instance, consider a point mass at the origin and the vector field that represents the gravitational force exerted by the mass at any point in the room. The field would consist of arrows pointing toward the origin, increasing in size as they near the origin (as the gravitational pull is strongest near the point mass).
Watch the video:
Vector Fields — Sketching from https://youtu.be/XGWhfSHl8Eo
Definition 15.2.1 defines a vector field using the notation
That is, the components of are each functions of and (and also in space). As done in other contexts, we will drop the “of , and ” portions of the notation and refer to vector fields in the plane and in space as
respectively, as this shorthand is quite convenient.
Another item of notation will become useful: the “del operator.” Recall in Section 13.6 how we used the symbol (pronounced “del”) to represent the gradient of a function of two variables. That is, if , then “del ” .
We now define to be the “del operator.” It is a vector whose components are partial derivative operations.
In the plane, ; in space, .
With this definition of , we can better understand the gradient . As returns a scalar, the properties of scalar and vector multiplication gives
Now apply the del operator to vector fields. Let . We can use vector operations and find the dot product of and :
We can also compute their cross products:
We do not yet know why we would want to compute the above. However, as we next learn about properties of vector fields, we will see how these dot and cross products with the del operator are quite useful.
Two properties of vector fields will prove themselves to be very important: divergence and curl. Each is a special “derivative” of a vector field; that is, each measures an instantaneous rate of change of a vector field.
If the vector field represents the velocity of a fluid or gas, then the divergence of the field is a measure of the “compressibility” of the fluid. If the divergence is negative at a point, it means that the fluid is compressing: more fluid is going into the point than is going out. If the divergence is positive, it means the fluid is expanding: more fluid is going out at that point than going in. A divergence of zero means the same amount of fluid is going in as is going out. If the divergence is zero at all points, we say the field is incompressible.
It turns out that the proper measure of divergence is simply , as stated in the following definition.
The divergence of a vector field is
In the plane, with , .
In space, with , .
Curl is a measure of the spinning action of the field. Let represent the flow of water over a flat surface. If a small round cork were held in place at a point in the water, would the water cause the cork to spin? No spin corresponds to zero curl; counterclockwise spin corresponds to positive curl and clockwise spin corresponds to negative curl.
In space, things are a bit more complicated. Again let represent the flow of water, and imagine suspending a tennis ball in one location in this flow. The water may cause the ball to spin along an axis. If so, the curl of the vector field is a vector (not a scalar, as before), parallel to the axis of rotation, following a right hand rule: when the thumb of one’s right hand points in the direction of the curl, the ball will spin in the direction of the curling fingers of the hand.
In space, it turns out the proper measure of curl is , as stated in the following definition. To find the curl of a planar vector field , embed it into space as and apply the cross product definition. Since and are functions of just and (and not ), all partial derivatives with respect to become 0 and the result is simply . The third component is the measure of curl of a planar vector field.
•
Let be a vector field in the plane. The curl of is .
•
Let be a vector field in space. The curl of is .
We adopt the convention of referring to curl as , regardless of whether is a vector field in two or three dimensions.
We now practice computing these quantities.
For each of the planar vector fields given below, view its graph and try to visually determine if its divergence and curl are 0. Then compute the divergence and curl.
(see Figure 15.2.4(a))
(see Figure 15.2.4(b))
(see Figure 15.2.5(a))
(see Figure 15.2.5(b))
Solution
The arrow sizes are constant along any horizontal line, so if one were to draw a small box anywhere on the graph, it would seem that the same amount of fluid would enter the box as exit. Therefore it seems the divergence is zero; it is, as
At any point on the -axis, arrows above it move to the right and arrows below it move to the left, indicating that a cork placed on the axis would spin clockwise. A cork placed anywhere above the -axis would have water above it moving to the right faster than the water below it, also creating a clockwise spin. A clockwise spin also appears to be created at points below the -axis. Thus it seems the curl should be negative (and not zero). Indeed, it is:
It appears that all vectors that lie on a circle of radius , centered at the origin, have the same length (and indeed this is true). That implies that the divergence should be zero: draw any box on the graph, and any fluid coming in will lie along a circle that takes the same amount of fluid out. Indeed, the divergence is zero, as
Clearly this field moves objects in a circle, but would it induce a cork to spin? It appears that yes, it would: place a cork anywhere in the flow, and the point of the cork closest to the origin would feel less flow than the point on the cork farthest from the origin, which would induce a counterclockwise flow. Indeed, the curl is positive:
Since the curl is constant, we conclude the induced spin is the same no matter where one is in this field. ††margin: (a) (b) Λ
At the origin, there are many arrows pointing out but no arrows pointing in. We conclude that at the origin, the divergence must be positive (and not zero). If one were to draw a box anywhere in the field, the edges farther from the origin would have larger arrows passing through them than the edges close to the origin, indicating that more is going from a point than going in. This indicates a positive (and not zero) divergence. This is correct:
One may find this curl to be harder to determine visually than previous examples. One might note that any arrow that induces a clockwise spin on a cork will have an equally sized arrow inducing a counterclockwise spin on the other side, indicating no spin and no curl. This is correct, as
One might find this divergence hard to determine visually as large arrows appear in close proximity to small arrows, each pointing in different directions. Instead of trying to rationalize a guess, we compute the divergence:
Perhaps surprisingly, the divergence is 0. With all the loops of different directions in the field, one is apt to reason the curl is variable. Indeed, it is:
Depending on the values of and , the curl may be positive, negative, or zero.
Compute the divergence and curl of each of the following vector fields.
SolutionWe compute the divergence and curl of each field following the definitions.
For this particular field, no matter the location in space, a spin is induced with axis parallel to
The force of gravity between two objects is inversely proportional to the square of the distance between the objects. Locate a point mass at the origin. Create a vector field that represents the gravitational pull of the point mass at any point . Find the divergence and curl of this field.
SolutionThe point mass pulls toward the origin, so at , the force will pull in the direction of . To get the proper magnitude, it will be useful to find the unit vector in this direction. Dividing by its magnitude, we have
The magnitude of the force is inversely proportional to the square of the distance between the two points. Letting be the constant of proportionality, we have the magnitude as . Multiplying this magnitude by the unit vector above, we have the desired vector field: ††margin: Λ
We leave it to the reader to confirm that and .
The analogous planar vector field is given in Figure 15.2.6. Note how all arrows point to the origin, and the magnitude gets very small when “far” from the origin.
A function naturally induces a vector field, . Given what we learned of the gradient in Section 13.6, we know that the vectors of point in the direction of greatest increase of . Because of this, is said to be the potential function of . Vector fields that are the gradient of potential functions will play an important role in the next section.
Let and let . Graph , and find the divergence and curl of .
SolutionGiven , we find . A graph of is given in Figure 15.2.7(a). In part (b) of the figure, the vector field is given along with a graph of the surface itself; one can see how each vector is pointing in the direction of “steepest uphill”, which, in this case, is not simply just “toward the origin.”
We leave it to the reader to confirm that and .
There are some important concepts visited in this section that will be revisited in subsequent sections and again at the very end of this chapter. One is: given a vector field , both and are measures of rates of change of . The divergence measures how much the field spreads (diverges) at a point, and the curl measures how much the field twists (curls) at a point. Another important concept is this: given , the gradient is also a measure of a rate of change of . We will see how the integrals of these rates of change produce meaningful results.
This section introduces the concept of a vector field. The next section “applies calculus” to vector fields. A common application is this: let be a vector field representing a force (hence it is called a “force field,” though this name has a decidedly comic-book feel) and let a particle move along a curve under the influence of this force. What work is performed by the field on this particle? The solution lies in correctly applying the concepts of line integrals in the context of vector fields.
Give two quantities that can be represented by a vector field in the plane or in space.
In your own words, describe what it means for a vector field to have a negative divergence at a point.
In your own words, describe what it means for a vector field to have a negative curl at a point.
The divergence of a vector field at a particular point is 0. Does this mean that is incompressible? Why/why not?
In Exercises 5–8., sketch the given vector field over the rectangle with opposite corners and , sketching one vector for every point with integer coordinates (i.e., at , , etc.).
In Exercises 9–18., find the divergence and curl of the given vector field.
, where .
, where .
, where .
, where .
In Exercises 19–26., let and . Prove the given formula.