Learning Objectives
By the end of this section, you will be able to:
- Identify and describe Type I and Type II regions in the xy-plane, understanding how the shape of a region determines the integration setup
- Set up the bounds for iterated integrals over general (non-rectangular) regions, correctly expressing variable bounds as functions
- Evaluate double integrals by computing iterated integrals with variable limits of integration
- Change the order of integration when necessary, recognizing when reversing the order simplifies the computation
- Apply double integrals to compute areas, volumes, and other quantities over non-rectangular regions
Why This Matters: Most real-world regions are not rectangles! From computing the mass of an irregularly shaped plate to finding probabilities over complex domains in machine learning, the ability to integrate over general regions is essential. This section extends double integration from simple rectangles to regions bounded by curves, vastly expanding what we can calculate.
The Big Picture
In the previous section, we learned to evaluate double integrals over rectangular regions. The setup was straightforward: both integration limits were constants. But what if we need to integrate over a region bounded by curves? Consider finding the volume under a surface over a circular disk, or computing the area between two parabolas.
The key insight is that we can still use iterated integrals, but now the limits of the inner integral become functions of the outer variable. This seemingly small change opens up an enormous range of applications.
Given a region in the xy-plane bounded by curves, how do we express as an iterated integral? The answer depends on how we describe the region—either as "slices" that run vertically (Type I) or horizontally (Type II).
Historical Context
The theory of double integrals over general regions developed alongside the rigorous foundations of calculus in the 19th century. Several mathematicians contributed key ideas:
- Augustin-Louis Cauchy (1789-1857) developed the first rigorous theory of integration and established conditions under which iterated integrals could be evaluated in either order
- Bernhard Riemann (1826-1866) generalized the definition of the integral, providing a framework for integration over arbitrary bounded regions
- Guido Fubini (1879-1943) proved the definitive theorem about interchanging the order of integration, now known as Fubini's Theorem
Fubini's work in 1907 finally answered the question: when can we switch the order of integration in a double integral? His theorem shows that for continuous functions on "nice" regions (which includes all the regions we study in this course), either order gives the same result.
Type I Regions
Definition and Setup
A Type I region (also called a vertically simple region) is one where every vertical line that intersects the region does so in a single line segment. Mathematically, a Type I region has the form:
Here, and are continuous functions with on . The region is bounded below by , above by , and on the sides by the vertical lines and .
For a Type I region, we integrate y first (the inner integral), then x (the outer integral):
Examples of Type I Regions
| Region Description | Lower Bound g₁(x) | Upper Bound g₂(x) | x Interval |
|---|---|---|---|
| Under the parabola y = x² | 0 | x² | [0, 2] |
| Between y = x and y = x² | x² | x | [0, 1] |
| Quarter circle x² + y² ≤ 1 | 0 | √(1 - x²) | [0, 1] |
| Below the line y = 1 - x | 0 | 1 - x | [0, 1] |
Type II Regions
Definition and Setup
A Type II region (also called a horizontally simple region) is one where every horizontal line that intersects the region does so in a single line segment. Mathematically:
Here, and are continuous functions with on . The region is bounded on the left by , on the right by , and above and below by the horizontal lines and .
For a Type II region, we integrate x first, then y:
Examples of Type II Regions
| Region Description | Left Bound h₁(y) | Right Bound h₂(y) | y Interval |
|---|---|---|---|
| Right of the parabola x = y² | y² | 4 | [-2, 2] |
| Between x = y and x = y² | y | √y | [0, 1] |
| Quarter circle x² + y² ≤ 1 | 0 | √(1 - y²) | [0, 1] |
| Left of x = 2 - y² | 0 | 2 - y² | [-√2, √2] |
Interactive: Type I vs Type II
Explore different regions and see how they can be described as Type I (vertical slices) or Type II (horizontal slices). Watch how the integration slices sweep across the region:
Choosing the Right Type
When setting up a double integral, you often have a choice between Type I and Type II. Here are guidelines for making the best choice:
- Look at the boundary curves. If boundaries are given as , Type I is natural. If given as , Type II is natural.
- Consider the integrand. Sometimes one order makes the inner integral impossible to evaluate while the other order works. For example, has no elementary antiderivative, but (treating as constant) is easy.
- Check for splitting. If a Type I description requires splitting the region into multiple pieces, try Type II (and vice versa). Fewer integrals means less work.
- Use symmetry. For symmetric regions, the choice may not matter. For circular regions, consider polar coordinates (covered in the next section).
Interactive: Integration Bounds Explorer
Practice setting up integration bounds for different regions. See how to determine the correct limits and when each type is recommended:
Changing the Order of Integration
Fubini's Theorem
Fubini's Theorem guarantees that for a continuous function on a region that is both Type I and Type II, the double integral can be computed in either order:
- When the inner integral cannot be evaluated in closed form (like )
- When reversing leads to simpler antiderivatives
- When the original limits require multiple integrals but reversed limits don't
Interactive: Integration Order Demo
See how changing the order of integration affects the setup. Notice how some integrals become tractable only after reversing the order:
Computing Double Integrals
Example 1: Polynomial Integrand
Problem: Evaluate where is the region bounded by and for .
Solution: This is a Type I region with and .
First, evaluate the inner integral (treating as constant):
Now evaluate the outer integral:
Example 2: Region Between Curves
Problem: Find the area of the region bounded by , , and .
Solution: To find area, we integrate . Using Type I:
Example 3: Reversing the Order
Problem: Evaluate .
Challenge: The integral has no elementary antiderivative! We must reverse the order.
Step 1: Sketch the region. From the limits: and . This is the triangle above the line and below .
Step 2: Reverse the description. For each from to , ranges from to .
Step 3: Evaluate. Now the inner integral is with respect to , and is constant:
Using substitution , :
Properties of Double Integrals
Double integrals over general regions satisfy the same fundamental properties as integrals over rectangles:
| Property | Formula | Meaning |
|---|---|---|
| Linearity | ∫∫ᵣ (af + bg) dA = a∫∫ᵣ f dA + b∫∫ᵣ g dA | Integrals distribute over sums and scale with constants |
| Additivity | ∫∫ᵣ f dA = ∫∫ᵣ₁ f dA + ∫∫ᵣ₂ f dA (if R = R₁ ∪ R₂) | Can split a region and sum the integrals |
| Comparison | If f ≤ g on R, then ∫∫ᵣ f dA ≤ ∫∫ᵣ g dA | Larger functions have larger integrals |
| Area | ∫∫ᵣ 1 dA = Area(R) | Integrating 1 gives the region's area |
Real-World Applications
Double integrals over general regions appear throughout science and engineering:
- Mass of Variable-Density Plates: If gives the density at each point, the total mass is
- Center of Mass: The coordinates of the center of mass are and
- Moments of Inertia: Critical for engineering design of rotating objects, computed as
- Electric Charge: If is the charge density, total charge is
- Probability: For a joint PDF , probabilities are computed as
Machine Learning Connections
Double integrals over general regions connect directly to several machine learning concepts:
- Multivariate Probability: Computing probabilities over decision boundaries requires integrating the joint distribution over complex regions defined by classifier outputs
- Expectation Values: Expected values of bivariate random variables over non-rectangular supports use double integrals with variable bounds
- Monte Carlo Integration: When analytic integration is impossible, neural networks use sampling-based integration—the foundation of variational inference and reinforcement learning
- Attention Mechanisms: Soft attention can be viewed as computing weighted integrals over attention regions, generalizing the discrete sum
Python Implementation
Here's a complete Python implementation showing how to compute double integrals over general regions numerically:
Test Your Understanding
Summary
In this section, we extended double integration from rectangles to general regions bounded by curves. The key concepts are:
- Type I Regions: Bounded above and below by functions of . Integrate first:
- Type II Regions: Bounded left and right by functions of . Integrate first:
- Fubini's Theorem: For continuous functions on well-behaved regions, either order gives the same result
- Changing Order: Sometimes essential for evaluating integrals—always sketch the region first
- Applications: Area, volume, mass, center of mass, probability, and many engineering quantities
Looking Ahead: In the next section, we'll discover polar coordinates, which transform circular and angular regions into simple rectangles. Many integrals that are difficult in Cartesian coordinates become elegant in polar form. This will complete our toolkit for two-dimensional integration.