Chapter 21. A zoomed out pep talk of Part Golf

This whole chapter is a pep talk. We’ll get to recipes and details in later sections.

§21.1 [TEXT] The big table of integrals

The rest of 18.02 is going to cover a bunch of different integrals. If you’ve been following my advice to pay attention to type safety so far, it’ll help you here. I’ll freely admit that I (Evan) often make type-errors in this part of 18.02 as well, so don’t let your guard down.

Figure 41: For each 0≤𝑑≤𝑛≤3, we draw the kind of integral and give it a name. Download at https://web.evanchen.cc/textbooks/poster-ints.pdf.

Remember that:

Idea
Suppose 𝑓:ℝ𝑛→ℝ is given, and 0≤𝑑≤𝑛. The goal of a 𝑑-dimensional integral of 𝑓 is to add up all the values of 𝑓 among some 𝑑-dimensional object living in ℝ𝑛.

For example, this idea even makes sense for 𝑑=0! In 18.02, a 0-dimensional object is a point (or a bunch of points), and you can evaluate 𝑓 at a point by just plugging it in. So philosophically, a 0-dimensional integral is just a finite sum of 𝑓 at some points. This might seem stupid that I bring up this degenerate case, but it turns out later when we cover div/grad/curl the 0-dimensional case is relevant.

We give a giant chart in Figure 41. (The chart is so big it doesn’t quite fit in the page, but you can download a large PDF version). This chart has ten different kinds of integrals, one for each (𝑑,𝑛) with 0≤𝑑≤𝑛≤3. Here’s a rundown of the things in the chart.

So the bottom trio — 2D/3D line integral and surface integral — end up being special instances of the single and double integrals. We’ll see some examples of this later; but it’ll actually be the last thing we cover in part Golf. Most of part Golf is dedicated towards double and triple integrals instead.

§21.2 [TEXT] Warning about the bottom trio

The integrals in Figure 41 would be better called scalar-field line integral and scalar-field surface integral to emphasize that this is integration for a scalar function 𝑓:ℝ2→ℝ or 𝑓:ℝ3→ℝ. The reason you won’t see this term much is the following important caveat the line integral and surface integral in Figure 41 are used rarely.

In 18.02 the only cases where we use these are:

In this book, this will happen in Chapter 29, and then after that the line and surface integrals will always be the vector field variant instead (in Part India and Juliett). If you want to flip ahead, take a glance at Figure 75 and Table 15.

§21.3 [TEXT] Idea of how these are computed when 𝑑=𝑛 and 𝑛≥2

So as I just said, focus for now on 𝑑=𝑛=2 or 𝑑=𝑛=3 (the double and triple integral cells in chart Figure 41).

The easiest cases are when the region you’re integrating is a rectangle or prism. Despite looking scary because of the number of integral signs, they are actually considered the “easy case” to think about for practical calculations:

Then there are cases where 𝑑=𝑛=2 or 𝑑=𝑛=3 but the region is not rectangular. For example, maybe in ℝ2 you are trying to do an area integral over the disk 𝑥2+𝑦2≤1 or you are trying to do a volume integral over the ball 𝑥2+𝑦2+𝑧2≤1 for example.

So to summarize

Idea
Whenever you try to compute a multivariable integral in Figure 41, your goal is to translate it into a rectangular-looking single/double/triple integral, then evaluate by using your old 18.01 methods many times.

This is actually really, really good news! You might have remembered from 18.01 that computing integrals of single-variable functions like ∫𝑒𝑥sin(𝑥) was, well, hard!19 Computing antiderivatives was not easy at all; in fact, it’s so nontrivial that MIT students made an event called the integration bee that’s like the spelling bee but for integrals (I’m not kidding). You might have feared that in 18.02, you might need to learn something even more horrifying.

But no, you don’t! It’s a lot like how you might be scared of multivariate differentiation at first, with the symbols ∇𝑓 or partial derivatives, until you realize that calculating partial derivatives is something you actually already know how to do from 18.01.

The same will be true for multivariable integrals. The challenge won’t actually be the anti-derivatives, which are unchanged from 18.01. The hard part will actually be figuring out the limits of integration!

  1. 19It’s 12𝑒𝑥(sin(𝑥)−cos(𝑥))+𝐶, by the way.