Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

Gauss's Theorem, Stokes' Theorem, and Integral Field Laws

(Topic)

ED04: Gauss’s Theorem, Stokes’ Theorem, and Integral Field Laws

ED03 defined divergence as outward flux per unit volume and curl as oriented circulation per unit area. These are local statements: they describe what happens in a very small neighborhood. But experiments often involve a finite conducting loop, a closed surface around a charge, a coil with many turns, or a finite volume containing electric current. How can local derivatives predict an observable integrated over an entire surface or boundary?

Two theorems provide the bridge:

∫              ∮
  (∇  ⋅ F) dτ =    F ⋅ da,
 V              ∂V
(1)

∫                 ∮
   (∇  × F ) ⋅ da =   F  ⋅ dl.
 S                 ∂S
(2)

Equation (1) is the divergence theorem, also called Gauss’s theorem. Equation (2) is Stokes’ theorem. Both say that the accumulated interior behavior of a field is detected at a boundary.

The purpose of this article is to derive these results rather than merely state them. We will then apply them to all four Maxwell Equations, explore orientation conventions, and work through examples directly connected to field measurements.

PIC

Figure 1. Two local-to-global bridges. Divergence accumulates over a volume to become flux through its closed boundary. Curl accumulates across an oriented surface to become circulation around its edge.

1 Before the theorems: the meaning of a boundary

A volume V has a closed surface boundary, written ∂V . The notation ∂V means the entire outer boundary, not just one face.

For a closed surface the area vector is defined by

da = ˆn da,
(3)

where n points outward from the volume. The flux is

      ∮
Φ   =     F  ⋅ da.
  F     ∂V
(4)

The small circle on the integral sign reminds us the surface is closed.

A surface S need not be closed. It may have an edge, or boundary curve, ∂S. The line element dl follows an orientation around that curve.

To specify an oriented surface, choose a unit Normal n. The positive traversal of ∂S is then determined by the right-hand rule: curl the fingers of your right hand in the positive traversal direction, and your thumb points along the chosen normal. Surface and boundary orientations must agree.

2 Deriving the divergence theorem: one small box

Consider a rectangular box centered at (x,y,z) with side lengths Δx, Δy, and Δz. Its volume is

ΔV  =  Δx Δy  Δz.
(5)

Let

F = Fx ˆx + Fyˆy + Fz ˆz.
(6)

The outward normal on the right face is +x and on the left face is −x.

For a smooth field, the right-face flux to leading order in the dimensions is

Φ   =  F (x + Δx ∕2,y,z )Δy Δz.
 x+     x
(7)

The left-face flux is

Φ   =  − F (x − Δx ∕2,y,z )Δy Δz.
 x−       x
(8)

Add the two contributions:

Φx+ + Φx− = [Fx(x + Δx∕2) − Fx(x − Δx∕2)]
× ΔyΔz. (9)

The unshown y,z arguments in the brackets are held fixed.

PIC

Figure 2. The two x faces have opposite outward normals. Their fluxes subtract, leaving the change in Fx across the box. The other pairs of faces behave in the same way.

Expand each face value about the center:

Fx(x + Δx∕2) = Fx(x) + Δx
----
 2∂Fx
----
 ∂x + O(Δx2), (10)
Fx(x − Δx∕2) = Fx(x) −Δx--
 2∂Fx-
 ∂x + O(Δx2). (11)

Subtracting, with a sufficiently smooth field, gives

                                 ∂Fx
Fx(x + Δx ∕2) − Fx (x −  Δx ∕2) = ----Δx  + o(Δx ).
                                  ∂x
(12)

Hence

Φ   + Φ    ≈ ∂Fx- ΔV.
 x+     x−    ∂x
(13)

Repeat the argument for the other four faces:

             ∂Fy
Φy+ + Φy − ≈ -∂y- ΔV,
(14)

             ∂F
Φz+ + Φz − ≈ ---z ΔV.
              ∂z
(15)

The net flux through all six faces is therefore

ΔΦF ≈ (                   )
  ∂Fx-   ∂Fy-   ∂Fz-
   ∂x  +  ∂y  +  ∂z ΔV (16)
= (∇⋅ F)ΔV. (17)

Dividing by ΔV and letting the box shrink recovers ED03’s local definition of divergence. The important observation is that the spatial derivative is a difference between opposite boundary fluxes.

3 From one box to an arbitrary finite volume

Now assemble many small cells into a finite volume V . Sum Equation (17) over all cells:

                      ∮
∑  (∇  ⋅ F) ΔV  ≈  ∑       F ⋅ da.
          k    k        ∂Vk
 k                  k
(18)

Every face between two adjacent cells appears twice. The outward normal for cell 1 is the inward normal for cell 2:

da2 = − da1.
(19)

Since the field takes the same limiting value on both sides of a smooth interior face, the two flux contributions cancel:

F ⋅ da1 + F ⋅ da2 = 0.
(20)

Only faces on the outer boundary survive. This is the essential reason the theorem works.

PIC

Figure 3. Subdividing a volume produces shared internal faces. Opposite outward normals make the internal flux contributions cancel, leaving only the flux across the external boundary.

Refine the partition until the cells are arbitrarily small. The volume sum becomes a volume integral and the surviving boundary flux becomes a surface integral:

∫             ∮
    ∇ ⋅ F dτ =    F  ⋅ da.
  V             ∂V
(21)

This derivation assumes enough smoothness of F and sufficient regularity of the region and its boundary to justify the limiting process. Piecewise smooth boundaries, such as those of a cube, are included.

4 What Gauss’s theorem does and does not say

The left side is the total divergence accumulated throughout the volume. The right side is the net outward flux. A region can contain positive and negative divergence that cancel in the total integral.

Importantly, the theorem holds for a general sufficiently smooth vector field F. It does not require spherical symmetry, a point charge, or even an electromagnetic interpretation.

Gauss’s theorem and Gauss’s law of electricity are different statements:

  • Gauss’s theorem is a mathematical identity relating divergence and flux.
  • Gauss’s electric law is a physical law specifying ∇⋅ E = ρ∕𝜖0.

Their combination produces the electric flux law.

5 Worked example I: compute the flux two ways

Let

F  = x2ˆx + xy ˆy + zˆz,
(22)

and take the rectangular region

0 ≤ x ≤ a,   0 ≤ y ≤ b,  0 ≤  z ≤ c.
(23)

Method A: integrate the divergence

Compute derivatives one at a time:

∂Fx- = 2x,   ∂Fy- = x,   ∂Fz-=  1.
 ∂x           ∂y         ∂z
(24)

Thus

∇ ⋅ F = 3x + 1.
(25)

The volume integral becomes

∫ V ∇⋅ Fdτ = ∫ 0a ∫ 0b ∫ 0c(3x + 1) dz dy dx (26)
= bc(        )
  3-2
  2a  + a. (27)

Method B: add flux through six faces

At x = a, the outward normal is +x, so

Φ     = a2bc.
  x=a
(28)

At x = 0, Fx = 0, so Φx=0 = 0.

At y = b, the outward normal is +y and Fy = xb. Hence

       ∫  a∫ c
Φ    =        xb dz dx = 1-a2bc.
 y=b     0  0            2
(29)

At y = 0, the flux is zero. At z = c we have Fz = c, giving

Φ    =  abc,
  z=c
(30)

while at z = 0 the flux is zero.

Therefore

∮ ∂V F ⋅ da = a2bc + 1
--
2a2bc + abc (31)
= bc(         )
  3- 2
  2 a + a. (32)

This matches Equation (27) exactly.

6 Circulation and the meaning of an oriented loop

For a directed closed curve C, define the circulation of a vector field F as

      ∮
Γ F =    F ⋅ dl.
       C
(33)

Circulation adds the components of the field along the path. Reversing the path reverses the sign:

∮              ∮
    F ⋅ dl = −    F ⋅ dl.
 −C             C
(34)

Similarly, reversing the chosen surface normal reverses the sign of

∫

  (∇  × F ) ⋅ da.
 S
(35)

Both sides of Stokes’ theorem change sign together.

7 Deriving Stokes’ theorem: one small oriented loop

Start with a small rectangle in the xy plane, oriented counterclockwise as viewed from +z. Its sides have lengths Δx and Δy. The positive normal is +z.

The horizontal bottom edge contributes approximately

Fx(x,y − Δy ∕2 )Δx,
(36)

while the horizontal top edge runs in the −x direction and contributes

− Fx(x,y + Δy ∕2) Δx.
(37)

The combined horizontal contribution is therefore

Γ  ≈  − ∂Fx-Δx Δy.
  x     ∂y
(38)

The right vertical edge runs along +y, and the left edge runs along −y:

Γy ≈ Fy(x + Δx∕2,y) Δy
− Fy(x − Δx∕2,y) Δy (39)
≈ ∂Fy-
 ∂x ΔxΔy. (40)

Summing all four edges gives

ΓF ≈ ( ∂F    ∂F  )
  --y-− ---x
  ∂x     ∂y ΔxΔy (41)
= (∇× F)z ΔA. (42)

The expression in parentheses is precisely the z component of curl derived in ED03. This is not a coincidence: curl was constructed from the local circulation limit.

8 From a tiny loop to an entire surface

Divide an oriented surface S into many small oriented patches. Sum the circulation integrals around their edges:

   ∮
∑
        F ⋅ dl.
 k   ∂Sk
(43)

Every internal edge belongs to two neighboring patches. Compatible patch orientations traverse their shared edge in opposite directions. Those two integrals cancel exactly, leaving only the outer boundary ∂S.

PIC

Figure 4. Compatible orientations around neighboring patches make each shared interior edge cancel. When the small patches are added, only the outer boundary circulation remains.

For a sufficiently smooth field and surface, the local circulation of each tiny patch tends to

(∇ × F ) ⋅nˆΔA.
(44)

In the limit the sum of all these patches becomes a surface integral:

∫                 ∮
   (∇  × F ) ⋅ da =   F  ⋅ dl.
 S                 ∂S
(45)

This is Stokes’ theorem. The argument generalizes from small flat rectangles to sufficiently smooth curved surfaces because each sufficiently small patch is locally planar.

9 Right-hand orientation, boundary direction, and holes

Stokes’ theorem demands a consistent pair of orientations:

  • Choose a normal n over the surface.
  • Use the right-hand rule to orient the boundary ∂S.

For a disk in the xy plane with normal +z, positive traversal is counterclockwise viewed from above. For normal −z, the positive traversal is clockwise viewed from above.

A surface with a hole has an inner boundary as well as an outer boundary. Their compatible orientations are opposite when viewed from the same side. The complete boundary ∂S includes every boundary component.

PIC

Figure 5. A surface normal determines its positive boundary orientation. For an annulus with upward normal, the outer boundary runs counterclockwise and the inner boundary runs clockwise, as viewed from above.

10 A powerful consequence: freedom to choose a spanning surface

Suppose two smooth oriented surfaces S1 and S2 share the same boundary curve C with compatible orientations. Applying Stokes’ theorem twice gives

∫                 ∮

   (∇  × F) ⋅ da =   F ⋅ dl,
 S1                 C
(46)

∫                 ∮
   (∇  × F) ⋅ da =   F ⋅ dl.
 S2                 C
(47)

Therefore

∫                 ∫

   (∇ × F ) ⋅ da =   (∇ ×  F) ⋅ da.
 S1                S2
(48)

The equality requires that the field be sufficiently smooth on the surfaces and on the region where the relevant theorem is applied. It cannot be used blindly across a field singularity. We will see why later.

11 Worked example II: test Stokes’ theorem on a disk

Choose

F = − y-ˆx + x-ˆy.
      2     2
(49)

Let C be the circle

x2 + y2 = a2,    z =  0,
(50)

traversed counterclockwise when viewed from +z.

Method A: line integral around the circle

Parameterize the boundary by

r(ϕ ) = a cosϕ ˆx + a sin ϕ ˆy, 0 ≤ ϕ ≤  2π.
(51)

Then

dl = (− asin ϕ ˆx + a cosϕ ˆy) dϕ.
(52)

The field on the circle is

F = a-(− sin ϕ ˆx + cosϕ ˆy).
    2
(53)

Take the dot product:

F ⋅ dl = a2-
 2(sin 2ϕ + cos 2ϕ) dϕ (54)
= a2
---
 2 dϕ. (55)

Therefore

∮          a2 ∫ 2π        2
   F ⋅ dl =---    dϕ =  πa .
 C         2   0
(56)

Method B: surface integral of curl

Compute the curl:

         ( ∂F     ∂F  )
∇ × F  =   ---y−  ---x  ˆz.
           ∂x     ∂y
(57)

But

∂Fy- = 1-,    ∂Fx- = − 1-.
 ∂x    2       ∂y      2
(58)

Hence

∇ ×  F = ˆz.
(59)

On the planar disk da = zda, so

∫                ∫
                            2
  (∇ ×  F) ⋅ da =   da = πa  .
 S                 S
(60)

The methods agree.

What if the spanning surface is a hemisphere?

Choose the upper hemisphere with the same circular equatorial boundary, oriented so its outward normal has nonnegative z component. The curl is still z. Its flux is the area of the hemisphere projected onto the horizontal disk, which is πa2. The same boundary circulation is recovered without integrating over a flat disk.

12 The four Maxwell equations: differential form

In vacuum using SI units, ED01 introduced

∇⋅ E = -ρ
𝜖
 0, (61)
∇⋅ B = 0, (62)
∇× E = −∂B
-∂t-, (63)
∇× B = μ0J + μ0𝜖0∂E-
∂t. (64)

The divergence theorem is applied to the first two laws. Stokes’ theorem is applied to the latter two. Each conversion has an orientation convention, and the time derivatives must be interpreted with the integration surface held fixed unless the motion of that surface is explicitly included.

13 Derivation of Gauss’s electric law in integral form

Start with the differential electric law:

         ρ
∇ ⋅ E =  --.
         𝜖0
(65)

Integrate both sides over a finite volume V :

∫               ∫
   ∇ ⋅ E dτ = 1-   ρ dτ.
 V            𝜖0  V
(66)

Apply the divergence theorem to the left side:

∮               ∫
             -1
    E ⋅ da = 𝜖     ρdτ.
 ∂V           0  V
(67)

The total enclosed charge is

       ∫
Qenc =     ρdτ.
         V
(68)

Therefore

∮
    E ⋅ da = Qenc.
 ∂V           𝜖0
(69)

This is Gauss’s Law of electricity. Note the distinction between a law that specifies the divergence and a theorem that converts divergence into boundary flux.

14 Worked example III: the electric field of a spherical charge distribution

Take a stationary solid sphere of radius R carrying uniform volume charge density ρ0. Its total charge is

       4πR3
Q  = ρ0-----.
         3
(70)

Spherical symmetry implies a radial field with magnitude depending only on radius:

E =  E (r )ˆr.
(71)

Choose a concentric spherical Gaussian surface of radius r.

PIC

Figure 6. Spherical symmetry makes E normal to a concentric Gaussian sphere and equal in magnitude everywhere on it. The flux integral becomes E(r)4πr2.

On the Gaussian sphere,

E ⋅ da = E (r)da.
(72)

Because E(r) is constant on this spherical surface,

∮                 ∮
                                   2
    E ⋅ da = E (r)    da = E (r)4πr .
  ∂V                ∂V
(73)

For 0 < r < R, the enclosed charge is only that inside radius r:

            4πr3
Qenc(r) = ρ0-----.
              3
(74)

Gauss’s law gives

        2   ρ04πr3
E (r )4 πr =  -------,
              3𝜖0
(75)

so

       ρ0r
E(r) = 3𝜖--ˆr,    0 < r < R.
         0
(76)

For r ≥ R, the Gaussian surface encloses all the charge:

E (r)4πr2 = Q-.
            𝜖0
(77)

Therefore

        --Q----
E (r) = 4π𝜖 r2ˆr,     r ≥ R.
           0
(78)

For positive charge density the field points outward; for negative density it points inward. At r = R the two expressions agree.

Gauss’s law is always true, but extracting E(r) from the flux integral was easy here only because of spherical symmetry.

15 Gauss’s law for magnetic fields

Apply the divergence theorem to

∇ ⋅ B = 0.
(79)

Integrating over V gives

∮

    B  ⋅ da = 0.
  ∂V
(80)

The net magnetic flux through every closed surface is zero in classical Maxwell theory. Magnetic field lines can cross a closed surface, but their signed inward and outward crossings sum to zero.

This does not mean the magnetic field vanishes. A uniform nonzero magnetic field gives equal inward and outward flux through opposite sides of a box, so the net closed-surface flux is zero.

16 Worked example IV: magnetic circulation around a straight wire

Take an ideal infinitely long straight wire on the z axis carrying a steady current I along +z. Rotational symmetry about the wire and translation symmetry along it imply a magnetic field of the form

B  = B ϕ(s)ˆϕ,
(81)

where s is cylindrical radius. The right-hand rule fixes the positive azimuthal direction for positive I.

Choose a circular Amperian loop C of radius s centered on the wire. Traverse it counterclockwise as viewed from +z. Along this loop,

         ˆ
dl = sdϕ ϕ.
(82)

Therefore

∮ CB ⋅ dl = ∫ 02πB ϕ(s)sdϕ (83)
= 2πsBϕ(s). (84)

For steady current, the displacement-current contribution is zero. The integral Ampere law gives

2πsB ϕ(s) = μ0I,
(85)

and hence

        μ0I
B (s) = ----ˆϕ,     s > 0.
        2πs
(86)

If I = 2.0 A and s = 0.010 m, then

              −7
B  = (4π-×-10---)(2.0)-= 4.0 × 10− 5T.
         2π(0.010)
(87)

This is 40 μT. The key step is not the integral itself; it is using symmetry to know the direction and constant magnitude of B along the chosen loop.

17 Faraday’s law from Stokes’ theorem

Start with

∇ ×  E = − ∂B--.
            ∂t
(88)

Integrate over an oriented fixed surface S:

∫                   ∫
   (∇  × E ) ⋅ da = −   ∂B--⋅ da.
 S                   S  ∂t
(89)

Apply Stokes’ theorem on the left:

∮             ∫
                 ∂B
    E ⋅ dl = −   ----⋅ da.
 ∂S            S  ∂t
(90)

For a fixed surface, the time derivative can be moved outside the integral, giving

∮               ∫
   E  ⋅ dl = − d   B ⋅ da.
 ∂S           dt  S
(91)

Define magnetic flux

      ∫
ΦB  =    B ⋅ da.
       S
(92)

Then

∮
              dΦB--
 ∂S E ⋅ dl = − dt .
(93)

The negative sign captures Lenz’s law through the right-hand orientation. The induced circulation of E opposes the change in flux, not necessarily the flux itself.

PIC

Figure 7. For an upward-increasing uniform magnetic field through a stationary loop, the induced electric-field circulation is clockwise when viewed from above, corresponding to negative circulation relative to the upward surface normal.

What changes when the conducting loop moves?

Equation (91) is the form derived for a fixed integration surface. For a moving material loop of local wire velocity u, the relevant electromotive force in the nonrelativistic approximation is

    ∮
ℰ =      (E + u × B ) ⋅ dl.
      C(t)
(94)

Under the usual conditions for a smooth moving loop, this equals minus the total time derivative of the magnetic flux through the moving loop. The additional u × B term is the motional contribution from the Lorentz force. ED37 treats the full distinction carefully.

18 Worked example V: induced electric field around a changing flux

Suppose a uniform magnetic field fills a circular region and points along +z:

B (t) = B (t)ˆz.
(95)

Choose a fixed circular loop of radius s entirely within that uniform-field region. By rotational symmetry the induced electric field is azimuthal and has equal magnitude all around the circle:

E  = E ϕ(s)ˆϕ.
(96)

Using the counterclockwise positive orientation when viewed from above,

∮

 C E ⋅ dl = E ϕ(s)2πs.
(97)

The flux is

Φ   = B (t)πs2.
  B
(98)

Faraday’s law gives

2πsE  (s) = − πs2dB- .
     ϕ            dt
(99)

Therefore

          s-dB-
Eϕ(s) = − 2 dt .
(100)

If s = 0.050 m and dB∕dt = +0.30 T∕s,

Eϕ = −0.0075 V∕m, (101)
ℰ = −2.36 × 10−3 V. (102)

The sign indicates clockwise circulation relative to the chosen +z normal. A changing magnetic field can create circulating electric field even in a region with no wire or free charge.

19 Ampere-Maxwell’s law from Stokes’ theorem

The differential equation is

                    ∂E-
∇ × B  = μ0J + μ0 𝜖0∂t .
(103)

Integrate over an oriented fixed surface S:

∫ S(∇× B) ⋅ da = μ0 ∫ SJ ⋅ da
+ μ0𝜖0 ∫ S∂E
---
∂t ⋅ da. (104)

Apply Stokes’ theorem and define the conduction current through the surface as

     ∫

IS =    J ⋅ da.
      S
(105)

For a fixed surface,

∮
    B ⋅ dl = μ I +  μ 𝜖 dΦE-,
  ∂S          0 S    0 0 dt
(106)

where

      ∫

ΦE  =    E ⋅ da
        S
(107)

is electric flux. The second term is the displacement-current contribution:

I   =  𝜖 dΦE-.
 disp   0  dt
(108)

In magnetostatics, ∂E∕∂t = 0, and the familiar Ampere circuital law remains:

∮

   B  ⋅ dl = μ0IS.
  C
(109)

20 Why the displacement-current term is necessary

Consider a capacitor being charged by a current I(t). A circular Amperian loop surrounds the lead. It can be spanned by different surfaces with the same boundary:

  • A nearly flat surface cuts through the conducting lead and intercepts conduction current.
  • A bulging surface passes between the capacitor plates, where conduction current through the vacuum gap is negligible.

PIC

Figure 8. One boundary loop can be spanned by a surface cutting the wire or a curved surface passing through the capacitor gap. The electric-flux time derivative across the gap supplies the term that makes Ampere-Maxwell circulation independent of the chosen spanning surface.

In a simplified parallel-plate model, neglect edge fields and suppose the gap field is uniform. The plate charge is

Q(t) = 𝜖0E (t)A.
(110)

The current onto the plate is

I(t) = dQ- = 𝜖 A dE-.
        dt    0   dt
(111)

Across a fixed gap surface of area A,

         d
Idisp = 𝜖0--[E(t)A ] = I(t).
         dt
(112)

Thus the conduction current through one surface and the displacement current through the other produce the same total circulation. The model is an illustrative quasistatic approximation; a real charging capacitor may have fringing fields and radiative corrections.

21 The continuity equation as a Maxwell consistency condition

Take the divergence of the differential Ampere-Maxwell equation:

                             -∂-
∇  ⋅ (∇ × B ) = μ0∇ ⋅ J + μ0𝜖0∂t(∇ ⋅ E ).
(113)

The divergence of a curl is zero:

∇  ⋅ (∇ × B ) = 0.
(114)

Use Gauss’s electric law,

∇ ⋅ E =  ρ-.
         𝜖0
(115)

Then

0 = μ ∇ ⋅ J + μ ∂-ρ.
     0         0∂t
(116)

Dividing by μ0 gives charge conservation:

∂ρ-+  ∇ ⋅ J = 0.
∂t
(117)

Integrating over a fixed volume and applying Gauss’s theorem gives its integral counterpart:

   ∫           ∮
 d
dt    ρ dτ = −     J ⋅ da.
    V           ∂V
(118)

The charge inside a region decreases by exactly the outward current through its surface.

Without Maxwell’s displacement-current term, taking divergence of ∇×B = μ0J would incorrectly force ∇⋅ J = 0 even when charge density is changing. The new term is required by local charge conservation.

22 Integral laws can produce boundary jump conditions

The same theorems can be applied to a volume or loop made arbitrarily small across an interface between two regions. This produces boundary conditions.

Let n point from region 1 to region 2. Suppose a surface charge density σ and surface current density K may exist at the interface.

PIC

Figure 9. A thin Gaussian pillbox isolates normal field components across an interface; a shrinking rectangular Stokes loop isolates tangential components. These two limits lead to the electromagnetic jump conditions.

Electric normal component: thin pillbox

Take a short cylinder of face area A straddling the interface. The top outward normal is +n and bottom outward normal is −n.

As its height tends to zero, flux through its sidewall vanishes for bounded fields. Gauss’s electric law becomes

(E   ⋅ ˆn)A − (E ⋅ ˆn)A =  σA-.
  2           1         𝜖0
(119)

Cancel A:

ˆn ⋅ (E −  E ) = -σ.
      2    1    𝜖0
(120)

Magnetic normal component

Apply the same pillbox to ∮ B ⋅ da = 0:

ˆn ⋅ (B2 − B1 ) = 0.
(121)

The normal component of B is continuous across the interface in Maxwell theory.

Electric tangential component: small loop

Let a rectangular loop of length ℓ run along a tangent direction t, with short sides crossing the interface. As its height tends to zero, the flux time derivative is negligible for bounded, nonsingular ∂tB.

Faraday’s law gives

(E2 − E1 ) ⋅ˆt = 0.
(122)

Because t is any tangent direction,

ˆn × (E2 −  E1) = 0.
(123)

Magnetic tangential component: surface current

The same shrinking loop applied to Ampere-Maxwell’s law encloses a surface current K. Under ordinary finite-field conditions, the displacement-flux contribution vanishes in the shrinking-height limit. The result is

ˆn × (B2 − B1 ) = μ0K.
(124)

These four conditions are the vacuum microscopic field jump conditions. In matter they can be rewritten using D and H to distinguish free and bound sources, a topic developed later in the ED sequence.

23 Where the smooth-field proofs need care: singular sources

The divergence theorem was derived for a smooth field in the region of integration. A point-charge field is singular at the charge location:

          Q
E (r) = -------ˆr,    r > 0.
        4π 𝜖0r2
(125)

For r > 0,

∇ ⋅ E = 0.
(126)

But the flux through a sphere of any radius enclosing the origin is

∮
   E ⋅ da = Q-.
            𝜖0
(127)

There is no contradiction: the classical smooth-field hypotheses fail at r = 0. If the origin is removed from the integration region, an inner boundary appears and its flux accounts for the missing contribution.

The compact distributional identity is

   (  ˆr )
∇ ⋅  --   = 4π δ(3)(r),
     r2
(128)

where δ(3) is a three-dimensional Dirac delta distribution. ED05 will derive this carefully and examine line and surface singular sources.

Similarly, consider a circulating field F = ϕ∕s in a region excluding the z axis. Away from the axis, its ordinary curl is zero, yet a circle surrounding the axis has nonzero circulation. A disk spanning that circle passes through a singularity, so the ordinary smooth Stokes theorem cannot be applied over that disk without accounting for the excluded core. The same issue can be understood by choosing a punctured surface that has an inner boundary.

The lesson is general: when an apparent integral/differential contradiction occurs, check whether the field or domain violates the regularity assumptions.

24 How to decide which integral law is useful

The four integral Maxwell equations have complementary geometric forms:

  • Electric Gauss law: charge enclosed by a closed surface controls net electric flux.
  • Magnetic Gauss law: net magnetic flux through any closed surface is zero.
  • Faraday law: changing magnetic flux through an oriented surface controls electric circulation along its boundary.
  • Ampere-Maxwell law: conduction current and changing electric flux through an oriented surface control magnetic circulation along its boundary.

A closed surface suggests a divergence/Gauss problem. A closed curve suggests a curl/Stokes problem. But symmetry determines whether the resulting integral can be used to solve directly for the field magnitude.

25 Laboratory interpretation: what would we measure?

EDL potential maps estimate electric potential at a collection of positions. In an electrostatic regime, neighboring measurements can approximate the gradient, and a numerical surface integral can estimate electric flux through an imagined Gaussian surface. The field reconstructed this way inherits sensor placement, calibration, interpolation, and boundary-error uncertainties.

A small magnetic pickup coil responds to changing magnetic flux. For N identical tightly coupled turns, the induced open-circuit emf under ordinary conditions is approximately

        dΦ
ℰ = − N ---B-.
         dt
(129)

The coil does not measure B at one exact point; it responds to an area integral of B, followed by a time derivative.

A Hall sensor, by contrast, reports a calibrated component of the local field. Mapping B around a wire and then numerically evaluating ∮ CB ⋅ dl is an instructive experimental test of the magnetostatic circulation law, subject to sensor alignment and limited spatial resolution.

These distinctions connect the mathematical operations with what physical probes actually measure.

26 A local-to-global comparison

The two theorems can be remembered from how subdivisions cancel:

  • Volume cells share a face. Their outward face normals are opposite, so internal face flux cancels.
  • Surface patches share an edge. Their positive edge traversals are opposite, so internal edge circulation cancels.

Thus a boundary of a boundary does not contribute: the surviving integral lives only on the actual outer boundary. The deeper mathematics of this pattern appears in more advanced treatments of differential forms, but the small-cell construction already captures the essential physics.

27 Common errors and diagnostic checks

  1. Confusing Gauss’s mathematical theorem with Gauss’s physical electric law.
  2. Forgetting that the normal on a closed surface points outward.
  3. Taking the line integral of E around a curve but choosing a surface normal inconsistent with the curve direction.
  4. Assuming all nonzero local divergence or curl produces a nonzero integral over every region; cancellations can occur.
  5. Trying to solve for E or B from an integral law without using the necessary source symmetry.
  6. Replacing a partial time derivative by a total flux derivative for a moving loop without accounting for motional emf.
  7. Dropping the displacement-current term from Ampere’s law during charging or other time-dependent processes.
  8. Applying Stokes’ theorem across a singularity without excluding the singular set or treating it distributionally.
  9. Ignoring inner boundaries of multiply connected surfaces.
  10. Interpreting a vanishing net magnetic flux through a closed surface as evidence that B must vanish everywhere.

28 Practice problems

  1. For F = (x, 2y, 3z), compute the flux through the closed unit cube by both surface integration and the divergence theorem.
  2. For F = (yz,xz,xy), compute ∇⋅ F and the net flux through any closed cube.
  3. Compute the circulation of F = (−y,x, 0) around a counterclockwise circle of radius a in the xy plane; verify with Stokes’ theorem.
  4. Repeat Problem 3 with the boundary traversed clockwise. Explain both sign changes.
  5. Explain how a flat disk and an upper hemisphere with the same oriented boundary can yield equal curl fluxes.
  6. A point charge Q lies outside a closed Gaussian surface. What is its net electric flux through that surface? Does it necessarily produce zero electric field on the surface?
  7. For a uniform B = B0z, compute the net flux through a closed cube and explain the result using face normals.
  8. For a stationary circular loop of radius a with uniform B(t) through its interior, derive the induced circulation and identify the sign for increasing +z flux.
  9. In a charging ideal parallel-plate capacitor, explain why Ampere’s original conduction-current term is insufficient when the spanning surface passes between the plates.
  10. Derive the normal-electric-field jump condition using a pillbox containing surface charge σ.
  11. Explain the difference between the ordinary divergence of r∕r2 for r > 0 and its distributional divergence on all of ℝ3.
  12. Derive the integral charge-conservation law from the local continuity equation and the divergence theorem.

29 Summary and bridge to ED05

Gauss’s theorem is built from opposite fluxes through tiny volume faces. When many cells are assembled, internal face contributions cancel:

∫             ∮

    ∇ ⋅ F dτ =    F  ⋅ da.
  V             ∂V
(130)

Stokes’ theorem is built from oriented circulation around tiny surface patches. When the patches are assembled, internal edge contributions cancel:

∫                 ∮
   (∇  × F ) ⋅ da =   F  ⋅ dl.
 S                 ∂S
(131)

Using Maxwell’s differential laws, these become the four integral electromagnetic laws:

∮ ∂V E ⋅ da = Qenc
-----
 𝜖0, (132)
∮ ∂V B ⋅ da = 0, (133)
∮ ∂SE ⋅ dl = −dΦ
--B--
 dt, (134)
∮ ∂SB ⋅ dl = μ0IS + μ0𝜖0dΦE--
 dt. (135)

The last two equations assume fixed integration surfaces as written.

ED05 will revisit these identities when charge and current are concentrated at points, lines, or surfaces. There, delta distributions provide a rigorous bridge between singular sources and their integral effects.

References

References

[1]   D. J. Griffiths, Introduction to Electrodynamics, 5th ed., Cambridge University Press, 2023.

[2]   E. M. Purcell and D. J. Morin, Electricity and Magnetism, 3rd ed., Cambridge University Press, 2013.

[3]   H. M. Schey, Div, Grad, Curl, and All That, 4th ed., W. W. Norton, 2005.

[4]   M. L. Boas, Mathematical Methods in the Physical Sciences, 3rd ed., Wiley, 2006.

[5]   A. Zangwill, Modern Electrodynamics, Cambridge University Press, 2013.


"Gauss's Theorem, Stokes' Theorem, and Integral Field Laws" is owned by bloftin.
(view preamble)
View style:
Other names:  ED04
Also defines:  flux through closed surface, outward oriented area, divergence theorem, Gauss theorem, circulation, oriented boundary, Stokes theorem, right-hand orientation, Gaussian surface, Ampere loop, Faraday integral law, Ampere-Maxwell integral law, displacement current, boundary jump conditions, distributional divergence
Keywords:  divergence theorem, Gauss theorem, Stokes theorem, Maxwell equations, electric flux, magnetic flux, circulation, orientation, Gauss law, Faraday induction, Ampere Maxwell law, displacement current, electrodynamics

Cross-references: continuity equation, line integral, operations, calibration, gradient, electrostatic regime, positions, electric potential, domain, ED05, three-dimensional Dirac delta, current density, surface charge density, charge density, force, charge conservation, magnetostatics, conduction, differential equation, electric field, Lorentz force, electromotive force, velocity, magnetic field, magnetic flux, positive charge, flux integral, magnitude, volume charge density, solid, Gauss's Law, ED01, dot product, physical law, identity, vector field, surface integral, volume integral, dimensions, Normal, line element, vector, oriented surface, work, Maxwell Equations, theorems, boundary, observable, electric current, charge, curl, volume, unit, flux, divergence, ED03
There are 32 references to this object.

This is version 1 of Gauss's Theorem, Stokes' Theorem, and Integral Field Laws, born on 2026-11-20.
Object id is 1586, canonical name is GausssTheoremStokesTheoremAndIntegralFieldLaws.
Accessed 13 times total.

Classification:
Physics Classification: 02.30.Em (Potential theory)
 41.20.-q (Applied classical electromagnetism)
 03.50.De (Classical electromagnetism, Maxwell equations )

Pending Errata and Addenda

None.

Discussion

No messages.

Interact