If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Double integrals over non-rectangular regions

What makes double integrals tricky is finding the bounds in non-rectangular regions.  Here we go through what that means and practice a few examples.

What we're building to

Example of a non-rectangular region
  • If you wish to perform an integral over a region of the xy-plane that is not rectangular, you have to express each of the bounds of the inner integral as a function of the outer variable.
    y1y2(x1(y)x2(y)f(x,y)dx)Evaluates to some function of ydy
    or alternatively,
    x1x2(y1(x)y2(x)f(x,y)dy)Evaluates to some function of xdx

The trouble with non-rectangular regions

Consider the function
f(x,y)=xy2
Its graph looks like this:
Khan Academy video wrapper
We will find the volume under a portion of this graph. Unlike the last article, this volume will not lie above a rectangular region on the xy-plane. Instead, we will look for a volume whose base is a triangle. The triangle pictured below, to be specific.
This is a right isosceles triangle, one of whose legs connects the points (0,0) and (2,0) on the x-axis, while the other leg connects the points (2,0) and (2,2). The volume above this triangle and below the graph of f(x,y)=xy2 looks like this:
Khan Academy video wrapper
This is similar to the problem I showed in the last article, which introduced the double integral. And indeed, the way to solve it is similar.
  • Find a formula for slices of area using an integral.
  • Use a second integral to add those infinitely many slices of area into a volume.
What gets tricky now is the bounds. For example, consider the slices of this volume which represent constant x values. The following animation shows what these slices look like, as the constant x-value varies back and forth between 0 and 2.
Khan Academy video wrapper
The height of one of these slices changes based the height of the graph of f(x,y)=xy2 above its base. But the length of the base of the slice also changes. For example, when x=0.5, the value of y at the base can range from 0 to 0.5, as in the vertical red stripe pictured below.
Alternatively, when x=1.5, the value of y ranges from 0 to 1.5:
This means when we set up an integral to find the area of one of these constant-x-value slices, the upper bound is written in terms of x.
0xf(x,y)dy=0xxy2dy
As far as our computations are concerned, it's perfectly fine to have one of the bounds written in terms of x. After all, we'll end up with an expression in terms of x anyway. Go ahead and work out the integral for yourself:
0xxy2dy=

From here, there is nothing new. Multiply this value by dx to give it a little depth, and hence make it an infinitesimal volume. Then when we integrate it with respect to x, the bounds are constants, x=0 and x=2, since this is where the base of our triangle sits on the x-axis.
02x43dx=(x5(5)(3))02=25150515=3215
The total volume is therefore 32152.13

Integrating over a disk

Now let's try something a little harder: finding the volume under a graph bounded by the unit disk. The unit disk on the xy-plane is all points (x,y) such that
x2+y21
For example, the volume underneath the graph
f(x,y)=3+yx2
bound by the unit disk looks like this
Khan Academy video wrapper
Once again, consider slices of this volume which correspond to constant x-values.
Khan Academy video wrapper
Think about what the base of each of these slices looks like on the xy-plane. Each slice corresponds with some vertical stripe in the unit disk.
Using the pythagorean theorem, we can find the y-values which determine the top and bottom of this stripe as a function of the x-value that the stripe represents.
We can now find the area of one of these constant-x-value slices by integrating f(x,y) with respect to y. Again, where this is different from the case of rectangular regions is that the bounds are each a function of x.
Concept check: Which of the following integrals represents the area of a constant-x-value slice of the volume we are looking for?
Choose 1 answer:

Work through it: This is a heavier computation than previous examples, but if you feel up to it, compute this integral to get a formula for the area of a constant-x-value slice, as a function of x.
Area of a constant-x-value slice:

The x-values in the unit disk range from x=1 to x=1, so to find the volume we are looking for, integrate the expression you just found with respect to x between the value 1 and 1. As before, you can imagine this as adding up many, many paper-thin volumes.
This turns out to be a tricky integral, but for pragmatism's sake we can solve it using any ol' computer algebra system or numerical integration tool, such as Wolfram Alpha.
Total volume: 11(62x2)1x2dx=11π48.6394

Slice the other way: Shark fin region

Sometimes it's easier to consider constant-y-value slices, which involves cutting your region in xy-plane along horizontal stripes. For example, consider region of the xy-plane satisfying the following properties:
  • xy2
  • xy+2
  • y0
This region kind of looks like a shark's dorsal fin:
The upper right corner of the region is where the curve x=y2 meets the line x=y+2. That point is (4,2).
Let's find the volume of a solid that has this region as its footprint, and whose height is determined by a relatively simple multivariable function:
f(x,y)=x+2y
Here's what the volume looks like:
Khan Academy video wrapper
This time, imagine cutting constant-y-value slices of this volume. This will give the area above a horizontal strip of our shark fin region, such as the one pictured below in red.
Concept check: If one of these horizontal stripes corresponds to a value y, what are the bounds on the x-value of the stripe? That is, what are the x-coordinates of the left and right ends of this line as a function of y?
Lower bound: x=
Upper bound: x=

Concept check: Which of the following integrals represents the slice of area above one of these stripes, and under the graph of f(x,y)=x+2y, as a function of y?
Choose 1 answer:

Concept check: Solve this integral to find the area of the constant y-value slices of our volume.
Area of constant-y-value slice:

Concept check: When we integrate this function of y to get the total volume, what bounds should we use?
Choose 1 answer:

Bring it on home: Solve this integral to find the volume of the region defined at the start of this section. (Feel free to use a calculator).
Volume:

Summary

When you need to perform a double integral over a non-rectangular region, follow these steps.
  • Start by cutting your region along slices that correspond with holding one of the variables constant. For example, holding x at some constant value will give a vertical stripe of your region.
  • Find how to express the bounds of these stripes as a function of the other variable. For example, the top and bottom of a vertical stripe would be expressed as some function of x.
  • When you set up your double integral, the inner integral will correspond to integrating along one of these stripes, and each of its bounds will be a function of the outer variable. If the inner integral corresponds to constant-x-values, the double integral as a whole might look like this:
    x1x2(y1(x)y2(x)f(x,y)dy)Evaluates to some function of xdx
    Alternatively, if you started with horizontal constant-y-value slices, the double integral might look like this:
    y1y2(x1(y)x2(y)f(x,y)dx)Evaluates to some function of ydy

Want to join the conversation?