---
title: Surface integrals
heading: Adding things up over a curved surface
eyebrow: A9 · Lesson 30 · Surface integrals
xp: 40
---

::: hook
Charge on a conductor sits on its surface, and on a curved conductor it isn't spread evenly: it crowds onto the sharpest parts. To find the total, you add up the density over a curved surface. Flux, the subject of the next lessons, is the same kind of sum with a direction attached. Both need a way to measure area on a surface that bends: describe the surface with two parameters, and use the cross product to find the area of each little patch.
:::

::: play
- A square patch of side 1, lifted onto a plane tilted with slope $m$, stretches into a parallelogram. The line shows the tilt in cross-section.
- The readout is the patch's area on the tilted plane, $\sqrt{1 + m^2}$ times its shadow.
- At what tilt does the patch have twice the area of its shadow?
:::
:::

```sim plot
view: graph
x: x = 0..1
y: z = 0..3
slider: m = 0..3 step 0.05 = 1
plot: m*x | label: tilted plane, cross-section
readout: area factor √(1 + m²) = sqrt(1 + m^2) | digits: 4
readout: tilt angle, degrees = atan(m)*180/pi | digits: 3
```

::: predict
## What is the surface area of a sphere of radius $R$?

- [ ] $\pi R^2$
- [ ] $2\pi R^2$
- [x] $4\pi R^2$
- [ ] $\frac{4}{3}\pi R^3$

::: reveal
$4\pi R^2$: four times the area of its shadow, a disk. With latitude and longitude as parameters, a patch has area $R^2\sin\varphi\,d\varphi\,d\theta$, and $\int_0^{2\pi}\int_0^\pi R^2\sin\varphi\,d\varphi\,d\theta = 4\pi R^2$.
:::
:::

::: nameit
## Parametrized surfaces

Describe a surface with two parameters: $\mathbf{r}(u, v) = (x(u, v), y(u, v), z(u, v))$. A small patch spanning $du$ and $dv$ is nearly a parallelogram with sides $\mathbf{r}_u\,du$ and $\mathbf{r}_v\,dv$, so its area is

$$dS = |\mathbf{r}_u \times \mathbf{r}_v|\,du\,dv$$

and $\mathbf{r}_u \times \mathbf{r}_v$ points along the surface's **normal**.

## Common surfaces

| Surface | Parameters | $dS$ |
|---|---|---|
| sphere of radius $R$ | $\varphi, \theta$ | $R^2\sin\varphi\,d\varphi\,d\theta$ |
| cylinder of radius $R$ | $\theta, z$ | $R\,d\theta\,dz$ |
| graph $z = g(x, y)$ | $x, y$ | $\sqrt{1 + g_x^2 + g_y^2}\,dx\,dy$ |
| plane tilted by slope $m$ | $x, y$ | $\sqrt{1 + m^2}\,dx\,dy$ |

## Surface integrals

$$\iint_Sf\,dS = \iint f(\mathbf{r}(u, v))\,|\mathbf{r}_u \times \mathbf{r}_v|\,du\,dv$$

With $f = 1$ it's the area; with $f = \sigma$, a surface charge density, it's the total charge.
:::

::: example
## Derive the area of a sphere.

::: solution
1. **Parametrize the sphere.**
   $$\begin{aligned} \mathbf{r} = R(&\sin\varphi\cos\theta, \\ &\sin\varphi\sin\theta, \\ &\cos\varphi) \end{aligned}$$
2. **Area element.**
   $$|\mathbf{r}_\varphi \times \mathbf{r}_\theta| = R^2\sin\varphi$$
3. **Integrate.**
   $$\begin{aligned} A &= \int_0^{2\pi}\int_0^\pi R^2\sin\varphi\,d\varphi\,d\theta \\ &= 2\pi R^2 \times 2 \\ &= 4\pi R^2 \end{aligned}$$

**Answer:** the sphere's area is $4\pi R^2$.
:::
:::

::: example
## A hemisphere of radius $R$ carries $\sigma = \sigma_0\cos\varphi$, largest at the top. What is its total charge?

::: solution
1. **Integrate the density over the hemisphere.**
   $$\begin{aligned} Q &= \int_0^{2\pi}\int_0^{\pi/2}\sigma_0\cos\varphi \\ &\qquad \times R^2\sin\varphi\,d\varphi\,d\theta \\ &= 2\pi\sigma_0R^2\cdot\frac{1}{2} \\ &= \pi\sigma_0R^2 \end{aligned}$$
2. **Compare with a disk.** It's the same as a flat disk of radius $R$ at density $\sigma_0$: the falling density exactly offsets the extra area.

**Answer:** the total charge is $\pi\sigma_0R^2$.
:::
:::

::: example
## Find the area of the paraboloid $z = x^2 + y^2$ below $z = 1$.

::: solution
1. **Area element of a graph.** For $z = f(x, y)$:
   $$\begin{aligned} dS &= \sqrt{1 + f_x^2 + f_y^2}\,dA \\ &= \sqrt{1 + 4r^2}\,r\,dr\,d\theta \end{aligned}$$
2. **Integrate over the unit disk.**
   $$\begin{aligned} S &= 2\pi\int_0^1\sqrt{1 + 4r^2}\,r\,dr \\ &= 2\pi \cdot \frac{1}{12}(1 + 4r^2)^{3/2}\Big|_0^1 \\ &= \frac\pi6\left(5\sqrt5 - 1\right) \\ &= 5.33 \end{aligned}$$
3. **Compare with the flat disk.** The flat disk underneath has area $\pi = 3.14$; the bowl's steep sides add 70%.

**Answer:** the paraboloid's area is $\frac\pi6\left(5\sqrt5 - 1\right) = 5.33$.
:::
:::

::: check
given: a = 2 | 3; b = 1 | 4; m = 0.5 | 2
answer: a*b*sqrt(1 + m^2)
tolerance: 0.5%

## A plane $z = \given{m}x$ sits over the rectangle $[0, \given{a}] \times [0, \given{b}]$. What is the area of the part above it?

::: right
Right. $ab\sqrt{1 + m^2}$ = {answer}.
:::

::: misses
- [a*b] That's the shadow; tilting adds area.
- [a*b*(1 + m)] The stretch factor is $\sqrt{1 + m^2}$.
- [any] Not yet. $\iint\sqrt{1 + g_x^2 + g_y^2}\,dA$.
:::
:::

::: check
given: R = 1 | 2; phi = 60 | 120
answer: 2*pi*R^2*(1 - cos(phi*pi/180))
tolerance: 0.5%

## What is the area of the cap of a sphere of radius {R} from the pole down to $\varphi$ = {phi}°?

::: right
Right. $\int_0^{2\pi}\int_0^{\varphi_0}R^2\sin\varphi\,d\varphi\,d\theta = 2\pi R^2(1 - \cos\varphi_0)$ = {answer}.
:::

::: misses
- [2*pi*R^2*sin(phi*pi/180)] $\int\sin\varphi\,d\varphi = -\cos\varphi$.
- [any] Not yet. Integrate $R^2\sin\varphi$ over the cap.
:::
:::

::: check
given: R = 1 | 3; h = 2 | 5
answer: 2*pi*R*h
tolerance: 0.5%

## Using $dS = R\,d\theta\,dz$, what is the curved area of a cylinder of radius {R} and height {h}?

::: right
Right. $\int_0^h\int_0^{2\pi}R\,d\theta\,dz = 2\pi Rh$ = {answer}.
:::

::: misses
- [pi*R^2*h] That's the volume.
- [any] Not yet. Integrate $R$ over $\theta$ and $z$.
:::
:::

::: check
given: s0 = 2 | 5; R = 0.5 | 2
answer: pi*s0*R^2
tolerance: 0.5%

## A hemisphere of radius {R} carries $\sigma = \given{s0}\cos\varphi$. What is its total charge?

::: right
Right. $\pi\sigma_0R^2$ = {answer}.
:::

::: misses
- [2*pi*s0*R^2] Include $\int_0^{\pi/2}\cos\varphi\sin\varphi\,d\varphi = \frac{1}{2}$.
- [any] Not yet. $\iint\sigma_0\cos\varphi\,R^2\sin\varphi\,d\varphi\,d\theta$.
:::
:::

::: check
given: R = 1..6 int
answer: 4*pi*R^4/3
tolerance: 0.5%

## Evaluate $\iint z^2\,dS$ over the sphere of radius {R}.

::: right
Right. By symmetry $\iint x^2 = \iint y^2 = \iint z^2$, and they add to $R^2 \times 4\pi R^2$, so each is $\frac{4\pi R^4}{3}$ = {answer}.
:::

::: misses
- [4*pi*R^4] That's $\iint(x^2 + y^2 + z^2)\,dS$; $z^2$ is a third of it.
- [any] Not yet. Use symmetry, or integrate $R^2\cos^2\varphi\cdot R^2\sin\varphi$.
:::
:::

::: check
given: a = 0.5 | 1 | 1.5 | 2 | 3
answer: pi/6*((1 + 4*a^2)^1.5 - 1)
tolerance: 0.5%

## What is the area of the bowl $z = x^2 + y^2$ above the disk of radius {a}?

::: right
Right. $dS = \sqrt{1 + 4r^2}\,r\,dr\,d\theta$, giving $\frac{\pi}{6}[(1 + 4a^2)^{3/2} - 1]$ = {answer}.
:::

::: misses
- [pi*a^2] That's the shadow.
- [any] Not yet. $g_x^2 + g_y^2 = 4r^2$; integrate in polar coordinates.
:::
:::

::: check
kind: parts
given: R = 1 | 2 | 5; h = 0.5 | 1

## A spherical cap of height {h} on a sphere of radius {R}.

::: part
answer: 2*pi*R*h
tolerance: 0.5%

### What is its area?

::: misses
- [pi*h^2] Archimedes: a cap's area is $2\pi Rh$, the same as the matching band of the enclosing cylinder.
- [any] $\int_0^{2\pi}\int_0^{\alpha}R^2\sin\varphi\,d\varphi\,d\theta$ with $R(1 - \cos\alpha) = h$.
:::
:::
:::

::: check
kind: derivation
vars: R = 0.5..3, s = 0.1..2

## A hemisphere of radius $R$ carries $\sigma = s\cos\varphi$.

::: step
answer: pi*R^2*s

### What is $\int_0^{2\pi}\int_0^{\pi/2}s\cos\varphi R^2\sin\varphi\,d\varphi\,d\theta$?
:::

::: right
Right. $\pi R^2s$: the same as a uniform $s$ over the flat disk below it.
:::
:::

::: explain
## Why is the area element on a parametrized surface $|\mathbf{r}_u \times \mathbf{r}_v|\,du\,dv$?

::: model
Changing $u$ by a small $du$ moves the point along the surface by about $\mathbf{r}_u\,du$, and changing $v$ moves it by $\mathbf{r}_v\,dv$. So the little patch is nearly a parallelogram with those two vectors as sides. The area of a parallelogram is the length of the cross product of its sides, giving $|\mathbf{r}_u \times \mathbf{r}_v|\,du\,dv$. The cross product also points perpendicular to both sides, which is the surface's normal, the direction flux needs.
:::
:::

::: practice

::: check
given: R = 1..20 int
answer: 4*pi*R^2
tolerance: 0.5%

## What is the area of a sphere of radius {R}?

::: misses
- [pi*R^2] That's a disk.
- [any] $4\pi R^2$.
:::
:::

::: check
given: m = 0.5 | 0.75 | 1 | 2 | 3 | 4
answer: sqrt(1 + m^2)
tolerance: 0.5%

## A plane rises with slope {m}. By what factor is a patch on it larger than its shadow?

::: misses
- [any] $\sqrt{1 + m^2}$.
:::
:::

::: check
given: s0 = 3 | 10; R = 1 | 2
answer: 4*pi*R^2*s0
tolerance: 0.5%

## A sphere of radius {R} carries uniform $\sigma$ = {s0}. What is its total charge?

::: misses
- [any] $\sigma \times 4\pi R^2$.
:::
:::
:::
