Chapter 29. Scalar-field line and surface integrals

Think back to Figure 41. So far we’ve talked about everything except the three entries labeled “line integral” and “surface integral”. This chapter will talk about them. For clarity, I will actually call these scalar-field line integral and scalar-field surface integral.

The reason for this naming is that later we’ll meet vector-field variants of the line and surface integral that play a much bigger role in 18.02. Indeed we mentioned in Section 21.2 that these scalar-field integrals are only used for a few specific cases.

§29.1 [TEXT] Arc length, and its generalization to the scalar-field line integral

We’ve actually met arc length already back in Part Delta! I’ll restate it again here for convenience, but this is a repeat:

Definition: Arc length

If the parametrization 𝐫(𝑡):ℝ→ℝ𝑛 traces out a path in ℝ𝑛, the arc length is defined as

𝐿=∫𝑡=start timestop time|𝐫′(𝑡)|d𝑡.
Warning: There are no red arrows for these integrals

We don’t like these scalar-field line and surface integrals as much; they just don’t behave that well, in part because of the awkward absolute value. For example, Stokes’ theorem — the biggest theorem in the 18.02 course — doesn’t work for arc length (or anything else in this chapter).

In particular: you don’t get Fundamental Theorem of Calculus for arc length. To make that warning explicit, note two common “wrong guesses”:

∫𝑡=𝑎𝑏|𝐫′(𝑡)|d𝑡≠|𝐫(𝑏)|−|𝐫(𝑎)|∫𝑡=𝑎𝑏|𝐫′(𝑡)|d𝑡≠|𝐫(𝑏)−𝐫(𝑎)|.

This is a tempting mistake to make and I’ve seen it happen; you might hope the fundamental theorem of calculus works somehow for |𝐫′(𝑡)| in analogy to how ∫𝑥=𝑎𝑏𝑓′(𝑥)d𝑥=𝑓(𝑏)−𝑓(𝑎) for differentiable functions 𝑓:ℝ→ℝ. But that’s simply not the case. There’s just no analog of FTC for arc length. (Indeed, the arc length on the left-hand side depends on how you travel from 𝐫(𝑎) to 𝐫(𝑏) — a straight line will be shortest mileage, a windy meander with detours will be much longer mileage. So you can’t possibly know just from the starting point and the destination point how long of a route you took.)

More generally, if the parametrization 𝐫(𝑡):ℝ→ℝ𝑛 traces out a path in ℝ𝑛, and 𝑓:ℝ𝑛→ℝ is a function, then the scalar-field line integral of 𝑓 is defined by

∫𝑡=start timestop time𝑓(𝐫(𝑡))|𝐫′(𝑡)|d𝑡.

However, we won’t use this definition in this class, except for the special case 𝑓=1 for arc length.

Type signature
The surface area of a surface 𝒮︀ is a scalar (and doesn’t depend on how the surface is parametrized). The scalar-field line integral is also a scalar.

As I mentioned in the shorthand table (Table 13), many other sources abbreviate

d𝑠≔|𝐫′(𝑡)|d𝑡.

Whenever this shorthand is being used, one frequently cuts out the start and stop time too. The way this is done is, you let 𝒞︀ denote the curve that 𝐫(𝑡) traces out. Then we can abbreviate

∫𝑡=start timestop time𝑓(𝐫(𝑡))|𝐫′(𝑡)|d𝑡=∫𝒞︀𝑓d𝑠.

In particular, taking 𝑓=1, the arc length formula gets abridged to 𝐿=∫𝒞︀d𝑠.

§29.2 [TEXT] Surface area

Okay, so in analogy are surface area and the scalar-field surface integral. We use what we learned about parametrization from Chapter 28.

Definition: Surface area

If the parametrization 𝐫(𝑢,𝑣):ℛ︀→ℝ3 cuts out a surface 𝒮︀ in ℝ3, the surface area is given by

SurfArea(𝒮︀)≔∬ℛ︀|𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|d𝑢d𝑣.

Yes, there’s a cross product. Yes, it sucks (see Section 6.4). This is one case where you probably would prefer to use the shorthand

d𝑆≔|𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|d𝑢d𝑣

so that one can swallow surface area into just

SurfArea(𝒮︀)≔∬𝒮︀d𝑆

where we also cut out the region ℛ︀ on our cartographer’s map from the notation; instead we write 𝒮︀ directly.

Where does the |𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣| come from? The way to picture this is via Figure 68 (actually analogous to the picture we drew in Section 24.6 when justifying the Jacobian). If you imagine our region ℛ︀ as a piece of paper having red and blue gridlines, then 𝜕𝐫𝜕𝑢 and 𝜕𝐫𝜕𝑣 correspond to little arrows on the surface along the gridlines on 𝒮︀. But way back when we introduced the cross product, it had a geometric definition that stated:

Figure 68: Consider surface 𝒮︀ parametrized by 𝐫:ℛ︀→ℝ3. The cross product of the two partial derivatives is drawn in green. The magnitude of the cross product corresponds to the small shaded area.

More generally if we have a function 𝑓:ℝ3→ℝ we could define the scalar-field surface integral of 𝑓 over 𝒮︀ as ∬ℛ︀𝑓(𝐫(𝑢,𝑣))|𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|d𝑢d𝑣; however this definition will not be used in this class except for the special case 𝑓=1 for surface area. But if we did use it, we could have an abbreviation ∬𝒮︀𝑓d𝑆.

Type signature
The scalar-field surface integral (and hence surface area as well) outputs a scalar.

§29.3 [RECIPE] Surface area (done directly)

Here’s surface area in recipe format.

Recipe for surface area, manually
  1. Parametrize the surface by some 𝐫(𝑢,𝑣):ℛ︀→ℝ3 for some 2D region ℛ︀ (ideally something simple like a circle or rectangle).
  2. Compute the partial derivatives 𝜕𝐫𝜕𝑢 and 𝜕𝐫𝜕𝑣 (both are three-dimensional vectors at each point).
  3. Compute the cross product 𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣.
  4. Compute the magnitude |𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣| of this cross product.
  5. Integrate the entire thing over ℛ︀ using any of the methods for double integrals (such as horizontal/vertical slicing, polar coordinates, change of variables, etc.).
Tip: We’ll make a table of common cross products next chapter
For this chapter we’ll compute the cross product by hand in the recipe above. However, this will get tedious really quickly. So in the next chapter, Chapter 30, we’re actually just going to calculate all the cross products for most “common” cases all in one place, and refer to it later.

Here is a really ugly example to start, to give you some practice with spherical coordinates.

Example: Surface area of a sphere
Compute the surface area of the unit sphere 𝑥2+𝑦2+𝑧2=1.

Solution. We will bludgeon our way through this task with sheer brute force using the formula above via spherical coordinates. (We’ll show a more elegant solution later in Section 30.3.)

The parametrization 𝐫 is given from the spherical coordinate system by

𝐫(𝜑,𝜃)=(sin𝜑cos𝜃,sin𝜑sin𝜃,cos𝜑),

across the range

0≤𝜃≤2𝜋and0≤𝜑≤𝜋

for our region ℛ︀. The partial derivatives are thus

𝜕𝐫𝜕𝜑=⟨cos𝜑cos𝜃,cos𝜑sin𝜃,−sin𝜑⟩𝜕𝐫𝜕𝜃=⟨−sin𝜑sin𝜃,sin𝜑cos𝜃,0⟩.

We brute force our way through the entire cross product. We have

𝜕𝐫𝜕𝜑×𝜕𝐫𝜕𝜃=|𝐞1𝐞2𝐞3cos𝜑cos𝜃cos𝜑sin𝜃−sin𝜑−sin𝜑sin𝜃sin𝜑cos𝜃0|=(0⋅cos𝜑sin𝜃−sin𝜑cos𝜃⋅(−sin𝜑))𝐞𝟏−(0⋅cos𝜑cos𝜃−(−sin𝜑sin𝜃)⋅(−sin𝜑))𝐞2+(sin𝜑cos𝜃⋅cos𝜑cos𝜃+sin𝜑sin𝜃⋅cos𝜑sin𝜃)𝐞3=(sin2𝜑cos𝜃)𝐞1+(sin2𝜑sin𝜃)𝐞2+(sin𝜑cos𝜑sin2𝜃+sin𝜑cos𝜑cos2𝜃)𝐞3=(sin2𝜑cos𝜃)𝐞1+(sin2𝜑sin𝜃)𝐞2+(sin𝜑cos𝜑)𝐞3

since cos2𝜃+sin2𝜃=1. If we take the magnitude ,we get

|𝜕𝐫𝜕𝜑×𝜕𝐫𝜕𝜃|=(sin2𝜑cos𝜃)2+(sin2𝜑sin𝜃)2+(sin𝜑cos𝜑)2=sin4𝜑cos2𝜃+sin4𝜑sin2𝜃+sin2𝜑cos2𝜑=sin4𝜑(cos2𝜃+sin2𝜃)+sin2𝜑cos2𝜑=sin4𝜑⋅1+sin2𝜑cos2𝜑=sin2𝜑(sin2𝜑+cos2𝜑)=sin2𝜑⋅1=|sin𝜑|.

Thank the lord it’s a simple answer. Great, now we can calculate the surface area of the sphere:

SurfArea(sphere)=∫𝜃=02𝜋∫𝜑=0𝜋|𝜕𝐫𝜕𝜃×𝜕𝐫𝜕𝜑|d𝜑d𝜃=∫𝜃=02𝜋∫𝜑=0𝜋|sin𝜑|d𝜑d𝜃=(∫𝜑=0𝜋|sin𝜑|d𝜑)(∫𝜃=02𝜋d𝜃)=(∫𝜑=0𝜋sin𝜑d𝜑)(∫𝜃=02𝜋d𝜃)=[−cos𝜑]𝜑=0𝜋⋅2𝜋=4𝜋.

□

Digression on the direction of the cross product

As we said earlier when drawing Figure 68, in general if you parametrize a surface 𝒮︀ by 𝐫(𝑢,𝑣), then 𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣 is a vector which is normal to both 𝜕𝐫𝜕𝑢 and 𝜕𝐫𝜕𝑣. That is, the direction of this cross product is the normal vector to the tangent plane of the surface 𝒮︀ at 𝐫(𝑢,𝑣).

Of course, since we took an absolute value, the direction gets discarded for surface area. But if you are really observant you might have noticed that the computed cross product is

(sin2𝜑cos𝜃)𝐞1+(sin2𝜑sin𝜃)𝐞2+(sin𝜑cos𝜑)𝐞3=sin𝜑⋅𝐫(𝜃,𝜑)

which happens to be a multiple of the corresponding point on the sphere; and this is why, because for a sphere, 𝐫(𝜃,𝜑) happens to be perpendicular to the tangent plane.

And here is an example that is a little less computationally intensive.

Sample Question
Compute the surface area of the cone defined by 𝑧=𝑥2+𝑦2≤1.

Solution. The given cone can be parametrized using Cartesian coordinates as:

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

where (𝑥,𝑦) lies within the disk 𝑥2+𝑦2≤1.

Compute the partial derivatives of 𝐫 with respect to 𝑥 and 𝑦:

𝜕𝐫𝜕𝑥=⟨𝜕𝑥𝜕𝑥,𝜕𝑦𝜕𝑥,𝜕𝑧𝜕𝑥⟩=⟨1,0,𝑥𝑥2+𝑦2⟩𝜕𝐫𝜕𝑦=⟨𝜕𝑥𝜕𝑦,𝜕𝑦𝜕𝑦,𝜕𝑧𝜕𝑦⟩=⟨0,1,𝑦𝑥2+𝑦2⟩.

Hence the cross product is

𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦=|𝐞1𝐞2𝐞310𝑥𝑥2+𝑦201𝑦𝑥2+𝑦2|=(0⋅𝑦𝑥2+𝑦2−1⋅𝑥𝑥2+𝑦2)𝐞1−(1⋅𝑦𝑥2+𝑦2−0⋅𝑥𝑥2+𝑦2)𝐞2+(1⋅1−0⋅0)𝐞3=⟨−𝑥𝑥2+𝑦2,−𝑦𝑥2+𝑦2,1⟩

Now, compute the magnitude of this cross product:

|𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦|=(−𝑥𝑥2+𝑦2)2+(−𝑦𝑥2+𝑦2)2+12=𝑥2𝑥2+𝑦2+𝑦2𝑥2+𝑦2+1=2.

That’s really convenient: we got a constant! Hence

SurfArea(cone)=∬𝑥2+𝑦2≤12d𝐴=2Area(𝑥2+𝑦2≤1)=2𝜋.

□

§29.4 [EXER] Exercises

Exercise 29.1. Consider a surface 𝒮︀ given by the parametrization 𝐫:ℝ2→ℝ3 defined by

𝐫(𝑢,𝑣)=⟨𝑢−𝑣,𝑢+𝑣,𝑢𝑣⟩

for all (𝑢,𝑣) in ℝ2. Compute the tangent plane to 𝒮︀ at the point (3,7,10).