HELM Workbook 28 Differential Vector Calculus
HELM Workbook 28 Differential Vector Calculus
HELM Workbook 28 Differential Vector Calculus
Differential
Vector Calculus
28.1 Background to Vector Calculus 2
Learning outcomes
In this Workbook you will learn about scalar and vector fields and how physical quantities
can be represented by such fields. You will be able to 'differentiate' such fields i.e. to find
how rapidly the scalar or vector field varies with position. Depending on whether the
original function and the intended derivative are scalars or vectors, there are three such
derivatives known as the 'gradient', the 'divergence' and the 'curl'. You will be able to
evaluate these derivatives for given fields. In addition, you will be able to work out the
derivatives while using polar coordinate systems.
Background to Vector
Calculus 28.1
Introduction
Vector Calculus is the study of the various derivatives and integrals of a scalar or vector function of
the variables defining position (x,y,z) and possibly also time (t). This Section considers functions of
several variables and introduces scalar and vector fields.
' $
• be familiar with the concept of a function of
two variables
Prerequisites • be familiar with the concept of partial
Before starting this Section you should . . . differentiation
2 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 1
A particle is at the point A(3,0). At time t = 0 it starts moving at a constant
speed of 2 m s−1 in a direction parallel to the positive y-axis. Find expressions for
the position vector, r, of the particle at time t, together with its velocity v = dr
dt
d2 r
and acceleration a = dt2 .
HELM (2008): 3
Section 28.1: Background to Vector Calculus
Solution
In the first second of its motion the particle moves 2 metres to B and it moves a further 2 metres in
each subsequent second, to C, D, . . .. Because it moves parallel to the y-axis its velocity is v = 2j.
As its velocity is constant its acceleration is a = 0.
The position of the particle at t = 0, 1, 2, 3 is given in the table.
Time t 0 1 2 3
Position r 3i 3i + 2j 3i + 4j 3i + 6j
Example 2
The position vector of a particle at time t is given by r = 2ti + t2 j . Find its
equation in Cartesian form and sketch the path followed by the particle.
Time t 0 1 2 3 4
x 0 2 4 6 8
y 0 1 4 9 16
r 0 2i + j 4i + 4j 6i + 9j 8i + 16j
Solution
To find the Cartesian equation of the curve
2 we eliminate t between x = 2t and y = t2 . Re-arrange
1 2 1 1 2
x = 2t as t = 2 x . Then y = t = 2 x = 4 x , which is a parabola. This is the path followed by
the particle. See Figure 1.
16
x
0 2 4 6 8
4 HELM (2008):
Workbook 28: Differential Vector Calculus
®
d du dv
Rule 1. (u + v) = +
dt dt dt
d du
Rule 2. (cu) = c
dt dt
d dv du
Rule 3. (u · v) = u · + ·v
dt dt dt
d dv du
Rule 4. (u × v) = u × + ×v
dt dt dt
Also, if a particle moves so that its position vector at time t is r(t) = x(t)i + y(t)j + z(t)k then the
velocity of the particle is
dr dx(t) dy(t) dz(t)
v= = ṙ = i+ j+ k = ẋi + ẏj + żk
dt dt dt dt
and its acceleration is
dv d2 r d2 x(t) d2 y(t) d2 z(t)
a= = 2 = r̈ = i + j + k = ẍi + ÿj + z̈k
dt dt dt2 dt2 dt2
Example 3
Find the derivative (with respect to t) of the position vector r = t2 i + 3tj + 4k.
Also find a unit vector tangential to the curve traced out by the position vector at
the point where t = 2.
Solution
Differentiating r with respect to t,
dr
ṙ = = 2ti + 3j
dt
so
ṙ(2) = 4i + 3j
A unit vector in this direction, which is tangential to the curve, is
ṙ(2) 4i + 3j 4 3
=√ = i+ j
|ṙ(2)| 42 + 32 5 5
HELM (2008): 5
Section 28.1: Background to Vector Calculus
Example 4
For the position vectors (i) r = 3i + 2tj and (ii) r = 2ti + t2 j use the general
expressions for velocity and acceleration to confirm the values of v and a found
earlier in Examples 1 and 2.
Solution
(i) r = 3i + 2tj. Then
dr d d(3) d(2t)
v= = ṙ = (3i + 2tj) = i+ j = 0i + 2j = 2j
dt dt dt dt
and
dv d d(2)
a= = r̈ = (2j) = j = 0j = 0
dt dt dt
which agree with those found earlier.
Example 5
A particle of mass m = 1 kg has position vector r. The torque (moment of force)
H relative to the origin acting on the particle as a result of a force F is defined as
H = r × F , where, by Newton’s second law, F = mr̈. The angular momentum
(moment of momentum) L of the particle is defined as L = r × mṙ . Find L and
H for the particle where (i) r = 3i + 2tj and (ii) r = 2ti + t2 j, and show that in
each case the torque law H = L̇ is satisfied.
Solution
(i) Here r = 3i + 2tj so ṙ = 2j and a = 0. Then
d
L = r × mṙ = (3i + 2tj) × 2j = 6k so L̇ = (6)k = 0
dt
and
H = r × F = r × mr̈ = (3i + 2tj) × 0 = 0 giving H = L̇ as required.
6 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Solution (contd.)
(ii) Here r = 2ti + t2 j so ṙ = 2i + 2tj and a = 2j. Then
Task
A particle moves so that its position vector is r = 12ti + (19t − 5t2 )j.
dr d2 r
(a) Find and 2 .
dt dt
dr
(b) When is the j-component of equal to zero?
dt
(c) Find a unit vector normal to its trajectory when t = 1.
Your solution
Answer
dr d2 r
(a) = 12i + (19 − 10t)j, = −10j.
dt dt2
dr
(b) The j-component of , (also written ṙ) is zero when t = 1.9.
dt
(c) When t = 1 ṙ = 12i + 9j. A vector perpendicular to this is ṙ = 9i − 12j. Its magnitude
√ 9
is 81 + 144 = 15. So a unit vector in this direction is 15 i − 12
15
j = 35 i − 54 j. The unit
3 4
vector − i + j is also a solution.
5 5
HELM (2008): 7
Section 28.1: Background to Vector Calculus
Task
A particle moving at a constant speed around a circle moves so that
r = cos(πt)i + sin(πt)j
dr d2 r
(a) Find and 2 .
dt dt
dr d2 r
(b) Find r · and r × 2 .
dt dt
Your solution
Answer
dr d2 r
(a) = −π sin πti + π cos πtj, 2
= −π 2 cos πti − π 2 sin πtj = −π 2 r,
dt dt
dr dr
(b) r. = −π cos πt sin πt + π cos πt sin πt = 0 ⇒ is perpendicular to r
dt dt
2 i j k
d2 r
d r
r × 2 = cos πt sin πt 0 = 0 ⇒ is parallel to r.
dt −π 2 cos πt −π 2 sin πt 0 dt2
8 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Task
If r = sin(2t)i + cos(2t)j + t2 k and (1 + t2 ) |r̈|2 = c |ṙ|2 , find the value of c.
Your solution
Answer
ṙ = 2 cos(2t)i − 2 sin(2t)j + 2tk, r̈ = −4 sin(2t)i − 4 cos(2t)j + 2k
|r̈|2 = 16 sin2 (2t) + 16 cos2 (2t) + 4 = 20 |ṙ|2 = 4 cos2 (2t) + 4 sin2 (2t) + 4t2 = 4(1 + t2 )
∴ 20(1 + t2 ) = 4c(1 + t2 ) so that c = 5.
3. Scalar fields
A scalar field is a distribution of scalar values over a region of space (which may be 1D, 2D or 3D)
so that a scalar value is associated with each point of space. Examples of scalar fields follow.
1.
100 81 50 10 0
74 30
100 90 62 18 0
83 41 7
100 95 70 26 0
67 37
100 86 50 10 0
2.
10 7
9 15 29 20 12 3
5 20 40 61 52 35 14
8 36 42 23 5
55
19 14 4
HELM (2008): 9
Section 28.1: Background to Vector Calculus
3. The mean annual rainfall at different locations in Britain.
• Give a rule to show how the value of the scalar is related to every point in the domain.
0 1 2 3 4
0 1.0 2.0 3.0 4.0 x
60 50 40 30 20 10
10 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 6
Describe contour curves for the following scalar fields and sketch typical contours
for (a) and (b).
(a) φ(x, y) = x + y
(b) φ(x, y) = 9 − x2 − y 2
1
(c) φ(x, y) = 2
x + y2 + z2
Solution
0 1 2 3 4
x
(a) (b)
HELM (2008): 11
Section 28.1: Background to Vector Calculus
Task
Describe the contours for the following scalar fields
(a) φ = y − x (b) φ = x2 + y 2 (c) φ = y − x2
Your solution
Answer
(a) Straight lines of gradient 1, (b) Circles; centred at origin, (c) Parabolas y = x2 + c.
Key Point 1
A scalar field F (in three-dimensional space) returns a real value for the function F for every point
(x, y, z) in the domain of the field.
4. Vector fields
A vector field is a distribution of vectors over a region of space such that a vector is associated with
each point of the region. Examples are:
1. The velocity of water flowing in a river (Figure 7).
2. The gravitational pull of the Earth (Figure 8). At every point there is a gravitational pull
towards the centre of the Earth.
Note: the length of the vector is used to indicate its magnitude (i.e. greater near the centre
of the Earth.)
12 HELM (2008):
Workbook 28: Differential Vector Calculus
®
3. The flow of heat in a metal plate insulated on its sides (Figure 9). Heat flows from the hot
portion on the left to the cool portion on the right.
100◦ 0◦
• Describe the region of space where the vectors are found (the domain)
• Give a rule for associating a vector with each point of the domain.
Note that in the case of the heat flowing in a plate, the temperature can be described by a scalar
field while the flow of heat is described by a vector field.
Consider the flow of water in different situations.
(a) In a pond where the water is motionless everywhere, the velocity at all points is zero.
That is, v(x, y, z) = 0 , or for brevity, v = 0.
(b) Consider a straight river with steady flow downstream (see Figure 10). The surface
velocity v can be seen by watching the motion of a light floating object, such as a leaf.
The leaf will float downstream parallel to the bank so v will be a multiple of j. However,
the speed is usually smallest near the bank and fastest in the middle of the river. In this
simple model, the velocity v is assumed to be independent of the depth z. That is, v
varies, in the i, or x, direction so that v will be of the form v = f (x)j.
y
v
bank bank
j
i x
(c) In a more realistic model v would vary as we move downstream and would be different at
different depths due to, for example, rocks or bends. The velocity at any point could also
depend on when the observation was made (for example the speed would be higher shortly
after heavy rain) and so in general the velocity would be a function of the four variables
x, y, z and t, and be of the form v = f1 (x, y, z, t)i + f2 (x, y, z, t)j + f3 (x, y, z, t)k, for
suitable functions f1 , f2 and f3 .
HELM (2008): 13
Section 28.1: Background to Vector Calculus
Example 7
Sketch sample vectors at the points (3, 2), (−2, 2), (−3, −1), (1, −4) for the
two-dimensional vector field defined by v = xi + 2j.
Solution
At (3, 2), v = 3i + 2j
At (−2, 2), v = −2i + 2j
At (−3, −1), v = −3i + 2j
At (1, −4), v = i + 2j
Plotting these vectors v gives the arrows in Figure 11.
−6 −4 −2 2 4 6
−2
−4
It is possible to construct curves which start from and are in the same direction as any one vector
and are guided by the direction of successive vectors. Starting at different points gives a set of
non-intersecting lines called, depending on the context, vector field lines, lines of flow, streamlines
or lines of force.
For example, consider the vector field F = −yi + xj; F can be calculated at various points in the
xy plane. Some of the individual vectors can be seen in Figure 12(a) while Figure 12(b) shows them
converted seamlessly to field lines. For this function F the field lines are circles centered at the origin.
y y
2 2
1 1
−2 −1 −2 −1
1 2 x 1 2 x
−1 −1
−2 −2
(a) (b)
Figure 12: (a) Vectors at various points (b) Converted to field lines
14 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 8
The Earth is affected by the gravitational force field of the Sun. This vector
field is such that each vector F is directed towards the Sun and has magnitude
1 p
proportional to 2 , where r = x2 + y 2 + z 2 is the distance from the Sun to the
r
Earth. Derive an equation for F and sketch some field lines.
Solution
The field has magnitude proportional to r−2 = (x2 + y 2 + z 2 )−1 and points directly towards the
Sun (the origin) i.e. parallel to a unit vector pointing towards the origin. At the point given by
−xi − yj − zk −xi − yj − zk
r = xi + yj + zk, a unit vector pointing towards the origin is =p .
−xi − yj − zk x2 + y 2 + z 2
Multiplying the unit vector by the required magnitude r−2 = (x2 + y 2 + z 2 )−1 (and by a constant
−xi − yj − zk
of proportionality c) gives F = c 2 . Figure 13 shows some field lines for F .
(x + y 2 + z 2 )3/2
Earth
Sun
Key Point 2
A vector field F (x, y, z) (in three-dimensional coordinates) returns a vector F 0 = F (x0 , y0 , z0 ) for
every point (x0 , y0 , z0 ) in the domain of the field.
HELM (2008): 15
Section 28.1: Background to Vector Calculus
Exercises
1. Which of the following are scalar fields and which are vector fields?
(a) F = x2 − yz
2x − z
(b) G = p
x2 + y 2 + z 2 + 1
(c) f = xi + yj + zk
y−1 z−1 x−1
(d) H = 2
x+ 2 y+ 2 z
z +1 x +1 y +1
(e) g = (y + z)i
(a) f = i + 2j
(b) g = i + y 2 j
Answers
1. (a), (b) and (d) are scalar fields as the quantities defined are scalars.
(c) and (e) are vector fields as the quantities defined are vectors.
2.
16 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Differential Vector
Calculus 28.2
Introduction
A vector field or a scalar field can be differentiated with respect to position in three ways to produce
another vector field or scalar field. This Section studies the three derivatives, that is: (i) the gradient
of a scalar field (ii) the divergence of a vector field and (iii) the curl of a vector field.
' $
• be familiar with the concept of a function of
two variables
Prerequisites • be familiar with the concept of partial
Before starting this Section you should . . . differentiation
HELM (2008): 17
Section 28.2: Differential Vector Calculus
1. The gradient of a scalar field
Consider the height φ above sea level at various points on a hill. Some contours for such a hill are
shown in Figure 14.
φ = 10
20
30 40 50 60
C B
A D
(a) (b)
Figure 15: Temperature contours and heat flow lines for a metal plate
18 HELM (2008):
Workbook 28: Differential Vector Calculus
®
The direction of the heat flow is along the flow lines which are orthogonal to the contours (see the
dashed lines in Figure 15(b)); this heat flow is proportional to the vector field grad φ.
Definition
∂φ ∂φ ∂φ
The gradient of the scalar field φ = f (x, y, z) is grad φ = ∇φ = i+ j+ k
∂x ∂y ∂z
Often, instead of grad φ, the notation ∇φ is used. (∇ is a vector differential operator called ‘del’ or
∂ ∂ ∂
‘nabla’ defined by i+ j + k. As a vector differential operator, it retains the characteristics
∂x ∂y ∂z
of a vector while also carrying out differentiation.)
The vector grad φ gives the magnitude and direction of the greatest rate of change of φ at any
point, and is always orthogonal to the contours of φ. For example, in Figure 14, grad φ points in
the direction of AB while the contour line is parallel to AD i.e. perpendicular to AB. Similarly, in
Figure 15(b), the various intersections of the contours with the lines representing grad φ occur at
right-angles.
For the hill considered earlier the direction and magnitude of grad φ are shown at various points
in Figure 16. Note that the magnitude of grad φ is greatest (as indicated by the length of the arrow)
when the hill is at its steepest (as indicated by the closeness of the contours).
Figure 16: Grad φ and the steepest ascent direction for a hill
Key Point 3
φ is a scalar field but grad φ is a vector field.
HELM (2008): 19
Section 28.2: Differential Vector Calculus
Example 9
Find grad φ for
(a) φ = x2 − 3y (b) φ = xy 2 z 3
Solution
∂ 2 ∂ ∂
(a) grad φ = (x − 3y)i + (x2 − 3y)j + (x2 − 3y)k = 2xi + (−3)j + 0k = 2xi − 3j
∂x ∂y ∂z
∂ ∂ ∂
(b) grad φ = (xy 2 z 3 )i + (xy 2 z 3 )j + (xy 2 z 3 )k = y 2 z 3 i + 2xyz 3 j + 3xy 2 z 2 k
∂x ∂y ∂z
Example 10
For f = x2 + y 2 find grad f at the point A(1, 2). Show that the direction of
grad f is orthogonal to the contour at this point.
Solution
∂f ∂f ∂f
grad f = i+ j+ k = 2xi + 2yj + 0k = 2xi + 2yj
∂x ∂y ∂z
and at A(1, 2) this equals 2 × 1i + 2 × 2j = 2i + 4j.
Since f = x2 + y 2 then the contours are defined by x2 + y 2 = constant, so the contours are circles
centred at the origin. The vector grad f at A(1, 2) points directly away from the origin and hence
1
grad f and the contour are orthogonal; see Figure 17. Note that r(A) = i + 2j = grad f .
2
y grad f
2 A
O 1 x
The change in a function φ in a given direction (specified as a unit vector a) is determined from the
scalar product (grad φ) · a. This scalar quantity is called the directional derivative.
Note:
• a along a contour implies a is perpendicular to grad φ which implies a · grad φ = 0.
• a perpendicular to a contour implies a · grad φ is a maximum.
20 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Task
Given φ = x2 y 2 z 2 , find
(a) grad φ
(b) grad φ at (−1, 1, 1) and a unit vector in this direction.
(c) the derivative of φ at (2, 1, −1) in the direction of
(i) i (ii) d = 35 i + 45 k.
Your solution
Answer
∂φ ∂φ ∂φ
(a) grad φ = i+ j+ k = 2xy 2 z 2 i + 2x2 yz 2 j + 2x2 y 2 zk
∂x ∂y ∂z
(b) At (−1, 1, 1), grad φ = −2i + 2j + 2k
A unit vector in this direction is
grad φ −2i + 2j + 2k 1 1 1 1
=p = √ (−2i + 2j + 2k) = − √ i + √ j + √ k
|grad φ| 2 2
(−2) + 2 + 2 2 2 3 3 3 3
(c) At (2, 1, −1), grad φ = 4i + 8j − 8k
(i) To find the derivative of φ in the direction of i take the scalar product
(4i + 8j − 8k) · i = 4 × 1 + 0 + 0 = 4. So the derivative in the direction of d is 4.
3 4
(ii) To find the derivative of φ in the direction of d = i + k take the scalar product
5 5
3 4 3 4 12 32
(4i + 8j − 8k) · ( i + k) = 4 × + 0 + (−8) × = − = −4.
5 5 5 5 5 5
So the derivative in the direction of d is −4.
HELM (2008): 21
Section 28.2: Differential Vector Calculus
Exercises
1. Find grad φ for the following scalar fields
2. Find grad φ for each of the following two-dimensional scalar fields given that r = xi + yj and
p
r = x2 + y 2 (you should express your answer in terms of r).
1
(a) φ = r, (b) φ = ln r, (c) φ = , (d) φ = rn .
r
3. If φ = x3 y 2 z, find,
(a) ∇φ
(b) a unit vector normal to the contour at the point (1, 1, 1).
(c) the rate of change of φ at (1, 1, 1) in the direction of i.
(d) the rate of change of φ at (1, 1, 1) in the direction of the unit vector n = √1 (i + j + k).
3
4. Find a unit vector which is normal to the sphere x2 + (y − 1)2 + (z + 1)2 = 2 at the point
(0, 0, 0).
5. Find vectors normal to φ1 = y − x2 and φ2 = x + y − 2. Hence find the angle between the
curves y = x2 and y = 2 − x at their point of intersection in the first quadrant.
Answers
∂ ∂
1. (a) (y − x)i + (y − x)j = −i + j
∂x ∂y
(b) −2xi + j
∂ 2 ∂ ∂
(c) [ (x + y 2 + z 2 )]i + [ (x2 + y 2 + z 2 )]j + [ (x2 + y 2 + z 2 )]k = 2xi + 2yj + 2zk
∂x ∂y ∂z
r r r
2. (a) , (b) 2 , (c) − 3 , (d) nrn−2 r
r r r
1 √
3. (a) 3x2 y 2 zi + 2x3 yzj + x3 y 2 k, (b) √ (3i + 2j + k), (c) 3, (d) 2 3
14
4. The vector field ∇φ where φ = x2 + (y − 1)2 + (z + 1)2 is 2xi + 2(y − 1)j + 2(z + 1)k
The value that this vector field takes at the point (0, 0, 0) is −2j +2k which is a vector normal
to the sphere.
1
Dividing this vector by its magnitude forms a unit vector: √ (−j + k)
2
5. 108◦ or 72◦ (intersect at (1, 1)) [At intersection, grad φ1 = −2i + j and grad φ2 = i + j.]
22 HELM (2008):
Workbook 28: Differential Vector Calculus
®
The meaning of the divergence is most easily understood by considering the behaviour of a fluid
and hence is relevant to engineering topics such as thermodynamics. The divergence (of the vector
field representing velocity) at a point in a fluid (liquid or gas) is a measure of the rate per unit volume
at which the fluid is flowing away from the point. A negative divergence is a convergence indicating a
flow towards the point. Physically positive divergence means that either the fluid is expanding or that
fluid is being supplied by a source external to the field. Conversely convergence means a contraction
or the presence of a sink through which fluid is removed from the field. The lines of flow diverge
from a source and converge to a sink.
If there is no gain or loss of fluid anywhere then div v = 0 which is the equation of continuity
for an incompressible fluid.
The divergence also enters engineering topics such as electromagnetism. A magnetic field (B) has
the property ∇ · B = 0, that is there are no isolated sources or sinks of magnetic field (no magnetic
monopoles).
Key Point 4
F is a vector field but div F is a scalar field.
HELM (2008): 23
Section 28.2: Differential Vector Calculus
Example 11
Find the divergence of the following vector fields.
(a) F = x2 i + y 2 j + z 2 k
(b) r = xi + yj + zk
(c) v = −xi + yj + 2k
Solution
∂ 2 ∂ 2 ∂
(a) div F = (x ) + (y ) + (z 2 ) = 2x + 2y + 2z
∂x ∂y ∂z
∂ ∂ ∂
(b) div r = (x) + (y) + (z) = 1 + 1 + 1 = 3
∂x ∂y ∂z
∂ ∂ ∂
(c) div v = (−x) + (y) + (2) = −1 + 1 + 0 = 0
∂x ∂y ∂z
Example 12
Find the value of a for which v = (2x2 y + z 2 )i + (xy 2 − x2 z)j + (axyz − 2x2 y 2 )k
is the vector field of an incompressible fluid.
Solution
v is incompressible if div v = 0.
∂ ∂ ∂
div v = (2x2 y + z 2 ) + (xy 2 − x2 z) + (axyz − 2x2 y 2 ) = 4xy + 2xy + axy
∂x ∂y ∂z
which is zero if a = −6.
Task
Find the divergence of the following vector field, in general terms and at the point
(1, 0, 3).
F 1 = x3 i + y 3 j + z 3 k
Your solution
Answer
(a) 3x2 + 3y 2 + 3z 2 , 30
24 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Task
Find the divergence of F 2 = x2 yi − 2xy 2 j, in general terms and at (1, 0, 3).
Your solution
Answer
−2xy, 0,
Task
Find the divergence of F 3 = x2 zi − 2y 3 z 3 j + xyz 2 k, in general terms and at the
point (1, 0, 3).
Your solution
Answer
2xz − 6y 2 z 3 + 2xyz, 6
HELM (2008): 25
Section 28.2: Differential Vector Calculus
hence the drag, is greater on one side of the leaf than the other.
bank bank
Key Point 5
Note that F is a vector field and that curl F is also a vector field.
Example 13
Find curl v for the following two-dimensional vector fields
(a) v = xi + 2j (b) v = −yi + xj
If v represents the surface velocity of the flow of water, describe the motion of a
floating leaf.
Solution
i j k
∂ ∂ ∂
(a) ∇ × v = ∂x ∂y ∂z
x 2 0
∂ ∂ ∂ ∂ ∂ ∂
= (0) − (2) i + (x) − (0) j + (2) − (x) k = 0
∂y ∂z ∂z ∂x ∂x ∂y
26 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Solution (contd.)
(b)
i j k
∂ ∂ ∂
∇ × v = ∂x ∂y ∂z
−y x 0
∂ ∂ ∂ ∂ ∂ ∂
= (0) − (x) i + (−y) − (0) j + (x) − (−y) k
∂y ∂z ∂z ∂x ∂x ∂y
= 0i + 0j + 2k = 2k
A floating leaf will travel along the streamlines (anti-clockwise around the origin ) and will rotate
anticlockwise (as seen from above).
An analogy of the right-hand screw rule is that a positive (anti-clockwise) rotation in the xy plane
represents a positive z-component of the curl. Similar results apply for the other components.
Example 14
(a) Find the curl of u = x2 i + y 2 j. When is u irrotational?
(b) Given F = (xy − xz)i + 3x2 j + yzk, find curl F at the origin (0, 0, 0)
and at the point P = (1, 2, 3).
Solution
(a)
i j k
∂ ∂ ∂
curl u = ∇ × F = ∂x ∂y ∂z
x2 y 2 0
∂ ∂ 2 ∂ 2 ∂ ∂ 2 ∂ 2
= (0) − (y ) i + (x ) − (0) j + (y ) − (x ) k
∂y ∂z ∂z ∂x ∂x ∂y
= 0i + 0j + 0k = 0
HELM (2008): 27
Section 28.2: Differential Vector Calculus
Solution (contd.)
(b)
i j k
∂ ∂ ∂
curl F = ∇ × F = ∂x ∂y ∂z
xy − xz 3x2 yz
∂ ∂ 2 ∂ ∂
= (yz) − (3x ) i + (xy − xz) − (yz) j
∂y ∂z ∂z ∂x
∂ 2 ∂
+ (3x ) − (xy − xz) k
∂x ∂y
= zi − xj + 5xk
At the point (0, 0, 0), curl F = 0. At the point (1, 2, 3), curl F = 3i − j + 5k.
Engineering Example 1
Introduction
In a magnetic field B, an associated current is given by:
1
I= (∇ × B)
µ0
Problem in words
Given the magnetic field B = B0 xk find the associated current I.
28 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Mathematical analysis
i j k
∂ ∂ ∂
∇ × B =
∂x ∂y ∂z
0 0 B0 x
= 0i − B0 j + 0k
= −B0 j
B0
and so I = − j.
µ0
Interpretation
The current is perpendicular to the field and to the direction of variation of the field.
Task
Find the curl of the following two-dimensional vector field (a) in general terms and
(b) at the point (1, 2).
F 2 = y 2 i + xyj
Your solution
Answer
i j k
∂ ∂ ∂
(a) ∇ × F2 = = 0i + 0j + (y − 2y)k = −yk
∂x ∂y ∂z
2
y xy 0
(b) −2k
HELM (2008): 29
Section 28.2: Differential Vector Calculus
Exercises
1. Find the curl of each of the following two-dimensional vector fields. Give each in general terms
and also at the point (1, 2).
2. Find the curl of each of the following three-dimensional vector fields. Give each in general
terms and also at the point (2, 1, 3).
3. The surface water velocity on a straight uniform river 20 metres wide is modelled by the vector
1
v = 50 x(20 − x)j where x is the distance from the west bank (see diagram).
x i
20 m
4. The velocity field on the surface of an emptying bathroom sink can be modelled by two
functions, the first describing the swirling vortex of radius a near the plughole and the second
describing the more gently rotating fluid outside the vortex region. These functions are
p
u(x, y) = w(−yi + xj), 2
x +y ≤a2
30 HELM (2008):
Workbook 28: Differential Vector Calculus
®
4. The Laplacian
The Laplacian of a function φ is written as ∇2 φ and is defined as: Laplacian φ = div grad φ, that is
∇2 φ = ∇ · ∇φ
∂φ ∂φ ∂φ
= ∇· i+ j+ k
∂x ∂y ∂z
∂2φ ∂2φ ∂2φ
= + + 2
∂x2 ∂y 2 ∂z
Example 15
Find the Laplacian of u = x2 y 2 z + 2xz.
Solution
∂2u ∂2u ∂2u
∇2 u = + + = 2y 2 z + 2x2 z + 0 = 2(x2 + y 2 )z
∂x2 ∂y 2 ∂z 2
HELM (2008): 31
Section 28.2: Differential Vector Calculus
5. Examples involving grad, div, curl and the Laplacian
The vector differential operators can be combined in several ways as the following examples show.
Example 16
If A = 2yzi − x2 yj + xz 2 k, B = x2 i + yzj − xyk and φ = 2x2 yz 3 , find
(a) (A · ∇)φ (b) A · ∇φ (c) B × ∇φ (d) ∇2 φ
Solution
(a)
2 2 ∂ ∂ ∂
(A · ∇)φ = (2yzi − x yj + xz k) · ( i + j + k) φ
∂x ∂y ∂z
∂ ∂ ∂
= 2yz − x2 y + xz 2 2x2 yz 3
∂x ∂y ∂z
∂ ∂ ∂
= 2yz (2x2 yz 3 ) − x2 y (2x2 yz 3 ) + xz 2 (2x2 yz 3 )
∂x ∂y ∂z
3 2 2 3 2 2 2
= 2yz(4xyz ) − x y(2x z ) + xz (6x yz )
= 8xy 2 z 4 − 2x4 yz 3 + 6x3 yz 4
(b)
∂ ∂ ∂
∇φ = (2x2 yz 3 )i + (2x2 yz 3 )j + (2x2 yz 3 )k
∂x ∂y ∂z
3 2 3 2 2
= 4xyz i + 2x z j + 6x yz k
∂2 ∂2 ∂2
(d) ∇2 φ = (2x 2
yz 3
) + (2x 2
yz 3
) + (2x2 yz 3 ) = 4yz 3 + 0 + 12x2 yz
∂x2 ∂y 2 ∂z 2
32 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 17
For each of the expressions below determine whether the quantity can be formed
and, if so, whether it is a scalar or a vector.
(a) grad(div A)
(b) grad(grad φ)
(c) curl(div F )
(d) div [ curl (A×grad φ) ]
Solution
(a) A is a vector and divA can be calculated and is a scalar. Hence, grad(div A) can be
formed and is a vector.
(b) φ is a scalar so grad φ can be formed and is a vector. As grad φ is a vector, it is not
possible to take grad(grad φ).
(c) F is a vector and hence div F is a scalar. It is not possible to take the curl of a scalar
so curl(div F ) does not exist.
(d) φ is a scalar so grad φ exists and is a vector. A×grad φ exists and is also a vector as is
curl A×grad φ. The divergence can be taken of this last vector to give
div [ curl (A×grad φ) ] which is a scalar.
HELM (2008): 33
Section 28.2: Differential Vector Calculus
Example 18
Show for any vector field A = A1 i + A2 j + A3 k, that div curl A = 0.
Solution
i j j
∂ ∂ ∂
div curl A = div
∂x ∂y ∂z
A1 A2 A3
∂A3 ∂A2 ∂A1 ∂A3 ∂A2 ∂A1
= div − i+ − j+ − k
∂y ∂z ∂z ∂x ∂x ∂y
∂ ∂A3 ∂A2 ∂ ∂A1 ∂A3 ∂ ∂A2 ∂A1
= − + − + −
∂x ∂y ∂z ∂y ∂z ∂x ∂z ∂x ∂y
2 2 2 2 2 2
∂ A3 ∂ A2 ∂ A1 ∂ A3 ∂ A2 ∂ A1
= − + − + −
∂x∂y ∂z∂x ∂y∂z ∂y∂x ∂z∂x ∂z∂y
= 0
∂ 2 A3 ∂ 2 A3
N.B. This assumes = etc.
∂x∂y ∂y∂x
Example 19
Verify identity 1 for the vector A = 2xyi − 3zk and the function φ = xy 2 .
Solution
φA = 2x2 y 3 i − 3xy 2 zk so
∂ ∂
∇ · φA = ∇ · 2x2 y 3 i − 3xy 2 zk = (2x2 y 3 ) + (−3xy 2 z) = 4xy 3 − 3xy 2
∂x ∂z
So LHS = 4xy 3 − 3xy 2 .
∂ ∂ ∂
∇φ = (xy 2 )i + (xy 2 )j + (xy 2 )k = y 2 i + 2xyj so
∂x ∂y ∂z
(∇φ) · A = (y i + 2xyj) · (2xyi − 3zk) = 2xy 3
2
34 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Task
If F = x2 yi − 2xzj + 2yzk, find
(a) ∇ · F
(b) ∇ × F
(c) ∇(∇ · F )
(d) ∇ · (∇ × F )
(e) ∇ × (∇ × F )
Your solution
Answer
(a) 2xy + 2y,
HELM (2008): 35
Section 28.2: Differential Vector Calculus
Task
If φ = 2xz − y 2 z, find
(a) ∇φ
(b) ∇2 φ = ∇ · (∇φ)
(c) ∇ × (∇φ)
Your solution
Answer
(a) 2zi − 2yzj + (2x − y 2 )k, (b) −2z, (c) 0 where (b) and (c) use the answer to (a).
Exercise
Which of the following combinations of grad, div and curl can be formed? If a quantity can be
formed, state whether it is a scalar or a vector.
36 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Orthogonal
Curvilinear
Coordinates 28.3
Introduction
The derivatives div, grad and curl from Section 28.2 can be carried out using coordinate systems other
than the rectangular Cartesian coordinates. This Section shows how to calculate these derivatives in
other coordinate systems. Two coordinate systems - cylindrical polar coordinates and spherical polar
coordinates - will be illustrated.
• be able to find the gradient, divergence and
Prerequisites curl of a field in Cartesian coordinates
Before starting this Section you should . . . • be familiar with polar coordinates
• find the divergence, gradient or curl of a
Learning Outcomes vector or scalar field expressed in terms of
On completion you should be able to . . . orthogonal curvilinear coordinates
HELM (2008): 37
Section 28.3: Orthogonal Curvilinear Coordinates
1. Orthogonal curvilinear coordinates
The results shown in Section 28.2 have been given in terms of the familiar Cartesian (x, y, z) co-
ordinate system. However, other coordinate systems can be used to better describe some physical
situations. A set of coordinates u = u(x, y, z), v = v(x, y, z) and w = w(x, y, z) where the direc-
tions at any point indicated by u, v and w are orthogonal (perpendicular) to each other is referred to
as a set of orthogonal curvilinear coordinates.
q With each coordinate is associated a scale factor
∂x 2 ∂y 2 ∂z 2
hu , hv or hw respectively where hu = ∂u
+ ∂u + ∂u (with similar expressions for hv and
hw ). The scale factor gives a measure of how a change in the coordinate changes the position of a
point.
Two commonly-used sets of orthogonal curvilinear coordinates are cylindrical polar coordinates
and spherical polar coordinates. These are similar to the plane polar coordinates introduced in
17.2 but represent extensions to three dimensions.
z z k̂
ρ ρ φ̂
(x, y, z) (x, y, z)
ρ̂
y y
φ ρ φ ρ
(a) (b)
x x
38 HELM (2008):
Workbook 28: Differential Vector Calculus
®
• The variable r plays the role of height (but height measured above the centre of Earth rather
than from the surface).
• The variable θ plays the role of latitude but is modified so that θ = 0 represents the North
π
Pole, θ = 90◦ = represents the equator and θ = 180◦ = π represents the South Pole.
2
• The variable φ plays the role of longitude.
(x, y, z)
θ r
y
φ
x,
HELM (2008): 39
Section 28.3: Orthogonal Curvilinear Coordinates
2. Vector derivatives in orthogonal coordinates
Given an orthogonal coordinate system u, v, w with unit vectors û, v̂ and ŵ and scale factors, hu ,
hv and hw , it is possible to find the derivatives ∇f , ∇ · F and ∇ × F .
It is found that
1 ∂f 1 ∂f 1 ∂f
grad f = ∇f = û + v̂ + ŵ
hu ∂u hv ∂v hw ∂w
If F = Fu û + Fv v̂ + Fw ŵ
then
1 ∂ ∂ ∂
div F = ∇ · F = (Fu hv hw ) + (Fv hu hw ) + (Fw hu hv )
hu hv hw ∂u ∂v ∂w
Also if F = Fu û + Fv v̂ + Fw ŵ
then
hu û hv v̂ hw ŵ
1 ∂
∂ ∂
curl F = ∇ × F =
hu hv hw
∂u ∂v ∂w
h F h F h F
u u v v w w
Key Point 6
In orthogonal curvilinear coordinates, the vector derivatives ∇f , ∇ · F and ∇ × F include the scale
factors hu , hv and hw .
40 HELM (2008):
Workbook 28: Differential Vector Calculus
®
If F = Fρ ρ̂ + Fφ φ̂ + Fz ẑ then
1 ∂ ∂ ∂
div F = ∇ · F = (ρFρ ) + (Fφ ) + (ρFz )
ρ ∂ρ ∂φ ∂z
ρ̂ ρφ̂ ẑ
1 ∂ ∂ ∂
curl F = ∇ × F = .
ρ ∂ρ ∂φ ∂z
Fρ ρFφ Fz
Example 20
Working in cylindrical polar coordinates, find ∇f for f = ρ2 + z 2
Solution
∂f ∂f ∂f
If f = ρ2 + z 2 then = 2ρ, = 0 and = 2z so ∇f = 2ρρ̂ + 2z ẑ.
∂ρ ∂φ ∂z
Example 21
Working in cylindrical polar coordinates find
Solution
∂f ∂f ∂f
(a) If f = ρ3 sin φ then = 3ρ2 sin φ, = ρ3 cos φ and = 0 and hence,
∂ρ ∂φ ∂z
∇f = 3ρ2 sin φρ̂ + ρ2 cos φφ̂.
(b) f = ρ3 sin φ = ρ2 ρ sin φ = (x2 + y 2 )y = x2 y + y 3 so ∇f = 2xyi + (x2 + 3y 2 )j.
Using cylindrical polar coordinates, from (a) we have
So the results using Cartesian and cylindrical polar coordinates are consistent.
HELM (2008): 41
Section 28.3: Orthogonal Curvilinear Coordinates
Example 22
Find ∇ · F for F = Fρ ρ̂ + Fφ φ̂ + Fz ẑ = ρ3 ρ̂ + ρz φ̂ + ρz sin φẑ. Show that the
results are consistent with those found using Cartesian coordinates.
Solution
Here, Fρ = ρ3 , Fφ = ρz and Fz = ρz sin φ so
1 ∂ ∂ ∂
∇·F = (ρFρ ) + (Fφ ) + (ρFz )
ρ ∂ρ ∂φ ∂z
1 ∂ 4 ∂ ∂ 2
= (ρ ) + (ρz) + (ρ z sin φ)
ρ ∂ρ ∂φ ∂z
1 3
4ρ + 0 + ρ2 sin φ
=
ρ
= 4ρ2 + ρ sin φ
F = Fρ ρ̂ + Fφ φ̂ + Fz ẑ = ρ3 ρ̂ + ρz φ̂ + ρz sin φẑ
= ρ3 (cos φi + sin φj) + ρz(− sin φi + cos φj) + ρz sin φk
= (ρ3 cos φ − ρz sin φ)i + (ρ3 sin φ + ρz cos φ)j + ρz sin φk
= ρ2 (ρ cos φ) − ρ sin φz i + ρ2 (ρ sin φ) + ρ cos φz j + ρ sin φzk
So
∂ 3 ∂ 2 ∂
∇·F = (x + xy 2 − yz) + (x y + y 3 + xz) + (yz)
∂x ∂y ∂z
2 2 2 2 2 2
= (3x + y ) + (x + 3y ) + y = 4x + 4y + y
= 4(x2 + y 2 ) + y
= 4ρ2 + ρ sin φ
42 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 23
Find ∇ × F for F = ρ2 ρ̂ + z sin φφ̂ + 2z cos φẑ.
Solution
ρ̂ ρφ̂ ẑ ρ̂
ρφ̂ ẑ
1 ∂ ∂ ∂ 1 ∂ ∂ ∂
∇×F = =
ρ ∂ρ ∂φ ∂z ρ ∂ρ
∂φ ∂z
2
Fρ ρFφ Fz ρ ρz sin φ 2z cos φ
1 ∂ ∂ ∂ 2 ∂ ∂ ∂ 2
= ρ̂ (2z cos φ) − (ρz sin φ) +ρφ̂ ρ − (2z cos φ) + ẑ (ρz sin φ) − ρ
ρ ∂φ ∂z ∂z ∂ρ ∂ρ ∂φ
1h i
= ρ̂(−2z sin φ − ρ sin φ) + ρφ̂(0) + ẑ(z sin φ)
ρ
(2z sin φ + ρ sin φ) z sin φ
= − ρ̂ + ẑ
ρ ρ
Engineering Example 2
Introduction
A magnetic field B must satisfy ∇ · B = 0. An associated current is given by:
1
I= (∇ × B)
µ0
Problem in words
For the magnetic field (in cylindrical polar coordinates ρ, φ, z)
ρ
B = B0 φ̂ + αẑ
1 + ρ2
show that the divergence of B is zero and find the associated current.
Mathematical statement of problem
We must
1
(a) show that ∇ · B = 0 (b) find the current I = (∇ × B)
µ0
HELM (2008): 43
Section 28.3: Orthogonal Curvilinear Coordinates
Mathematical analysis
ρ̂ ρφ̂ ẑ
ρ̂ ρφ̂ ẑ
∂ ∂ ∂
1 1 1∂ ∂ ∂
I = (∇ × B) = = ∂ρ ∂φ ∂z
µ0 µ0 ρ ∂ρ ∂φ ∂z
2
Bρ ρBφ Bz 0 B0 ρ
α
1 + ρ2
2
1 ∂ ρ
= 0ρ̂ + 0ρφ̂ + B0 ẑ
µ0 ρ ∂ρ 1 + ρ2
1 2ρ 2B0
= B0 2 2
ẑ = ẑ
µ0 ρ (1 + ρ ) µ0 (1 + ρ2 )2
Interpretation
The magnetic field is in the form of a helix with the current pointing along its axis (Fig 22). Such
an arrangement is often used for the magnetic containment of charged particles in a fusion reactor.
44 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 24
A magnetic field B is given by B = ρ−2 φ̂ + kẑ. Find ∇ · B and ∇ × B.
Solution
1 ∂ ∂ −2 ∂ 1
∇·B = (0) + (ρ ) + (kρ) = [0 + 0 + 0] = 0
ρ ∂ρ ∂φ ∂z ρ
ρ̂ ρφ̂ ẑ ρ̂ ρφ̂ ẑ
1 ∂ ∂ ∂ 1 ∂ ∂ ∂
∇×B = =
ρ ∂ρ ∂φ ∂z ρ ∂ρ ∂φ ∂z
Bρ ρBφ Bz 0 ρ−1 k
1
=− ẑ
ρ3
All magnetic fields satisfy ∇ · B = 0 i.e. an absence of magnetic monopoles.
Note that there is a class of magnetic fields known as potential fields that satisfy ∇ × B = 0
Task
Using cylindrical polar coordinates, find ∇f for f = ρ2 z sin φ
Your solution
Answer
∂ 2 1 ∂ 2 ∂
[ρ z sin φ]ρ̂ + [ρ z sin φ]φ̂ + [ρ2 z sin φ]ẑ = 2ρz sin φρ̂ + ρz cos φφ̂ + ρ2 sin φẑ
∂ρ ρ ∂φ ∂z
HELM (2008): 45
Section 28.3: Orthogonal Curvilinear Coordinates
Task
Using cylindrical polar coordinates, find ∇f for f = z sin 2φ
Your solution
Answer
∂ 1 ∂ ∂ 2
[z sin 2φ]ρ̂ + [z sin 2φ]φ̂ + [z sin 2φ]ẑ = z cos 2φφ̂ + sin 2φẑ
∂ρ ρ ∂φ ∂z ρ
Task
Find ∇ · F for F = ρ cos φρ̂ − ρ sin φφ̂ + ρz ẑ
i.e. Fρ = ρ cos φ, Fφ = −ρ sin φ, Fz = ρz
∂ ∂ ∂
(a) First find the derivatives [ρFρ ], [Fφ ], [ρFz ]:
∂ρ ∂φ ∂z
Your solution
Answer
2ρ cos φ, −ρ cos φ, ρ2
Your solution
46 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Answer
1 ∂ ∂ ∂
∇·F = (ρFρ ) + (Fφ ) + (ρFz )
ρ ∂ρ ∂φ ∂z
1 ∂ 2 ∂ ∂ 2
= (ρ cos φ) + (−ρ sin φ) + (ρ z)
ρ ∂ρ ∂φ ∂z
1
2ρ cos φ − ρ cos φ + ρ2
=
ρ
= cos φ + ρ
Task
Find ∇ × F for F = Fρ ρ̂ + Fφ φ̂ + Fz ẑ = ρ3 ρ̂ + ρz φ̂ + ρz sin φẑ. Show that the
results are consistent with those found using Cartesian coordinates.
Answer
ρ̂ ρφ̂ ẑ
1 ∂ ∂ ∂
= (z cos φ − ρ)ρ̂ − z sin φφ̂ + 2z ẑ
ρ ∂ρ ∂φ ∂z
3 2
ρ ρ z ρz sin φ
Answer
Use ρ̂ = cos φi+sin φj, φ̂ = − sin φi+cos φj to get F = (x3 +xy 2 −yz)i+(x2 y +y 3 +xz)j +yzk
Answer
(z − x)i − yj + 2zk
HELM (2008): 47
Section 28.3: Orthogonal Curvilinear Coordinates
(d) Using ρ̂ = cos φi + sin φj and φ̂ = − sin φi + cos φj, show that the solution to part (a) is equal
to the solution for part (c):
Your solution
Answer
(z cos φ−ρ) ρ̂−z sin φ φ̂+2z ẑ = (z cos φ−ρ)(cos φ i+sin φ j)−z sin φ(− sin φ i+cos φ j)+2z k
= [zcos2 φ − ρ cos φ + zsin2 φ] i + [zcos φsin φ − ρ sin φ − zsin φcos φ] j + 2z k
= [z − ρ cos φ] i − ρ sin φ j + 2z k = (z − x) i − y j + 2z k
Exercises
1. For F = ρρ̂ + (ρ sin φ + z)φ̂ + ρz ẑ, find ∇ · F and ∇ × F .
If F = Fr r̂ + Fθ θ̂ + Fφ φ̂
then
1 ∂ 2 ∂ ∂
div F = ∇ · F = 2 (r sin θFr ) + (r sin θFθ ) + (rFφ )
r sin θ ∂r ∂θ ∂φ
r̂ rθ̂ r sin θφ̂
1 ∂ ∂ ∂
curl F = ∇ × F = 2
r sin θ ∂r ∂θ
∂φ
Fr rFθ r sin θFφ
48 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 25
In spherical polar coordinates, find ∇f for
1
(a) f = r (b) f = (c) f = r2 sin(φ + θ)
r
[Note: parts (a) and (b) relate to Exercises 2(a) and 2(c) on page 22.]
Solution
∂f 1 ∂f 1 ∂f
(a) ∇f = r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
∂(r) 1 ∂(r) 1 ∂(r)
= r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
= 1r̂ = r̂
∂f 1 ∂f 1 ∂f
(b) ∇f = r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
∂( 1r ) 1 ∂( 1r ) 1 ∂( 1r )
= r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
1
= − 2 r̂
r
∂f 1 ∂f 1 ∂f
(c) ∇f = r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
∂(r sin(φ + θ)) 1 ∂(r sin(φ + θ)) 1 ∂(r2 sin(φ + θ))
= r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
1 1
= 2r sin(φ + θ)r̂ + r2 cos(φ + θ)θ̂ + r2 cos(φ + θ)φ̂
r r sin θ
r cos(φ + θ)
= 2r sin(φ + θ)r̂ + r cos(φ + θ)θ̂ + φ̂
sin θ
HELM (2008): 49
Section 28.3: Orthogonal Curvilinear Coordinates
Engineering Example 3
Electric potential
Introduction
There is a scalar quantity V , called the electric potential, which satisfies
∇V = −E where E is the electric field.
It is often easier to handle scalar fields rather than vector fields. It is therefore convenient to work
with V and then derive E from it.
Problem in words
Given the electric potential, find the electric field.
Mathematical statement of problem
For a point charge, Q, the potential V is given by
Q
V =
4π0 r
Q
Verify, using spherical polar coordinates, that E = −∇V = r̂
4π0 r2
Mathematical analysis
In spherical polar coordinates:
∂V 1 ∂V 1 ∂V
∇V = r̂ + θ̂ + φ̂
∂r r ∂θ r sin θ ∂φ
∂V
= r̂ as the other partial derivatives are zero
∂r
∂ Q
= r̂
∂r 4π0 r
Q
= − r̂
4π0 r2
Interpretation
Q
So E = r̂ as required.
4π0 r2
This is a form of Coulomb’s Law. A positive charge will experience a positive repulsion radially
outwards in the field of another positive charge.
50 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Example 26
Using spherical polar coordinates, find ∇ · F for the following vector functions.
(a) F = rr̂ (b) F = r2 sin θr̂ (c) F = r sin θ r̂ + r2 sin φ θ̂ + r cos θ φ̂
Solution
(a)
1 ∂ 2 ∂ ∂
∇·F = 2 (r sin θFr ) + (r sin θFθ ) + (rFφ )
r sin θ ∂r ∂θ ∂φ
1 ∂ 2 ∂ ∂
= 2 (r sin θ × r) + (r sin θ × 0) + (r × 0)
r sin θ ∂r ∂θ ∂φ
1 ∂ 3 ∂ ∂ 1 2
= 2 (r sin θ) + (0) + (0) = 2 3r sin θ + 0 + 0 = 3
r sin θ ∂r ∂θ ∂φ r sin θ
(c)
1 ∂ 2 ∂ ∂
∇·F = (r sin θ Fr ) + (r sin θ Fθ ) + (rFφ )
r2 sin θ ∂r ∂θ ∂φ
1 ∂ 2 ∂ 2 ∂
= (r sin θ r sin θ) + (r sin θ × r sin φ) + (r × r cos θ)
r2 sin θ ∂r ∂θ ∂φ
1 ∂ 3 2 ∂ 3 ∂ 2
= (r sin θ) + (r sin θ sin φ) + (r cos θ)
r2 sin θ ∂r ∂θ ∂φ
1 2 2 3
= 3r sin θ + r cos θ sin φ + 0 = 3 sin θ + r cot θ sin φ
r2 sin θ
HELM (2008): 51
Section 28.3: Orthogonal Curvilinear Coordinates
Example 27
Using spherical polar coordinates, find ∇ × F for the following vector fields F .
(a) F = rk r̂, where k is a constant (b) F = r2 cos θ r̂ + sin θ θ̂ + sin2 θ φ̂
Solution
(a)
r̂ r θ̂ r sin θ φ̂
1 ∂ ∂ ∂
∇×F = 2
r sin θ ∂r ∂θ ∂φ
Fr rFθ r sin θFφ
r̂ rθ̂ r sin θ φ̂
1 ∂ ∂ ∂
= 2
r sin θ ∂r
∂θ ∂φ
k
r r × 0 r sin θ × 0
1 ∂ ∂ ∂ k ∂
= 2 (0) − (0) r̂ + (r ) − (0) rθ̂
r sin θ ∂θ ∂φ ∂φ ∂r
∂ ∂
+ (0) − (rk ) r sin θ φ̂
∂r ∂θ
= 0 r̂ + 0 θ̂ + 0 φ̂ = 0
(b)
r̂ r θ̂ r sin θ φ̂ r̂ rθ̂ r sin θ φ̂
1 ∂ ∂ ∂ 1 ∂ ∂ ∂
∇×F = 2
=
2
r sin θ ∂r ∂θ
∂φ r sin θ ∂r
∂θ ∂φ
2
Fr rFθ r sin θFφ r cos θ r × sin θ r sin θ × sin2 θ
1 ∂ 3 ∂ ∂ 2 ∂ 3
= (r sin θ) − (r sin θ) r̂ + (r cos θ) − (r sin θ) rθ̂
r2 sin θ ∂θ ∂φ ∂φ ∂r
∂ ∂
+ (r sin θ) − (r2 cos θ) r sin θ φ̂
∂r ∂θ
1 h
2
3
2
i
= 3r sin θ cos θ + 0 r̂ + 0 − sin θ r θ̂ + sin θ + r sin θ r sin θ φ̂
r2 sin θ
3 sin θ cos θ sin2 θ (1 + r2 )
= r̂ − θ̂ + sin θ φ̂
r r r
52 HELM (2008):
Workbook 28: Differential Vector Calculus
®
Task
Using spherical polar coordinates, find ∇f for
(a) f = r4
r
(b) f =
r2 + 1
(c) f = r2 sin 2θ cos φ
Your solution
Answer
(a) 4r3 r̂,
1 − r2
(b) r̂,
(1 + r2 )2
∂ 2 1 ∂ 2 1 ∂ 2
(c) (r sin 2θ cos φ)r̂ + (r sin 2θ cos φ)φ̂ + (r sin 2θ cos φ)
∂r r ∂θ r sin θ ∂φ
= 2r sin 2θ cos φ r̂ + 2r cos 2θ cos φ θ̂ − 2r cos θ sin φ φ̂
Exercises
1. For F = r sin θr̂ + r cos φθ̂ + r sin φφ̂, find ∇ · F and ∇ × F .
Answers
θ
1. cos φ(cot θ + cosecθ) + 3 sin θ, cot sin φr̂ − 2 sin φθ̂ + (2 cos φ − cos θ)φ̂
2
2. 0, −2r−5 sin θφ̂
3. 0
HELM (2008): 53
Section 28.3: Orthogonal Curvilinear Coordinates