In this lesson you’ll learn how to integrate over surfaces in 3D space. There are two types: scalar surface integrals (accumulating a function over a surface, weighted by area) and vector surface integrals (computing the flux of a vector field through a surface). These are the 3D analogs of line integrals.
In Lesson 14, line integrals accumulated values along curves. Surface integrals do the same thing, but over 2D surfaces in 3D space. Instead of parametrizing a curve with one parameter t, you parametrize a surface with two parameters u and v.
A scalar surface integral accumulates a function f over a surface S. If S is parametrized by r(u,v) over a parameter domain D, the formula is
∬SfdS=∬Df(r(u,v))∥ru×rv∥dudv
The cross product ru×rv gives a vector perpendicular to the surface at each point. Its magnitude ∥ru×rv∥ is the area scaling factor, analogous to the speed ∥r′(t)∥ in line integrals. When f = 1, the scalar surface integral gives the surface area of S.
A vector surface integral computes the flux of a vector field F through an oriented surface S:
∬SF⋅dS=∬DF(r(u,v))⋅(ru×rv)dudv
The dot product F⋅(ru×rv) measures how much of F passes through the surface at each point. Positive flux means the field flows in the direction of the normal. Negative flux means it flows against the normal.
Compute ∬S1dS over the unit sphere (f = 1 gives surface area).
Drag to rotate · Scroll/Pinch to zoom
The unit sphere is the surface of all points at distance 1 from the origin. We’re integrating f = 1 over this surface, which just adds up all the tiny area elements to get the total surface area.
Parametrize the sphere using spherical coordinates with r(φ,θ)=⟨sinφcosθ,sinφsinθ,cosφ⟩ where phi goes from 0 to pi and theta goes from 0 to 2π
The cross product magnitude works out to ∥rφ×rθ∥=sinφ (this is a standard result for the unit sphere).
The surface area of the unit sphere is 4π, which matches the formula 4πr2 with r = 1.
Example 2: Flux through the upper hemisphere
Compute the flux of F=⟨0,0,z⟩ through the upper hemisphere of the unit sphere, with outward-pointing normal.
Drag to rotate · Scroll/Pinch to zoom
The orange arrows show the outward normal vectors at sample points on the hemisphere. The field F = ⟨0,0,z⟩ points straight up, and z is positive on the upper hemisphere, so the field flows outward through the surface everywhere.
Parametrize the upper hemisphere: r(φ,θ)=⟨sinφcosθ,sinφsinθ,cosφ⟩ with phi from 0 to pi/2 and theta from 0 to 2π
The outward normal (cross product) for the unit sphere is rφ×rθ=sinφ⋅⟨sinφcosθ,sinφsinθ,cosφ⟩
Compute F⋅(rφ×rθ) where F at the surface point is ⟨0,0,cosφ⟩:
Surface integrals connect math to physical measurements on surfaces:
Gauss’s Law in electromagnetism says the flux of the electric field through a closed surface equals the enclosed charge divided by a constant. This is a surface integral.
Fluid dynamics uses flux integrals to compute how much fluid passes through a membrane or pipe cross-section per unit time.
Game engines use surface integrals (or discrete approximations) for lighting calculations: how much light energy hits each polygon of a 3D model.
Heat transfer engineering computes the total heat flow through a surface using flux integrals of the temperature gradient.