The Earth is wrapped in a magnetic field. How much of that field is piercing the Pacific Ocean's surface right now? Roughly speaking, that's the kind of question surface integrals were built to answer - we can integrate along curves; now we'd like to do the same over a curved sheet.

this is the surface field arrows outward normal

The Scalar Surface Integral

Let's start small. Imagine a thin curved sheet of metal - say, a dome - and suppose its mass is unevenly distributed: at each point $(x,y,z)$ the surface density (mass per unit area) is some function $H(x,y,z)$. What's the total mass of the dome?

If the surface were flat, we already know what to do. Take a flat $2\times 2$ plate sitting in the $xy$-plane with density $H(x,y) = x$. The mass is just $\int_0^2\!\int_0^2 x\,dx\,dy = 2 \cdot 2 = 4$. Easy.

Now imagine we bend that plate into a dome - same idea, but the little patches of area $\Delta\sigma$ now depend on the local geometry of the surface, not just $dx\,dy$. Cut $S$ into tiny patches, sample $H$ at a point $(x_i^*, y_i^*, z_i^*)$ in each, add up $H \cdot \Delta_i\sigma$, and take the limit. It turns out the construction is exactly the same as for the flat plate, just with curved patches:

$$\iint_S H(x,y,z)\,d\sigma \;=\; \lim_{n\to\infty} \sum_{i=1}^{n} H(x_i^*, y_i^*, z_i^*)\,\Delta_i \sigma.$$

That's the scalar surface integral (Kaplan eq. 5.74). Geometrically, $d\sigma$ is the area of an infinitesimal patch of $S$. Special case: if $H \equiv 1$, we get the surface area of $S$. Otherwise, we're computing a weighted total - mass, charge, heat content, anything distributed over the surface.

The whole game in the next two cards is: how do we actually compute $d\sigma$? We've two natural ways of describing a surface, and we'll need a recipe for each.

Graph Form: $z = g(x,y)$

The simplest description of a surface is "$z$ as a function of $x$ and $y$." Think of $S$ as a hilly landscape sitting above its shadow $R$ in the $xy$-plane. We want to express $d\sigma$ in terms of the easier $dA = dx\,dy$ on $R$.

Here's the picture. A small rectangle $dx \times dy$ in the plane lifts to a small parallelogram on $S$. Parametrize the surface as $\mathbf{r}(x,y) = (x,\,y,\,g(x,y))$. The two edge vectors of that parallelogram are

$$\mathbf{r}_x = (1, 0, g_x), \qquad \mathbf{r}_y = (0, 1, g_y).$$

Their cross product gives a normal vector whose length is the lift factor:

$$\mathbf{r}_x \times \mathbf{r}_y = (-g_x,\,-g_y,\,1), \qquad \|\mathbf{r}_x \times \mathbf{r}_y\| = \sqrt{1 + g_x^2 + g_y^2}.$$

That length is basically the stretch factor between flat $dA$ and curved $d\sigma$:

$$d\sigma \;=\; \sqrt{1 + g_x^2 + g_y^2}\;dx\,dy.$$

This is Kaplan eq. 5.70 - and the same factor we met for surface area in §4.7. The square root is the "secant of the tilt angle": the steeper the surface, the more area it has compared to its shadow.

Worked example. Compute $\iint_S xy\,d\sigma$ where $S$ is the part of the plane $z = 2 - x - y$ in the first octant.

First, what's the footprint? "First octant" means $x \ge 0$, $y \ge 0$, $z \ge 0$. The third constraint $z \ge 0$ becomes $x + y \le 2$. So $R$ is the triangle with vertices $(0,0)$, $(2,0)$, $(0,2)$.

Before we crank through the integral - what should this answer roughly look like? The footprint triangle has area $2$. The integrand $xy$ vanishes along both legs and is largest near the middle, so its average over the triangle is maybe $\frac{1}{4}$ or so. The slant factor $\sqrt{3}$ pulls everything out front. So we should land somewhere near $2 \cdot \frac{1}{4} \cdot \sqrt{3} = \frac{\sqrt{3}}{2}$. Let's see if that's right.

Now $g_x = -1$, $g_y = -1$, so

$$d\sigma = \sqrt{1 + 1 + 1}\,dx\,dy = \sqrt{3}\,dx\,dy.$$

The integral becomes

$$\iint_S xy\,d\sigma = \sqrt{3}\int_0^2 \int_0^{2-x} xy\,dy\,dx = \sqrt{3}\int_0^2 x \cdot \frac{(2-x)^2}{2}\,dx.$$

Expand $(2-x)^2 = 4 - 4x + x^2$ and integrate term by term:

$$\frac{\sqrt{3}}{2}\int_0^2 (4x - 4x^2 + x^3)\,dx = \frac{\sqrt{3}}{2}\left[2x^2 - \frac{4x^3}{3} + \frac{x^4}{4}\right]_0^2 = \frac{\sqrt{3}}{2}\!\left(8 - \frac{32}{3} + 4\right) = \frac{\sqrt{3}}{2}\cdot\frac{4}{3} = \boxed{\frac{2\sqrt{3}}{3}}.$$

Notice how the geometric factor $\sqrt{3}$ comes out front because the surface is flat - it has constant tilt. For curved surfaces, the square root sits inside the integral and we can rarely pull it out.

Parametric Form: $\mathbf{r}(u,v)$

Spheres, tori, and helicoids don't fit in graph form - they double back on themselves. The general description uses two parameters:

$$\mathbf{r}(u,v) = (x(u,v),\,y(u,v),\,z(u,v)),\qquad (u,v)\in R_{uv}.$$

The same parallelogram argument works. A small rectangle $du\times dv$ in parameter space lifts to a parallelogram with edges $\mathbf{r}_u\,du$ and $\mathbf{r}_v\,dv$. Its area is the magnitude of the cross product - and it turns out you can rewrite that magnitude in terms of dot products alone:

$$d\sigma \;=\; \|\mathbf{r}_u \times \mathbf{r}_v\|\,du\,dv \;=\; \sqrt{EG - F^2}\,du\,dv.$$

where $E$, $F$, $G$ are the entries of the first fundamental form:

$$E = \mathbf{r}_u \cdot \mathbf{r}_u,\qquad F = \mathbf{r}_u \cdot \mathbf{r}_v,\qquad G = \mathbf{r}_v \cdot \mathbf{r}_v.$$

Kaplan introduces this notation in §5.10 (eq. 5.71-5.72). One identity worth checking with bare hands once: $\|\mathbf{a} \times \mathbf{b}\|^2 = \|\mathbf{a}\|^2 \|\mathbf{b}\|^2 - (\mathbf{a}\cdot\mathbf{b})^2$, which is exactly $EG - F^2$.

A trap to name. At the poles of a sphere $\mathbf{r}(\phi,\theta) = (\sin\phi\cos\theta, \sin\phi\sin\theta, \cos\phi)$, $\mathbf{r}_\phi \times \mathbf{r}_\theta$ vanishes - both lines of longitude collapse to a point. These are coordinate singularities, not geometric ones; the sphere itself is perfectly smooth at the poles. Such measure-zero defects don't affect the integral. Kaplan requires $EG - F^2 \neq 0$ for the parametrization to be useful, but a single bad point is fine.

Orientation: Picking a Side

For a scalar integral $\iint_S H\,d\sigma$, we never had to pick a side. Mass is mass; it doesn't matter which way we look at the dome. But for flux - "how much of a vector field crosses $S$" - we have to commit to a direction. Out of a closed box is positive; into it is negative. We need a notion of "out."

Kaplan's setup (§5.9): a smooth surface is oriented if we can choose a continuous unit-normal field $\mathbf{n}$ on it. The choice of $\mathbf{n}$ versus $-\mathbf{n}$ is the orientation. A surface that admits such a choice at all is called orientable or two-sided. For a graph $z = g(x,y)$ the upper normal has positive $z$-component:

$$\mathbf{n}_{\text{up}} = \frac{(-g_x,\,-g_y,\,1)}{\sqrt{1 + g_x^2 + g_y^2}}.$$

For the parametric form, $\mathbf{n} = \pm(\mathbf{r}_u \times \mathbf{r}_v)/\|\mathbf{r}_u \times \mathbf{r}_v\|$, and we pick the sign once and stick with it.

The classic counterexample. The Mobius strip is not orientable: walk around it once with $\mathbf{n}$ pointing "up" and you come back with it pointing "down." There is no continuous global choice. Such a surface has only one side, and flux through it is undefined - we simply don't try.

Piecewise-smooth surfaces (a cube, a cylinder with caps) are oriented face by face, with the normals on adjacent faces agreeing along their shared edge in the sense that, walking the edge, the surface lies on the same side (Kaplan Fig. 5.27).

Once we've committed to a side, we'll write the integral in component form $\iint P\,dy\,dz + Q\,dz\,dx + R\,dx\,dy$. Watch the order of those differentials - we'll come back to this in card 6, but heads up: it's where most sign errors hide.

Flux: $\iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma$

Now that we have an oriented surface and a normal $\mathbf{n}$, the natural quantity to ask about is: at each point on $S$, how much of $\mathbf{v}$ is poking through in the $\mathbf{n}$ direction? Add that up over the whole surface and we get the flux of $\mathbf{v} = L\,\mathbf{i} + M\,\mathbf{j} + N\,\mathbf{k}$ across $S$:

$$\iint_S v_n\,d\sigma \;=\; \iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma.$$

Physically, if $\mathbf{v}$ is the velocity of a fluid, this measures the volume of fluid crossing $S$ per unit time in the $\mathbf{n}$ direction. The dot product picks out the component of $\mathbf{v}$ that's actually piercing the surface; tangential flow contributes nothing.

For a graph $z = g(x,y)$ with upper normal, something lovely happens. The unit normal is $\mathbf{n} = (-g_x, -g_y, 1)/\sqrt{1 + g_x^2 + g_y^2}$, and $d\sigma = \sqrt{1 + g_x^2 + g_y^2}\,dx\,dy$. The square roots cancel:

$$\iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma \;=\; \iint_R \bigl(-L\,g_x - M\,g_y + N\bigr)\,dx\,dy.$$

That's Kaplan eq. 5.80 with the upper-normal sign. With a lower normal we'd flip every term. The cancellation is exactly why the graph case is so popular in practice - no awkward square roots.

Worked example. Compute the upward flux of $\mathbf{v} = x\,\mathbf{i} + y\,\mathbf{j} + z\,\mathbf{k}$ through the paraboloid $z = 4 - x^2 - y^2$ over the disk $x^2 + y^2 \le 4$.

Take $g(x,y) = 4 - x^2 - y^2$, so $g_x = -2x$ and $g_y = -2y$. Then $L = x$, $M = y$, $N = z = 4 - x^2 - y^2$. Plug in:

$$-L\,g_x - M\,g_y + N = -x(-2x) - y(-2y) + (4 - x^2 - y^2) = 2x^2 + 2y^2 + 4 - x^2 - y^2 = x^2 + y^2 + 4.$$

Polar coordinates on the disk: $x^2 + y^2 = r^2$, $dx\,dy = r\,dr\,d\theta$.

$$\iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma = \int_0^{2\pi}\!\int_0^2 (r^2 + 4)\,r\,dr\,d\theta = 2\pi \int_0^2 (r^3 + 4r)\,dr = 2\pi\left[\frac{r^4}{4} + 2r^2\right]_0^2 = 2\pi\,(4 + 8) = \boxed{24\pi}.$$

Sanity check. Should $24\pi$ feel right? Here's a quick predict-and-verify using the Divergence Theorem (a peek ahead to §5.11). The divergence of $\mathbf{v} = (x,y,z)$ is $1+1+1 = 3$. The volume under the paraboloid over the disk $r \le 2$ is $\int_0^{2\pi}\!\int_0^2 (4 - r^2)\,r\,dr\,d\theta = 8\pi$. So the total outward flux through the closed surface (paraboloid plus the bottom disk at $z=0$) is $3 \cdot 8\pi = 24\pi$. On the bottom disk $z = 0$, so $\mathbf{v}\cdot\mathbf{n} = -z = 0$ there - that disk contributes nothing. All $24\pi$ flows up through the paraboloid. Matches. ✓

Component Form: $L\,dy\,dz + M\,dz\,dx + N\,dx\,dy$

We have one more notation to meet - Kaplan uses it because it's what the Divergence Theorem in §5.11 wants, and it also connects directly to differential forms. The idea is to split flux into three projection-style pieces. Define

$$\iint_S L\,dy\,dz \;=\; \iint_S L\cos\alpha\,d\sigma, \quad \iint_S M\,dz\,dx \;=\; \iint_S M\cos\beta\,d\sigma, \quad \iint_S N\,dx\,dy \;=\; \iint_S N\cos\gamma\,d\sigma,$$

where $(\cos\alpha, \cos\beta, \cos\gamma)$ are the direction cosines of $\mathbf{n}$. Adding gives Kaplan eq. 5.79:

$$\iint_S L\,dy\,dz + M\,dz\,dx + N\,dx\,dy \;=\; \iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma.$$

Three separate-looking surface integrals are really one flux integral. The "$dy\,dz$" piece projects $S$ onto the $yz$-plane; the "$dz\,dx$" piece onto the $zx$-plane; the "$dx\,dy$" piece onto the $xy$-plane. Each projection comes with a sign determined by the orientation.

Cyclic order matters. The pattern is $yz,\,zx,\,xy$ - a cyclic permutation of $x,y,z$. Writing $dx\,dz$ instead of $dz\,dx$ flips the sign, because $dx \wedge dz = -\,dz \wedge dx$. If you ever see the integrand written $L\,dy\,dz + M\,dx\,dz + N\,dx\,dy$ in a problem, suspect a typo or be ready to absorb a minus sign. Always line up your work with Kaplan's cyclic convention $yz,\,zx,\,xy$ before computing.

Why does Kaplan bother with this notation? Two reasons. First, the Divergence Theorem (§5.11) is stated most cleanly in component form: $\iint_S L\,dy\,dz + M\,dz\,dx + N\,dx\,dy = \iiint_R (\partial L/\partial x + \partial M/\partial y + \partial N/\partial z)\,dV$. Second, on coordinate-aligned faces (e.g. a face of a cube where $\mathbf{n} = \mathbf{k}$), only one of the three terms survives - which makes box-flux calculations very fast.

Practice Problems - §5.10

From Kaplan, problems following §5.10

5(a) Component-form flux through a triangle
Evaluate $\displaystyle\iint_S x\,dy\,dz + y\,dz\,dx + z\,dx\,dy$, where $S$ is the triangle with vertices $(1, 0, 0)$, $(0, 1, 0)$, $(0, 0, 1)$ and the normal points away from $(0, 0, 0)$.
Step 1: Recognize the field. The integrand is the flux of $\mathbf{v} = x\,\mathbf{i} + y\,\mathbf{j} + z\,\mathbf{k}$ across $S$ (Kaplan eq. 5.79).
Step 2: Parametrize the triangle as a graph. The plane through the three vertices has equation $x + y + z = 1$, so $z = g(x,y) = 1 - x - y$ over the footprint $R$: triangle $0 \le x \le 1,\ 0 \le y \le 1 - x$. The "away from origin" normal has positive $z$-component, i.e. it's the upper normal.
Step 3: Apply the graph-form flux formula. $g_x = -1$, $g_y = -1$, $L = x$, $M = y$, $N = z = 1-x-y$. Then $-L g_x - M g_y + N = x + y + (1 - x - y) = 1$. So the flux equals $\iint_R 1\,dx\,dy = \text{area}(R) = \tfrac{1}{2}$.
Answer: $\displaystyle\iint_S \mathbf{v}\cdot\mathbf{n}\,d\sigma = \tfrac{1}{2}$.
5(d) Scalar integral over a cylinder
Evaluate $\displaystyle\iint_S x^2 z\,d\sigma$ where $S$ is the cylindrical surface $x^2 + y^2 = 1$, $0 \le z \le 1$.
Step 1: Parametrize. Use $\mathbf{r}(u, v) = (\cos u,\,\sin u,\,v)$ with $0 \le u \le 2\pi$, $0 \le v \le 1$.
Step 2: Compute $d\sigma$. $\mathbf{r}_u = (-\sin u, \cos u, 0)$, $\mathbf{r}_v = (0, 0, 1)$, $\mathbf{r}_u \times \mathbf{r}_v = (\cos u, \sin u, 0)$, $\|\mathbf{r}_u \times \mathbf{r}_v\| = 1$. So $d\sigma = du\,dv$.
Step 3: Pull back the integrand. $x^2 z = \cos^2 u \cdot v$, so $\displaystyle\iint_S x^2 z\,d\sigma = \int_0^{2\pi}\!\int_0^1 v\cos^2 u\,dv\,du.$
Step 4: Evaluate. $\int_0^1 v\,dv = \tfrac{1}{2}$ and $\int_0^{2\pi}\cos^2 u\,du = \pi$. Product: $\boxed{\tfrac{\pi}{2}}$.
5(b) Component-form flux through a hemisphere
Evaluate $\displaystyle\iint_S dy\,dz + dz\,dx + dx\,dy$, where $S$ is the upper hemisphere $z = \sqrt{1 - x^2 - y^2}$, $x^2 + y^2 \le 1$, with the upper normal.
Step 1: Read off the field. The component form $P\,dy\,dz + Q\,dz\,dx + R\,dx\,dy$ is the flux of $\mathbf{F} = P\,\mathbf{i} + Q\,\mathbf{j} + R\,\mathbf{k}$. Here $P = Q = R = 1$, so $\mathbf{F} = \mathbf{i} + \mathbf{j} + \mathbf{k}$ - the constant field pointing into the corner of the first octant.
Step 2: Close the surface and use the divergence theorem. Cap the hemisphere with the unit disk $D: z = 0$, $x^2 + y^2 \le 1$, with outward normal $-\mathbf{k}$. The closed region is the upper half-ball; $\nabla \cdot \mathbf{F} = 0$, so total flux through (hemisphere + disk) is $0$.
Step 3: Subtract the disk contribution. On $D$, $\mathbf{F}\cdot\mathbf{n} = (1)(-1) = -1$, so $\iint_D \mathbf{F}\cdot\mathbf{n}\,d\sigma = -\pi$. Therefore $\iint_S \mathbf{F}\cdot\mathbf{n}\,d\sigma = 0 - (-\pi) = \boxed{\pi}.$
Sanity check. Direct computation in spherical with $r_\varphi \times r_\theta = \sin\varphi\,\hat r$: the $P\,\mathbf{i} + Q\,\mathbf{j}$ part integrates to $0$ by symmetry in $\theta$; only $R = 1$ contributes $\int_0^{2\pi}\!\int_0^{\pi/2} \sin\varphi\cos\varphi\,d\varphi\,d\theta = \pi$. ✓