Calculus
Double Integrals
How does Pixar compute the light hitting a single pixel? A double integral over the visible solid angle, evaluated billions of times per frame.
- Pixar RenderMan: each pixel is a double integral of incoming radiance over a 2D solid angle
- Boeing aerodynamics: lift is computed as a double integral of pressure over wing surface
- MRI image reconstruction: signal intensity integrated over disks and annuli inside the patient
- Catastrophe insurance pricing: expected loss is a double integral of damage density over a risk region
Предварительные знания
- Single-variable definite integration
- Partial derivatives and multivariable regions
- Polar coordinates
Riemann Sums in 2D and Iterated Integrals
Pixar's RenderMan averages light incoming over a 2D solid angle for every pixel. That is a double integral evaluated billions of times per frame. The math behind Toy Story 4 is the same construction we cover here: partition a region, sum heights times areas, take the limit.
Setting f = 1 gives the area of D. Setting f = rho (surface density) gives total mass. Setting f = h(x,y) (height above the plane) gives the volume under the graph z = h(x,y) above D.
Sketch D before integrating. The picture tells you which variable to integrate first and what the inner-integral limits are. Algebra without a sketch is the #1 source of bound-of-integration errors.
Compute the double integral of f(x,y) = x + y over R = [0,1] x [0,2].