Chapter 36. Way too many examples of work and 2D flux

This entire chapter is review and examples only and can be skipped if you know what you’re doing.

The goal of this chapter is to fully write out several examples of Table 18. We’ll show the entire table with four situations:

§36.1 Example with 𝐅=(2𝑥+𝑦𝑥+2𝑦) and 𝒞︀ the unit circle

Sample Question
Let 𝐅=(2𝑥+𝑦𝑥+2𝑦) and let 𝒞︀ be the unit circle oriented counterclockwise. Evaluate ∫𝐅⋅d𝐫 and ∫𝐅⋅𝐧d𝑠.

We use the parametrization

𝐫(𝑡)=(cos(𝑡)sin(𝑡))0≤𝑡≤2𝜋

so

𝐫′(𝑡)=(−sin(𝑡)cos(𝑡))0≤𝑡≤2𝜋.

In this case all five methods are applicable, see the table below.

MethodWork ∫𝒞︀𝐅⋅d𝐫
(see Section 34.5)
2D Flux ∫𝒞︀𝐅⋅𝐧d𝑠
(see Section 35.5)
𝐅 is conservative
⟹ FTC
𝑓(1,0)−𝑓(1,0)=0Not applicable
𝒞︀ is a closed loop
⟹ Green
∬ℛ︀1−1⏟2D scalar curld𝐴=0Output ∬ℛ︀2+2⏟Div=∇⋅𝐅d𝐴=4𝜋
Bare-hands definition
Use parametrization
∫𝑡=02𝜋(2cos(𝑡)+sin(𝑡)cos(𝑡)+2sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡∫𝑡=02𝜋(−(cos(𝑡)+2sin(𝑡))2cos(𝑡)+sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡
Table 19: For 𝐅=(2𝑥+𝑦𝑥+2𝑦) which is conservative, with potential function 𝑓(𝑥,𝑦)=𝑥2+𝑥𝑦+𝑦2, around the unit circle.

§36.1.1 Using FTC for work

The line integral is trivially zero: we don’t even have to compute the potential function, because the FTC implies that we’ll get 𝑓(1,0)−𝑓(1,0)=0. In fact the potential function is 𝑓(𝑥,𝑦)=𝑥2+𝑥𝑦+𝑦2 but we won’t use this until the next example.

§36.1.2 Green’s theorem for work

If you missed that the vector field was conservative, and you use Green’s theorem, you unsurprisingly get 0 for the 2D scalar curl:

∬ℛ︀1−1⏟2D scalar curld𝐴=∬ℛ︀0d𝐴=0.

Conservative functions have vanishing curl. So actually even if you don’t notice the field is conservative to start, when you try to apply Green’s theorem you’ll get a rather rude reminder when you realize you’re just integrating the 0 function.

§36.1.3 Bare-hands for work

For the work integral, you compute it as follows:

𝐅(cos𝑡,sin𝑡)⋅𝐫′(𝑡)=(2cos(𝑡)+sin(𝑡)cos(𝑡)+2sin(𝑡))⋅(−sin(𝑡)cos(𝑡))=(2cos𝑡+sin𝑡)(−sin𝑡)+(cos𝑡+2sin𝑡)(cos𝑡)=−2cos𝑡sin𝑡−sin2𝑡+cos2𝑡+2cos𝑡sin𝑡=cos2𝑡−sin2𝑡=cos(2𝑡).

So the integral becomes:

∫02𝜋cos(2𝑡)d𝑡=0

because it’s an integral over two full periods of the cosine function, hence 0. (Alternatively, write [sin2𝑡2]𝑡=02𝜋=sin4𝜋2−sin02=0−0=0.)

§36.1.4 Green’s theorem for flux

For flux, we don’t get a fundamental theorem of calculus anyway, but the divergence is 2+2=4 everywhere, which is a constant, so the flux works out to 4Area(ℛ︀), which is just 4𝜋.

§36.1.5 Bare-hands for flux

For the flux integral, rotate the vector for the vector field (that is, look at −𝑞d𝑥+𝑝d𝑦) to get the dot product

(−(cos(𝑡)+2sin(𝑡))2cos(𝑡)+sin(𝑡))⋅(−sin(𝑡)cos(𝑡))=(2cos𝑡+sin𝑡)cos𝑡+(cos𝑡+2sin𝑡)sin𝑡=2cos2𝑡+sin𝑡cos𝑡+cos𝑡sin𝑡+2sin2𝑡=2(cos2𝑡+sin2𝑡)+2sin𝑡cos𝑡=2(1)+sin2𝑡=2+sin2𝑡.

Consequently,

∫𝑡=02𝜋(2+sin2𝑡)d𝑡=4𝜋+∫𝑡=02𝜋sin2𝑡d𝑡=4𝜋.

since ∫𝑡=02𝜋sin2𝑡 is an integral over two full periods of the sine function.

§36.2 Example with 𝐅=(2𝑥+𝑦𝑥+2𝑦) and 𝒞︀ a line segment

Sample Question
Let 𝐅=(2𝑥+𝑦𝑥+2𝑦) and let 𝒞︀ be the path from (1,4) to (3,9). Evaluate ∫𝐅⋅d𝐫 and ∫𝐅⋅𝐧d𝑠.

We use the same vector field, but this time we parametrize our line segment

𝐫(𝑡)=(1+2𝑡4+5𝑡)0≤𝑡≤1

so

𝐫′(𝑡)=(25)0≤𝑡≤1.

This time, our table looks like this:

MethodWork ∫𝒞︀𝐅⋅d𝐫
(see Section 34.5)
2D Flux ∫𝒞︀𝐅⋅𝐧d𝑠
(see Section 35.5)
𝐅 is conservative
⟹ FTC
𝑓(3,9)−𝑓(1,4)=117−21=96Not applicable
𝒞︀ is a closed loop
⟹ Green
Cannot use hereCannot use here
Bare-hands definition
Use parametrization
∫𝑡=01(2(1+2𝑡)+(4+5𝑡)(1+2𝑡)+2(4+5𝑡))⋅(25)d𝑡∫𝑡=01(−((1+2𝑡)+2(4+5𝑡))2(1+2𝑡)+(4+5𝑡))⋅(25)d𝑡
Table 20: For 𝐅=(2𝑥+𝑦𝑥+2𝑦) which is conservative, with potential function 𝑓(𝑥,𝑦)=𝑥2+𝑥𝑦+𝑦2, but this time on the line segment from (1,4) to (3,9).

As always, the bare-hands method is the most work, but for the flux integral we don’t really have a choice because no other method is possible.

§36.2.1 Using FTC

This time, we will actually use the potential function

𝑓(𝑥,𝑦)=𝑥2+𝑥𝑦+𝑦2

(or really 𝑓(𝑥,𝑦)=𝑥2+𝑥𝑦+𝑦2+𝐶 for any constant 𝐶). So we can short-circuit the entire line integral by simply evaluating

𝑓(3,9)−𝑓(1,4)=117−21=96.

§36.2.2 Bare-hands for work

For the work integral, first expand

𝐅(1+2𝑡,4+5𝑡)=(2(1+2𝑡)+(4+5𝑡)(1+2𝑡)+2(4+5𝑡))=(2+4𝑡+4+5𝑡1+2𝑡+8+10𝑡)=(6+9𝑡9+12𝑡).

Hence the dot product is

𝐅(1+2𝑡,4+5𝑡)⋅𝐫′(𝑡)=(6+9𝑡9+12𝑡)⋅(25)=2(6+9𝑡)+5(9+12𝑡)=57+78𝑡.

Integrating this gives

∫𝑡=01(57+78𝑡)d𝑡=[57𝑡+39𝑡2]01=57(1)+39(1)2−0=57+39=96.

§36.2.3 Bare-hands for flux

For the flux integral, rotate the vector for the vector field (that is, look at −𝑞d𝑥+𝑝d𝑦) to get the dot product

(−(9+12𝑡)6+9𝑡)⋅(25)=−2(9+12𝑡)+5(6+9𝑡)=12+21𝑡

Integrating this gives

∫𝑡=01(12+21𝑡)d𝑡=[12𝑡+212𝑡2]𝑡=01=452.

§36.3 Example with 𝐅=(𝑥2+3𝑦5𝑦) and 𝒞︀ the unit circle

Sample Question
Let 𝐅=(𝑥2+3𝑦5𝑦) and let 𝒞︀ be the unit circle oriented counterclockwise. Evaluate ∫𝐅⋅d𝐫 and ∫𝐅⋅𝐧d𝑠.

Green’s theorem works readily here because 𝒞︀ is closed. You can also do parametrization, which is disgusting, but it works.

MethodWork ∫𝒞︀𝐅⋅d𝐫
(see Section 34.5)
2D Flux ∫𝒞︀𝐅⋅𝐧d𝑠
(see Section 35.5)
𝐅 is conservative
⟹ FTC
Cannot use hereNot applicable
𝒞︀ is a closed loop
⟹ Green
∬ℛ︀0−3⏟2D scalar curld𝐴=−3𝜋Output ∬ℛ︀2𝑥+5⏟Div=∇⋅𝐅d𝐴=5𝜋
Bare-hands definition
Use parametrization
∫𝑡=02𝜋(cos(𝑡)2+3sin(𝑡)5sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡∫𝑡=02𝜋(−5sin(𝑡)cos(𝑡)2+3sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡
Table 21: For 𝐅=(𝑥2+3𝑦5𝑦) which is not conservative, integrated over the unit circle.

§36.3.1 Green’s theorem for work

For the work version, we do

𝜕𝑞𝜕𝑥=𝜕𝜕𝑥(5𝑦)=0𝜕𝑝𝜕𝑦=𝜕𝜕𝑦(𝑥2+3𝑦)=3.

so the answer is ∬ℛ︀(0−3)d𝐴=−3𝜋.

§36.3.2 Bare-hands for work

We need to compute

∫𝑡=02𝜋(cos(𝑡)2+3sin(𝑡)5sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡.

Expanding the dot product gives

∫𝑡=02𝜋(−cos2𝑡sin𝑡−3sin2𝑡+5sin𝑡cos𝑡)d𝑡.

Compute each integral separately:

  1. ∫𝑡=02𝜋cos2𝑡sin𝑡d𝑡: Let 𝑢=cos𝑡, then d𝑢=−sin𝑡d𝑡.

    ∫cos2𝑡sin𝑡d𝑡=−∫𝑢2d𝑢=−𝑢33+𝐶=−cos3𝑡3+𝐶.

    Evaluate from 0 to 2𝜋:

    [−cos3𝑡3]𝑡=02𝜋=−cos3(2𝜋)3+cos303=−13+13=0.
  2. ∫𝑡=02𝜋sin2𝑡d𝑡: Use the identity sin2𝑡=1−cos2𝑡2:

    ∫𝑡=02𝜋sin2𝑡d𝑡=12∫𝑡=02𝜋(1−cos2𝑡)d𝑡=12[𝑡−sin2𝑡2]𝑡=02𝜋=12(2𝜋−0)=𝜋.
  3. ∫𝑡=02𝜋sin𝑡cos𝑡d𝑡:

Use the identity sin𝑡cos𝑡=sin2𝑡2:

∫𝑡=02𝜋sin𝑡cos𝑡d𝑡=12∫𝑡=02𝜋sin2𝑡d𝑡=0.

(Since the integral of sine over its full period is zero.) Combine the results to get

−0−3⋅𝜋+5⋅0=−3𝜋.

§36.3.3 Green’s theorem for flux

For the flux version, it’s instead

𝜕𝑝𝜕𝑥=𝜕𝜕𝑥(𝑥2+3𝑦)=2𝑥𝜕𝑞𝜕𝑦=𝜕𝜕𝑦(5𝑦)=5.

so the flux is

∮𝒞︀𝐅⋅𝐧d𝑠=∬ℛ︀(2𝑥+5)d𝐴.

By symmetry, we have

∬ℛ︀𝑥d𝐴=0

and we also have

∬ℛ︀5d𝐴=5𝜋

so we get the answer 0+5𝜋=5𝜋.

Polar coordinates is fine too for the flux one

If you don’t notice the symmetry trick, you can use polar coordinates too. Write 2𝑥+5=2𝑟cos𝜃+5 and set up the flux integral as:

∮𝒞︀𝐅⋅𝐧d𝑠=∫𝜃=02𝜋∫𝑟=01(2𝑟cos𝜃+5)𝑟d𝑟d𝜃=∫𝜃=02𝜋∫𝑟=01(2𝑟2cos𝜃+5𝑟)d𝑟d𝜃=2∫𝜃=02𝜋cos𝜃∫𝑟=01𝑟2d𝑟d𝜃+5∫𝜃=02𝜋∫𝑟=01𝑟d𝑟d𝜃.

The inner integrals are ∫𝑟=01𝑟2d𝑟=13 and ∫𝑟=01𝑟d𝑟=12, so we get the same answer

2⋅13∫02𝜋cos𝜃d𝜃+5⋅12∫02𝜋d𝜃=23⋅0+5⋅12⋅2𝜋=5𝜋.

§36.3.4 Bare-hands for flux

We need to compute

∫𝑡=02𝜋(−5sin(𝑡)cos(𝑡)2+3sin(𝑡))⋅(−sin(𝑡)cos(𝑡))d𝑡.

Expand the dot product:

∫𝑡=02𝜋(cos3𝑡+3sin𝑡cos𝑡+5sin2𝑡)d𝑡.

Compute each integral separately:

  1. ∫𝑡=02𝜋cos3𝑡d𝑡: Use the identity cos3𝑡=3cos𝑡+cos3𝑡4:

    ∫𝑡=02𝜋cos3𝑡d𝑡=34∫𝑡=02𝜋cos𝑡d𝑡+14∫𝑡=02𝜋cos3𝑡d𝑡=0+0=0.
  2. ∫𝑡=02𝜋sin𝑡cos𝑡d𝑡: Use the identity sin𝑡cos𝑡=sin2𝑡2:

    ∫𝑡=02𝜋sin𝑡cos𝑡d𝑡=12∫𝑡=02𝜋sin2𝑡d𝑡=0.
  3. ∫𝑡=02𝜋sin2𝑡d𝑡: Use the identity sin2𝑡=1−cos2𝑡2:

    ∫𝑡=02𝜋sin2𝑡d𝑡=12∫𝑡=02𝜋(1−cos2𝑡)d𝑡=12[2𝜋−0]=𝜋.

Combine the results to get

0+3⋅0+5⋅𝜋=5𝜋.

§36.4 Example with 𝐅=(𝑥2+3𝑦5𝑦) and 𝒞︀ a line segment

Sample Question
Let 𝐅=(𝑥2+3𝑦5𝑦) and let 𝒞︀ be the path from (1,4) to (3,9). Evaluate ∫𝐅⋅d𝐫 and ∫𝐅⋅𝐧d𝑠.

Here in both cases we have to bite the bullet — none of our shortcuts apply. As before we use the parametrization

𝐫(𝑡)=(1+2𝑡4+5𝑡)0≤𝑡≤1

with

𝐫′(𝑡)=(25)0≤𝑡≤1.
MethodWork ∫𝒞︀𝐅⋅d𝐫
(see Section 34.5)
2D Flux ∫𝒞︀𝐅⋅𝐧d𝑠
(see Section 35.5)
𝐅 is conservative
⟹ FTC
Cannot use hereNot applicable
𝒞︀ is a closed loop
⟹ Green
Cannot use hereCannot use here
Bare-hands definition
Use parametrization
∫𝑡=01((1+2𝑡)2+3(4+5𝑡)5(4+5𝑡))⋅(25)d𝑡∫𝑡=01(−5(4+5𝑡)(1+2𝑡)2+3(4+5𝑡))⋅(25)d𝑡
Table 22: For 𝐅=(𝑥2+3𝑦5𝑦) which is not conservative, integrated over the unit circle.

§36.4.1 Bare-hands for work

For the work integral, substitute 1+2𝑡 and 4+5𝑡 into 𝐅:

𝐅(1+2𝑡,4+5𝑡)=((1+2𝑡)2+3(4+5𝑡)5(4+5𝑡))=(4𝑡2+19𝑡+1325𝑡+20).

Then the dot product is Dot product:

(4𝑡2+19𝑡+1325𝑡+20)⋅(25)=2(4𝑡2+19𝑡+13)+5(25𝑡+20)=8𝑡2+163𝑡+126.

Hence

∫𝒞︀𝐅⋅d𝐫=∫𝑡=01(8𝑡2+163𝑡+126)d𝑡.

Integrate term by term:

∫𝑡=01126d𝑡=126,∫𝑡=01163𝑡d𝑡=[1632𝑡2]𝑡=01=1632(1)2−1632(0)2=1632,∫𝑡=018𝑡2d𝑡=[83𝑡3]𝑡=01=83(1)3−83(0)3=83.

Combine the results:

∫𝒞︀𝐅⋅d𝐫=126+1632+83=12616.

§36.4.2 Bare-hands for flux

For the flux integral, instead do the dot product

(−(25𝑡+20)4𝑡2+19𝑡+13)⋅(25)=−2(25𝑡+20)+5(4𝑡2+19𝑡+13)=20𝑡2+45𝑡+25.

Integrate term by term again:

∫𝑡=0125d𝑡=25,∫𝑡=0145𝑡d𝑡=[452𝑡2]𝑡=01=452(1)2−452(0)2=452,∫𝑡=0120𝑡2d𝑡=[203𝑡3]𝑡=01=203(1)3−203(0)3=203.

Combine the results:

∫𝒞︀𝐅⋅𝐧d𝑠=25+452+203=1506+1356+406=3256.