Chapter 30. Pre-computed cross products for common surfaces

TL;DR: cross products are too annoying, so we pre-compute them all.

§30.1 [TEXT] Pre-computed formulas for the cross product

As the examples last chapter show, it’s actually really annoying to compute the cross product by hand. Consequently, we can make our lives a lot easier if we pre-compute what the cross product works out to for some common situations, so we don’t have to redo it by hand every time we need it.

In these notes we will pre-compute five different cross products:

As it turns out, in 18.02 it’s likely these are the only five situations you will see.

The table showing the results is Table 14. Note that for surface area, you only need the absolute value of the cross product (fourth column). But I’m going to include the entire vector too, because we’ll later need to reuse this table in Chapter 38 (where one reformats it as Table 23). At that point, we will actually need to know the direction the vector points in too, not just the absolute value.

SurfaceParam’s𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|d𝑢d𝑣
𝑧=𝑓(𝑥,𝑦)(𝑥,𝑦)⟨−𝜕𝑓𝜕𝑥,−𝜕𝑓𝜕𝑦,1⟩1+(𝜕𝑓𝜕𝑥)2+(𝜕𝑓𝜕𝑦)2d𝑥d𝑦
Level surface 𝑔(𝑥,𝑦,𝑧)=𝑐
over an 𝑥𝑦-region
(𝑥,𝑦)∇𝑔𝜕𝑔/𝜕𝑧|∇𝑔||𝜕𝑔/𝜕𝑧|d𝑥d𝑦
Flat surface 𝑧=𝑐(𝑥,𝑦)⟨0,0,1⟩d𝑥d𝑦
Cylindrical coords with fixed 𝑅
𝐫(𝜃,𝑧)=(𝑅cos𝜃,𝑅sin𝜃,𝑧)
(𝜃,𝑧)⟨𝑅cos𝜃,𝑅sin𝜃,0⟩𝑅d𝜃d𝑧
Spherical coords with fixed 𝑅
𝐫(𝜑,𝜃)=(𝑅sin𝜑cos𝜃,𝑅sin𝜑sin𝜃,𝑅cos𝜑)
(𝜑,𝜃)𝑅sin𝜑⋅𝐫(𝜑,𝜃)𝑅2sin𝜑d𝜑d𝜃
(if 0≤𝜑≤𝜋)
Table 14: Pre-computed formulas for the cross product in five most common situations, which are likely to be all you need.

Recall the following geometric idea from the earlier Figure 64, when we described where the cross product was coming from:

Idea
The vector 𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣 is normal to the tangent plane to the surface at each point.

This can help a lot with remembering the third column of Table 14. For example:

Again, to re-iterate: for surface area you actually only need the fourth column |𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣|, but

The first and second rows of Table 14 above are quite versatile, so in these notes I’ll call them “magic” formulas because they save us so much work. In contrast, the other rows are for more specialized situations.

§30.2 [TEXT] Table 14 row 1: For a graph (surface of the form 𝑧=𝑓(𝑥,𝑦))

So imagine your surface is given by 𝑧=𝑓(𝑥,𝑦) for some 𝑓 over some region ℛ︀ in the 𝑥𝑦 plane (e.g. the cone had ℛ︀={𝑥2+𝑦2≤1}). (e.g. the cone we just did was 𝑓(𝑥,𝑦)=𝑥2+𝑦2) What we’re going to do is try to capture the boilerplate work of the cross product into a single formula that we can just remember, so we don’t have to redo the cross product again.

The parametrization we expect to use is

𝐫(𝑥,𝑦)=(𝑥𝑦𝑓(𝑥,𝑦)).

The partial derivatives are

𝜕𝐫𝜕𝑥=(𝜕𝑥𝜕𝑥𝜕𝑦𝜕𝑥𝜕𝑧𝜕𝑥)=(10𝜕𝑧𝜕𝑥)𝜕𝐫𝜕𝑦=(𝜕𝑥𝜕𝑦𝜕𝑦𝜕𝑦𝜕𝑧𝜕𝑦)=(01𝜕𝑧𝜕𝑦).

Hence, in this case we arrive at

𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦=|𝐞1𝐞2𝐞310𝜕𝑧𝜕𝑥01𝜕𝑧𝜕𝑦|=−𝜕𝑧𝜕𝑥𝐞1−𝜕𝑧𝜕𝑦𝐞2+𝐞3=−𝜕𝑓𝜕𝑥𝐞1−𝜕𝑓𝜕𝑦𝐞2+𝐞3.

Let’s write this down now.

Memorize: Magic cross product formula for graphs 𝑧=𝑓(𝑥,𝑦)

Consider a surface given by 𝑧=𝑓(𝑥,𝑦) with 𝑓 differentiable. Then for the obvious parametrization 𝐫(𝑥,𝑦)=(𝑥,𝑦,𝑓(𝑥,𝑦)) we have

𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦=⟨−𝜕𝑓𝜕𝑥,−𝜕𝑓𝜕𝑦,1⟩.

In particular, the surface area becomes

SurfArea(𝒮︀)=∬ℛ︀1+(𝜕𝑓𝜕𝑥)2+(𝜕𝑓𝜕𝑦)2d𝑥d𝑦.

You’ll find this formula written in a lot of other textbooks and it’s worth knowing (I would say you should memorize the full magic cross product formula, since it’s trivial to get the magnitude from it.) Let’s see how it can capture the boilerplate in the cone example.

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

Solution. Letting 𝑓(𝑥,𝑦)=𝑥2+𝑦2, this time we skip straight to

𝜕𝑓𝜕𝑥=𝑥𝑥2+𝑦2𝜕𝑓𝜕𝑦=𝑦𝑥2+𝑦2.

Hence we got a shortcut to the vector ⟨−𝑥𝑥2+𝑦2,−𝑦𝑥2+𝑦2,1⟩ we found before. We find its magnitude in the same way:

1+(𝜕𝑓𝜕𝑥)2+(𝜕𝑓𝜕𝑦)2=1+𝑥2𝑥2+𝑦2+𝑦2𝑥2+𝑦2=2.

Now

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

□

§30.3 [TEXT] Table 14 row 2: For a level surface 𝑔(𝑥,𝑦,𝑧)=𝑐

However, we can get an even better formula in a lot of cases using implicit differentiation. The basic idea is that we would prefer to think of the cone as 𝑥2+𝑦2−𝑧2=0, so that we don’t need to think about square roots. And that’s exactly a level surface.

So imagining a level surface 𝑔(𝑥,𝑦,𝑧)=𝑐 instead, where each (𝑥,𝑦) in our region ℛ︀ has exactly one 𝑧=𝑧(𝑥,𝑦) value. On paper, you imagine solving for 𝑧 in terms of 𝑥 and 𝑦, and then using

𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦=−𝜕𝑧𝜕𝑥𝐞1−𝜕𝑧𝜕𝑦𝐞2+𝐞3

but we’d like to not have to solve for 𝑧 in such a brute way.

The trick is to consider the gradient of 𝑔 and use the chain rule. You might remember that

∇𝑔=⟨𝜕𝑔𝜕𝑥,𝜕𝑔𝜕𝑦,𝜕𝑔𝜕𝑧⟩

is pretty easy to calculate, usually. However, if we take the partial derivative of

𝑔(𝑥,𝑦,𝑧)=𝑐

with respect to 𝑥 and 𝑦, the derivative of 𝑐 vanishes while the chain rule gives

0=𝜕𝑔𝜕𝑥+𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑥⟹𝜕𝑔𝜕𝑥=−𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑥.

Similarly 𝜕𝑔𝜕𝑦=−𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑦. Hence

∇𝑔=⟨−𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑥,−𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑦,𝜕𝑔𝜕𝑧⟩=𝜕𝑔𝜕𝑧⋅⟨−𝜕𝑧𝜕𝑥,−𝜕𝑧𝜕𝑦,1⟩.
Digression on the chain rule

You might be spooked by the minus sign here, as I was, since if you just look at the fractions the expression seems wrong. This is why I don’t like to remember the chain rule as just “cancel the fractions”, because in some contexts you’ll get equations like this that don’t seem correct.

The context to remember here is that 𝑧=𝑧(𝑥,𝑦) is itself a function of 𝑥 and 𝑦 that holds on to the requirement 𝑔(𝑥,𝑦,𝑧(𝑥,𝑦))=𝑐; that is, if 𝑥 changes a little, 𝑧=𝑧(𝑥,𝑦) should change in an “opposite” way to ensure 𝑔=𝑐 is still true.

How much should the change be? It might be easiest to reason through two applications of linear approximation. If 𝜀 is some small displacement, then linear approximation is saying that

𝑔(𝑥+𝜀,𝑦,𝑧(𝑥+𝜀,𝑦))≈𝑔(𝑥+𝜀,𝑦,𝑧(𝑥,𝑦)+𝜕𝑧𝜕𝑥⋅𝜀)≈𝑔(𝑥,𝑦,𝑧(𝑥,𝑦))+∇𝑔⋅(𝜀0𝜕𝑧𝜕𝑥⋅𝜀)=𝑔(𝑥,𝑦,𝑧(𝑥,𝑦))+[𝜕𝑔𝜕𝑥+𝜕𝑔𝜕𝑧⋅𝜕𝑧𝜕𝑥]𝜀.

Hence we want the bracketed coefficient of 𝜀 to be zero, which is the equation we got before.

Something really good is happening here, because the cross product we wanted just sits on the right-hand side! Because of this, we have managed to derive the following miraculous identity.

Memorize: Magic cross product formula for a level surface

Let 𝑔 be differentiable and consider the level surface 𝑔(𝑥,𝑦,𝑧)=𝑐. Let 𝒮︀ be a part of this level surface described implicitly by some function 𝑧=𝑓(𝑥,𝑦), and suppose also that 𝜕𝑔𝜕𝑧≠0 over ℛ︀. Then for the obvious parametrization 𝐫(𝑥,𝑦)=(𝑥,𝑦,𝑓(𝑥,𝑦)) we have

𝜕𝐫𝜕𝑥×𝜕𝐫𝜕𝑦=∇𝑔𝜕𝑔/𝜕𝑧.

The reason this magic identity is even better is that there is no need to differentiate 𝑓 or even to determine it. Let’s see it in action by redoing our example with a cone.

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

Solution. The cone is the part of the level surface of 𝑔(𝑥,𝑦,𝑧)=𝑥2+𝑦2−𝑧2 with 𝑧≥0. (We know in fact 𝑓(𝑥,𝑦)=𝑥2+𝑦2, but we won’t use this.) Now we can jump straight to

∇𝑔𝜕𝑔𝜕𝑧=⟨2𝑥,2𝑦,−2𝑧⟩−2𝑧=⟨−𝑥𝑧,−𝑦𝑧,1⟩.

The magnitude of this vector is

(−𝑥𝑧)2+(−𝑦𝑧)2+1=𝑥2+𝑦2𝑧2+1=2

so we get

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

□

If you compare this carefully with 𝑧=𝑥2+𝑦2, you’ll see this is still the same solution as the first magic formula, which is in turn still the same solution as when we really used bare hands. But the shortcuts are nice because it means you don’t have to think about the cross product at all.

Now as we promised, let’s show how to find surface area for a sphere without having to slog through the pain of spherical coordinates.

Sample Question
Compute the surface area of the sphere 𝑥2+𝑦2+𝑧2=1.

Solution. We’ll find the surface area for the hemisphere with 𝑧≥0 and then double it. We could view the hemisphere as 𝑧=𝑓(𝑥,𝑦)=1−(𝑥2+𝑦2), but to avoid square roots we’re much happier by letting

𝑔(𝑥,𝑦,𝑧)=𝑥2+𝑦2+𝑧2

and considering the hemisphere as the chunk of the level surface with 𝑧≥0 and 𝑥2+𝑦2≤1. In that case,

∇𝑔𝜕𝑔/𝜕𝑧=⟨2𝑥,2𝑦,2𝑧⟩2𝑧=⟨𝑥𝑧,𝑦𝑧,1⟩.

This time the magnitude of the vector is

(𝑥𝑧)2+(𝑦𝑧)2+1=𝑥2+𝑦2+𝑧2𝑧2=1𝑧=11−(𝑥2+𝑦2).

Hence, we need to integrate

SurfArea(hemisphere)=∬𝑥2+𝑦2≤111−(𝑥2+𝑦2)d𝑥d𝑦.

To nobody’s surprise, we use polar coordinates to change this to

SurfArea(hemisphere)=∫𝜃=02𝜋∫𝑟=0111−𝑟2(𝑟d𝑟d𝜃)=(∫𝜃=02𝜋d𝜃)(∫𝑟=01𝑟1−𝑟2d𝑟).

The left integral is 2𝜋. For the inner integral, use the 𝑢-substitution 𝑢=1−𝑟2⟹d𝑢d𝑟=−2𝑟 to get

∫𝑟=01𝑟1−𝑟2d𝑟=∫𝑢=10−12𝑢−12d𝑢=∫𝑢=0112𝑢−12d𝑢=[𝑢12]𝑢=01=1.

Hence

SurfArea(hemisphere)=2𝜋⋅1=2𝜋

and the surface area of the sphere is thus 2𝜋⋅2=4𝜋.□

§30.4 [TEXT] Table 14 row 3: For a flat surface

This is the really easy special case of 𝑧=𝑓(𝑥,𝑦) when 𝑓(𝑥,𝑦)=𝑐 is constant. Your parametrization is just

𝐫(𝑥,𝑦)=⟨𝑥,𝑦,𝑐⟩.

I hesitated to include this row because it’s so easy and is a special case of the first row, but it’s common enough I decided I might as well toss it in. However, you should have no problem deriving this yourself even in your sleep; it’s literally

𝜕𝐫𝜕𝑥=⟨1,0,0⟩𝜕𝐫𝜕𝑦=⟨0,1,0⟩

and the cross product of these is ⟨0,0,1⟩, so there you go.

Note that you might encounter flat surfaces parallel to the 𝑥𝑧 or 𝑦𝑧 planes instead, in which case you should just swap the roles of the variables.

§30.5 [TEXT] Table 14 row 4: For the curved part of the cylinder in cylindrical coordinates

If you have a cylinder aligned with the 𝑧-axis, then you don’t want to be using 𝑥𝑦-plane as parameters, because most pairs (𝑥,𝑦) do not get used at all. Thus, we’ll instead use cylindrical coordinates as

𝐫(𝜃,𝑧)=(𝑅cos𝜃,𝑅sin𝜃,𝑧).

Compute the partial derivatives:

𝜕𝐫𝜕𝜃=⟨−𝑅sin𝜃,𝑅cos𝜃,0⟩𝜕𝐫𝜕𝑧=⟨0,0,1⟩.

The cross product is pretty easy to evaluate in this case:

𝜕𝐫𝜕𝜃×𝜕𝐫𝜕𝑧=|𝐞1𝐞2𝐞3−𝑅sin𝜃𝑅cos𝜃0001|=𝑅cos𝜃𝐞1+𝑅sin𝜃𝐞2=⟨𝑅cos𝜃,𝑅sin𝜃,0⟩.

That’s not too bad! We can take the absolute value of this:

d𝑆=𝑅d𝜃d𝑧.
Tip: d𝑆 for the cylinder can be remembered geometrically

The way to remember this is that “d𝑆d𝑟≈d𝑉”: if you multiply a bit of surface by a bit of the radial component, you get a chunk of volume of the sphere. And since we saw in Chapter 26 that d𝑉=𝑟d𝑟d𝜃d𝑧, the formula for d𝑆 is what you get when you divide out d𝑟 and set 𝑟=𝑅.

Alternatively, each patch on the cylinder can be thought of as a little rectangle of height d𝑧 and width 𝑅d𝜃.

§30.6 [TEXT] Table 14 row 5: For the curved part of the sphere, in spherical coordinates

We already saw the sphere is actually handled by our magic formula for level surfaces, so if you’re fine using 𝑥𝑦-coordinates you are good to go. Nonetheless, in the event you need spherical coordinates, here is the result.

We actually computed this already while working out the sphere’s surface area by brute force: if we take the parametrization

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

then if we repeat the brutal calculation from Section 29.3 with an extra 𝑅 tacked on, we get

𝜕𝐫𝜕𝜑×𝜕𝐫𝜕𝜃=(𝑅2sin2𝜑cos𝜃)𝐞1+(𝑅2sin2𝜑sin𝜃)𝐞2+(𝑅2sin𝜑cos𝜑)𝐞3.

This formula might look ugly until you realize that it’s actually just

𝜕𝐫𝜕𝜑×𝜕𝐫𝜕𝜃=𝑅sin𝜑⋅𝐫(𝜑,𝜃).

Since |𝐫(𝜑,𝜃)|=𝑅, we get

d𝑆≔|𝜕𝐫𝜕𝜑×𝜕𝐫𝜕𝜃|𝑑𝜑𝑑𝜃=𝑅2sin𝜑d𝜑d𝜃.

Here I’m dropping the absolute value bars around sin𝜑 because our spherical coordinate convention requires 0≤𝜑≤𝜋.

Tip: d𝑆 for the sphere can be remembered geometrically
The way to remember this is that “d𝑆d𝜌≈d𝑉”: if you multiply a bit of surface by a bit of the radial component, you get a chunk of volume of the sphere. And since we saw in Chapter 27 that d𝑉=𝜌2sin𝜑d𝜌d𝜑d𝜃, the formula for d𝑆 is what you get when you divide out d𝜌 and set 𝜌=𝑅.

§30.7 [RECIPE] Recap of surface area

Let’s write a new recipe for surface area now that we have Table 14.

Recipe for surface area upgraded with Table 14

To compute the surface area of a surface 𝒮︀:

  1. Get the cross product 𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣 for a parametrization 𝐫 using the following checklist.

    • If you are using (𝑥,𝑦)-coordinates to parametrize (meaning 𝒮︀ is a graph 𝑧=𝑓(𝑥,𝑦) or a level surface), use the magic formulas in rows 1 or 2 of Table 14.
    • For a flat surface, it’s easy (row 3 of Table 14).
    • If 𝒮︀ is specifically given by cylindrical/spherical coordinates with fixed radius, use rows 4 or 5 of Table 14.
    • Otherwise, evaluate the cross product manually:

      • Pick a parametrization 𝐫(𝑢,𝑣):ℛ︀→ℝ3 of the surface 𝒮︀. Sort of like in Section 12.7, you have some freedom in how you set the parametrization.
      • Compute 𝜕𝐫𝜕𝑢 and 𝜕𝐫𝜕𝑣 (both are three-dimensional vectors at each point).
      • Compute the cross product 𝜕𝐫𝜕𝑢×𝜕𝐫𝜕𝑣 as in Chapter 6.
  2. Take the magnitude of the cross product to get a number for each point on the surface.
  3. Integrate it over ℛ︀ using any of the methods for double integrals (such as horizontal/vertical slicing, polar coordinates, change of variables, etc.).

§30.8 [EXER] Exercises

Exercise 30.1. Compute the surface area of the surface defined by 𝑧=𝑥2+𝑦2≤1.
Exercise 30.2 (Archimedes hat-box theorem). Let −1<𝑎<𝑏<1 be real numbers. Consider the unit sphere 𝑥2+𝑦2+𝑧2=1 and the cylinder 𝑥2+𝑦2=1. Show that the portions of their (lateral) surface areas which lie between 𝑧=𝑎 and 𝑧=𝑏 have equal area. See Figure 69.

Figure 69: Figure for Exercise 30.2. Show that the two blue lateral surface areas are equal.