0% found this document useful (0 votes)
43 views

6 Vector Operators: 6.1 The Gradient Operator

The document discusses vector operators including the gradient, divergence, and curl operators. It defines each operator using notation and equations. For the gradient operator, it gives the definition of how it produces a vector field from a scalar field. For the divergence operator, it defines how it creates a scalar field from a vector field. And for the curl operator, it introduces compact notation and defines the curl of a vector function. It also provides examples for each operator.

Uploaded by

Roy Vesey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

6 Vector Operators: 6.1 The Gradient Operator

The document discusses vector operators including the gradient, divergence, and curl operators. It defines each operator using notation and equations. For the gradient operator, it gives the definition of how it produces a vector field from a scalar field. For the divergence operator, it defines how it creates a scalar field from a vector field. And for the curl operator, it introduces compact notation and defines the curl of a vector function. It also provides examples for each operator.

Uploaded by

Roy Vesey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

6 Vector Operators

6.1 The Gradient Operator


In the 1B21 course you were introduced to the gradient operator in Cartesian coordinates. For any differentiable
scalar function f (x, y, z), we can define a vector function through
     
∂f ∂f ∂f
grad f = ∇ f = (fx êx + fy êy + fz êz ) = êx + êy + êz . (6.1)
∂x ∂y ∂z
There is a slight difference with the notation of the first year course since ı̂, ̂ and k̂ have been replaced by êx ,
êy and êz to allow a more straightforward generalisation to polar coordinates.
Sometimes we express the result in terms of an operator equation
∂ ∂ ∂
∇ = êx + êy + êz , (6.2)
∂x ∂y ∂z
where it is understood that the operator ∇, pronounced Del, is to act upon the function f .
If the point (x, y, z) is changed by an infinitesimal amount dr = (dx, dy, dz), the function changes by
df = (fx êx + fy êy + fz êz ) · (dx êx + dy êy + dz, êz ) = fx dx + fy dy + fz dz , (6.3)
which is just the expression for the total derivative in terms of the slopes in the three directions.
Upon the surface f (x, y, z) = constant, df = 0, so that
0 = ∇ f · dr . (6.4)
In order that the point stays along the contour, small changes dr are perpendicular to the gradient.

Examples
1. Find the gradient vectors ∇ φ and ∇ ψ of the functions
φ = x2 + y 2 − z 2 + 3 ,
ψ = xy − yz + zx − 10 ,
at the point (3, 2, 4), and the acute angle between these two directions correct to 0.1◦ .
The two gradients are
∇ φ = (2x, 2y, −2z) ,
∇ψ = (y + z, x − z, x − y) .
At the point (3, 2, 4),
∇ φ = (6, 4, −8) , ∇ ψ = (6, −1, 1) .
If θ is the angle between these two vectors, then
(6, 4, −8) · (6, −1, 1) 12
cos θ = √ =√ ·
2 29 × 38 1102
Hence the acute angle θ ≈ 68.80 .

p
2. In the case where f is only a function of r = x2 + y 2 + z 2 , then
p !
df ∂ x2 + y 2 + z 2
 
∂f x df
= = ,
∂x dr ∂x r dr
where we have used a chain rule for differentiating. Thus
1 df df
grad f = (x, y, z) = êr ,
r dr dr
where êr is a unit vector pointing in the direction of r.

68
6.2 The Divergence Operator
In the previous section, we used the ∇ (Del) operator to produce a vector field grad f from a scalar field f . The
divergence operator does the opposite — it creates a scalar field from a vector using the scalar product. For a
differentiable vector function v(x, y, z),
 
∂ ∂ ∂ 
div v = ∇ · v = êx + êy + êz · vx êx + vy êy + vz êz
∂x ∂y ∂z

∂vx ∂vy ∂vz


= + + . (6.5)
∂x ∂y ∂z
Examples

1. In the case where v = r,


∂x ∂y ∂z
div r = ∇ · r = + + =3.
∂x ∂y ∂z
2. If f is a function of the magnitude of r,

∂[x f (r)] ∂[y f (r)] ∂[z f (r)] x2 df y 2 df z 2 df


div [r f (r)] = + + =f+ +f + +f +
∂x ∂y ∂z r dr r dr r dr
df
= 3f (r) + r .
dr
3. Suppose that f (x, y, z) and v(x, y, z) are respectively scalar and vector functions of the coordinates (x, y, z).
Then
∂ ∂ ∂
∇ · (f v) = (f vx ) + (f vy ) + (f vz )
∂x ∂y ∂z
∂f ∂f ∂f ∂vx ∂vy ∂vz
= vx + vy + vz +f +f +f = v · ∇f + f ∇ · v .
∂x ∂y ∂z ∂x ∂y ∂z
The vector part of the operator obeys the rules for vectors, whereas the differentiation part works obeys
the normal rules for differentiation, including that for the derivative of a product.

6.3 The Curl Operator


We saw in the 1B21 course that the differential

dW = vx dx + vy dy + vz dz , (6.6)

is perfect if and only if


∂vx ∂vy ∂vy ∂vz ∂vz ∂vy
− = − = − =0. (6.7)
∂y ∂x ∂z ∂y ∂x ∂z
Let us introduce the more compact notation using the curl of a vector function v = (vx , vy , vz ), defined as

curl v = ∇ × v . (6.8)

Using the expression for the cross product given in the 1B21 course, together with the expression for Del given
by Eq. (6.2), it is seen that this has components
∂vz ∂vy
(∇ × v)x = − ,
∂y ∂z
∂vx ∂vz
(∇ × v)y = − ,
∂z ∂x
∂vy ∂vx
(∇ × v)z = − · (6.9)
∂x ∂y

69
Thus, if curl v = 0, then the integral
Z (x,y,z)
W (x, y, z) = v · dr (6.10)
(x0 ,y0 ,z0 )

defines a unique function W (x, y, z), whose value does not depend upon the path of integration.
Examples
1. We saw, in the discussion of the divergence of a product, that ∇ obeys simultaneously the rules of differ-
entiation and vector algebra. This is also the case for curl. Thus

∇ × (f v) = f (∇ × v) + (∇ f ) × v ,

where the convention is that the differentiation on the right hand side only takes place inside the bracket.
The simplest proof is in terms of components. Taking just the x-component of the LHS,
∂ ∂
(LHS)x =(f vz ) − (f vy )
∂y ∂z
   
∂f ∂f ∂vz ∂vy
= vz − vy + f − = [(∇ f ) × v]x + f [∇ × v]x ,
∂y ∂z ∂y ∂z
and similarly for the other components.

2. If now v = r and f = f (r), what is ∇ × (r f (r))?


∂ ∂ ∂


∂x ∂y ∂z
∇×r = x y z = 0 ,


ê êy ê
x z

since the x partial differentiation acts here on y and z, but not x.


We have already shown that
df r df
∇ f (r) = êr = .
dr r dr
Since  
r df
r× =0,
r dr
this means that
∇ × (r f (r)) = 0 .

6.4 Operators quadratic in ∇


The gradient operator takes a scalar into a vector. Acting on the result with the divergence operator gives a
scalar again.
∂2f ∂2f ∂2f
div grad f = ∇ · (∇ f ) = ∇2 f = 2
+ 2 + 2 · (6.11)
∂x ∂y ∂z
The resulting operator ∇2 is called the Laplacian operator and it has already been used when discussing the
Legendre polynomials. Most of Physics seems to be governed by second order differential equations involving
the Laplacian operator. In the Quantum Mechanics course you have been looking at the Schrödinger equation
describing the motion of a particle of mass m with energy E in a potential V (r);

h̄2 2
− ∇ Ψ + V (r) Ψ = E Ψ . (6.12)
2m
In electrostatics, you learned that the potential Φ(r) due to a charge density ρ(r) satisfies the equation
1
∇2 Φ = − ρ. (6.13)
4πε0

70
There are, however, many more examples.
There are other operators which are quadratic in ∇, e.g.
∂ ∂ ∂

∂x ∂y ∂z
A = curl grad φ = ∇ × (∇ φ) = ∂φ ∂φ ∂φ
· (6.14)

∂x ∂y ∂z
ê êy êz
x

This has an x-component of


∂ ∂ ∂ ∂
Ax = φ− φ=0 (6.15)
∂y ∂z ∂z ∂y
for any reasonable function φ(x, y, z). Thus

∇ × (∇ φ) = 0 . (6.16)

You should all recognise this result in the case of an electrostatic field with E = −∇ φ. The electrostatic
field is irrotational
∇×E =0. (6.17)
By writing things out in component form, one can easily show that
     
∂ ∂Az ∂Ay ∂ ∂Ax ∂Az ∂ ∂Ay ∂Ax
∇ · (∇ × A) = − + − + − =0. (6.18)
∂x ∂y ∂z ∂y ∂z ∂x ∂z ∂x ∂y

This is another useful result in electromagnetism. The magnetic induction field B is solenoidal, i.e. ∇ · B = 0.
Hence, using Eq. (6.18), we can write
B =∇×A. (6.19)
In Electromagnetism, A is called the magnetic vector potential. Though this is not currently used in the second
year E&M course, it will be needed later in the quantum description of the interaction of radiation with matter.
The magnetic potential seems just to be some artificial construct introduced to make B automatically solenoidal
and so it needn’t correspond directly to a measurable physical quantity. Nevertheless, the Aharanov-Bohm effect
in Quantum Mechanics shows that certain features of the magnetic potential have experimental consequences!
Another quadratic relation is
∇ × (∇ × A) = ∇(∇ · A) − ∇2 A . (6.20)
In words this is
curl (curl A) = grad (div A) – del squared A.
This can be proved by writing everything explicitly in terms of components, but there are other methods.
In the 1B21 course, it was shown that for ordinary vectors

d = a × (b × c) = (a · c) b − (a · b) c . (6.21)

The trouble about using this relation is that, when b is also a differential operator, we are not allowed to change
the order at will. Hence write it in the symbolic component form
X
di = (aj bi cj − aj bj ci ) , (6.22)
j

where we have NOT altered the order of the vectors. Now put a = b = ∇ and c = A. Since a and b are now the
same operators, it doesn’t matter in which order we write them. Hence
X
di = (∇i ∇j Aj − ∇j ∇j Ai ) , (6.23)
j

which is just the component representation of Eq. (6.20).

71
6.5 The Divergence Theorem
Two-dimensional integrals were discussed in the 1B21 course. These have to be generalised a bit in order to
introduce the Flux of a Vector Field.
An infinitesimal integration element dS = dx dy is a small bit of the x − y plane of area dx × dy. Planes,
however, have directions given by their normals. In this case, the normal is along the z-axis, which means that
the integration element is really the vector
dS = dx dy êz . (6.24)
This is just one particular example, but in general

dS = dS n̂ , (6.25)

where n̂ is the normal to this small bit of plane.


To understand the concept of vector flux, consider a simple example from fluid flow where a liquid of density
ρ is moving with velocity v through a surface S. The amount of mass that passes through an element dS per
unit time depends upon the component of v perpendicular to dS;

dm = ρ v cos θ dS = ρ v · dS , (6.26)

where θ is the angle between v and n̂.


If we define a vector field by F = ρ v, then the rate of flow (flux) of mass per unit time is

dm = F · dS , (6.27)

and the total flux through the surface is


Z Z
m= F · dS = F · n̂ dS . (6.28)
S S

You will have seen integrals of this type in Faraday’s law of Magnetic Induction.
Consider now the flux of a vector through a closed surface, such as the infinitesimal cube in the picture.

 
 2 
 

3 6 1
dz 5

dy 
 4 
 
(x, y, z) dx
We are going to build up the total flux through the six sides by evaluating each face separately, starting
with face-1. The normal to this surface points in the positive x-direction, so that dS = dy dz êx . Note however
that the value of the x-coordinate is x + dx, since the lower right-hand corner has been taken to be (x, y, z).
Therefore the flux is Z
I1 = F (x + dx, y, z) · êx dy dz = Fx (x + dx, y, z) dy dz . (6.29)

On face-2 the normal to the surface points in the negative x-direction, so that dS = −dy dz êx and I2 =
Fx (x, y, z) dy dz. The sum of the flux through these two faces is

I1 + I2 = (Fx (x + dx, y, z) − Fx (x, y, z)) dy dz . (6.30)

72
Since dx is very small, we can expand Fx in a Taylor series in dx, keeping just the first two terms:

Fx (x + dx, y, z) ≈ Fx (x, y, z) + dx Fx (x, y, z) . (6.31)
∂x

Fx (x, y, z) dx dy dz .
I1 + I2 = (6.32)
∂x
Adding the contributions from the other two pairs of sides,
Z
F · dS = (∇ · F ) dx dy dz = (∇ · F ) dV . (6.33)
S

This is the infinitesimal form of the divergence theorem. The integral over a closed surface of the flux of a
vector field is equal to the volume integral of the divergence of the vector.
Z Z
(∇ · F ) dV = F · dS . (6.34)
V S

If we put two such cubes together, the flux terms cancel on the common surface because the normals are in
opposite directions. The volume terms just add. Hence the integral form of Eq. (6.34) is valid for the two cubes
together. We can build up any closed shape if we take enough infinitesimal cubes. Try building a model of Big
Ben out of Lego bricks! The divergence theorem is therefore true generally.
The divergence theorem is much used in electrostatics, where the divergence of the displacement vector D
is proportional to the charge density;
1
∇ · D = ρ(r) . (6.35)
ε0
Integrating this over a volume V and using the divergence theorem, we have
Z Z Z
Q 1
= ρ dV = (∇ · D) dV = D · dS . (6.36)
ε0 ε0 V V S

The electric flux through a closed surface S is equal to the amount of charge contained therein. This is known
as Gauss’s theorem.
As a simple application of the law, consider a spherically symmetric charge distribution. This gives rise to a
spherically symmetric electric field D = Dr êr . If we take the surface S to be that of a sphere of radius r, then
the normal to the surface lies along the radius vector. Hence
Z
Q
D · dS = 4πr2 Dr = · (6.37)
S ε 0

This gives the standard result that Dr = Q/4πε0 r2 .

Example

Find the divergence ∇ · A of the field

A = xyêx + yêy + z 3 êz .

For a right cylinder defined by x2 + y 2 ≤ 1 and −1 ≤ z ≤ +1, derive the volume integral of the divergence of A.
Verify the divergence theorem in this case.

∂(xy) ∂(y) ∂(z 3 )


∇·A= + + = y + 1 + 3z 2 .
∂x ∂y ∂z
Integrating over the cylinder,
Z Z 1 Z 2π Z +1 Z 1 Z 2π +1
dz (y + 1 + 3z 2 ) = dθ (y + 1)z + z 3 −1 .

I= ∇ · A dV = r dr dθ r dr
V 0 0 −1 0 0

73
To proceed further, change to polar coordinates y = r sin θ. Since the integral of sin θ from 0 to 2π then
vanishes, we are left with Z 1
I= r dr(8π) = 4π .
0
To verify the divergence theorem, split the surface integral into ones over the caps of the cylinder and one
over the curved part.
On the top cap, n̂ = êz and A · n̂ = z 3 = 1.
Z 1 Z 2π
I1 = r dr dθ = π .
0 0

On the bottom cap, the outward normal changes sign, but so does z 3 , which means that this surface integral
is also I2 = π.
On the curved surface n̂ = r̂ = cos θ êx + sin θ êy , so that

A · n̂ = xy cos θ + y sin θ = cos2 θ sin θ + sin2 θ .

Z 2π Z +1 Z 2π
2
2
dθ cos2 θ sin θ + sin2 θ .
 
I3 = dθ dz cos θ sin θ + sin θ = 2
0 −1 0

The first integral on the RHS vanishes because


Z 2π Z θ=2π θ=2π
2
dθ cos θ sin θ = − cos2 θ d(cos θ) = cos3 θ θ=0 = 0 .
0 θ=0

On the other hand,


Z 2π Z 2π
2
dθ sin θ = 1
2 dθ (1 − cos 2θ) = 12 [θ − sin 2θ/2]2π
0 =π.
0 0

Hence I3 = 2π and I1 + I2 + I3 = 4π, which verifies the divergence theorem in this case.

6.6 Stokes’ Theorem


Stokes’ theorem states that the surface integral of the curl of a vector is equal to the line integral of the vector
along the contour surrounding this area
Z Z
(∇ × F ) · dS = F · d` . (6.38)
S L

We have to be slightly careful here. The sign of the normal to the surface is given by the corkscrew (right-
hand) rule when going round the contour L.
The method of proof is very similar to that of the divergence theorem. We start by taking an infinitesimal
rectangle in the x − y plane, as in the picture.

74

2
4

1 dy
3

5
4
(x, y) 
dx

Start at the bottom-right corner and go round anti-clockwise, 1, 2, 3, and 4. Since, along path-1, d` is
parallel to êy ,
Z y+dy
I1 = Fy (x + dx, y) dy ≈ Fy (x + dx, y) dy (6.39)
y

for small dy. On the other hand, along path-3, d` points in the negative y-direction, so that I3 ≈ −F (x, y) dy.
The sum of these two contributions is

I1 + I3 = (Fy (x + dx, y) − Fy (x, y)) dy ≈ Fy (x, y) dx dy . (6.40)
∂x
Adding the contributions from the other two paths, we see that
Z  
∂ ∂
F · d` = Fy (x, y) − Fx (x, y) dx dy = (∇ × F ) · dS , (6.41)
L ∂x ∂y
since dS lies in the positive z-direction (using the right-hand rule convention).
This proves Stokes’ theorem for the very small rectangle. Any surface can be constructed as a sum of in-
finitesimal plane rectangles so that we can sew them together and prove the theorem for an area of arbitrary
shape in three dimensions. Note that along the common line between two such rectangles, the line integrals
cancel, so that only the path around the periphery of the combined area is left.

Example

Verify Stokes’ theorem for the vector field A = 2y êx +3x êy −z 2 êz and a hemispherical surface x2 +y 2 +z 2 = 9
for which z ≥ 0.
Start by working out curl A.


x êy êz
∂ ∂ ∂
∇ × A = ∂x ∂y ∂z = [0 − 0]êx − [0 − 0]êy + [3 − 2]êz = êz .
2y 3x −z 2

Since the surface is that of a hemisphere centred at the origin, the normal to the surface is
xêx + yêy + zêz
n̂ = r̂ = ,
r
and
z
(∇ × A) · n̂ = = cos θ .
r
75
It is easiest to do the integration over the surface in polar coordinates, where dS = 9 sin θ dθ dφ;
Z Z π Z 2π Z π

(∇ × F ) · dS = 9 sin θ cos θ dθ dφ = 9π sin 2θ dθ = [cos 2θ]π0 = 9π .
S 0 0 0 2

On the other hand, along the circle x2 + y 2 = 9, we use plane polar coordinates x = 3 cos φ, y = 3 sin φ,
d` = (−3 sin φ êx + 3 cos φ êy )dφ.
Z Z 2π
A · d` = (6 sin φ êx + 9 cos φ êy ) · (−3 sin φ êx + 3 cos φ êy ) dφ
L 0
Z 2π  
27
= (27 cos2 φ − 18 sin2 φ) dφ = 2π − 9 = 9π .
0 2
The last integral can be done with the standard trigonometric identities, but I used the result that, averaged
over one period, < cos2 φ >=< sin2 φ >= 21 .

6.7 Coordinate-Independent Definitions


The forms of div, grad and curl have been defined in Cartesian coordinates, but we must now evaluate them in
other coordinate systems. The three formulae needed are

df = (∇ f ) · dr , (6.42)

for any infinitesimal change in the position vector r.


 Z 
1
∇ · F = lim F · dS (6.43)
V →0 V S

for a very small volume.


 Z 
1
(∇ × F ) · Ŝ = lim F · d` (6.44)
S→0 S L

for the component of curl in the Ŝ direction.

6.8 Spherical Polar Coordinates


It would be ridiculous to work out the potential due to a charged sphere in Cartesian coordinates rather
than spherical polars. Similarly, for a dielectric cylinder, use cylindrical polar coordinates. Three-dimensional
problems are quite difficult enough; the symmetry of the problem must be used to simplify the problems as
much as possible. In mathematics books like Arfken and Weber, you will find that there are 14 useful coordinate
systems! However, in all my research areas, I have only ever used four and in this course I am only going to
discuss three, viz Cartesian, Spherical Polar, and Cylindrical Polar coordinates.
The Cartesian components of a point ~r in spherical polar coordinates (r, θ, φ) are given by

x = r sin θ cos φ ,
y= r sin θ sin φ ,
z= r cos θ . (6.45)

The basis vectors in this system can be found geometrically if you are good at drawing in three dimensions.
They are

êr = sin θ cos φ êx + sin θ sin φ êy + cos θ êz ,


êθ = cos θ cos φ êx + cos θ sin φ êy − sin θ êz ,
êφ = − sin φ êx + cos φ êy , (6.46)

76
which satisfy
êr × êθ = êφ . (6.47)
This shows that the basis vectors in this system form a right-handed perpendicular system.

z
êφ
êr
 
··
··@ R
@
·· êθ
r ··
··
θ ··
··
··· ·· y
φ ··· ··
··· ·
· · · ···
·
· · · · · · · · · · · · · · · · ·· ·

x
Differentiating Eq. (6.45) with respect to r, θ, and φ, we see that

dr = dr êr + r dθ êθ + r sin θ dφ êφ . (6.48)

This can also be seen geometrically with a nice picture.


The volume element is the product of these three terms (much simpler than working out the Jacobian)

dV = r2 sin θ dr dθ dφ , (6.49)

and the elements of area pointing in the directions of the basis vectors

dSr = r2 sin θ dθ dφ ,
dSθ = r sin θ dr dφ ,
dSφ = r dr dθ . (6.50)

Boas, and other books, evaluate everything for a general coordinate system in terms of the so-called scale-
factors of the metric hi , defined by
X 3
dr = hi (dx)i êi . (6.51)
i=1

Since we are here only going to look at two coordinate systems, I prefer to do things explicitly and not use the
hi .
We first work out the expression for the gradient in spherical polar coordinates:

∇ f = (∇ f )r êr + (∇ f )θ êθ + (∇ f )φ êφ . (6.52)

From Eq. (6.42),

df = (∇ f ) · dr = ((∇ f )r êr + (∇ f )θ êθ + (∇ f )φ êφ ) · (dr êr + r dθ êθ + r sin θ dφ êφ )

= (∇ f )r dr + (∇ f )θ r dθ + (∇ f )φ r sin θ dφ . (6.53)
But, from the chain rule for partial differentiation,
∂f ∂f ∂f
df = dr + dθ + dφ . (6.54)
∂r ∂θ ∂φ

77
Comparing the Eqs. (6.53) and (6.54), we can read off the spherical polar components of the gradient;

∂f
(∇ f )r = ,
∂r
1 ∂f
(∇ f )θ = ,
r ∂θ
1 ∂f
(∇ f )φ = · (6.55)
r sin θ ∂φ

To find the expression for the divergence, evaluate the flux of the vector F (r, θ φ) through the sides of the
little hypercube (dr , r dθ , r sin θ dφ). The net flux through the two sides with constant r are

I1 + I2 = Fr (r + dr, θ, φ) (r + dr)2 sin θ dθ dφ − Fr (r, θ, φ) r2 sin θ dθ dφ


r2 Fr (r, θ, φ) dr sin θ dθ dφ .

≈ (6.56)
∂r
Note that, not only does Fr change when r increases, but so does the area factor r2 .
Doing the same thing for the change in the θ and φ coordinates,

I3 + I4 = Fθ (r, θ + dθ, φ) r sin(θ + dθ) dr dφ − Fθ (r, θ, φ) r sin θ dr dφ


≈ (sin θ Fθ (r, θ, φ)) r dr dθ dφ . (6.57)
∂θ


I5 + I6 = Fφ (r, θ, φ + dφ) r dr dθ − Fφ (r, θ, φ) r dr dθ ≈ (Fφ (r, θ, φ)) r dr dθ dφ . (6.58)
∂φ
Thus, from Eq. (6.43),
1
∇·F = ×
r2 sin θ dr dθ dφ
 
∂ 2  ∂ ∂
r Fr (r, θ, φ) dr sin θ dθ dφ + (sin θ Fθ (r, θ, φ))r dr dθ dφ + (Fφ (r, θ, φ))r dr dθ dφ
∂r ∂θ ∂φ
1 ∂ 1 ∂ 1 ∂
r2 Fr (r, θ, φ) +

= (sin θ Fθ (r, θ, φ)) + (Fφ (r, θ, φ)) . (6.59)
r2 ∂r r sin θ ∂θ r sin θ ∂φ
Note that, even if all of the components of F are constant, the divergence does not vanish because of the
changing geometry in spherical polar coordinates.
Since we now have expressions for both the gradient and divergence in spherical polar coordinates, we can
also work out that for the Laplacian by substituting Eq. (6.55) into Eq. (6.59);
     
2 1 ∂ 2 ∂V 1 ∂ ∂V 1 ∂ ∂V
∇ V = 2 r + 2 sin θ + 2 2 . (6.60)
r ∂r ∂r r sin θ ∂θ ∂θ r sin θ ∂φ ∂φ

This agrees with the formula of Eq. (2.29) that we obtained by manipulating the partial differentiatals.
Using exactly the same techniques on Stokes’ theorem allows us to obtain the expression for the curl. To get
the r-component, look at the line integral around the elementary contour of the figure.

r sin(θ) dφ

r dθ r dθ

r sin(θ + dθ) dφ

78
On curve-1, the polar angle is fixed at θ + dθ and the length is r sin(θ + dθ) dφ, whereas on curve-3 the angle
and length are θ and r sin θ respectively. On curves-4 and -2, the azimuthal angles are fixed as φ and φ + dφ
respectively, whereas both lengths are equal to r dθ. The line integral of F is
Z
F · d` =
L

Fφ (r, θ + dθ, φ) r sin(θ + dθ) dφ − Fθ (r, θ, φ + dφ) r dθ − Fφ (r, θ, φ) r sin θ dφ + Fθ (r, θ, φ) r dθ


 
∂ ∂
≈ {sin θ Fφ (r, θ, φ)} − Fφ (r, θ, φ) r dθ dφ . (6.61)
∂θ ∂φ
From Eq. (6.44),  Z 
1
(∇ × F ) · Ŝ = lim F · d` ,
S→0 S L

so that  
1 ∂ ∂
(∇ × F )r = {sin θ Fφ (r, θ, φ)} − Fθ (r, θ, φ) . (6.62)
r sin θ ∂θ ∂φ
The other two components are evaluated in much the same way. The results are
 
1 ∂ ∂
(∇ × F )θ = Fr (r, θ, φ) − sin θ {r Fφ (r, θ, φ)} , (6.63)
r sin θ ∂φ ∂r
 
1 ∂ ∂
(∇ × F )φ = {r Fθ (r, θ, φ)} − Fr (r, θ, φ) · (6.64)
r ∂r ∂θ
Example
Evaluating the divergence of F = r êθ in spherical polar coordinates gives
1 ∂
∇·F = (r sin θ) = cot θ .
r sin θ ∂θ
In Cartesian coordinates,
F = r cos θ cos φ êx + r cos θ sin φ êy − r sin θ êz .
But p
z x2 + y 2
cos θ = , sin θ = ,
r r
x y
cos φ = p , sin φ = p ·
2
x +y 2 x + y2
2

Thus
zx zy p
F =p êx + p êy − x2 + y 2 êz .
x2 + y 2 x2 + y 2
z zx2 z zy 2
∇·F = − + − −0
(x2 + y 2 )1/2 (x2 + y 2 )3/2 (x2 + y 2 )1/2 (x2 + y 2 )3/2
z(x2 + y 2 ) z
= 2 2 3/2
=p = cot θ .
(x + y ) x + y2
2

When working out the curl of F , only the φ component survives and we are left with
∇ × F = 2 êφ .
In Cartesian coordinates,

êx êy êz
∂ ∂ ∂

∇×F =

∂x ∂y ∂z
√ zy
√ zx p
2 2
− x + y
x2 +y2 x2 +y 2
y x
= −2 p êx + 2 p êy = −2 sin φ êx + 2 cos φ êy = 2 êφ .
x2 + y 2 x2 + y 2

79
6.9 Cylindrical polar coordinates
The other coordinate system introduced in 1B21 is cylindrical polar coordinates, defined in terms of Cartesians
by

x = r cos θ ,
y= r sin θ ,
z= z. (6.65)

The basis vectors can be obtained geometrically; the z coordinate works just like a standard Cartesian
coordinate and the polar part can be plot in a plane. êr , êθ , and êz are defined as the directions in which the
point P moves when the coordinates r and θ and z are increased by a very small amount.

êr = cos θ êx + sin θ êy ,


êθ = − sin θ êx + cos θ êy ,
êz = êz (6.66)

êy
6 êθ êr
I
@ 
@
 P
r

θ êx
-

The basis vectors form an orthogonal system with

êr × êθ = êz . (6.67)

Note that r is used for the radius vector in the plane and cannot be used simultaneously for the position
vector. For this, we shall use a capital;
R = r êr + z êz , (6.68)
When the coordinates change by infinitesimal amounts, the position vector changes

dR = dr êr + r dθ êθ + dz êz . (6.69)

The volume element is the product of these three terms

dV = r dr dθ dz , (6.70)

and the elements of area pointing in the directions of the basis vectors

dSr = r dθ dz ,
dSθ = dr dz ,
dSz = r dr dθ . (6.71)

The gradient in cylindrical polar coordinates is obtained from

df = ((∇ f )r êr + (∇ f )θ êθ + (∇ f )z êz ) · (dr êr + r dθ êθ + dz z) = (∇ f )r dr + (∇ f )θ r dθ + (∇ f )z dz . (6.72)

80
We can now read off the cylindrical polar components of the gradient using the chain rule for partial differ-
entiation:
∂f
(∇ f )r = ,
∂r
1 ∂f
(∇ f )θ = ,
r ∂θ
∂f
(∇ f )z = · (6.73)
∂z
To work out the divergence, we must first evaluate the flux through the hypercube. Proceeding as for the
spherical polar coordinates, this is

[Fr (r + dr, θ, z)(r + dr) − Fr (r, θ, z)r] dθ dz


+ [Fθ (r, θ + dθ, z) − Fθ (r, θ, z)] dr dz
+ [Fz (r, θ, z + dz) − Fz (r, θ, z)] r dr dθ . (6.74)

Hence Z  
∂ ∂ ∂
F · dS ≈ (r Fr (r, θ, z)) + Fθ (r, θ, z) + r Fz (r, θ, z) dr dθ dz . (6.75)
S ∂r ∂θ ∂z
Thus, by Eq. (6.44),
 
1 ∂ ∂ ∂
∇·F = (r Fr (r, θ, z)) + Fθ (r, θ, z) + r Fz (r, θ, z) . (6.76)
r ∂r ∂θ ∂z

It is then straightforward to use Eqs. (6.73) and (6.76) together to get an expression for the Laplacian
operator in cylindrical polar coordinates:

1 ∂2V ∂2V
 
2 1 ∂ ∂V
∇ V = r + 2 + · (6.77)
r ∂r ∂r r ∂θ2 ∂z 2

To find the z-component of curl, look at the line integral around the elementary contour of the figure. On
curve-1, the radial variable is fixed at r + dr and the length is (r + dr) dθ, whereas on curve-3 the radius and
length are r and r dθ respectively. On curves-4 and -2, the angles are fixed as θ and θ + dθ respectively, whereas
both lengths are equal to dr. The line integral of F is
Z
F · d` = Fθ (r + dr, θ, z) (r + dr) dθ − Fr (r, θ + dθ, z) dr − Fθ (r, θ, z) r dθ + Fr (r, θ, z) dr
L
 
∂ ∂
≈ {r Fθ (r, θ, φ)} − Fr (r, θ, φ) dr dθ . (6.78)
∂r ∂θ

r sin(θ) dφ

r dθ r dθ

r sin(θ + dθ) dφ
Hence  
1 ∂ ∂
(∇ × F )z = {r Fθ (r, θ, φ)} − Fr (r, θ, φ) . (6.79)
r ∂r ∂θ

81
The other two components are a little easier to work out:
1 ∂Fz ∂Fθ
(∇ × F )r = − · (6.80)
r ∂θ ∂z

∂Fr ∂Fz
(∇ × F )θ = − · (6.81)
∂z ∂r

82

You might also like