Chapter 35. 2D flux

§35.1 [TEXT] Definition of 2D flux

I will grudgingly define 2D flux first, since I just went over Green’s theorem. I say “grudgingly” because 2D flux is really a special case of 3D flux, but to keep things simple we’ve still been working in two dimensions.

The idea of flux is that you have some closed curve 𝒞︀ in ℝ2. When we had a work integral, we went along the curve 𝒞︀ and added together the dot product of the vector field with the tangent vectors on that vector field.

With 2D flux, we instead take the dot product of the vector field with the normal vector rather than the tangent vector. This should be drawn as a 90° clockwise rotation of 𝐫′(𝑡). Seriously, I can’t make this up.

Figure 89: The 2D flux is the dot product where the tangent 𝐫′(𝑡) is replaced by its rotated version.

In any case, the 2D flux is then defined as follows.

Definition of 2D flux

The 2D flux of a vector field 𝐅 through the closed path 𝒞︀ parametrized by 𝐫(𝑡) is defined by

∫𝑡=start timestop time𝐅(𝐫(𝑡))⋅(90°clockwise rotation of𝐫′(𝑡))d𝑡.
Type signature
2D flux is a scalar quantity. It’s only defined for a vector field in ℝ2 piercing a closed path in ℝ2.

The “90° clockwise rotation of 𝐫′(𝑡)” is so awkward that you can bet people immediately made up a shorthand to sweep it under the rug. I think the usual notation is

𝐧d𝑠≔(90°clockwise rotation of𝐫′(𝑡))d𝑡

so that the above thing will usually be condensed to

∫𝒞︀𝐅⋅𝐧d𝑠.
Digression on why 𝐧d𝑠 is the shorthand

I think the reason this shorthand is used is: 𝐧 is supposed to be the “outward unit normal vector”, i.e. a vector of length 1 whose direction is 90° rotated from 𝐫′(𝑡). So then it needs to be scaled by the magnitude |𝐫′(𝑡)|, and so we copy the old d𝑠 from arc length.

So this notation is consistent with the notation used for scalar-field line integrals (if you consider the scalar field 𝑓=𝐅⋅𝐧). But I don’t like to mention this because I want to avoid scalar-field line integrals in 18.02 for anything that isn’t arc length to keep things simple.

Warning
The rotated 𝐫′(𝑡) is sometimes called the “outward normal vector”. However, despite the name, it only points outward if we oriented 𝒞︀ counterclockwise. If 𝒞︀ is clockwise it points inwards instead!

§35.2 [TEXT] Aquatic interpretation of 2D flux

Aquatically, if the curve 𝒞︀ is thought of as some permeable membrane, then the 2D flux measures the rate the current passes through the membrane. Assuming 𝒞︀ is oriented counterclockwise, the 2D flux is positive if water is (net) moving out of 𝒞︀; it’s negative if it flows in.

§35.3 [TEXT] 2D flux is a rotation of 2D work

We don’t like the 𝐧d𝑠 notation because we don’t like scalar-field line integrals. Fortunately, there is another way to write the flux with shorthand that avoids 𝐧d𝑠 notation. To see where it comes from, once again write

𝐅(𝑥,𝑦)=(𝑝(𝑥,𝑦)𝑞(𝑥,𝑦)).

Rather than rotating 𝐫′(𝑡) by 90° clockwise, let’s imagine we instead rotated 𝐅 by 90° counterclockwise instead, and use:

(90° counterclockwise rotation of 𝐅(𝑥,𝑦))=(−𝑞(𝑥,𝑦)𝑝(𝑥,𝑦)).

The idea is the following:

Idea
𝐅⋅(90°clockwise rotation of𝐫′)=(90°counterclockwise rotation of𝐅)⋅𝐫′.

So what we’ve done is put the rotation thing onto the vector field instead.

Proof of the equation. To spell this out, imagine that 𝐫′(𝑡)=(𝑟1′(𝑡)𝑟2′(𝑡)), meaning that its 90° clockwise rotation is (𝑟2′(𝑡)−𝑟1′(𝑡)). Then the two quantities

𝐅⋅(90°clockwise rotation of𝐫′)=(𝑝𝑞)⋅(𝑟2′−𝑟1′)(90°counterclockwise rotation of𝐅)⋅𝐫′=(−𝑞𝑝)⋅(𝑟1′𝑟2′)

and equal as both are 𝑝𝑟2′−𝑞𝑟1′ (strictly speaking, this quantity should be written in full as 𝑝(𝐫(𝑡))𝑟2′(𝑡)−𝑞(𝐫(𝑡))𝑟1′(𝑡), for each time 𝑡).□

The upshot of this is that we can actually change the flux into a work integral:

∫𝒞︀𝐅⋅𝐧d𝑠=∫𝒞︀(𝐅rotated90°counterclockwise)⋅d𝐫.

This looks a bit better but we still want to get rid of the rotation thing. But we can, because there is a shorthand for work that uses just 𝑝 and 𝑞. Specifically, since 𝐅rotated90°counterclockwise=(𝑞−𝑝), we have

∫𝒞︀(𝐅rotated90°counterclockwise)⋅d𝐫=∫𝒞︀(−𝑞d𝑥+𝑝d𝑦).

In summary, we get the following more readable shorthand:

Better definition of 2D flux using work shorthand

Let 𝐅(𝑥,𝑦)=(𝑝(𝑥,𝑦)𝑞(𝑥,𝑦)) be a 2D vector field and let 𝒞︀ be a path in ℝ2. Then the flux of 𝐅 through 𝒞︀ is defined as

∫𝒞︀(−𝑞d𝑥+𝑝d𝑦).
Tip
For this reason, we usually prefer to rotate 𝐅 by 90° counterclockwise (rather than rotate 𝐫′ by 90° clockwise) when doing concrete calculation, though of course they give the same result. I think it’s easier to remember and more natural this way, because it makes things more consistent with the work integral. We’ll use that convention in all the examples to follow.

In particular, if 𝒞︀ is a loop (and that’s usually the case if we’re talking about flux at all) that means we can apply Green’s theorem again; the resulting theorem is called Green’s theorem in flux form. We get that

∮𝒞︀(−𝑞d𝑥+𝑝d𝑦)=∬ℛ︀(𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦)d𝐴.

The right-hand side is 2D divergence, so it could be condensed even further to

∬ℛ︀∇⋅𝐅d𝐴.

There’s like four different versions of the same expression now, so let me just put everything in one place for sanity’s sake:

Memorize: Green’s theorem in flux form

Suppose 𝒞︀ is a closed curve oriented counterclockwise enclosing a region ℛ︀. We have

∮𝒞︀(−𝑞d𝑥+𝑝d𝑦)⏟=∮𝒞︀(𝐅⋅𝐧d𝑠)=∬ℛ︀(𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦)d𝐴⏟=∬ℛ︀∇⋅𝐅d𝐴.
Warning: There’s no FTC for flux

2D flux is conspicuously missing from our poster in Figure 75. Through this chapter, we were able to complete an analogy to get one Stokes result by translating 2D flux into 2D work and then quoting Green’s theorem. However, as far as I can tell there isn’t an analog of FTC that can be made this way. So actually one good thing about the notation 𝐧d𝑠 is that the presence of d𝑠 is a good reminder that there’s no FTC result.

In other words, 2D flux is conceptually missing one red Stokes arrow compared to 2D work. (I suppose if you really missed it, you could try to force it by asking whether (−𝑞𝑝) is conservative, but I haven’t seen this done. One possible reason is that 2D flux is mostly used for closed loops 𝒞︀, and Green’s theorem can handle that case anyway.)

§35.4 [SIDENOTE] A picture explaining why Green’s Theorem for flux should be true (not a formal proof)

We can draw a figure much like the earlier Figure 87 (from Section 34.4) for Green’s Theorem for flux. Remember that the quantity

𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦=∇⋅𝐅

is the divergence and interprets how much 𝐅 is moving away from the point. So instead of spirals, we draw little green explosions corresponding to how fast 𝐅 is moving out of each individual grey cell. The picture now turns into Figure 90, and

∬ℛ︀∇⋅𝐅d𝐴

is drawn as the sum of the green explosions.

Like before, everything on the inside just cancels out. So what’s left over is now the measure of 𝐅 against the purple walls: the dark green arrows in Figure 90. And this corresponds to the 2D flux of 𝐅 against the purple walls, as desired.

Figure 90: Roughly what Green’s Theorem for flux is trying to say: summing the green explosions gives just the force of 𝐅 against the walls.

§35.5 [RECIPE] Computing 2D flux

Recipe for computing 2D flux
  1. If 𝒞︀ is a closed loop, use Green’s theorem as a shortcut:

    ∮𝒞︀(−𝑞d𝑥+𝑝d𝑦)=∬ℛ︀(𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦)d𝐴.
  2. Otherwise, do the manual recipe in Section 33.4 with 𝐅=(𝑝𝑞) replaced by its 90° counterclockwise rotation (−𝑞𝑝):

    1. 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.
    2. Calculate the derivative 𝐫′(𝑡).
    3. Calculate the dot product (−𝑞𝑝)⋅𝐫′(𝑡). (The vector field (−𝑞𝑝) is the 90° counterclockwise rotation of 𝐅.)
    4. Integrate this from the start time to the stop time.

Here are a few examples for documentation. For each example, we actually show how to do it “manually” (by calculating a line integral) and how to do it with Green’s theorem for flux.

Sample Question
Compute the flux of the vector field 𝐅(𝑥,𝑦)=(𝑥2𝑦2) across the circle 𝒞︀ defined by 𝑥2+𝑦2=1, oriented counterclockwise.

Solution. For this one, we’ll actually show how to do it both using Green and manually, for comparison.

□

Sample Question
Compute the flux of the vector field 𝐅(𝑥,𝑦)=(5𝑥7𝑦) across the square 𝒞︀ with vertices at (1,1), (−1,1), (−1,−1), (1,−1), oriented counterclockwise.

Solution. If we were to do the line integral manually, we would have to parametrize all four sides. This would be straightforward, but it’s annoying, so we’ll just jump straight the shortcut with Green’s theorem.

The divergence is

∇⋅𝐅≔𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦=𝜕𝜕𝑥(5𝑥)+𝜕𝜕𝑦(7𝑦)=12.

So by Green’s theorem, Flux=∬ℛ︀12d𝐴=12Area(ℛ︀)=12⋅22=48 where ℛ︀ is the region enclosed by 𝒞︀, a square of side length 2.□

Sample Question
Let 𝑎,𝑏>0. Compute the flux of the vector field 𝐅(𝑥,𝑦)=(𝑥𝑦) across the ellipse 𝒞︀ defined by 𝑥2𝑎2+𝑦2𝑏2=1, oriented counterclockwise.

Solution. We don’t really want to parametrize the ellipse25 Again, we jump straight to Green’s theorem, with

∇⋅𝐅=𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦=𝜕𝜕𝑥(𝑥)+𝜕𝜕𝑦(𝑦)=1+1=2.

So by Green’s theorem,

Flux=∬ℛ︀2d𝐴=2Area(ℛ︀).

In a previous section (Section 23.5) we saw the area of this ellipse is was 𝑎𝑏𝜋; if you didn’t remember this, you would go back to the change of variables and execute it. In any case, this means the flux is 2⋅(𝑎𝑏𝜋)=2𝑎𝑏𝜋.□

§35.6 [RECAP] Comparison

Since the recipes for 2D flux and work look so similar, it might be helpful to compare them side by side. This comparison is shown in the table below.

MethodWork ∫𝒞︀𝐅⋅d𝐫
(see Section 34.5)
2D Flux ∫𝒞︀𝐅⋅𝐧d𝑠
(see Section 35.5)
𝐅 is conservative
⟹ FTC
If 𝐅=∇𝑓,
Output 𝑓(stop)−𝑓(start)
Not applicable
𝒞︀ is a closed loop
⟹ Green
Output ∬ℛ︀(𝜕𝑞𝜕𝑥−𝜕𝑝𝜕𝑦)⏟2D scalar curld𝐴Output ∬ℛ︀𝜕𝑝𝜕𝑥+𝜕𝑞𝜕𝑦⏟Div=∇⋅𝐅d𝐴
Bare-hands definition
Use parametrization
Output ∫(𝑝d𝑥+𝑞d𝑦)
=∫𝒞︀𝐅⋅𝐫′(𝑡)d𝑡
Output ∫(−𝑞d𝑥+𝑝d𝑦)
=∫𝒞︀(𝐅rot90°ccw)⋅𝐫′(𝑡)d𝑡
Table 18: Comparison of the recipe for work and flux. Methods higher in the table are less work, and preferred when they apply.

If you want to see examples of this written out, see Chapter 36. There I do four examples in full, using every applicable cell of Table 18. Since it’s so long, I broke it out into a separate skippable chapter.

§35.7 [EXER] Exercises

Exercise 35.1 (Suggested by Ting-Wei Chao). As in Exercise 33.1 and Exercise 34.3, let 𝒞︀ be the oriented closed curve formed by the arc of the parabola 𝑦=𝑥2−1 running from (−1,0) to (1,0), followed by a line segment from (1,0) back to (−1,0). Again let

𝐅(𝑥,𝑦)=(𝑥2(𝑦+1)(𝑦+1)2).

Compute ∫𝒞︀𝐅⋅𝐧d𝑠 using direct parametrization and by using Green’s Theorem for flux.

Exercise 35.2. Triangle 𝐴𝐵𝐶 has vertices 𝐴=(−5,0), 𝐵=(9,0), and 𝐶 on the positive 𝑦-axis. The flux of the vector field

𝐅(𝑥,𝑦)=(𝑥+7𝑦2𝑥2+7𝑦)

across the perimeter of 𝐴𝐵𝐶, oriented counterclockwise, is 672. Compute the length of the perimeter of 𝐴𝐵𝐶.

  1. 25Although it could be done with 𝐫=(𝑎cos𝑡,𝑏sin𝑡) for 0≤𝑡≤2𝜋. So it’s not that bad.