Advanced Mathematics

The Theorems of Gauss and Stokes

Two theorems saying that what happens inside a region adds up to what crosses its boundary: divergence to outward flux, curl to circulation.

Needs a step first: 15

Gauss's (divergence) theorem says ∭V∇⋅F dV=∬∂VF⋅n dS\iiint_V \nabla \cdot \mathbf{F}\,dV = \iint_{\partial V} \mathbf{F} \cdot \mathbf{n}\,dS: all the sources inside a volume equal the net flow out through its surface. Stokes' theorem says ∬S(∇×F)⋅n dS=∮∂SF⋅dr\iint_S (\nabla \times \mathbf{F}) \cdot \mathbf{n}\,dS = \oint_{\partial S} \mathbf{F} \cdot d\mathbf{r}: the total swirl through a surface equals the circulation around its edge. Both are the fundamental theorem of calculus in more dimensions. They turn Maxwell's equations from statements at each point into laws about whole surfaces and loops, and often turn a hard integral into an easy one.

Where it shows up: Gauss's law for electric charge and Faraday's law of induction are these theorems applied to Maxwell's equations, and conservation laws in physics take the same form.

How to hold it: In your head

See both theorems as the fundamental theorem of calculus in more dimensions: what happens inside a region adds up to what crosses its boundary, with orientations set by the outward normal and the right-hand rule.

What knowing it looks like

  • State both theorems with the correct orientations: outward normal, and the right-hand rule linking a surface to its edge.
  • Verify the divergence theorem for a simple field on a sphere or cube, computing both sides.
  • Use Gauss's law to find the electric field of a uniformly charged sphere.

Test yourself

Verify Stokes' theorem for F=(−y,x,0)\mathbf{F} = (-y, x, 0) and the unit disc in the xyxy-plane: compute the circulation of F\mathbf{F} anticlockwise around the unit circle, and the flux of ∇×F\nabla \times \mathbf{F} upward through the disc.
Show the worked answer
Circulation: with r(t)=(cos⁡t,sin⁡t,0)\mathbf{r}(t) = (\cos t, \sin t, 0), r′(t)=(−sin⁡t,cos⁡t,0)\mathbf{r}'(t) = (-\sin t, \cos t, 0) and F(r(t))=(−sin⁡t,cos⁡t,0)\mathbf{F}(\mathbf{r}(t)) = (-\sin t, \cos t, 0), so F⋅r′=sin⁡2t+cos⁡2t=1\mathbf{F} \cdot \mathbf{r}' = \sin^2 t + \cos^2 t = 1 and ∮F⋅dr=∫02π1 dt=2π\oint \mathbf{F} \cdot d\mathbf{r} = \int_0^{2\pi} 1\,dt = 2\pi. Flux: ∇×F=(0,0,1−(−1))=(0,0,2)\nabla \times \mathbf{F} = (0, 0, 1 - (-1)) = (0, 0, 2), and with upward normal (0,0,1)(0, 0, 1) the flux is 22 times the disc's area π\pi, so 2π2\pi. Both sides are 2π2\pi. Anticlockwise seen from above goes with the upward normal; reversing one of them flips the sign.

Needs a step first: 15

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "The Theorems of Gauss and Stokes" (Undergraduate II tier): Two theorems saying that what happens inside a region adds up to what crosses its boundary: divergence to outward flux, curl to circulation.
I already know: Divergence and Curl, Multiple Integrals.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Verify Stokes' theorem for $\mathbf{F} = (-y, x, 0)$ and the unit disc in the $xy$-plane: compute the circulation of $\mathbf{F}$ anticlockwise around the unit circle, and the flux of $\nabla \times \mathbf{F}$ upward through the disc.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended