Skip to content
Math Analysis 2

Flux and the theorems of Green, Gauss and Stokes

Divergence and curl, Green's theorem with proof and the planimeter, surfaces and flux, the divergence theorem, Stokes' theorem and the link with Maxwell's equations.

This lesson completes integral calculus in several variables with the three great theorems: Green, Gauss (divergence) and Stokes. They all say the same thing in different forms: the integral of a “derivative” over a region equals the integral of the function over the boundary of the region, as in the fundamental theorem of calculus. They are the language of Maxwell’s equations, and so of all of electronics.

Differential operators

For a vector field \mathbf F = (F_1, F_2, F_3) one defines, with the symbol \nabla = (\partial_x, \partial_y, \partial_z):

  • the divergence \nabla\cdot\mathbf F = \partial_x F_1 + \partial_y F_2 + \partial_z F_3, a scalar: it measures how much the field “flows out” of a point, like a source;
  • the curl \nabla\times\mathbf F, a vector computed like a cross product: it measures how much the field “swirls” around a point.

The field (x, y, z) has divergence 3 and zero curl: it flows out of every point without swirling. The field (-y, x, 0) has zero divergence and curl (0, 0, 2): it swirls around the z axis with no sources.

Green’s theorem in the plane

Let D be a region of the plane with boundary \partial D traversed anticlockwise. For a field (P, Q) with continuous derivatives:

    \[ \oint_{\partial D}P\,dx + Q\,dy = \iint_D\left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)dx\,dy \]

Proof (for the P part)

Let D be normal with respect to the x axis: a \le x \le b, g_1(x) \le y \le g_2(x). Integrating first in y:

    \[ -\iint_D\frac{\partial P}{\partial y}\,dx\,dy = -\int_a^b\big[P(x, g_2(x)) - P(x, g_1(x))\big]\,dx \]

The boundary is made of the lower curve traversed left to right, giving \int_a^b P(x, g_1(x))\,dx, the upper curve traversed right to left, giving -\int_a^b P(x, g_2(x))\,dx, and any vertical pieces, on which dx = 0. The two sides match. The Q part is proved the same way with the domain normal with respect to y.

Consequence: area from a boundary integral. With P = -y/2, Q = x/2 the right side is the area of D:

    \[ \text{Area}(D) = \frac12\oint_{\partial D}(x\,dy - y\,dx) \]

It is the principle of the planimeter, the mechanical instrument that measures an area by tracing only its outline, and of the algorithm CAD programs use to compute a polygon’s area from its vertex coordinates.

Surfaces and flux

A surface is described with two parameters, \mathbf r(u, v). The vectors \mathbf r_u and \mathbf r_v are tangent, and their cross product is normal to the surface, with magnitude equal to the area of the small parallelogram du\,dv:

    \[ dS = |\mathbf r_u\times\mathbf r_v|\,du\,dv,\qquad \mathbf n = \frac{\mathbf r_u\times\mathbf r_v}{|\mathbf r_u\times\mathbf r_v|} \]

The flux of a field through an oriented surface is

    \[ \Phi = \iint_S\mathbf F\cdot\mathbf n\,dS \]

and it measures how much field crosses the surface, counting only the perpendicular component. If \mathbf F is the velocity of a fluid, the flux is the flow rate, in m³/s.

Example. The flux of \mathbf F = (x, y, z) through the sphere of radius R, with outward normal: on the sphere \mathbf n = (x, y, z)/R, so \mathbf F\cdot\mathbf n = R and \Phi = R\cdot 4\pi R^2 = 4\pi R^3.

The divergence theorem (Gauss)

Let V be a solid bounded by the closed surface \partial V, with outward normal \mathbf n. Then

    \[ \iint_{\partial V}\mathbf F\cdot\mathbf n\,dS = \iiint_V\nabla\cdot\mathbf F\,dV \]

Volume enclosed by a closed surface with outward normals and a field flowing out of a source
The flux out of a closed surface \partial V (red arrows: outward normals) equals the total of the sources inside the volume V, that is the integral of the divergence. Here the field starts at a source inside and flows out everywhere.

The idea: split V into many small cubes. For one cube, the outward flux computed face by face is about \nabla\cdot\mathbf F times its volume. Adding over all cubes, the flux through internal faces cancels (what leaves one cube enters its neighbour) and only the flux through the outer surface remains.

Check on the example. \nabla\cdot(x, y, z) = 3, and \iiint 3\,dV = 3\cdot\frac43\pi R^3 = 4\pi R^3. It matches the flux computed directly.

In Physics 2 it becomes Gauss’s law: the flux of the electric field through a closed surface is proportional to the enclosed charge, \oint\mathbf E\cdot\mathbf n\,dS = Q/\varepsilon_0, and in local form \nabla\cdot\mathbf E = \rho/\varepsilon_0. The divergence theorem is the bridge between the two forms.

Stokes’ theorem

Let S be a surface with boundary \partial S, oriented consistently (right-hand rule: with the thumb along \mathbf n, the fingers show the direction of the boundary). Then

    \[ \oint_{\partial S}\mathbf F\cdot d\mathbf r = \iint_S(\nabla\times\mathbf F)\cdot\mathbf n\,dS \]

The circulation of the field round the boundary equals the flux of the curl through the surface. If S is flat in the xy plane, it is exactly Green’s theorem. An important consequence: the flux of a curl depends only on the boundary, not on the surface chosen.

It also gives the characterisation of conservative fields from the lesson on line integrals: if \nabla\times\mathbf F = \mathbf 0 in a simply connected domain, every closed curve bounds a surface inside the domain, and the circulation is zero.

In Physics 2 it becomes Faraday’s law: the voltage induced around a loop, \oint\mathbf E\cdot d\mathbf r, equals minus the rate of change of the magnetic flux through the loop; in local form \nabla\times\mathbf E = -\partial\mathbf B/\partial t. It is the working principle of transformers, generators and wireless charging.

The overall picture

TheoremRegionBoundary
fundamental theorem of calculussegment [a, b]two points
conservative fieldscurvetwo end points
Greenplane regionclosed curve
Stokessurfaceclosed curve
Gaussvolumeclosed surface

In every row, the integral of a derivative (gradient, curl, divergence) over the region equals the integral of the function over the boundary. In advanced mathematics all these results are a single theorem, the generalised Stokes theorem.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x