How can you measure where a vector field is created (or destroyed)?
How can you measure where a vector field’s strength is increasing or decreasing?
What does the divergence of a vector field measure and how can you visually estimate whether the divergence of a vector field is positive or negative?
As we saw in Section 4.1, there are many physical and theoretical representations for vector fields. A natural question is “Where exactly is the vector field created?” With the vector field in Figure 4.9.1, imagine sketching a curve that follows the direction of the vector field by treating the vectors in the vector field as tangent vectors to your curve. No matter where you start, you should observe that the vector field decreases in strength as you move along the flow. We wish to understand (as a function of position), how much of the vector field is created (or destroyed) at a given location.
Preview Activity4.9.1.
In this preview activity, we will look at several two-dimensional vector fields and try to assess when the vector field has increased or decreased in strength over a given region. We begin with graphs of the three vector fields. Parts a, b, and c ask you to answer the same three questions about the vector field and square illustrated in each of the figures. Part d asks you to think further about the third vector field.
(a)
For each of the vector fields \(\vF\text{,}\)\(\vG\text{,}\) and \(\vH\) and the square centered on the corresponding point \(P_i\) for \(i=1,2,3\text{,}\) which statement do you think best applies?
More of the vector field is going into the square than going out.
Less of the vector field is going into the square than going out.
The same amount of the vector field is going into the square as is going out.
(b)
For each of the vector fields \(\vF\text{,}\)\(\vG\text{,}\) and \(\vH\) (and corresponding square), does your answer to part a suggest that the vector field is being created, destroyed, or is unchanging in strength inside the square? Explain your reasoning.
(c)
Would the answer to parts a or b change if you used a smaller square centered on \(P_i\) for any of the vector fields and points with \(i=1,2,3\text{?}\) Explain your reasoning.
(d)
Thinking now only about the vector field \(\vH\text{,}\) would your answers to parts a, b, or c change if you considered squares around points \(P_4\text{,}\)\(P_5\text{,}\) or \(P_6\text{?}\) Explain your reasoning.
Subsection4.9.1Measuring the Change in Strength of a Vector Field
In this section, we will go through the process for how to measure the density of the “creation” or “destruction” of the vector field in a classic calculus fashion. Specifically, we will measure how the strength of the vector field changes in a region around a point. Next, using a limit, we examine what happens to our measurement as we shrink the region. Because our vector fields will change in a continuous fashion, we won’t have the vector field actually change at a single point. Rather, we will really be measuring the density for the change in strength of the vector field.
We will develop all of our measurements in a two dimensional setting for now. However, our arguments can be applied to three (or more) dimensions. We start in the same fashion as in Preview Activity 4.9.1. Namely, we will look at how much of the vector field is going into or out of a square centered at a point \((a,b)\text{.}\) For this development, we will consider a two-dimensional vector field given by \(\vF(x,y)=\langle{F_1(x,y),F_2(x,y)}\rangle\text{.}\)
We can parametrize the top edge of the box (in blue) by \(\vr_{\text{top}}(t) = \langle a+t,b+h\rangle\) with \(-h\leq t\leq h\text{.}\) Similarly, the bottom, right, and left can be parametrized by \(\vr_{\text{bottom}}(t) = \langle
a+t,b-h\rangle\text{,}\)\(\vr_{\text{right}}(t) = \langle
a+h,b+t\rangle\text{,}\) and \(\vr_{\text{left}}(t) = \langle
a-h,b+t\rangle\) with \(-h\leq t\leq h\text{.}\)
The amount of the vector field \(\vF\) that is created inside the square around the point \((a,b)\) can be measured by the net amount of the vector field coming in or going out of the square. The amount of vector flow that goes through each of the boundary segments can be measured by looking at just the orthogonal component of the vector field on each particular segment. For instance, on the top segment (in blue), the vertical component \(F_2\) determines how much of the vector field goes in or out of the square. Integrating just the vertical component \(F_2\) of the vector field \(\vF\) over the points on the top segment of our square will therefore measure how much of the vector field goes through the top of the square.
The same argument applies to the bottom edge of our square (in orange). Similarly, if we want to measure how much of \(\vF\) goes through either the left or right side of the square, we need to integrate the horizontal component \(F_1\text{.}\) Hence, the net flow of the vector field into or out of the square will be given by
Notice that some of the integrals are subtracted because we need to pay attention to the orientation of the vector field relative to the square. A positive vertical component of the vector field (\(F_2\)) will correspond to flow out on the top of the square but will correspond to the vector field flowing into the square on the bottom. So in the integrals above, we are counting the flow out of the square as positive and the flow in as negative.
We are measuring the net flow through the square as a scalar quantity. We can look at what happens to our scalar quantity as we shrink the square to the point \((a,b)\) by decreasing \(h\text{.}\) In order for this to make the most sense, we will change our measurement to be a density argument by calculating flow in (or out) per unit area. This will allow us to compare our net flow calculations across squares with different areas. In other words, we want to consider what happens to
We will take a moment here before we apply our limit to simplify our integrals in order to make the limit easier to evaluate. In particular, we will apply the Mean Value Theorem to each of four the integrals above. Applying the Mean Value Theorem to the first integral gives
where \(t^*_1,t^*_2\) are values in \((a-h,a+h)\) and \(t^*_3,t^*_4\) are values in \((b-h,b+h)\text{.}\) Thus our flow density can be measured by looking at the limit as \(h\to 0\) of the net flow (in or out) over the square divided by the area of the square.
Recall the central difference method of estimating derivatives from Section 1.5.2 1
activecalculus.org/single/sec-1-5-units.html#VjW
and notice that as \(h\to 0\text{,}\) the numbers \(t^*_1,t^*_2\) must go to \(a\) and \(t^*_3,t^*_4\) must go to \(b\text{.}\) Therefore, after evaluating our limit, the flow density is
While this simplification may seem a bit amazing and magical, our conceptual steps should help us make sense of the result. If we are looking at how the strength of the vector field is changing in a small neighborhood of the point \((a,b)\) then we only need to look how fast the horizontal component is changing horizontally and how the vertical component is changing vertically. How the horizontal component changes over small steps in the vertical direction will give us information about how the direction of the vector field changes but not how the strength of the vector field is changing.
The arguments we made about measuring how much of the vector field flows into or out of a square has straightforward generalization to three (or more) dimensions. However, doing so requires a method for measuring how much of a vector field flows through a surface. This will be the subject of Section 4.8.
Subsection4.9.2Definition of the Divergence of a Vector Field
In the previous subsection, we discussed the concept of the flow density at a point as giving a measurement of the how the strength of the vector field changes by using a density argument. The standard name for this quantity is the divergence of a vector field, which we now formally define.
Another way to “see” divergence on a vector field plot is to look at what happens to the magnitude of vectors as you move along the flow of the vector field. If the vector field is increasing in magnitude as you move along the flow of a vector field, then the divergence is positive. If the vector field is decreasing in magnitude as you move along the flow of a vector field, then the divergence is negative. If the vector field does not change in magnitude as you move along the flow of the vector field, then the divergence is zero. Also, remember that the divergence of a vector field is often a variable quantity and will change depending on location. The next activity asks you to graphically examine the divergence of three vector fields.
Activity4.9.2.Graphical Representations of Divergence.
(a)
For this part of the activity, consider the vector field \(\vF\) shown in Figure 4.9.7.
(i)
Draw a circle in the first quadrant of the vector field \(\vF\) depicted in Figure 4.9.7. Based on the flow of the vector field into or out of the circle, do you think the vector field is increasing in strength, decreasing in strength, or not changing in overall strength in the first quadrant?
(ii)
As you move along the flow of the vector field in the first quadrant of Figure 4.9.7, does your vector field increase in magnitude, decrease in magnitude, or have constant magnitude?
(iii)
Draw a circle in quadrants II, II, and IV. Based on the flow of the vector field into or out of your circles, do you think the vector field is increasing in strength, decreasing in strength, or not changing in overall strength in quadrants II, II, and IV?
(iv)
As you move along the flow of the vector field in the third quadrant of Figure 4.9.7, does your vector field increase in magnitude, decrease in magnitude, or have constant magnitude.
(v)
Based on your arguments above, describe why the divergence of \(\vF\) is negative for all points in the \(xy\)-plane.
(b)
Look at the plot of the vector field \(\vG\) in Figure 4.9.8 and state whether you think the vector field is increasing in strength, decreasing in strength, or not changing in overall strength in each of the four quadrants. You can make your argument in terms of the change in magnitude along the flow of the vector field or in terms of the net flow into or out of a small region on the plane. You may need to make separate arguments for each of the four quadrants.
(c)
Look at the plot of the vector field \(\vH\) in Figure 4.9.9 below and state whether you think the vector field is increasing in strength, decreasing in strength, or not changing in overall strength in each of the four quadrants. You can make your argument in terms of the change in magnitude along the flow of the vector field or in terms of the net flow into or out of a small region on the plane. You may need to make separate arguments for each of the four quadrants.
The final activity of this section asks you to do some algebraic calculations of divergence using Definition 4.9.6.
Activity4.9.3.
(a)
Calculate the divergence of the vector fields given below.
\(\displaystyle \vF_1=\langle -x,-y\rangle\)
\(\displaystyle \vF_2=\langle y,x \rangle\)
\(\displaystyle \vF_3=\langle xy,1-x\rangle\)
(b)
Explain how your answers to the questions in Activity 4.9.2 can be explained by using your results from part a of this activity.
Subsection4.9.3Summary
The divergence of a vector field \(\vF(x,y)=\langle F_1(x,y),F_2(x,y)\rangle\) is computed as
The divergence of a vector field measures the density of change in the strength of the vector field. In other words, the divergence measures the instantaneous rate of change in the strength of the vector field along the direction of flow.
The accumulation of the divergence over a region of space will measure the net amount of the vector field that exits (versus enters) the region.
\(\vF=\nabla f\) where \(f\) is a scalar function of \(x\text{,}\)\(y\text{,}\) and \(z\)
Let \(\vF_1=\langle{3(x-z)^2,2\cos(x)+3yz+y,-(z-1)^2+e^{xy}}\rangle\text{.}\) Calculate the divergence of \(\vF_1\) and give a point where \(\divg(\vF_1)=0\text{.}\)