Chapter 22. Double integrals

One common theme from 18.02 that you might have noticed in part Foxtrot is that, unlike in 18.01 where you were hyper-focused on the function 𝑓 you were optimizing, in 18.02 the region you’re working with deserves a lot of attention. This will be true for the material in this chapter too — you ought to pay most attention to the region before you even look at the function 𝑓 that’s being integrated.

§22.1 [RECIPE] Integrating over rectangles

If you want to integrate over a rectangle, this is super easy. It’s basically like partial derivatives, where you pretend some variables are constant and only one variable is going to vary at once. It’s easier to see an example before the recipe.

Warning: Some sources might not write the variables in the ∫‘s for you

Rather than writing just ∫𝑎𝑏𝑓(𝑡)d𝑡, I will usually prefer to write ∫𝑡=𝑎𝑏𝑓(𝑡)d𝑡, to make it easier to see which variable is integrated over. Not all sources will be nice enough to do this and will actually make you read the d𝑥 and d𝑦 backwards; e.g. if you see

∫06∫01𝑥𝑦2d𝑥d𝑦

then this actually means

∫06(∫01𝑥𝑦2d𝑥)d𝑦

so 0≤𝑥≤1 and 0≤𝑦≤6. For me reading backwards like this is annoying as hell, so I think it’s just much easier to write

∫𝑦=06∫𝑥=01𝑥𝑦2d𝑥d𝑦

and I recommend you use that notation instead. The advantage is that then you pretty much don’t have to look at the d𝑥d𝑦 at the far right anymore; the information you need is all in one place at the far left.

Sample Question
Integrate ∫𝑦=06∫𝑥=01𝑥𝑦2d𝑥d𝑦.

Solution.

  1. The first step is to compute the inner integral with respect to 𝑥, treating 𝑦 as a constant.

    The inner integral is:

    ∫𝑥=01𝑥𝑦2d𝑥.

    Since 𝑦2 is treated as a constant with respect to 𝑥, we can factor it out of the integral:

    𝑦2∫𝑥=01𝑥d𝑥.

    Now, compute ∫𝑥=01𝑥d𝑥:

    ∫𝑥=01𝑥d𝑥=[𝑥22]01=122−022=12.

    Thus, the result of the inner integral is:

    𝑦2⋅12=𝑦22.
  2. Now, substitute the result of the inner integral into the outer integral:

    ∫𝑦=06𝑦22d𝑦=12∫𝑦=06𝑦2d𝑦=12[𝑦33]06=12(633−033)=36.

□

Easy, right? The general recipe is the same.

Recipe for integrating over a rectangle

To integrate something of the form ∫(∫d𝑦)d𝑥:

  1. Evaluate the inner integral as in 18.01, treating 𝑥 as constant. This should give you some expression in 𝑥 with no 𝑦’s left.
  2. Replace the inner integral with the result from the previous step to get an 18.01 integral with only 𝑥 in it. Integrate that.

Here’s another example.

Sample Question

Evaluate the double integral:

∫𝑥=0𝜋∫𝑦=01𝑥cos(𝑥𝑦)d𝑦d𝑥.

Solution.

  1. The first step is to compute the inner integral with respect to 𝑦, treating 𝑥 as a constant. The inner integral is:

    ∫𝑦=01𝑥cos(𝑥𝑦)d𝑦.

    Since 𝑥 is treated as a constant with respect to 𝑦, we can factor 𝑥 out of the integral:

    𝑥∫𝑦=01cos(𝑥𝑦)d𝑦.

    Now, we compute ∫𝑦=01cos(𝑥𝑦)d𝑦.

    ∫𝑦=01cos(𝑥𝑦)d𝑦=[1𝑥sin(𝑥𝑦)]01=sin(𝑥)𝑥.

    Thus, the result of the inner integral is:

    𝑥⋅sin(𝑥)𝑥=sin(𝑥).
  2. Now, substitute the result of the inner integral into the outer integral:

    ∫𝑥=0𝜋sin(𝑥)d𝑥.

    We know that ∫sin(𝑥)d𝑥=−cos(𝑥). Therefore:

    ∫𝑥=0𝜋sin(𝑥)d𝑥=[−cos(𝑥)]0𝜋=−cos(𝜋)+cos(0).

    Using cos(𝜋)=−1 and cos(0)=1, we get:

    −(−1)+1=1+1=2.

□

§22.2 [RECIPE] Doing 𝑥𝑦-integration without a rectangle

In general, a lot of 2D regions ℛ︀ can still be done with 𝑥𝑦 integration, even when they aren’t rectangles. In that case, the integral is notated

∬ℛ︀𝑓(𝑥,𝑦)d𝑥d𝑦≔integral of 𝑓 over ℛ︀

for whatever function 𝑓 you’re integrating. If the region is given by a few inequalities you can also write the region directly in, i.e. ∬𝑥2+𝑦2≤1𝑓(𝑥,𝑦)d𝑥d𝑦 would mean the integral of 𝑓 over the unit disk.

Here’s how you do it.

Remark

A lot of other sources might write this as ∬ℛ︀𝑓(𝑥,𝑦)d𝐴 instead, which is shorter; it’s understood that the area element d𝐴 is shorthand for d𝑥d𝑦.

However, when you’re starting off I will still explicitly write d𝑥d𝑦, because I don’t want to hide the integration variables — training wheels, I guess. That said, if you know what you’re doing and want to write d𝐴 to save time, go for it!

We’ll talk more about the weirder d symbols later.

Recipe for converting to 𝑥𝑦-integration
  1. Draw a picture of the region as best you can.
  2. Write the region as a list of inequalities.20
  3. Pick one of 𝑥 and 𝑦, and use your picture to describe all the values it could take.
  4. Solve for the other variable in all the inequalities.
Remark: This recipe works fine for rectangles, too!

You can do this recipe even with a rectangle. If you do, what the recipe tells you that for a rectangle you can integrate in either order: given the rectangle of points (𝑥,𝑦) with 𝑎≤𝑥≤𝑏 and 𝑐<𝑦≤𝑑, we have

∫𝑥=𝑎𝑏∫𝑦=𝑐𝑑𝑓(𝑥,𝑦)d𝑦d𝑥=∫𝑦=𝑐𝑑∫𝑥=𝑎𝑏𝑓(𝑥,𝑦)d𝑥d𝑦.

Sometimes this will be easier. One shape of exam question will to be choose 𝑓 such that the left-hand side is annoying to calculate directly but the right-hand side is easy to calculate, and ask for the left-hand side. So this is meant to test your ability to recognize when the other order is better.

For example, let’s take the region in Poonen’s example 13.1:

Sample Question
Show both ways of setting up an integral of a function 𝑓(𝑥,𝑦) over the region bounded by 𝑦−𝑥=2 and 𝑦=𝑥2.

Figure 42: The region between 𝑦=𝑥2 and 𝑦−𝑥=2.

Solution. See Figure 42. There are two intersection points that it’s pretty clear we’ll want to know, so we can solve for those intersection points by solving the system and add them to our picture:

{𝑦−𝑥=2𝑦=𝑥2⟹𝑥+2=𝑥2⟹𝑥=−1 or 𝑥=2⟹(𝑥,𝑦)=(−1,1) or (𝑥,𝑦)=(2,4).

I’ll also mark (0,0), the bottom of the parabola.

So we want the part of the plane that lies above the parabola 𝑦=𝑥2 but below the line 𝑦−𝑥=2. So I think you’ll find things easier to think about if you consider the region as the system of inequalities

𝑦≥𝑥2𝑦−𝑥≤2.

Now there are two ways to do the slicing, depending on which of 𝑥 and 𝑦 you want outside.

If 𝑥 is outer

First, let’s imagine we let 𝑥 be the outer integral. Then from the picture, you can see −1≤𝑥≤2. If we solve for 𝑦, we find its region is

𝑥2≤𝑦≤𝑥+2.

See Figure 43.

Figure 43: Dissecting Figure 42 vertically, which is pretty nice. There’s a single top lid (blue) and a bottom lip (purple) so that for each given 𝑥 the slice of 𝑦 (drawn in green) is easy to describe.

Hence, we get the double integral as

∫𝑥=−12∫𝑦=𝑥2𝑥+2𝑓(𝑥,𝑦)d𝑦d𝑥.
If 𝑦 is outer

On the other hand, let’s imagine we used 𝑦 first. From the picture, we see that 𝑦 ranges from 0 all the way up to 4. (So in what follows I’ll write 𝑦≥0 to make notation better.)

But 𝑥 is gnarly. The issue is that when you solve for 𝑥 you get three inequalities:

  • 𝑦≤𝑥2 solves to −𝑦≤𝑥≤𝑦
  • 𝑦−𝑥≤2 solves to 𝑦−2≤𝑥.

See Figure 44.

Figure 44: Dissecting Figure 42 horizontally, which is less nice: there are cases. Above the line 𝑦=1, you have a blue wall to the left and a curved purple arc to the right. But below 𝑦=1, you instead have a red arc of the parabola to the left, and a purple arc of the parabola to the right.

If you know how the max function works, you could even write this as

max(𝑦−2,−𝑦)≤𝑥≤𝑦.

The main issue is that the lower endpoint for 𝑥 behaves differently with cases. For 𝑦≤1, the bound of −𝑦 triumphs over the bound of 𝑦−2. But for 𝑦≥1, the bound of 𝑦−2 is the more informative inequality. So if we wanted to write this as a double integral, we would actually have to split into two:

∫𝑦=01∫𝑥=−𝑦𝑦𝑓(𝑥,𝑦)d𝑥d𝑦+∫𝑦=14∫𝑥=𝑦−2𝑦𝑓(𝑥,𝑦)d𝑥d𝑦.

□

§22.3 [TEXT] Example with a concrete function 𝑓

In the previous example we showed how one would integrate a random function 𝑓 over the region between the line 𝑦−𝑥=2 and the parabola 𝑦=𝑥2. Again, this process is only based on the region — it doesn’t depend on 𝑓.

To flesh things out, let’s pick an example function

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

as Poonen did, and show how we would find the integral.

Sample Question
Consider the region ℛ︀ we just described, the set of points between bounded between 𝑦−𝑥=2 and 𝑦=𝑥2. Integrate ∬ℛ︀(2𝑥+4𝑦)d𝑥d𝑦 over this region.

Solution. As we saw, there are two different ways to set it up. We’ll do the one that’s nice (and show the worse one afterwards for comparison), where we have 𝑥 on the outside.

We are given the integral

∫𝑥=−12∫𝑦=𝑥2𝑥+2(2𝑥+4𝑦)d𝑦d𝑥.
  1. The first step is to compute the inner integral with respect to 𝑦, treating 𝑥 as a constant.

    The inner integral is:

    ∫𝑦=𝑥2𝑥+2(2𝑥+4𝑦)d𝑦.

    We can split this integral into two parts:

    ∫𝑦=𝑥2𝑥+22𝑥d𝑦+∫𝑦=𝑥2𝑥+24𝑦d𝑦.
    • The first term is:

      2𝑥∫𝑦=𝑥2𝑥+21d𝑦=2𝑥[𝑦]𝑦=𝑥2𝑦=𝑥+2=2𝑥((𝑥+2)−𝑥2).
    • The second term is:

      4∫𝑦=𝑥2𝑥+2𝑦d𝑦=4[𝑦22]𝑦=𝑥2𝑦=𝑥+2=4((𝑥+2)22−(𝑥2)22)=2(𝑥2+4𝑥+4−𝑥4).

    Thus, the inner integral is:

    2𝑥(𝑥+2−𝑥2)+2(𝑥2+4𝑥+4−𝑥4)=−2𝑥4−2𝑥3+4𝑥2+12𝑥+8.
  2. Now, we compute the outer integral:

    ∫𝑥=−12(−2𝑥4−2𝑥3+4𝑥2+12𝑥+8)d𝑥=[−2𝑥55−2⋅𝑥44+4𝑥33+12⋅𝑥22+8𝑥]𝑥=−12.

    This is a lot of arithmetic, sorry. One way is to work term by term:

    −2[𝑥55]𝑥=−1𝑥=2=−2(325−(−1)55)=−2⋅335=−665−2[𝑥44]𝑥=−1𝑥=2=−2(164−14)=−2⋅154=−1524[𝑥33]𝑥=−1𝑥=2=4(83−(−1)33)=4⋅93=1212[𝑥22]𝑥=−1𝑥=2=12⋅32=188⋅(2−(−1))=8⋅3=24.

    Add these to get the answer:

    −665−152+12+18+24=33310.

□

§22.4 [SIDENOTE] What it looks like if you integrate the hard way

In the previous sample question, we picked 𝑥 to be the outer integral so that we didn’t have to do cases or deal with square roots. This was pretty clearly a good choice.

For contrast, I’ll show you what happens if you have 𝑦 in the outer integral instead — just to make a point that things can get ugly. (You can read it if you want the practice with iterated integrals, or skip it if you believe me.) To reiterate, we will directly calculate

∫𝑦=01∫𝑥=−𝑦𝑦(2𝑥+4𝑦)d𝑥d𝑦+∫𝑦=14∫𝑥=𝑦−2𝑦(2𝑥+4𝑦)d𝑥d𝑦.

So we got the same answer, no surprise, but it took a lot more work to get it.

§22.5 [TEXT] A few physical interpretations of integrals

Depending on what function 𝑓 is chosen, the integral may have some physical meaning. We give a few examples here:

§22.5.1 Area

If you choose 𝑓=1 you get area.

Recipe for area

To find the area of a region ℛ︀, use

Area(ℛ︀)=∬ℛ︀1d𝑥d𝑦.
Digression: This is the definition of area
Sometimes people ask me why we choose to integrate 1 as opposed to some other function. The answer might be a bit surprising: you can actually take the above integral as the definition of area. (If you think back carefully to what you learned in high school, you might realize that nobody actually ever gave you a precise definition of the word “area”, and that was for good reason.)
Tip
You can and will use the recipe the other way too: suppose you’re doing some problem and you end up with ∬ℛ︀d𝑥d𝑦 where ℛ︀ is the circle 𝑥2+𝑦2≤1. Don’t go through the trouble of actually calculating the integral: it’s the area of a circle with radius 1, which is just 𝜋!
Sample Question
Consider the region ℛ︀ we just described, the set of points between bounded between 𝑦−𝑥=2 and 𝑦=𝑥2. Compute its area.

Solution. We’ll write this as

∫𝑥=−12∫𝑦=𝑥2𝑥+21d𝑦d𝑥.

The inner integral is easy ∫𝑦=𝑥2𝑥+2d𝑦=(𝑥+2)−𝑥2. So the answer is

∫𝑥=−12(𝑥+2−𝑥2)d𝑥=[𝑥22+2𝑥−𝑥33]𝑥=−1𝑥=2=(2+4−83)−(12−2+13)=92.

□

Sample Question
Compute the area of the region ℛ︀ where 0≤𝑥≤10 and 0≤𝑦≤𝑥2.

Solution. Write

∫𝑥=010∫𝑦=0𝑥21d𝑦d𝑥=∫𝑥=010𝑥2d𝑥=[𝑥33]𝑥=010=10003.

□

Actually this is just a rephrasing of the “area under the curve” you learned in 18.01, when you would write ∫𝑥=010𝑥2d𝑥=[𝑥33]𝑥=010=10003 and were told “this is the area under the curve 𝑦=𝑥2”, as in Figure 45. But the 18.02 definition is more versatile, because it lets us give a definition of area for any integrable region in the 𝑥𝑦-plane, not just those under a curve of the form 𝑦=𝑓(𝑥).

Figure 45: The area ∫𝑥=010∫𝑦=0𝑥21d𝑦d𝑥 in 18.02 language matches what you expect from the 18.01 integral ∫𝑥=010𝑥2d𝑥.

§22.5.2 Mass and center of mass

If you imagine your region ℛ︀ as a blob of some substance (concrete, wood, water, etc.), then you could also imagine it has a density at each point in the region (say, in kilograms per square meter). In 18.02 we usually denote the density by 𝜌, which is a function taking each point 𝑃 in the region ℛ︀ and outputting its density.

In that case, the total mass of ℛ︀ is the integral of the densities:

mass(ℛ︀)=∬ℛ︀𝜌(𝑥,𝑦)d𝑥d𝑦.

Given a region you can also consider the center of mass. The idea/definition is that the 𝑥-coordinate of the center of mass should be the weighted average of the 𝑥-coordinates of the points in the region, and is usually denoted 𝑥̅:

𝑥̅≔𝑥-coord of the center of mass=1mass(ℛ︀)∬ℛ︀𝑥⋅𝜌(𝑥,𝑦)d𝑥d𝑦.

And the same for the others. Let’s repeat this in recipe form.21

Recipe for total mass and center of mass

Suppose ℛ︀ is a region and 𝜌 is a density function for the region.

  1. The total mass is given by mass(ℛ︀)=∬ℛ︀𝜌(𝑥,𝑦)d𝑥d𝑦.
  2. The center of mass is the point (𝑥̅,𝑦̅) defined by
(𝑥̅,𝑦̅)≔(∬ℛ︀𝑥⋅𝜌(𝑥,𝑦)d𝑥d𝑦mass(ℛ︀),∬ℛ︀𝑦⋅𝜌(𝑥,𝑦)d𝑥d𝑦mass(ℛ︀)).
Type signature

If ℛ︀ is a region in ℝ2,

  • Then a density function 𝜌:ℛ︀→ℝ≥0 should take on nonnegative values. (For physicists: in SI units, you might imagine it as kilograms per square meter.)
  • The mass is a nonnegative real number (kilograms).
  • The center of mass is also a point inside ℛ︀. (Draw this as a dot, not an arrow.)
Sample Question
Compute the center of mass of the square with vertices (5,5), (5,9), (9,9) and (9,5), assuming a constant density 𝜌=1.

Solution. Of course, by symmetry we expect the answer to be (7,7). Let’s see this in full. The mass of ℛ︀ is given by

mass(ℛ︀)=∬ℛ︀1d𝑥d𝑦=∫𝑥=59∫𝑦=591d𝑦d𝑥=(9−5)⋅(9−5)=16.

The 𝑥-coordinate of the center of mass is

𝑥̅=1mass(ℛ︀)∬ℛ︀𝑥⋅1d𝑥d𝑦=116∫𝑥=59∫𝑦=59𝑥d𝑦d𝑥=116∫𝑦=59[𝑥⋅(9−5)]d𝑥=116⋅4∫𝑥=59𝑥d𝑥=14[𝑥22]𝑥=59=14(812−252)=7.

The calculation for 𝑦̅ is exactly the same, and we get (7,7) as we hoped.□

Remark
Unsurprisingly if 𝜌=1 is constant (imagine 1 kilogram per square meter), then the mass of the region ℛ︀ is just ∬ℛ︀d𝑥d𝑦, i.e. the area. (So a region whose area is 16 square meters and where the density is 1 kilogram per square meter in the whole substance should be 16 kilograms.)
Sample Question
Compute the center of mass of the square with vertices (5,5), (5,9), (9,9) and (9,5), assuming a density function of 𝜌(𝑥,𝑦)=𝑥+𝑦.

Solution. First compute the mass:

mass(ℛ︀)=∬ℛ︀(𝑥+𝑦)d𝑥d𝑦=∫𝑥=59∫𝑦=59(𝑥+𝑦)d𝑦d𝑥=∫𝑥=59[𝑥𝑦+𝑦22]𝑦=59d𝑥=∫𝑥=59(𝑥(9−5)+812−252)d𝑥=∫𝑥=59(4𝑥+28)d𝑥=4[𝑥22]𝑥=59+28[𝑥]𝑥=59=2(81−25)+28⋅4=224.

Then the 𝑥-coordinate of the center of mass is

𝑥̅=1mass(ℛ︀)∬ℛ︀𝑥(𝑥+𝑦)d𝑥d𝑦=1224∫𝑥=59∫𝑦=59(𝑥2+𝑥𝑦)d𝑦d𝑥=1224∫𝑥=59[𝑥2𝑦+𝑥𝑦22]𝑦=59d𝑥=1224∫𝑥=59(𝑥2(9−5)+𝑥(81−25)2)d𝑥=1224∫𝑥=59(4𝑥2+28𝑥)d𝑥=1224[4𝑥33+14𝑥2]𝑥=59=1224(4(729)−4(125)3+14(81−25))=14921.

And 𝑦̅=14921 in exactly the same way. Hence the answer (14921,14921)≈(7.095,7.095).

(This passes a sanity check: our new square is a bit denser near (9,9) than (5,5). So we expect the center of mass to move in that direction slightly. We still have symmetry across the line 𝑦=𝑥.)□

§22.6 [SIDENOTE] What’s the analogy to “area under the curve” from 18.01?

In 18.01, you were told that the integral ∫𝑥=𝑎𝑏𝑓(𝑥)d𝑥 denotes the area under the curve 𝑦=𝑓(𝑥) from 𝑥=𝑎 to 𝑥=𝑏.

In 18.02, if you have ∬ℛ︀𝑓(𝑥,𝑦)d𝑥d𝑦, and you want to interpret it analogously, what you would do is look at the surface 𝑧=𝑓(𝑥,𝑦) in an 𝑥𝑦𝑧-plane, where you imagine the 𝑥𝑦-plane and the region ℛ︀ at the bottom, and 𝑧 being a height. Then the double integral analogously calculates the volume underneath the surface.

However, we won’t actually use this interpretation much in 18.02. As I said before, in 18.02 we usually prefer to draw pictures where all the axis variables are treated with equal respect. (Whereas the 18.01 picture I just mentioned uses 𝑥 as input and 𝑦 as output; the two axes don’t play the same role.) So picturing the double integral with things like mass or center of mass is more in line with the 18.02 spirit, even though there is no 18.01 analog.

§22.7 [RECIPE] Swapping the order of integration

If you’re an instructor teaching multivariable calculus, one trope for generating exam questions is to take some region ℛ︀ that can be sliced both horizontally and vertically, but for which one way is much easier to integrate than the other. For the problem statement, you give the student the integral written in the “bad” order. The solution is to convert back into a region ℛ︀, and then use this to recover the “good” order. Put in recipe form:

Recipe for swapping the order of integration

If you are given ∫𝑥=??∫𝑦=??𝑓(𝑥,𝑦)d𝑦d𝑥 and you wish to switch the order of integration the other way:

  1. Convert the limits of integration back into inequality/region format, getting some region ℛ︀.
  2. Re-apply the recipe from Section 22.2 using the other variable as the outer one now.
Sample Question

Evaluate the double integral:

∫𝑥=02∫𝑦=𝑥21𝑒𝑦2d𝑦d𝑥.

Solution. To evaluate this integral, note that integrating 𝑒𝑦2 directly with respect to 𝑦 is not feasible using standard methods from 18.01. Thus, we need to swap the order of integration.

First convert this back into region format:

ℛ︀={0≤𝑥≤2𝑥2≤𝑦≤1.

We see that 𝑦 goes in the range 0≤𝑦≤1. The region being integrated is drawn in Figure 46.

Figure 46: The region 0≤𝑥≤2 and 𝑥2≤𝑦≤1. Note that the function you are integrating, in this case 𝑒𝑦2, is irrelevant to the region being integrated over!

Solving for 𝑥 in terms of 𝑦 gives three conditions: in addition to 0≤𝑥≤2 we need 𝑥≤2𝑦. Since 𝑦≤1, we can ignore the condition 𝑥≤2, and the region can be rewritten to

ℛ︀={0≤𝑦≤10≤𝑥≤2𝑦.

Turning this back into a double integral gives

∫𝑦=01∫𝑥=02𝑦𝑒𝑦2d𝑥d𝑦.

The inner integral is with respect to 𝑥, but the integrand 𝑒𝑦2 is independent of 𝑥. Therefore, the inner integral becomes:

∫𝑥=02𝑦𝑒𝑦2d𝑥=2𝑦⋅𝑒𝑦2.

Thus, it remains to calculate

∫𝑦=01(2𝑦⋅𝑒𝑦2)d𝑦.

And now things are different: 2𝑦⋅𝑒𝑦2 does have a valid anti-derivative. If you use the 18.01 method or even just are good at guessing, you can find the indefinite 18.01 integral

∫2𝑦𝑒𝑦2d𝑦=𝑒𝑦2+𝐶.

So the final answer to the problem is

∫𝑦=012𝑦𝑒𝑦2d𝑦=[𝑒𝑦2]𝑦=0𝑦=1=𝑒−1.

□

Sample Question

Let

𝑘=373𝜋5≈2.078.

Evaluate the double integral:

∫𝑦=0𝑘2∫𝑥=𝑦𝑘𝑦sin(𝑥5)d𝑥d𝑦

Solution. Integrating sin(𝑥5) is not reasonable, so we swap the order of integration and pray. The region being integrated is

ℛ︀={0≤𝑦≤𝑘2𝑦≤𝑥≤𝑘.

The values of 𝑥 range all the way from 0 to 𝑘. We draw the region in Figure 47.

Figure 47: The region 0≤𝑦≤𝑘2 and 𝑦≤𝑥≤𝑘.

Solving for 𝑦, we see that we have three constraints, 0≤𝑦, 𝑦≤𝑥2 and 𝑦≤𝑘2. But since 𝑥≤𝑘, the condition 𝑦≤𝑘2 is redundant. The region can be rewritten as simply

ℛ︀={0≤𝑥≤𝑘0≤𝑦≤𝑥2.

Convert back into a double integral:

∫𝑥=0𝑘∫𝑦=0𝑥2𝑦sin(𝑥5)d𝑦d𝑥.

We now compute the inner integral with respect to 𝑦:

∫𝑦=0𝑥2𝑦sin(𝑥5)d𝑦.

Since sin(𝑥5) is independent of 𝑦, we can factor it out of the integral:

sin(𝑥5)∫𝑦=0𝑥2𝑦d𝑦=sin(𝑥5)[𝑦22]𝑦=0𝑦=𝑥2.

Substituting the limits of integration:

sin(𝑥5)⋅𝑥42.

Now substitute this result into the outer integral:

∫𝑥=0𝑘𝑥42sin(𝑥5)d𝑥.

Let’s perform the 18.01 𝑢-substitution 𝑢=𝑥5, so d𝑢=5𝑥4d𝑥, or d𝑥=d𝑢5𝑥4. The limits of integration change as follows:

Thus, knowing that ∫sin(𝑢)=−cos(𝑢)+𝐶, the integral becomes:

12∫𝑢=0373𝜋sin(𝑢)5d𝑢=110∫𝑢=0373𝜋sin(𝑢)d𝑢=110(−cos(373𝜋)+cos(0)).

Using cos(373𝜋)=12 and cos(0)=1, we get:

110(−12+1)=110⋅12=120.

□

§22.8 [EXER] Exercises

Exercise 22.1. Let ℛ︀ be the region between the curves 𝑦=𝑥 and 𝑦=𝑥3. Compute ∬ℛ︀𝑥100𝑦200d𝑥d𝑦 using both horizontal and vertical slicing.
Exercise 22.2. Let ℛ︀ be the region between the curves 𝑦=𝑥 and 𝑦=𝑥2. Assume ℛ︀ has constant density. Calculate its center of mass.

Exercise 22.3. Evaluate the double integral:

∫𝑦=01∫𝑥=𝑦𝑦5𝑥𝑦21−𝑥12d𝑥d𝑦.

Exercise 22.4 (*). Prove that

∫𝑥=09995𝑥5+13d𝑥

is a rational number.

  1. 20I don’t think other sources always write the inequalities the way I do. But I think this will help you a lot with making sure bounds go the right way.
  2. 21 It took considerable self-restraint to not title the recipe “Mass Tech”.