Chapter 31. Vector fields
§31.1 [TEXT] Vector fields
In Part Golf, we only considered integrals of scalar-valued functions. However, in Part India and Juliett we will meet a vector field, which is another name for a function that inputs points and outputs vectors.
In contrast, we might use the word scalar field for the old kind of functions that gave a number at each input point rather than a vector.
You actually have met a lot of vector fields before:
This case is so important that there’s a word for it:
In Part India and Juliett we’ll meet vector fields that aren’t conservative too.
For standalone vector fields, we’ll always use capital bold letters like to denote them. That said, remember is also a vector field. So that’s why the operator itself is typeset a little bit bold.
Like the gradient, you should draw inputs to as points (dots) but the outputs as vectors (arrows). Don’t mix them.
For 2D and 3D vector fields, we’ll often write
I think other sources often use , , instead, but right now I’m using those for points too, so I’ll use lowercase letters.
§31.2 [TEXT] How do we picture a vector field?
There’s a lot of ways to picture a vector field, especially in physics. For consistency, I’m going to pick one such framework and write all my examples in terms of it. So in my book, all examples will be aquatic in nature; but if you can’t swim24, you should feel free to substitute your own. Imagine an electric field. Or a black hole in outer space. Or air currents in the atmosphere. Whatever works for you!
Anyway, for my book, we’ll use the following picture:
Sounds a lot like the gradient, right? Indeed, conservative vector fields are a big family of vector fields, and so we should expect they fit this picture pretty neatly. But the thing about conservative vector fields is this: , as a vector field, is always rushing towards whatever makes the value of bigger. Whereas generic vector fields might, for example, go in loops. Let’s put these examples into aquatic terms.
Let’s imagine we have a river with a strong current. We’ll make the important assumption that the river only goes one way: that is, if you go along the current, you never end up back where you started. In real life, this often occurs if the river goes down a mountain, so as you go down the river you’re losing elevation.
If you do this, you can define a “downstream function” as follows: for every point in the river, measures how far downstream you are. For example, if the river had a head, maybe we could assign the value zero there, and then would increase as you get farther from the head, reaching the largest value at the mouth. (For mountainous rivers, might instead be thought of as decreasing in elevation.)
Then the vector field corresponding to the river is the gradient . Remember, the gradient tells you what direction to move in to increase . And if you throw a ball into a river, its motion could be described simply as: the ball moves downstream.

Now imagine instead you have a whirlpool. If you throw a ball in it, it goes in circles around the vortex of the whirlpool. This doesn’t look anything like the river! If you have a river, you never expect a ball to come back to the same point after a while, because it’s trying to go downstream. But with a whirlpool, you keep going in circles over and over.
If you draw the vector field corresponding to a whirlpool, it looks like lots of concentric rings made by tiny arrows. That’s an example of a non-conservative vector field.

§31.3 [TEXT] How to draw a vector field
If you’re actually given a formula for , you can sketch the corresponding vector field by the following procedure.
To draw a cartoon of a vector field:
- Pick a bunch of points that you want to draw the arrows at.
- For each , draw a little arrow starting at in the same direction as . (To make the cartoon readable, you usually scale down the magnitude of the arrow.)
In practice, to make the pictures not look absurd, people will typically draw the arrows a lot smaller than they really are. For example, if you get that , then strictly speaking the arrow starting at should reach all the way to . But if you do this, your cartoon image looks absurd. So people will typically adjust the arrow sizes in the cartoon to be a tiny arrow, still pointing the right way, but with much smaller magnitude. For the cartoon it’s usually more important the relative size of the arrows is correct; drawing the absolute values to scale is unnecessary.
The classic easy-to-draw example is , in which for every point , one just points straight away from the origin. See Figure 72 for that. For the record, in this figure (and the other figures in this section), the lengths of all the little arrows are scaled exactly 30% compared to the true lengths.
Okay, here are eight more pictures to train your instincts. For each one, try to pick a few points like or and so on and verify that the arrow starting at that point points in the way you expect.
§31.4 [TEXT] Preview of integration over vector fields
As we mentioned in Section 21.2, the line integral and surface integral we encountered in Part Golf (which had a scalar-valued function) are actually the ugly ducklings that don’t get used. For most cases, if you are doing a line integral or surface integral, you actually want vector-valued line and surface integrals, where one takes a line or surface integral over the entire field.
That’s when the type signatures go crazy.
In order for this to be even remotely memorable, what I’m going to do is augment the previous Figure 41 with pictures corresponding to the situations in which we might integrate a vector field. The new chart can also be downloaded as a large PDF version.
There are two new features of Figure 75 compared to the old version: the three purple pictures and the six red arrows. We’ll define them all over the next few sections, so just a few words now.
§31.4.1 The three purple pictures
There are three new pictures in purple: they are work (covered in Part India) and flux (covered in Part Juliett). Basically, these are the only two situations in which we’ll be integrating over a vector field:
- We have a path along a vector field and want to measure the work of the vector field along that path (in the physics sense); this is the focus of Part India.
- We have a surface in a 3D vector field and want to measure the flux of the vector field through the surface; this is the focus of Part Juliett.
These terms will be defined next chapter.
As we mentioned in Section 21.2, the purple pictures will basically replace the corresponding green ones. Conversely, vector fields will usually only be integrated in the situations described in the purple picture. This is summarized in Table 15.
| For scalar fields | For vector fields | |
|---|---|---|
| 18.01 integral | ✅ Used all the time | ❌ Never used in 18.02 |
| Line integral | 🔵 Only for arc length | ✅ Used all the time (work) |
| Double/Area integral | ✅ Used all the time | ❌ Never used in 18.02 |
| Surface integral | 🔵 Only for surface area | ✅ Used all the time (flux) |
| Triple/Volume integral | ✅ Used all the time | ❌ Never used (except in Equation 12) |
This bears repeating:
§31.4.2 The six red arrows
There are also six new red arrows. They indicate transformations on functions: a way to take one type of function and use it to build another function.
For example, the gradient is the one we’ve discussed: if you start with a scalar-valued function , the gradient creates a vector field . (The in the case is also just the gradient, though a bit more degenerate.)
We’ll soon meet three more transformations:
- 2D curl, which converts a vector field on back into a scalar-valued function;
- 3D curl, which converts a vector field on into another vector field;
- divergence, which converts a vector field on back into a scalar-valued function.
§31.5 [TEXT] Foreshadowing of Stokes’ theorem
All the red arrows have two important properties I will tell you right now. Because I haven’t talked much about any of the red arrows yet, you won’t be able to understand what this means yet. That’s okay. We’ll go over what this means for each individual red arrow when we get to it. However, I want to tell you in advance that every time we meet a red arrow, there will be a case of Stokes’ theorem that applies to it.
In Figure 75, take any of the six red arrows . Let be a compact region. Then the integral of over the boundary of equals the integral of over :
In fact let me tell you what generalized Stokes’ theorem says, in vague non-precise terms (we’ll make precise later), for each of these six red arrows:
- Evaluation 18.01 integral
For the arrow joining evaluation to the 18.01 integral, it’s the fundamental theorem of calculus. The region is the line segment , and the boundary is the two endpoints and . Then we have the fundamental theorem of calculus from 18.01:
- Evaluation line integral ()
There are two such red arrows, but the statement is the same for both. Suppose parametrizes a path joining point to (say, the line segment , or some more curvy path). The region is this path, and the endpoints are and : Then we get the fundamental theorem of calculus for line integrals:
The right-hand side is the work done by on the path .
If you use shorthand where is the curve formed by , this could be rewritten as
- Line integral double/area integral
Suppose now is a vector field. Write . Let be some two dimensional region, like a disk. Suppose further that the boundary of is parametrized by a curve (e.g. the circumference of the disk). Then Green’s theorem says that
The weird expression in the right-hand side is called the 2D scalar curl, but we haven’t defined this term yet.
If you use shorthand as in Table 13, this can be simplified. Let be the curve formed by , this could be rewritten as
There’s a second form of Green’s theorem I’ll show you when I get to it.
- Line integral surface integral
Suppose now is a vector field. Let parametrizes some two dimensional surface (like a metal sheet), and suppose further that the boundary of this surface is parametrized by a curve (e.g. the edges of the sheet). Then the classical version of Stokes’ theorem says that
The nonsense expression is called the curl, defined next chapter in Chapter 32.
The shorthand version following Table 13 is much easier to read, because the shorthand stands for the entire hunk . Suppose the curve for is denoted . Then the above equation compresses all the way down to
so yes, that does save a lot of characters.
- Surface integral triple/volume integral
Suppose now is a vector field. Let be some three-dimensional solid (e.g. metal ball). Suppose further the boundary of is parametrized by some two-dimensional surface (e.g. metal sphere), which we call . Then the divergence theorem says that
If we adopt shorthand again, this reads just
The nonsense expression is called the divergence, defined next chapter in Chapter 32.
Again, these bullets will not make sense to you yet (except the first one, which is the 18.01 fundamental theorem of calculus), because there are several undefined terms. Instead, treat this as a template for all the theorem statements you are going to learn soon:
Know this going in to each of the concepts to follow.

§31.6 [TEXT] Stay determined
This is probably super overwhelming right now, and Figure 75 might be frightening to look at because there’s so much information in it. Don’t worry, we’ll take Figure 75 apart one piece at a time over the rest of the semester.
In Chapter 32, I’ll tell you how to compute each of grad, curl, div. This chapter has no integration in it, so if you hate integration, you’ll like this chapter.
I’ll start talking about work in Chapter 33. I’ll define it, and then I’ll show you how it ties in to the fundamental theorem of calculus (which are some of the cases of generalized Stokes’ theorem).
Then Chapter 38 will define flux. This will let us talk about the rest of the cases of generalized Stokes’ theorem.