In 1D calculus, we integrate over a line to find an area. In Multivariable Calculus, we integrate over a 2D region (Double Integral) to find a volume, or over a 3D region (Triple Integral) to find a total mass or charge.
Double Integrals: Volumes under Surfaces
The integral represents the volume between the -plane and the surface over the region .
Fubini’s Theorem: If the function is nice, you can calculate the double integral by doing two “nested” single integrals in any order:
The Jacobian: Scaling Space
When we change variables (e.g., from Cartesian to Polar ), the “infinitesimal area” changes. We use the Jacobian to account for this stretching.
Cartesian:
Polar:
If you forget the in polar coordinates, your areas and volumes will be wrong!
Interactive Lab
from scipy import integrate
import numpy as np
# Let's calculate the volume of a hemisphere of radius 1
# Surface: z = sqrt(1 - x^2 - y^2)
# We will use SciPy to integrate over a circular region
def f(y, x):
if x**2 + y**2 <= 1:
return np.sqrt(1 - x**2 - y**2)
return 0
# Integrate over the square [-1, 1] x [-1, 1]
# Note: we filter outside the circle in the function f
volume, error = integrate.dblquad(f, -1, 1, lambda x: -1, lambda x: 1)
print(f"Calculated Volume: {volume:.4f}")
print(f"Theoretical (2/3 * pi): { (2/3) * np.pi:.4f}")
python
1from scipy import integrate
2import numpy as np
3
4# Let's calculate the volume of a hemisphere of radius 1
5# Surface: z = sqrt(1 - x^2 - y^2)
6# We will use SciPy to integrate over a circular region
7
8def f(y, x):
9if x**2+ y**2<=1:
10return np.sqrt(1- x**2- y**2)
11return0
12
13# Integrate over the square [-1, 1] x [-1, 1]
14# Note: we filter outside the circle in the function f
If represents the density of an object at point , the total mass of the object is the triple integral of the density over its volume :
Exercises
Knowledge Check
When integrating in polar coordinates, why do we include an extra 'r' factor?
Answer: Because 'r' is the Jacobian that accounts for the fact that area 'sectors' get wider as you move further from the origin.
In polar coordinates, a small change in angle $d\theta$ covers more distance as the radius $r$ increases. The area element $dA$ is a rectangle with sides $dr$ and $r d\theta$, hence $r dr d\theta$.
When integrating in polar coordinates, why do we include an extra 'r' factor?
Knowledge Check
What does Fubini's Theorem allow us to do?
Answer: Switch the order of integration.
Fubini's Theorem states that for continuous functions over rectangular regions, the order of iterated integration does not change the result.
What does Fubini's Theorem allow us to do?
Knowledge Check
If the density of a cube is constant ($\rho = 1$), what is the triple integral of $\rho$ over the cube's volume equal to?
Answer: The volume of the cube.
The integral of 1 over a region is simply the 'size' of that region (length in 1D, area in 2D, volume in 3D).
If the density of a cube is constant ($\rho = 1$), what is the triple integral of $\rho$ over the cube's volume equal to?