Skip to content
Tutorials Center
My learning

Topics

Lesson 24 of 39 · Multiple Integrals

Double Integrals over General Regions

Set up double integrals over regions bounded by curves, using type I and type II descriptions, and learn to reverse the order of integration.

Rectangles are friendly, but the regions you meet in practice are bounded by curves: triangles, parabolic segments, disks. The idea stays the same. What changes is that the limits of the inner integral now depend on the outer variable.

The skill that matters here is describing the region correctly. Once the limits are right, the computation is two single integrals.

Type I regions: vertical slices

A region is type I if it can be written as

Text
D = { (x, y) : a ≤ x ≤ b,  g₁(x) ≤ y ≤ g₂(x) }

Each vertical line crosses the region from the lower curve y = g₁(x) to the upper curve y = g₂(x). Then

Text
∬_D f dA = ∫ₐᵇ ∫_{g₁(x)}^{g₂(x)} f(x, y) dy dx

The inner limits are functions of x. The outer limits are plain numbers. After the inner integral is done, y has disappeared, and what remains depends on x only.

Type II regions: horizontal slices

A region is type II if

Text
D = { (x, y) : c ≤ y ≤ d,  h₁(y) ≤ x ≤ h₂(y) }

Each horizontal line crosses from the left curve x = h₁(y) to the right curve x = h₂(y), and

Text
∬_D f dA = ∫_c^d ∫_{h₁(y)}^{h₂(y)} f(x, y) dx dy

Many regions are both types, and you can pick the easier description. Some are neither, and you split them into pieces that are.

Example: between a line and a parabola

Compute ∬_D xy dA, where D is the region between y = x² and y = x for 0 ≤ x ≤ 1.

Sketch it: the parabola lies below the line on [0, 1] (for example at x = 1/2, y = 1/4 versus 1/2). So x² ≤ y ≤ x:

Text
∫₀¹ ∫_{x²}^{x} x y dy dx
= ∫₀¹ x · [y²/2]_{x²}^{x} dx
= ∫₀¹ x · (x² - x⁴)/2 dx
= ½ ∫₀¹ (x³ - x⁵) dx
= ½ (1/4 - 1/6) = 1/24

Now describe the same region as type II. For a given y between 0 and 1, x runs from the line (x = y) to the parabola (x = √y):

Text
∫₀¹ ∫_{y}^{√y} x y dx dy = ∫₀¹ y · (y - y²)/2 dy = ½ (1/3 - 1/4) = 1/24

Same answer, as it must be.

Python Both descriptions of the same region

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Reversing the order

Some integrals are impossible in one order and easy in the other, because the inner antiderivative does not exist in closed form. Consider

Text
∫₀¹ ∫ₓ¹ e^{y²} dy dx

There is no elementary antiderivative of e^{y²}. So sketch the region from the limits: 0 ≤ x ≤ 1 and x ≤ y ≤ 1. That is the triangle with corners (0, 0), (0, 1) and (1, 1). Read it the other way: 0 ≤ y ≤ 1 and 0 ≤ x ≤ y.

Text
∫₀¹ ∫₀^y e^{y²} dx dy = ∫₀¹ y e^{y²} dy = [e^{y²}/2]₀¹ = (e - 1)/2

The inner integral is now trivial, and the outer one yields to a simple substitution.

flowchart TD
    A["Given limits"] --> B["Sketch the region D"]
    B --> C{"Is the inner integral hard?"}
    C -- "yes" --> D["Describe D with the other variable outside"]
    C -- "no" --> E["Integrate as written"]
    D --> F["Rewrite the limits and integrate"]

The reversal recipe: always draw the region before swapping limits.

Python Reverse the order to beat e^(y^2)

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The exact value and the grid estimate should agree closely; the grid is only a numerical check.

Area and average value

When the integrand is 1, the double integral is the area of D:

Text
Area(D) = ∬_D 1 dA

For the region between the line and the parabola above, that is ∫₀¹ (x - x²) dx = 1/2 - 1/3 = 1/6. In general, the average value of f over D is (1 / Area(D)) ∬_D f dA. Mass, moments and centers of mass follow the same pattern, replacing 1 by a density function.

A checklist for setting up limits

  1. Sketch the region and label every bounding curve.
  2. Find where curves intersect (solve the equations together).
  3. Choose slices: vertical (type I) or horizontal (type II).
  4. Write the inner limits as functions of the outer variable, bottom-to-top or left-to-right.
  5. Write the outer limits as constants.
  6. After you integrate, check that no stray variable remains in the final answer.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. In a type I region, the inner integral is taken with respect to:

    Type I uses vertical slices: for each x, y runs from g₁(x) to g₂(x), so the inner variable is y with x-dependent limits.
  2. 2. The integral of xy over the region x² ≤ y ≤ x, 0 ≤ x ≤ 1 equals:

    ∫₀¹ x (x² - x⁴)/2 dx = ½(1/4 - 1/6) = 1/24.
  3. 3. Why reverse the order in ∫₀¹ ∫ₓ¹ e^(y²) dy dx?

    After reversing, the inner integral is over x and gives y, leaving ∫ y e^(y²) dy, which is easy by substitution.
  4. 4. What does the double integral of the constant 1 over D give?

    Summing dA over D adds up the area of all the tiny pieces.

Summary

  • Type I: a ≤ x ≤ b, g₁(x) ≤ y ≤ g₂(x); type II swaps the roles of x and y.
  • Inner limits may depend on the outer variable; outer limits are constants.
  • Sketching the region is essential for correct limits and for reversing order.
  • Reversing order can turn an impossible integral into an easy one.
  • Integrating 1 gives area; integrating a density gives mass.

Next: Double Integrals in Polar Coordinates