Chapter 34. Shortcuts for work: conservative vector fields and Green’s theorem
In the last chapter we showed the definition of work and how to compute with bare-hands by using parametrization. However, parametrization can be a lot of work. So the purpose of this chapter is to show you under what conditions you can get away with not having to do a parametrization. There will be two such categories:
- If is a conservative vector field, then the fundamental theorem of calculus is the way to go.
- If you’re working in 2D and is a closed loop, then Green’s theorem is the way to go.
We’ll show you both of these now.
§34.1 [TEXT] The fundamental theorem of calculus for line integrals
We now show the first Stokes result. It corresponds to a statement for the red arrow shown below.
Suppose is a conservative vector field, given by for some potential function . Then for any curve from a point to a point we have
This has several important consequences. If you know is conservative, then
- For any loop (i.e. a curve from a point to itself), the work integral is zero.
- More generally, all the work integrals are path independent if and are two different paths from to but the endpoints are the same, the work integrals will both be equal.
Indeed in the first case the work integral is and the second case it equals (for both and ’). But those two bullets are nice philosophically because they don’t even require you to know anything at all about the function .
In other words:
If you already know is conservative, then
- If you also know the potential function , then work integrals are extremely easy to calculate: just compute .
- If you don’t know the potential function , use the methods in Chapter 16 to find it.
- If the starting point and ending point are the same you don’t even need to find . The work integral is always .
Let’s see this concretely with a conservative vector field. We’ll use
which, if we follow the recipe from Chapter 16, we can recover the such that :
Thus, now that is known, line integrals are trivial to compute:
Solution. Because we know the potential function
the answer to both parts is the same:
For comparison, we show how we could have computed the line integrals “by hand” for each of the bullets above, if we were not clever enough to notice that was conservative. Of course, we do this knowing that the two answers better be equal (to ).
Work on the blue path, which is again for with . The values of the new vector field along the curve are
Hence, the dot product being integrated is
Integrate with respect to from to :
Work on the brown line segment, parametrized again as , where , and
Putting parameterization into the new vector field gives:
The line integral of along is given by:
Suppose is any path from to . Compute
Solution. Expanding the shorthand , the vector field we’re integrating over is the constant vector field . (In the cartoon, every blue arrow points directly east and has the same length .) This is certainly conservative: the potential function
can be found just by guessing or via the method in Chapter 16. Indeed, as we needed.
So now that we know is conservative and have found a potential function , we can forget about parametrizing and just write directly
§34.2 [TEXT] Okay, but how do you tell whether is conservative?
We saw that when is conservative, the curl is zero. It turns out that if is defined everywhere, then the reverse is true too: that is, we can use as a criteria for checking conservative fields.
Assume here the vector field is continuously differentiable and defined everywhere on or .
A vector field given by is conservative if and only if the 2D scalar curl is zero everywhere:
A vector field is conservative if and only if the curl is zero everywhere. In symbols, if then we need all three components of the curl to equal :
This should look familiar: it’s the same thing I told you in Section 16.6. The only thing that’s change is that I now have an aquatic interpretation of all the equations: that we require the 2D or 3D curl to be zero. But the equations are the same.
For which real number is the vector field
a conservative vector field?
Solution. We need the number such that
holds for all real numbers and . This occurs only when .
For which real numbers , is the vector field
a conservative vector field?
Solution. Let
We need to seek such that the curl is zero, that is
We compute all six partial derivatives in turn.
For the first component of the curl to be zero, we need the following to partials to be equal:
But this is always true, regardless of and .
For the second component of the curl to be zero, we need the following to partials to be equal:
This occurs if and only if .
For the third component of the curl to be zero, we need the following to partials to be equal:
This occurs if and only if .
Hence is the only answer.
In particular, there should be a potential function for each of the two examples above.
In the first example, it’s not easy to write down a potential function, because has no easily-expressed anti-derivative. (Though does; it turns out to be .) So we are content that some potential function does exist even if it cannot be written down using familiar functions.
On the other hand, the second example can be integrated readily enough, by following the procedure in Chapter 16: one should get
§34.3 [TEXT] Green’s theorem (2D only)
We expect there should be a Stokes result as well for the red arrow joining the 2D work integral to an area integral.
Here is what it says.
Suppose is a closed loop parametrized by that encloses a region counterclockwise. Then for any vector field , conservative or not, we have
There’s a new symbol on the left, but it has the same meaning as . The circle is there to emphasize that is a closed loop, i.e. it’s required to have the same start and ending point (unlike the other curves we saw in earlier examples). In other words:
Note this doesn’t require to be conservative! (All the past discussion about being conservative was because we were using the red “grad” arrow in Figure 84. But we’re now moving on to a new red arrow in our poster, and that assumption about a gradient isn’t needed anymore.) In fact, in the event that is conservative, we know that : the 2D scalar curl of a conservative vector field is . So Green’s theorem is then just saying that which we already knew.
Green’s theorem gives us a way to short-circuit a bunch of calculations that we were doing by hand earlier in the case where our loop is closed. Here are a few.
Calculate the line integral
where is the circle oriented counterclockwise.
Solution. Let denote the region enclosed by . We use Green’s theorem with the vector field
Calculate the partial derivatives of with respect to and with respect to :
Substitute the partial derivatives into Green’s theorem:
The region is the disk defined by , which is a circle of radius , hence with area
So the answer is
Evaluate the line integral
where is the triangle with vertices at , , and , oriented counterclockwise.
Solution. Let denote the interior of the triangle. By Green’s theorem:
where and . Calculate and :
Hence
The area of the triangle is:
Thus:
Calculate the line integral
where is the boundary of the square with vertices at , , , and , oriented counterclockwise.
Solution. Let denote the interior of the square. By Green’s theorem:
where and . Calculate and :
Substitute these into Green’s theorem:
Since is a square with side length centered at the origin, integrate over and from to :
Evaluate the inner integral with respect to :
Evaluate the integral with respect to :
§34.4 [SIDENOTE] A picture explaining why Green’s Theorem for work should be true (not a formal proof)
Here is an extremely informal explanation of what Green’s Theorem is trying to say pictorially. We won’t make it precise or go into the details.
Remember that the 2D scalar curl of a 2D vector field at a point is a number that describes the counterclockwise swirl of the field near . So to draw a picture (Figure 87):
- Let’s be a counterclockwise loop oriented counterclockwise. For the picture, we’ll draw as a purple square, which encloses a region .
- Then we imagine breaking into a bunch of tiny little squares. At each little square, we draw a little green swirl inside it that corresponds roughly to the 2D scalar curl of at the center of the tiny square.
Then the integral
can be thought of as the “sum of the green swirls” (whatever that means).
However, in Figure 87 you should realize: all the swirls on the inside cancel. Imagine one of the vertical grey walls between two grey cells: you can imagine the direction and magnitude of along the wall contributes to the “swirliness” of the two adjacent cells, but whatever it contributes positively to one cell, it contributes negatively to the other one. (Again, this is all an informal picture, so I won’t make this precise.)
So if we add all the green stuff, the only thing that’s left is the green stuff that’s just along the purple curve (drawn darker above). For example, the dark green arrows on the left correspond to how much points downwards against the nearby grey walls: which exactly matches the description of the work integral of along that western wall. And when you sum all four dark green currents, you just get the total work done by along the purple curve , as desired.
§34.5 [RECIPE] Evaluating line integrals, all together now
While we gave a definition of line integrals with parametrization, we then saw right away there are a couple shortcuts, namely FTC and Green’s theorem (in 2D) in certain cases. So with this, we can present a recipe that condenses these together.
Suppose we want to evaluate .
First, check if the vector field is conservative by seeing if the curl is zero.
If so, don’t bother parametrizing . Don’t even look at besides the endpoints. Find a potential function for the vector field and use the FTC as a shortcut: output
Second, if the line integral is in , check if is a closed loop.
If so, see if Green’s theorem gives you an easy shortcut:
If both of these fail, fall back to the parametrization recipe described in Section 33.4. To repeat it here:
- Pick any parametrization of the curve , including specifying the start and stop times. As described in Section 12.7, you have some freedom in how you set the parametrization.
- Calculate the derivative .
- Calculate the dot product .
- Integrate this from the start time to the stop time.
We’ll give several more examples of this in Section 35.5, where we contrast it to another type of line integral, the “2D flux”.
§34.6 [TEXT] Advanced technique: sealing regions
Green’s Theorem is powerful enough that it can be handy even if the path is not a closed loop: the idea is to “seal” the loop by adding some simple path, for which the line integral is easy to calculate. To show this technique, we bring back the first example from Section 33.4 all the way back when we first introduced how to compute work with bare hands.
We already saw that we could compute this using bare-hands parametrization. Now we’ll show how to use Green’s Theorem as a shortcut by adding the line segment from , to .
Solution. Let denote the semicircle. Because is not a closed loop, Green’s Theorem does not apply directly. To use it, we instead add a new line segment pointing from to . Then if we consider both and the new lid , they enclose the upper half of a disk with area , as shown in Figure 88. Hence Green’s Theorem on the two-part boundary states that
On the other hand, I claim that
This is easy to compute with direct parametrization: if we parametrize the lid by for , for example, then
Indeed one can even see it from Figure 88 directly, since the vector field is perpendicular to the -axis along the entire lid, so the total work being is not a surprise. Thus, the desired line integral is
§34.7 [EXER] Exercises
Exercise 34.1. Is the vector field
conservative?
Exercise 34.2. Calculate the line integral
where is the boundary of the region enclosed by the circle , oriented counterclockwise.
Exercise 34.3 (Suggested by Ting-Wei Chao). As in Exercise 33.1, let be the oriented closed curve formed by the arc of the parabola running from to , followed by a line segment from back to . Again let
Compute this time using Green’s Theorem.
Exercise 34.4 (*) (Shoelace formula). Let be an integer and suppose is a convex -gon in , where the vertices are labeled counterclockwise. Use Green’s theorem to prove the following formula for the area of :
Here and by convention, so the summand is .