Integral Theorems: 1 Integral of The Gradient
Integral Theorems: 1 Integral of The Gradient
Integral Theorems: 1 Integral of The Gradient
provided
dF
f (x) =
dx
We apply this to the integral of a gradient, but since the gradient is a vector, we need to choose a path
of integration. Let ti = dx
dλ along a curve, C (λ) = {xi (λ)}. Then we may integrate ∇φ along the curve by
i
2 Integral of a divergence
2.1 The divergence theorem
Now consider the volume integral of the divergence, ∇ · v, of a vector field, v (x, y, z):
ˆ
d3 x ∇ · v
V
where d3 x = dxdydz. We begin by letting the volume be a cube with sides of length L. Writing out the
divergence in coordinates and distributing,
ˆ ˆL ˆL ˆL
3 ∂vx ∂vy ∂vz
d x∇·v = dx dy+ + dz
∂x ∂y ∂z
V 0 0 0
ˆL ˆL ˆL ˆL ˆL ˆ ˆL ˆL ˆ
L L
∂vx ∂vy ∂vz
= dy dz dx + dx dz dy + dx dy dz
∂x ∂y ∂z
0 0 0 0 0 0 0 0 0
1
ˆL ˆL ˆL ˆL
= dy dz (vx (L, y, z) − vx (0, y, z)) + dx dz (vy (x, L, z) − vy (x, 0, z))
0 0 0 0
ˆL ˆL
+ dx dy (vz (x, y, L) − vz (x, y, 0))
0 0
Let n̂ be the outward normal at any point on the surface of the cube. For example, for the face of the cube
lying in the xy plane at z = 0, the outward normal is −k̂. The parallel face of the cube, lying at z = L, has
outward normal +k̂. With this in mind, consider the first of the six terms above,
ˆL ˆL
dy dz vx (L, y, z)
0 0
This is a surface integral over the face of the cube lying at x = L, where the outward normal is n̂ (L, y, z) = +î.
We can therefore write this integrand as
vx (L, y, z) = n̂ · v (L, y, z)
The second term in our sum is
ˆL ˆL
dy dz (−vx (0, y, z))
0 0
and the outward normal to the cube on the face with x = 0 is n̂ (0, y, z) = −î. This integral is therefore
ˆL ˆL ˆL ˆL
dy dz (−vx (0, y, z)) = dy dz n̂ (0, y, z) · v (0, y, z)
0 0 0 0
In the same way, we consider the remaining pairs. With the outward normals at various points of the cube
given by
n̂ (L, y, z) = +î
n̂ (0, y, z) = −î
n̂ (x, L, z) = +ĵ
n̂ (x, 0, z) = −ĵ
n̂ (x, y, L) = +k̂
n̂ (x, y, 0) = −k̂
the integrand of each of the six double integrals may be written as n̂ · v evaluated on the appropriate side.
Then the full integral of the divergence becomes
ˆ ˆL ˆL ˆL ˆL
3
d x∇·v = dy dz (n̂ · v (L, y, z) + n̂ · v (0, y, z)) + dx dz (n̂ · v (x, L, z) + n̂ · v (x, 0, z))
V 0 0 0 0
ˆL ˆL
+ dx dy (n̂ · v (x, y, L) + n̂ · v (x, y, 0))
0 0
sides ˆ
6X
= d2 x (n̂ (Si ) · v (Si ))
i=1 S
i
2
˛
= d2 x n̂ · v
S
where the final integral is over the entire surface of the cube, and the integrand is the outward component of
v evaluated on that surface. The integral therefore gives us the total outward flux of v across the boundary
of the cube. The circle over the integral sign indicates that the surface S is closed. This is always true of
the boundary of a volume.
To indicate that S is the boundary surface of V we write S = δV .
Now consider two cubes lying side by side and sharing a common side. On the common side the values
of the vector field v are the same for the two cubes, but if the outward normal is n̂ for the first, then it is
−n̂ for the second. When we sum over all six sides of the two cubes, these two “inside” contributions exactly
cancel so the integral of the divergence is still the integral of the outward normal component over the outer
surface of the total volume.
Finally, consider an arbitrary volume, V . Fill the volume as completely as possible with cubes of side ε,
and apply the following results. All boundaries of cubes in the interior of V will face another volume with
the opposite sign for the outward normal. The only non-cancelling contributions will come from the surfaces
near the outer boundary of V . As we make the cube size smaller and smaller, this outer boundary of our
collection of cubes becomes a better and better approximation to the actual surface of the boundary of V .
In the limit as ε → 0, they become identical.
This establishes the divergence theorem: Let an arbitrary volume V have boundary S. Then
ˆ ˛
3
d x∇·v = d2 x n̂ · v
V S
2.2 Example
Let a vector field v be given by
v = xy î + yz ĵ + x2 z k̂
Then the divergence is
∂ ∂ ∂
x2 z
∇·v = (xy) + (yz) +
∂x ∂y ∂z
= y + z + x2
3
The surface integral is a sum of six terms
˛ 6Xsides ˆ
2
d x n̂ · v = d2 x (n̂ (Si ) · v (Si ))
S i=1 S
i
ˆ1 ˆ1 ˆ1 ˆ1 ˆ1 ˆ1
= dy dz (vx (x = 1) − vx (x = 0)) + dz dx (vy (y = 1) − vy (y = 0)) + dx dy (vz (z = 1) − vz (z
0 0 0 0 0 0
ˆ1 ˆ1 ˆ1 ˆ1 ˆ1 ˆ1
dy x2 − 0
= dy dz (y − 0) + dz dx (z − 0) + dx
0 0 0 0 0 0
1 1 1
= + +
2 2 3
4
=
3
where the last line is just a rearrangement of the four integrals. We can write this in a simple form. Let the
border of the square have an tangent vector t = dxdλ so that an infinitesimal displacement along the boundary
is given by
dx
dl = dλ
dλ
where we take the counterclockwise direction around the square. Notice that doing this, the right-hand rule
gives us the direction of the normal, k̂. Following the boundary of our particular square, we have
dl = îdx bottom side
dl = ĵdy right side
dl = −îdx top side
dl = −ĵdy lef t side
4
In each of the four integrals above, the integrand may be written as v · dl, including the signs. For example,
´L
the first integral, 0 vx (x, 0, z) dx is the integral of the x-component of v, evaluated along the bottom of
the square and integrated along that side. The four integrals together are just the integral of v · dl all the
way around the square back to the starting point. The full path of integration is therefore a closed loop,
indicated by a circle on the integral sign, ˛
v · dl
square
As in the case of the divergence theorem, we can add regions together to get a more general law. Suppose
we have an arbitrary curved surface embedded in 3-space. We can approximate the surface by small squares
of side ε. For each such element of the surface at position x, we evaluate the dot product n (x) · (∇ × v (x))
of the curl of our vector field, ∇ × v (x), with the normal to the surface element at that point, n (x). Adding
these up all contributions on the shared sides of squares cancel because of our counterclockwise orientation,
and the total integral gives the integral over the boundary of the full region. The relationship is exact in the
limit as ε → 0. This results in Stokes’ theorem:
¨ ˛
2
(∇ × v) · n̂ d x = v · dl
S C=δS
where S is any 2-dimensional region, C = δS is its boundary, and dl is an infinitesimal displacement in the
clockwise direction (relative to the normal, n̂) along the boundary.
3.1 Example
Let
v = y î − xĵ + z 2 k̂
so it has a nice tidy curl,
∂vz ∂vy ∂vx ∂vz ∂vy ∂vx
∇×v = − î + − ĵ + − k̂
∂y ∂z ∂z ∂x ∂x ∂y
2
∂y ∂z 2
∂z ∂ (−x) ∂ (−x) ∂y
= − î + − ĵ + − k̂
∂y ∂z ∂z ∂x ∂x ∂y
= −2k̂
Integrate this over a hemisphere of radius R, with its boundary a circle of radius R in the xy plane. Then
the surface integral is ¨ ¨
(∇ × v) · n̂ d2 x = −2 k̂ · n̂ d2 x
S S
A surface element of a sphere may be written in spherical coordinates as d2 x = R2 sin θdθdφ and the dot
product is k̂ · n̂ = cos θ. Therefore,
¨ ¨
2
(∇ × v) · n̂ d x = −2 cos θ R2 sin θdθdφ
S S
¨
= −2R2 cos θ sin θdθdφ
S
5
¨
= −4πR2 cos θ sin θdθ
S
π
= −2πR sin2 θ02
2
= −2πR2
For the boundary integral, dl = −y î + xĵ dϕ
˛ ˛
v · dl = y î − xĵ + z 2 k̂ · −y î + xĵ dϕ
C=δS C=δS
˛
y 2 + x2 dϕ
= −
C=δS
˛
= − R2 dϕ
C=δS
= −2πR2
where n̂ is normal to S.
6
Now apply Stokes’ theorem to the emf,
˛
E = E · dl
C=δS
¨
= (∇ × E) · n̂ d2 x
S
Since t is independent of the x, y, z variables, we may interchange the order of integration and differentiation
d
on the right, as long as we remember to change dt to a partial derivative,
¨ ¨
d ∂B
B · n̂ d2 x = · n̂ d2 x
dt ∂t
S S
Since S may be any surface with the boundary C, the integrand must vanish everywhere (if it didn’t, then
putting a little bump in the surface to include some of the nonzero expression would change the value of the
integral away from zero). We conclude
∂B
∇×E+ =0
∂t
This gives us Faraday’s law written as a differential equation.
4 Exercises (required)
Work the following problems:
1. Compute the curl of the vector field v = y 2 î + 2xy ĵ + z 2 k̂, then calculate the line integral along the
following two paths from the origin to (2, 1, 1):
2. Integrate f (x) = xy 2 over the volume with corners at the origin, (0, 0, 0) and the three unit vectors
î, ĵ, k̂.
3. Compute both sides of the divergence theorem for the vector field v = xy î + 2xz 3 ĵ + yx2 k̂ where the
volume is the unit cube (i.e. with corners at 0, î, ĵ, k̂, î + ĵ, î + k̂, ĵ + k̂, î + ĵ + k̂).
4. Compute both sides of Stokes’ theorem for the vector field v = −y 2 î − xy ĵ + xz 2 k̂ where the surface
spans the triangle in the xy-plane with corners at (0, 0, 0) , (1, 2, 0) , (−1, 2, 0).