Learning Objectives
By the end of this section, you will be able to:
- Understand how the definite integral extends from one variable to two variables, and what double integrals represent geometrically
- Construct double Riemann sums to approximate the volume under a surface
- Apply Fubini's theorem to evaluate double integrals as iterated integrals
- Compute double integrals over rectangular regions using both integration orders
- Calculate volumes, average values, and physical quantities using double integrals
- Connect double integrals to machine learning applications including probability distributions and expected values
The Big Picture: From Lines to Surfaces
"Double integrals let us sum infinitely many infinitesimally small contributions over a two-dimensional region—finding volumes, masses, and probabilities that single integrals cannot reach."
In single-variable calculus, we learned that the definite integral represents the signed area under a curve. Now we take a momentous step: extending integration to functions of two variables.
For a function defined over a region in the -plane, the double integral represents the signed volume between the surface and the region .
Why Double Integrals Matter
Double integrals appear throughout science, engineering, and data science:
- Physics: Mass, center of mass, moments of inertia of laminae
- Engineering: Stress distributions, heat flow, fluid dynamics
- Probability: Joint probability distributions and expected values
- Machine Learning: Bayesian inference, kernel methods, multivariate integration
- Computer Graphics: Rendering, texture mapping, illumination models
Historical Context
The theory of multiple integration developed gradually in the 17th and 18th centuries. Isaac Newton and Gottfried Leibniz established single-variable calculus, but extending their ideas to multiple dimensions required new insights.
Leonhard Euler (1707-1783) was among the first to systematically work with double integrals, applying them to problems in mechanics and astronomy. Joseph-Louis Lagrange (1736-1813) developed the theory further in his work on celestial mechanics.
The modern rigorous treatment came from Guido Fubini (1879-1943), who proved the fundamental theorem bearing his name: under suitable conditions, a double integral can be evaluated as two successive single integrals.
Fubini's Legacy
Fubini's theorem is one of the most practically important results in multivariable calculus. It transforms the daunting task of integrating over a region into manageable iterated single integrals—a reduction that makes computation possible.
The Volume Problem
Consider a surface hovering above a rectangular region in the -plane. If , we want to find the volume of the solid that lies:
- Above the rectangle
- Below the surface
This is the two-dimensional analogue of finding the area under a curve. Just as we used Riemann sums to approximate area, we will use double Riemann sums to approximate volume.
The Fundamental Question
Given a surface over a rectangle
What is the volume between the surface and the rectangle?
The Double Integral: Definition
We define the double integral using a limiting process, just as we did for single integrals.
Double Riemann Sums
Step 1: Partition the rectangle. Divide into subintervals and into subintervals, creating subrectangles .
Step 2: Choose sample points. In each subrectangle , pick a sample point .
Step 3: Form the Riemann sum. Each term represents the volume of a rectangular box with base and height .
Double Riemann Sum
where is the area of each subrectangle
Step 4: Take the limit. As the partition becomes finer (more and smaller subrectangles), the Riemann sum approaches the double integral:
Definition: The Double Integral
The limit exists if f is continuous on R (and more generally, if f is bounded with discontinuities of measure zero)
In the notation , we write or , representing an infinitesimal area element.
Interactive: 3D Riemann Sums
Explore how rectangular boxes approximate the volume under a surface. Increase the number of partitions to see the approximation improve:
Riemann Sum
Interactive: Volume Under a Surface
Visualize the double integral as the volume between a surface and a rectangular region. Adjust the function and bounds to explore different scenarios:
Understanding the Visualization
- Blue rectangle: Region R on the xy-plane
- Colored surface: Graph of z = f(x, y)
- Yellow lines: Connect region to surface
- The double integral gives the volume between the surface and the region R
Iterated Integrals
While the definition using Riemann sums is conceptually important, we need a practical way to compute double integrals. The key insight: we can evaluate a double integral by performing two single integrals in succession.
Fubini's Theorem
Fubini's Theorem (for Rectangles)
If is continuous on , then:
In words: We can integrate first with respect to one variable (treating the other as a constant), then integrate the result with respect to the remaining variable. The order doesn't matter—both give the same answer.
| Order | Notation | Process |
|---|---|---|
| dx dy | ∫_c^d ∫_a^b f(x,y) dx dy | 1. Integrate over x (y constant) 2. Integrate result over y |
| dy dx | ∫_a^b ∫_c^d f(x,y) dy dx | 1. Integrate over y (x constant) 2. Integrate result over x |
Choosing the Order
While both orders give the same result for rectangles, sometimes one order leads to simpler antiderivatives. If the inner integral looks difficult, try the other order!
Interactive: Iterated Integrals
See how double integrals are computed step by step using iterated integrals. Watch the cross-sections as we integrate in each direction:
Integrate x first, then y
Step 1: Inner integral (fix y, integrate over x)
∫02 (x² + y) dx = [x³/3 + xy]02 = 8/3 + 2y
Step 2: Outer integral (integrate over y)
∫01 (8/3 + 2y) dy = [8y/3 + y²]01 = 11/3
For continuous f on a rectangle, the order of integration can be switched. Both orders give the same result.
Properties of Double Integrals
Double integrals share many properties with single integrals. Let and be integrable over a region :
Fundamental Properties
Average Value
The average value of over a region is defined as:
This generalizes the single-variable formula . It represents the "average height" of the surface over the region.
Interpretation
If you were to spread the volume under the surface uniformly over the region R, the average value would be the height of the resulting flat surface.
Worked Examples
Example 1: Basic Double Integral
Evaluate where .
Solution: Using Fubini's theorem with dx dy:
Inner integral (integrate over x, y is constant):
Outer integral (integrate over y):
Example 2: Volume Under a Paraboloid
Find the volume under over the square .
Solution:
Inner integral:
Outer integral:
Applications
Physics: Mass and Center of Mass
For a thin plate (lamina) occupying region R with density function (mass per unit area):
| Quantity | Formula | Physical Meaning |
|---|---|---|
| Mass | M = ∬_R ρ(x,y) dA | Total mass of the lamina |
| First moment (x) | M_y = ∬_R x·ρ(x,y) dA | Moment about the y-axis |
| First moment (y) | M_x = ∬_R y·ρ(x,y) dA | Moment about the x-axis |
| Center of mass | (x̄, ȳ) = (M_y/M, M_x/M) | Balance point of the lamina |
Probability: Joint Distributions
For continuous random variables X and Y with joint probability density function :
Probability of a region:
Normalization:
Expected value:
Machine Learning Connection
Double integrals are essential in machine learning, appearing whenever we work with multivariate distributions or compute expectations:
Applications in ML
1. Bayesian Inference
Computing posterior probabilities requires integrating over parameter spaces:
2. Gaussian Mixture Models
Marginalizing over latent variables involves double integrals over continuous spaces.
3. Kernel Density Estimation
Normalizing kernel estimates requires integrating the estimated density over the domain.
4. Feature Engineering
Computing aggregate statistics over 2D feature spaces uses double integrals or their discrete approximations.
Numerical Integration
In practice, most ML applications use numerical methods (Monte Carlo, quadrature) to approximate double integrals. Understanding the theory helps you choose appropriate methods and estimate errors.
Python Implementation
Let's implement double integrals computationally:
Numerical Approximation
Symbolic Iterated Integrals
Applications: Mass and Center of Mass
Test Your Understanding
Test Your Understanding
Question 1 of 8
What does the double integral ∬_R f(x, y) dA represent geometrically when f(x, y) ≥ 0?
Summary
The Core Idea
The double integral extends single integration to two dimensions. When , it represents the volume under the surface and above the region R.
Key Formulas
| Concept | Formula |
|---|---|
| Double integral | ∬_R f(x,y) dA |
| Riemann sum | Σᵢ Σⱼ f(x*ᵢⱼ, y*ᵢⱼ) ΔAᵢⱼ |
| Iterated integral (dx dy) | ∫_c^d ∫_a^b f(x,y) dx dy |
| Iterated integral (dy dx) | ∫_a^b ∫_c^d f(x,y) dy dx |
| Average value | f_avg = (1/Area(R)) ∬_R f dA |
| Area of R | ∬_R 1 dA = Area(R) |
Key Takeaways
- Definition: The double integral is the limit of double Riemann sums as the partition becomes infinitely fine.
- Fubini's theorem: For continuous f on a rectangle, we can evaluate the double integral as two successive single integrals in either order.
- Interpretation: When f ≥ 0, the double integral gives volume. When f represents density, it gives mass.
- Properties: Double integrals are linear and additive over regions—they inherit all the properties of single integrals.
- Applications: From physics (mass, moments) to probability (expected values) to machine learning (Bayesian inference).
Looking Ahead: This section covered double integrals over rectangles. In the next section, we'll extend to general regions—where the limits of integration depend on the other variable, allowing us to integrate over triangles, circles, and any bounded region.