Chapter 33. Work (aka line integrals), and how to compute them with bare hands
This chapter defines a so-called line integral, the first of the two purple pictures in our poster Figure 75. For now, we’ll only view this cell in isolation, so we’ll give you the definition and show you how to use it with bare-hands.
However, it’s worth saying now: there will be shortcuts to computing line integrals that bypass the work of parametrization. Those shortcuts are given by the red arrows in the Figure 75. In fact, the entire next chapter, Chapter 34, is dedicated to these shortcuts.
§33.1 [TEXT] Work
We now define the leftmost purple pictures in our poster Figure 75. When we have a vector field as a path through it, we can define the work on it.
The work of done on a path is defined as
| Symbol | Name | Input type | Output type |
|---|---|---|---|
| Parametrization of a path | Scalar (time) | Point (dot) in | |
| Velocity vector for | Scalar (time) | Vector (arrow) in | |
| Vector field | Point (dot) in | Vector (arrow) in |
This is commonly abbreviated with shorthand in two ways.
First, we mention a new row of the shorthand in Table 13:
- Second, often the time parametrization is suppressed from the notation and we just write instead, where denotes the curve that traces out. In this context we always consider the curve to be directed, i.e. one of the endpoints is the starting point, and the other is the ending point.
That means the above work integral can be rewritten as just
Mercifully, the shorthand still writes a dot product in the symbols, to remind you that, yes, you should be evaluating a dot product when you compute this. I can’t imagine how much confusion it would cause if the shorthand didn’t have the dot product.
§33.2 [SIDENOTE] Aquatic interpretation of work
Letting represent water current as always, the “work” done along a trajectory can be thought of as:
To compute this, consider a trajectory along which an object, such as a boat or swimmer, moves through the water. The current vector field at any point describes the speed and direction of the water flow at that location. The work done by the current as the object follows a path depends on the alignment of the current with the object’s movement along that path.
When the current aligns with the path: If the direction of aligns with the direction of the trajectory at a point, the current contributes positively to the work along that segment, effectively aiding the motion. This is experienced as a “push” in the direction of travel. The dot products are positive since at each point , the vectors and align well, and the work is a sum of a lot of positive numbers.
When the current opposes the path: If the current direction opposes the trajectory at any point, it contributes negatively to the work, effectively resisting the motion. In this case, the object has to work against the current, experiencing it as a “drag” force that slows its progress. The dot products are negative since at each point , the vectors and point against each other, and the work is a sum of a lot of negative numbers.
When the current flows perpendicularly to the path: If is perpendicular to the trajectory at a point, it does no work in the direction of travel, as the current neither aids nor resists the movement along the path. The effect of the current in this case would primarily cause a lateral drift rather than a forward or backward push along the trajectory. The dot products are zero in this case: at each point , the vectors and are perpendicular.
An illustration of all three situations is shown in Figure 80.
§33.3 [TEXT] Visualizing line integrals via dot products
If you want to visualize the integral, you can imagine walking along the path cut out by . At each point, you draw the tangent vector to the path, and also look at the arrow for the vector field at that point. There’s a dot product of these two vectors, which is a number. The line integral adds up all these numbers.
When drawing a cartoon like in Figure 81, it might be useful to keep in mind that there are two parts to the picture:
- the curve and its parametrization (purple in Figure 81)
- the vector field (light blue arrows in Figure 81)
Remember, these two parts have nothing to do with each other. That is:
- When you’re sketching the light blue arrows for , you should only look at and completely ignore and .
- Similarly, when sketching the purple path , ignore completely.
In practice, if you actually want to do the integral calculation, you end up having to do a parametrization, so the shorthand hides how much effort will be needed. For example, in the following exercise, is the upper half of the circle , directed from the point to . (Again, for work integrals, we always require a specification of which way the integral moves along , if we choose to hide the parametrization from the notation.)
The work integral depends on which direction you walk along the path (it negates if you flip the start and stop point), but it doesn’t depend on exactly how exactly you parametrize the path.
Thus, the comments from Section 12.7 apply here: if you’re saying, parametrizing the semicircle to the blue arc in later Figure 82), you should probably use for
You could also use for . Or if you wanted to annoy the grader, you could even use for , which traces out the same arc at an irregular rate. Since these all give the same answer, you should pick the parametrization that makes the calculation easiest for you.
§33.4 [RECIPE] Computing line integrals by bare-hands via parametrization
Going back to our definition, here it is in recipe form.
To compute the line integral of over the curve :
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: it only matters you start and end at the right place, and trace out the exact curve . So you should pick a parametrization that makes your calculation easier.
- Calculate the derivative .
- Calculate the dot product .
- Integrate this from the start time to the stop time.
Let’s show some examples of how to calculate this in practice.
Solution. We do both parts; to prevent drowning in subscripts, we’ll use and for the curve and parametrization for each part.
Before jumping into the calculation, look at Figure 82 to get a sense of what’s going on. The blue arc has mixed signs: near the start and end of the arc, the dot products we’re adding are positive as the small arrows line up well with the blue path. But we’re moving against the current near the top. Since the arrows near the start are longer, you might guess the work integral is a small positive number, and you’d be right.
Meanwhile, along the brown arrow, all the arrows are perpendicular to our trajectory. We should expect the total work to thus be , and indeed it is.
Let’s first do the problem when is the arc. The upper half of the circle can be parametrized by:
Substitute the parameterization into the vector field:
Differentiate with respect to :
The line integral of along is given by:
To simplify these trig expressions, we use the fact that
Substitute these into the integral:
The term is zero by symmetry, so the final integral is .
Now let’s suppose is the brown line segment shown. Parametrize the curve as , where . (You could also use for if you prefer, or any other parametrization starting from and ending at ; you’ll get the same answer.)
Differentiate with respect to :
Meanwhile, the parameterization into the vector field is:
The dot product is identically equal to zero:
So the line integral is as well.
In particular the work integral in general depends on which path you take: we got different answers for the blue and brown path above. It’s only for the so-called conservative vector fields, which we’ll talk about more in a moment, for which work integrals are path-independent.
§33.5 [TEXT] Even more shorthand:
The notation can still be contracted further: there is another shorthand that hides both and altogether. Here it is:
In , suppose . Then the work integral can further be abbreviated as
Analogously, suppose we have a vector field for . Then the work integral can further be abbreviated as
Here’s the reason the shorthand is written like so. For simplicity, let’s say we’re in the 2D case and . Then Hence, if we are integrating , we could imagine “cancelling” the out, the expression we’d get looks like .
For 18.02 purposes, all of this is only for mnemonic purposes; we don’t actually define what any of the symbols mean, so we can’t make a more precise statement than that.
If any of , , are zero, that term can also be omitted entirely. So for example, in 2D, if you see
you should take this shorthand to mean
Let’s do an example to practice the weird and shorthand, along a different path.
Let denote the arc of the parabola starting from and moving right to . Compute the line integral
Solution. First we need to expand the shorthand with and . Recall that is shorthand for the vector field being . So where , we expand the shorthand as
where refers to the vector field encoded by the shorthand.
Again, if you look at the sketch in Figure 83, we’re expecting a positive work: all the arrows are pointing right, and the path in red is moving right as well, so all the dot products are positive. (Again, if you imagine the blue arrows as a river current, it’s definitely helping you swim, even if it’s not directly aligned since you’re not swimming straight east.)
The arc of the parabola we’re trying to traverse needs to start at and end at . Just to make things concrete, examples of points we expect to pass through in our path are
Anyway, we choose to parametrize the time as varying in with
Now if we throw everything in, we have
and
So the overall line integral becomes
§33.6 [EXER] Exercises
Exercise 33.1 (Suggested by Ting-Wei Chao). Let be the oriented closed curve formed by the arc of the parabola running from to , followed by a line segment from back to . Let
Compute using direct parametrization.
Exercise 33.2. Let be a curve in from to whose arc length is . Let be a vector field with the property that for any point on the curve,
- has magnitude ;
- makes a angle with the tangent vector to at (the tangent vector points along the direction of ).
Compute .