Chapter 32. Grad, curl, and div
The goal of this chapter is to define each individual red arrow in the poster. For each red arrow, we’ll show you
- How to compute it, and
- How to visualize it in an aquatic setting.
There is no integration in this chapter, and so it’s actually pretty straightforward.
| Red arrow | Symbol | Input type | Output at each point | Example input | Example output |
|---|---|---|---|---|---|
| Gradient | Scalar field | Vector | Measure of distance from top of waterfall | Waterfall current pointing to lower elevation | |
| Curl | 3D vec. field | 3D vector | Whirlpool current | Arrow aligned with rotation axis, magnitude is rotation speed | |
| Divergence | 3D vec. field | Scalar | Water flow | Pump/drain speed | |
| 2D curl | where | 2D vec. field | Scalar | Whirlpool current | Angular velocity |
| 2D div | 2D vec. field | Scalar | Water flow | Pump/drain speed |
§32.1 [SIDENOTE] Aquatics are unlikely to improve your exam score
By the way, a quick word about aquatics. For each of these, I’m trying to tell you how to think of the quantity in terms of real life. This may help you internalize and remember the results. However, on the actual 18.02 exam, you will find that most of the functions you are taking curl’s or divergence’s of are rather artificial functions. So your aquatic intuition is more or less useless for actually doing calculation.
It’s kind of like how, you were told in 18.01 that derivatives measured rate of change. But then on the calculus final exam you were asked things like “differentiate ”. It probably wasn’t much help to know that was the rate of change of , because the function is completely artificial and would never appear in real life. The question was really testing whether you can apply a recipe with the chain rule to get .
The same is true in this chapter. Exam questions about grad, curl, div tend to use artificial functions. So the aquatic intuition is not going to be directly helpful and you just need to be good at following the recipe.
For this reason, in these notes, I’m not even going to bother trying to explain where the curl and div formulas come from. Many have tried and many have failed. If you want to see the grown-ups discuss this, see https://mathoverflow.net/q/21881/70654, where the top comment is “My advice: at this level, stick strictly to the textbook”. (It’s a little patronizing, I know.)
§32.2 [TEXT] Gradient
You already know how to do this from Chapter 15. The function assigns some number to every point in , and then points in the direction that increases most rapidly. In our aquatic examples, you could imagine you have a waterfall, measures the distance from the top of the waterfall, and just points straight down.
§32.3 [TEXT] Curl
Here’s the definition of curl in 3D space.
Suppose
is a 3D vector field. Then the curl of is the vector field defined by
In practice, everyone remembers this formula using the following mnemonic:
This equation does not pass type-safety, because it’s a “matrix” whose entries are some combination of functions, vectors, and partial derivative operators, so it absolutely does not make sense. Nonetheless, if you ignore all the type safety warnings and try to “expand” this expression, you will find that it basically gives you the formula for curl above. (Try it.)
This is why is the notation chosen. You could almost imagine
in which case the determinant above is the old mnemonic for the cross product. Again, this makes absolutely zero sense math-wise. It’s only a convenient way to remember the formula, but it works really well because you only have to remember “”.
Compute the curl of the vector field
Solution. Let , , . We can compute the first component of the curl by calculating
Hence:
is the first component of the curl.
The second and third components are done in the same way. The second component is
and the third component is
Hence
Now let’s talk about aquatic intuition. Suppose as we do for most of our examples that our vector field represents the flow of water in an ocean or other body of water. We think of the curl as capturing the local rotation or swirling motion of the water at each point.
Here’s how you can imagine curl:
Place a small paddle wheel (or imagine a small object that can rotate, like a stick with flags at each end) in the water at a point where you want to measure the curl.
Observe how the wheel rotates due to the flow of water. If the water is flowing uniformly in a straight line, the wheel will not rotate. In this case, the curl at that point is zero because there’s no local rotation in the flow.
If the wheel spins, this indicates that there is local rotational motion in the water. The curl at the point is a 3D vector, so there are two pieces of information:
The direction in which the wheel spins corresponds as follows to the direction of the curl. The axis of rotation of the wheel will point in the direction of the curl vector at that point. For example, if the water causes the wheel to rotate counterclockwise when viewed from above, the curl vector points upward. If the wheel rotates clockwise, the curl vector points downward.
The magnitude of the curl is related to how fast the wheel spins. A faster rotation means a stronger curl, indicating more intense local rotational motion in the flow of water.
Example of high and low curl:
In a region where water is circulating in a whirlpool-like pattern, the curl is high because the water is rapidly rotating around a central point.
In a calm, straight-moving current, the curl is low or zero because the water doesn’t exhibit any significant rotation.
In short, the curl of a vector field in our context of water flow measures the tendency of the water to rotate around each point, rather than simply move in a straight line. Visualizing it with a paddle wheel helps convey the idea of local rotational motion, with the curl vector indicating the direction and strength of that rotation.
Now, I promised you earlier that any two red arrows put together give . So now we prove the following.
Let be a function (aka scalar field), and let be the corresponding conservative vector field. Then (assuming is continuously differentiable), the curl of is at every point i.e.
You can actually verify this theorem pretty easily by definition:
However, it’s more important to have a visual understanding of why this is true. Remember, in the context of water flow, the fact that the curl of the gradient is zero means that if the flow is purely driven by a gradient (such as water moving due to pressure differences or height differences), there will be no rotational movement in the water. For example, if you have a waterfall, the water will flow directly downhill or uphill, without any swirling or spinning motion.
Here’s an example showing this:
Compute the curl of the vector field
Secretly, we happen to know the right-hand side is the gradient of the function ; this was the last example in Section 16.3. So with this insider information we expect the answer should come out to . Indeed, it does:
Solution. Let , , . First compute and :
Compute the first component:
For the second component, compute and :
Hence
Finally, compute and :
Compute the third component:
So the curl of the vector field is .
Hence this is an example of a conservative vector field, which we’ll talk more about later.
§32.4 [TEXT] Divergence
Suppose
is a 3D vector field. Then the divergence of is the scalar field defined by
The notation is supposed to also be a mnemonic. If you continue the analogy where
then looks like a dot product that does the right thing. Again, only for memory; this is totally nonsense math-wise.
Compute the divergence of the vector field
Solution. Let , , . Then
Sum the partials to get the divergence:
Now let’s talk about aquatics. Again suppose represents the flow of water in an ocean or another body of water. To visualize the divergence of a vector field , think of the divergence as measuring how much the water is spreading out or converging at each point.
Here’s how you can imagine it:
Place a small marker (such as a floating object) at a point in the water flow. The goal is to observe how the flow of water behaves around that point.
If the water appears to be flowing outward, as if water is being emitted from that point, the divergence is positive at that location. This suggests that more water is moving away from the point than toward it, indicating a local source of water.
If the water appears to be flowing inward, as if the water is being sucked into that point, the divergence is negative. This suggests that water is converging at the point, indicating a local sink or depletion of water.
If there is no noticeable net flow inward or outward (the water moves but does not spread out or converge), the divergence is zero. This indicates that there is no net change in how much water is entering or leaving that point.
Example of high and low divergence:
In a region where water is being pumped outward from a source, the divergence is high and positive, indicating that the water is spreading out from that point.
In a region where water is being drawn into a drain, the divergence is negative, indicating that the water is converging toward that point.
In a region where the water is flowing uniformly with no sources or sinks, the divergence is zero because there is no net flow into or out of any point.
In summary, the divergence of a vector field in the context of water flow measures the rate at which water is spreading out (positive divergence) or converging (negative divergence) at each point. If there is neither spreading nor converging, the divergence is zero.
I told you any two red arrows give you zero in the poster Figure 75. So there is technically a theorem that says the divergence of a curl is 0: that is,
assuming has continuous second partial derivatives. However, I don’t think we ever use this in 18.02. The problem is that our description of divergence assumes that our vector field is thought of like a water current, but is a vector field that describes how fast something rotates, and those arrows are emphatically not a water current (or anything resembling one).
§32.5 [TEXT] 2D scalar curl
The 2D scalar curl is a little more unnatural. The physical interpretation is the same, but if you have a 2D body of water, there’s only two ways to rotate: either clockwise or counterclockwise. (In contrast, if you put a paddle wheel into the ocean, there are lots of ways it can rotate.)
So the 2D scalar curl, true to its name, only outputs a number at each point, which you think of as an angular velocity of the spinning paddle wheel. Unlike with the usual 3D curl it’s no longer needed to specify an entire vector so that you can talk about the direction of rotation. Instead we take the convention that
- positive numbers mean counterclockwise spin,
- negative numbers mean clockwise spin.
Suppose
is a 2D vector field. Then the 2D scalar curl of is the scalar field defined by
The mnemonic actually still works if you just pretend is a 3D vector field where the -coordinate is always zero. That is, given , consider the mnemonic
If you follow through, you will find you get
All the terms involving disappear, because there’s no anywhere. So only the terms in front of survive, and you get
And there’s the 2D scalar curl, the coefficient of .
Compute the 2D scalar curl of
Solution. The 2D scalar curl is given by
Given , we have
Given we have
Hence
It’s still true (and indeed follows from the 3D version) that:
Let’s see an example of that.
Compute the 2D scalar curl of
Secretly, we happen to know the right-hand side is the gradient of the function , because we did this example Section 16.3. So the 2D scalar curl should be , and indeed it is.
Solution. Given :
Given :
Hence
§32.6 [TEXT] 2D divergence
This is not a red arrow in the picture. But it comes up in one version of Green’s theorem, and it’s actually exactly the same as 3D. So I’ll just mention it briefly.
Suppose
is a 2D vector field. Then the divergence of is the scalar field defined by
The aquatic interpretation is the same too, just in 2D bodies of water.
Compute the divergence of
Solution. In two dimensions, the divergence is given by
Given :
Given :
Hence
Compute the divergence of
Solution. Given :
Given :
Hence
§32.7 [EXER] Exercises
Exercise 32.1. Consider the force of gravity exerted by a point mass of mass at a point . Show that
at every point except .