2 Vector Algebra
2 Vector Algebra
× B = −B×
A× ×A (anticommutative). (3.23a) × ŷ = ẑ,
x̂× × ẑ = x̂,
ŷ× × x̂ = ŷ.
ẑ× (3.25)
p √
If A = (Ax , Ay , Az ) and B = (Bx , By , Bz ), then use of Eqs. (3.25) A = |A| = 22 + 32 + 32 = 22 ,
and (3.26) leads to A √
â = = (x̂2 + ŷ3 + ẑ3)/ 22 .
× B = (x̂Ax + ŷAy + ẑAz )×
A× × (x̂Bx + ŷBy + ẑBz ) A
= x̂(Ay Bz − AzBy ) + ŷ(Az Bx − Ax Bz ) (b) The angle β between A and the y axis is obtained from
+ ẑ(Ax By − Ay Bx ). (3.27) A · ŷ = |A||ŷ| cos β = A cos β ,
The cyclical form of the result given by Eq. (3.27) allows us to or
A · ŷ
express the cross product in the form of a determinant: −1 −1 3
β = cos = cos √ = 50.2◦.
A 22
x̂ ŷ ẑ (c)
×B =
A× Ax Ay Az . (3.28)
Bx By Bz B = x̂(1 − 2) + ŷ(−2 − 3) + ẑ(2 − 3) = −x̂ − ŷ5 − ẑ.
(d)
A·B
−1 −1 (−2 − 15 − 3)
Example 3-1: Vectors and Angles θAB = cos = cos √ √ = 145.1◦.
|A||B| 22 27
(e) The perpendicular distance between the origin and vector B
In Cartesian coordinates, vector A points from the origin to −→
point P1 = (2, 3, 3), and vector B is directed from P1 to point is the distance | OP3 | shown in Fig. 3-7. From right triangle
P2 = (1, −2, 2). Find: OP1 P3 ,
(a) vector A, its magnitude A, and unit vector â, −→
| OP3 | = |A| sin(180◦ − θAB )
(b) the angle between A and the y axis, √
(c) vector B, = 22 sin(180◦ − 145.1◦) = 2.68.
(d) the angle θAB between A and B, and
(e) perpendicular distance from the origin to vector B.
Solution: (a) Vector A is given by the position vector of Example 3-2: Cross Product
P1 = (2, 3, 3) (Fig. 3-7). Thus,
A = x̂2 + ŷ3 + ẑ3, Given vectors A = x̂2 − ŷ + ẑ3 and B = ŷ2 − ẑ3, compute
× B) · A.
× B, (b) ŷ × B, and (c) (ŷ×
(a) A×
Solution: (a) Application of Eq. (3.28) gives
z
θAB x̂ ŷ ẑ
3 ×B =
A× 2 −1 3
P1 = (2, 3, 3) 0 2 −3
P2 = (1, –2, 2) B 2 = x̂((−1) × (−3) − 3 × 2) − ŷ(2 × (−3) − 3 × 0)
P3
A + ẑ(2 × 2 − (−1 × 0))
1
β = −x̂3 + ŷ6 + ẑ4.
–2 O 3
y × B = ŷ×
(b) ŷ× × (ŷ2 − ẑ3) = −x̂3.
1 (c) (ŷ × B) · A = −x̂3 ·(x̂2 − ŷ + ẑ3) = −6.
2
Exercise 3-1: Find the distance vector between
x P1 = (1, 2, 3) and P2 = (−1, −2, 3) in Cartesian coor-
dinates.
Figure 3-7 Geometry of Example 3-1. −−→
Answer: P1 P2 = −x̂2 − ŷ4. (See EM .)
136 CHAPTER 3 VECTOR ANALYSIS
Exercise 3-3: Find the angle between vector B of Exam- The equalities hold as long as the cyclic order (ABCABC . . .) is
ple 3-1 and the z axis. preserved. The scalar triple product of vectors A = (Ax , Ay , Az ),
B = (Bx , By , Bz ), and C = (Cx ,Cy ,Cz ) can be expressed in the
Answer: 101.1◦. (See EM
.) form of a 3 × 3 determinant:
does not make sense because B · C is a scalar, and the cross Example 3-3: Vector Triple Product
product of the vector A with a scalar is not defined under the
rules of vector algebra. Other than the product of the form
A(B · C), the only two meaningful products of three vectors Given A = x̂ − ŷ + ẑ2, B = ŷ + ẑ, and C = −x̂2 + ẑ3, find
are the scalar triple product and the vector triple product. (A×× B)×
× C and compare it with A× × (B × C).
Solution:
Scalar Triple Product
x̂ ŷ ẑ
The dot product of a vector with the cross product of two other ×B =
A× 1 −1 2 = −x̂3 − ŷ + ẑ
vectors is called a scalar triple product, so named because the 0 1 1
3-2 ORTHOGONAL COORDINATE SYSTEMS 137
dsy = yˆ dx dz
◮ An orthogonal coordinate system is one in which
dz
coordinates are measured along locally mutually perpen-
dz
dicular axes. ◭
dl dv = dx dy dz
dsx = xˆ dy dz
Nonorthogonal systems are very specialized and seldom used
in solving practical problems. Many orthogonal coordinate dy
y
systems have been devised, but the most commonly used are
dx
• the Cartesian (also called rectangular), x
• the cylindrical, and Figure 3-8 Differential length, area, and volume in Cartesian
coordinates.
• the spherical coordinate system.
138 CHAPTER 3 VECTOR ANALYSIS
Position vector
−→
OP = x̂x1 + ŷy1 + ẑz1 , r̂r1 + ẑz1 , R̂R1 ,
1
for P(x1 , y1 , z1 ) for P(r1 , φ1 , z1 ) for P(R1 , θ1 , φ1 )
direction (such as x̂). Thus, for a differential area vector in the φ , and z (Fig. 3-9). The coordinate r is the radial distance in
y–z plane, the x–y the azimuth angle measured from the positive x axis,
and z is as previously defined in the Cartesian coordinate
dsx = x̂ dly dlz = x̂ dy dz (y–z plane), (3.35a)
system. Their ranges are 0 ≤ r < ∞, 0 ≤ φ < 2π , and
with the subscript on ds denoting its direction. Similarly, −∞ < z < ∞. Point P(r1 , φ1 , z1 ) in Fig. 3-9 is located at the
intersection of three surfaces. These are the cylindrical surface
dsy = ŷ dx dz (x–z plane), (3.35b)
defined by r = r1 , the vertical half-plane defined by φ = φ1
dsz = ẑ dx dy (x–y plane). (3.35c) (which extends outwardly from the z axis), and the horizontal
plane defined by z = z1 .
A differential volume equals the product of all three differen-
tial lengths:
d υ = dx dy dz. (3.36)
◮ The mutually perpendicular base vectors are r̂, φ̂
φ , and ẑ
with r̂ pointing away from the origin along r, φ̂φ pointing
3-2.2 Cylindrical Coordinates in a direction tangential to the cylindrical surface, and ẑ
The cylindrical coordinate system is useful for solving pointing along the vertical. Unlike the Cartesian system,
problems involving structures with cylindrical symmetry, such where base vectors x̂, ŷ, and ẑ are independent of the
as calculating the capacitance per unit length of a coaxial location of P, both r̂ and φ̂φ are functions of φ in the
transmission line. In the cylindrical coordinate system, the cylindrical system. ◭
location of a point in space is defined by three variables: r,
3-2 ORTHOGONAL COORDINATE SYSTEMS 139
z = z1 plane
R1
r = r1 cylinder
O y
φ1 r1 zˆ
ˆ
φ φ = φ1 plane
rˆ
x
Figure 3-9 Point P(r1 , φ1 , z1 ) in cylindrical coordinates; r1 is the radial distance from the origin in the x–y plane, φ1 is the angle in the
x–y plane measured from the x axis toward the y axis, and z1 is the vertical distance from the x–y plane.
The base unit vectors obey the following right-hand cyclic position vector of point P(r1 , φ1 , z1 ), it is necessary to specify
relations: that r̂ is at φ1 .
Figure 3-10 shows a differential volume element in cylin-
× φ̂φ = ẑ,
r̂× φ̂φ × ẑ = r̂, φ,
× r̂ = φ̂
ẑ× (3.37) drical coordinates. The differential lengths along r̂, φ̂φ, and ẑ
are
and like all unit vectors, r̂ · r̂ = φ̂φ · φ̂φ = ẑ · ẑ = 1, and dlr = dr, dlφ = r d φ , dlz = dz. (3.41)
× r̂ = φ̂φ × φ̂φ = ẑ×
r̂× × ẑ = 0.
In cylindrical coordinates, a vector is expressed as Note that the differential length along φ̂φ is r d φ , not just d φ .
The differential length dl in cylindrical coordinates is given by
A = â|A| = r̂Ar + φ̂φAφ + ẑAz , (3.38)
dl = r̂ dlr + φ̂φ dlφ + ẑ dlz = r̂ dr + φ̂φr d φ + ẑ dz. (3.42)
where Ar , Aφ , and Az are the components of A along the r̂, φ̂φ,
and ẑ directions. The magnitude of A is obtained by applying As was stated previously for the Cartesian coordinate system,
Eq. (3.17), which gives the product of any pair of differential lengths is equal to the
√
+
q magnitude of a vector differential surface area with a surface
|A| = A · A = + A2r + A2φ + A2z . (3.39) normal pointing along the direction of the third coordinate.
Thus,
−→
The position vector OP shown in Fig. 3-9 has components
along r and z only. Thus, dsr = r̂ dlφ dlz = r̂r d φ dz (φ –z cylindrical surface),
−→ (3.43a)
R1 = OP = r̂r1 + ẑz1 . (3.40)
dsφ = φ̂φ dlr dlz = φ̂
φ dr dz (r–z plane), (3.43b)
The dependence of R1 on φ1 is implicit through the depen-
dence of r̂ on φ1 . Hence, when using Eq. (3.40) to denote the dsz = ẑ dlr dlφ = ẑr dr d φ (r–φ plane). (3.43c)
140 CHAPTER 3 VECTOR ANALYSIS
z z
P1 = (0, 0, h)
dz dsz = zˆ r dr dφ
aˆ
r dφ dr
dsφ = ϕˆ dr dz
h
dz dv = r dr dφ dz
dsr = rˆ r dφ dz A
O y
φ0 r0
O y P2 = (r0, φ0, 0)
φ
r x
Hence,
−→ −→
A = OP2 − OP1 = r̂r0 − ẑh,
y
and 60°
A r̂r0 − ẑh
â = =q . 30°
|A| r02 + h2
x
We note that the expression for A is independent of φ0 . This
implies that all vectors from point P1 to any point on the circle Figure 3-12 Cylindrical surface of Example 3-5.
defined by r = r0 in the x–y plane are equal in the cylindrical
3-2 ORTHOGONAL COORDINATE SYSTEMS 141
Module 3.1 Points and Vectors Examine the relationships between Cartesian coordinates (x, y) and cylindrical
coordinates (r, φ ) for points and vectors.
Solution: The prescribed surface is shown in Fig. 3-12. Use distance from the origin to the point, describes a sphere of
of Eq. (3.43a) for a surface element with constant r gives radius R centered at the origin. The zenith angle θ is measured
Z 60◦ Z 3 from the positive z axis and it describes a conical surface with
π /3 3 5π its apex at the origin, and the azimuth angle φ is the same
S=r dφ dz = 5φ z = .
φ =30◦ z=0 π /6 0 2 as in cylindrical coordinates. The ranges of R, θ , and φ are
0 ≤ R < ∞, 0 ≤ θ ≤ π , and 0 ≤ φ < 2π . The base vectors R̂,
Note that φ had to be converted to radians before evaluating θ̂θ, and φ̂φ obey the right-hand cyclic relations:
the integration limits.
θ = φ̂φ,
R̂ × θ̂ θ̂θ × φ̂
φ = R̂, φ̂φ × R̂ = θ̂θ. (3.45)
Exercise 3-6: A circular cylinder of radius r = 5 cm is
concentric with the z axis and extends between z = −3 cm
A vector with components AR , Aθ , and Aφ is written as
and z = 3 cm. Use Eq. (3.44) to find the cylinder’s volume.
Answer: 471.2 cm3 . (See EM
.) A = â|A| = R̂AR + θ̂θAθ + φ̂φAφ , (3.46)
and its magnitude is
√
+
q
3-2.3 Spherical Coordinates |A| = A · A = + A2R + A2θ + A2φ . (3.47)
In the spherical coordinate system, the location of a point The position vector of point P(R1 , θ1 , φ1 ) is simply
in space is uniquely specified by the variables R, θ , and φ −→
(Fig. 3-13). The range coordinate R, which measures the R1 = OP = R̂R1 , (3.48)
142 CHAPTER 3 VECTOR ANALYSIS
Hence, the expressions for the vector differential length dl, the
ˆ
R vector differential surface ds, and the differential volume d υ
φ̂ are
P = (R1, θ1, φ1)
R1 θˆ dl = R̂ dlR + θ̂θ dlθ + φ̂φ dlφ
θ = θ1
conical θ1
surface = R̂ dR + θ̂θR d θ + φ̂φR sin θ d φ , (3.50a)
y dsR = R̂ dlθ dlφ = R̂R2 sin θ d θ d φ (3.50b)
φ1 (θ –φ spherical surface),
dsθ = θ̂θ dlR dlφ = θ̂θR sin θ dR d φ (3.50c)
ˆ
φ
(R–φ conical surface),
x
dsφ = φ̂φ dlR dlθ = φ̂φR dR d θ (R–θ plane), (3.50d)
Figure 3-13 Point P(R1 , θ1 , φ1 ) in spherical coordinates.
d υ = dlR dlθ dlφ = R2 sin θ dR d θ d φ . (3.50e)
z
Example 3-6: Surface Area in Spherical
R sin θ dφ Coordinates
dν = R2 sin θ dR dθ dφ
The spherical strip shown in Fig. 3-15 is a section of a sphere
of radius 3 cm. Find the area of the strip.
dR R dθ
R
z
θ
dθ
y 60 o
30 o
φ
dφ
y
x 3c
m
Figure 3-14 Differential volume in spherical coordinates.
while keeping in mind that R̂ is implicitly dependent on θ1 Figure 3-15 Spherical strip of Example 3-6.
and φ1 .
3-3 TRANSFORMATIONS BETWEEN COORDINATE SYSTEMS 143
Solution: Use of Eq. (3.50b) for the area of an elemental section, we shall establish the relations between the variables
spherical area with constant radius R gives (x, y, z) of the Cartesian system, (r, φ , z) of the cylindrical sys-
Z 60◦ Z 2π
tem, and (R, θ , φ ) of the spherical system. These relations will
then be used to transform expressions for vectors expressed in
S = R2 sin θ d θ dφ
θ =30◦ φ =0 any one of the three systems into expressions applicable in the
60◦ 2π other two.
= 9(− cos θ ) φ (cm2 )
30◦ 0
3-3.1 Cartesian to Cylindrical Transformations
= 18π (cos30◦ − cos60◦) = 20.7 cm2 .
Point P in Fig. 3-16 has Cartesian coordinates (x, y, z) and
cylindrical coordinates (r, φ , z). Both systems share the coor-
dinate z, and the relations between the other two pairs of
Example 3-7: Charge in a Sphere coordinates can be obtained from the geometry in Fig. 3-16.
They are
y
A sphere of radius 2 cm contains a volume charge density ρv
p
r = + x2 + y2 , φ = tan−1 , (3.51)
given by x
ρv = 4 cos2 θ (C/m3 ). and the inverse relations are
Find the total charge Q contained in the sphere. x = r cos φ , y = r sin φ . (3.52)
Solution: Next, with the help of Fig. 3-17, which shows the directions of
the unit vectors x̂, ŷ, r̂, and φ̂φ in the x–y plane, we obtain the
Z
Q= ρv d υ relations:
υ
Z 2π Z π Z 2×10−2
r̂ · x̂ = cos φ , r̂ · ŷ = sin φ , (3.53a)
= (4 cos2 θ )R2 sin θ dR d θ d φ
φ =0 θ =0 R=0 φ · x̂ = − sin φ ,
φ̂ φ̂φ · ŷ = cos φ . (3.53b)
Z 2π Z π 3 2×10−2
R To express r̂ in terms of x̂ and ŷ, we write r̂ as
=4 sin θ cos2 θ d θ d φ
0 0 3 0 r̂ = x̂a + ŷb, (3.54)
π
cos3 θ
Z 2π
32
= × 10−6 − dφ where a and b are unknown transformation coefficients. The
3 0 3 0 dot product r̂ · x̂ gives
64 2π Z
= × 10−6 dφ r̂ · x̂ = x̂ · x̂a + ŷ · x̂b = a. (3.55)
9 0
128π
= × 10−6 = 44.68 (µ C).
9 z
Note that the limits on R were converted to meters prior to
evaluating the integral on R.
P(x, y, z)
3-3 Transformations between Coordinate z
Systems y
3
φ r
2
x = r cos φ
1
and, conversely,
y
Ax = Ar cos φ − Aφ sin φ , (3.59a)
ϕ ϕ̂ Ay = Ar sin φ + Aφ cos φ . (3.59b)
r
yˆ
ϕ rˆ The transformation relations given in this and the following
−ϕˆ two subsections are summarized in Table 3-2.
xˆ
x
Example 3-8: Cartesian to Cylindrical
Figure 3-17 Interrelationships between base vectors (x̂, ŷ) and Transformations
(r̂, φ̂φ).
Given point P1 = (3, −4, 3) and vector A = x̂2 − ŷ3 + ẑ4
defined in Cartesian coordinates, express P1 and A in cylin-
Comparison of Eq. (3.55) with Eq. (3.53a) yields a = cos φ . drical coordinates and evaluate A at P1 .
Similarly, application of the dot product r̂ · ŷ to Eq. (3.54) gives Solution: For point P1 , x = 3, y = −4, and z = 3. Using
b = sin φ . Hence, Eq. (3.51), we have
p y
r = + x2 + y2 = 5, φ = tan−1 = −53.1◦ = 306.9◦,
r̂ = x̂ cos φ + ŷsin φ . (3.56a) x
and z remains unchanged. Hence, P1 = P1 (5, 306.9◦, 3) in
Repetition of the procedure for φ̂φ leads to cylindrical coordinates.
The cylindrical components of vector A = r̂Ar + φ̂φAφ + ẑAz
can be determined by applying Eqs. (3.58a) and (3.58b):
φ = −x̂ sin φ + ŷ cos φ .
φ̂ (3.56b)
Ar = Ax cos φ + Ay sin φ = 2 cos φ − 3 sin φ ,
Aφ = −Ax sin φ + Ay cos φ = −2 sin φ − 3 cos φ ,
The third base vector ẑ is the same in both coordinate systems.
By solving Eqs. (3.56a) and (3.56b) simultaneously for x̂ Az = 4.
and ŷ, we obtain the following inverse relations:
Hence,
A similar procedure can be followed to obtain the expression and following the procedure used with AR , we obtain
for θ̂θ:
Aθ = 0, Aφ = −R sin θ .
1/2
Express vector A = x̂(x + y) + ŷ(y − x) + ẑz in spherical + (r2 sin φ2 − r1 sin φ1 )2 + (z2 − z1 )2
coordinates. 1/2
= r22 +r12 − 2r1 r2 cos(φ2 −φ1 )+(z2 −z1 )2
. (3.67)
Solution: Using the transformation relation for AR given in
(cylindrical)
Table 3-2, we have
AR = Ax sin θ cos φ + Ay sin θ sin φ + Az cos θ
A similar transformation using Eqs. (3.61a) through (3.61c)
= (x + y) sin θ cos φ + (y − x) sin θ sin φ + z cos θ . leads to an expression for d in terms of the spherical coordi-
nates of P1 and P2 :
Using the expressions for x, y, and z given by Eq. (3.61c), we
have
d = R22 + R21 − 2R1R2 [cos θ2 cos θ1
AR = (R sin θ cos φ + R sin θ sin φ ) sin θ cos φ
1/2
+ (R sin θ sin φ −R sin θ cos φ ) sin θ sin φ + R cos2 θ + sin θ1 sin θ2 cos(φ2 − φ1 )] . (3.68)
= R sin2 θ + R cos2 θ = R.
3-4 GRADIENT OF A SCALAR FIELD 147
Example 3-10: Vector Component Concept Question 3-8: Why is it that the base vectors
(x̂, ŷ, ẑ) are independent of the location of a point, but r̂
and φ̂φ are not?
At a given point in space, vectors A and B are given in
cylindrical coordinates by
Concept Question 3-9: What are the cyclic relations
for the base vectors in (a) Cartesian coordinates, (b) cylin-
A = r̂2 + φ̂φ3 − ẑ, drical coordinates, and (c) spherical coordinates?
B = r̂ + ẑ.
Concept Question 3-10: How is the position vector of
Determine (a) the scalar component of B, or projection, in the a point in cylindrical coordinates related to its position
direction of A, (b) the vector component of B in the direction vector in spherical coordinates?
of A, and (c) the vector component of B perpendicular to A.
√
Exercise 3-7: Point P = (2 3, π /3, −2) is given in cylin-
drical coordinates. Express P in spherical coordinates.
B
Answer: P = (4, 2π /3, π /3). (See EM
.)
D
Exercise 3-8: Transform vector
A
C
A = x̂(x + y) + ŷ(y − x) + ẑz
Figure 3-19 Vectors A, B, C, and D of Example 3-10.
from Cartesian to cylindrical coordinates.
φr + ẑz. (See
Answer: A = r̂r − φ̂ EM
.)
Solution: (a) Let us denote the scalar component of B in the
direction of A as C, as shown in Fig. 3-19. Thus,
C = B · â = B ·
A (r̂2 + φ̂φ3 − ẑ) 2 − 1
= (r̂ + ẑ) · √ = √ = 0.267.
3-4 Gradient of a Scalar Field
|A| 4+9+1 14
When dealing with a scalar physical quantity whose magnitude
(b) The vector component of B in the direction of A is given depends on a single variable, such as the temperature T as
by the product of the scalar component C and the unit vector â: a function of height z, the rate of change of T with height
can be described by the derivative dT/dz. However, if T is
A (r̂2 + φ̂φ3 − ẑ) also a function of x and y, its spatial rate of change becomes
C = âC = C= √ × 0.267 more difficult to describe because we now have to deal with
|A| 14
three separate variables. The differential change in T along x,
= r̂0.143 + φ̂φ0.214 − ẑ0.071. y, and z can be described in terms of the partial derivatives
of T with respect to the three coordinate variables, but it is
(c) The vector component of B perpendicular to A is equal not immediately obvious as to how we should combine the
to B minus C: three partial derivatives so as to describe the spatial rate of
change of T along a specified direction. Furthermore, many
D = B − C = (r̂ + ẑ) − (r̂0.143 + φ̂φ0.214 − ẑ0.071) of the quantities we deal with in electromagnetics are vectors;
therefore, both their magnitudes and directions may vary with
= r̂0.857 − φ̂φ0.214 + ẑ0.929. spatial position. To this end, we introduce three fundamental
operators to describe the differential spatial variations of
scalars and vectors: the gradient, divergence, and curl oper-
Concept Question 3-7: Why do we use more than one ators. The gradient operator applies to scalar fields and is the
coordinate system? subject of the present section. The other two operators, which
apply to vector fields, are discussed in succeeding sections.
148 CHAPTER 3 VECTOR ANALYSIS
∂T ∂T ∂T
dT = x̂ · dl + ŷ · dl + ẑ · dl
∂x ∂y ∂z
∂T ∂T ∂T
Example 3-11: Directional Derivative
= x̂ + ŷ + ẑ · dl. (3.71)
∂x ∂y ∂z
Find the directional derivative of T = x2 + y2 z along direction
The vector inside the square brackets in Eq. (3.71) relates the x̂2 + ŷ3 − ẑ2 and evaluate it at (1, −1, 2).
change in temperature dT to a vector change in direction dl.
This vector is called the gradient of T (or grad T for short) Solution: First, we find the gradient of T :
and denoted ∇T :
∂ ∂ ∂
∇T = x̂ + ŷ + ẑ (x2 + y2 z) = x̂2x + ŷ2yz + ẑy2 .
∂x ∂y ∂z
∂T ∂T ∂T
∇T = grad T = x̂ + ŷ + ẑ . (3.72)
∂x ∂y ∂z We denote l as the given direction,
Its unit vector is Hence, the gradient operator in cylindrical coordinates can be
expressed as
l x̂2 + ŷ3 − ẑ2 x̂2 + ŷ3 − ẑ2
âl = =√ = √ .
|l| 2
2 +3 +22 2 17
∂ 1 ∂ ∂
Application of Eq. (3.75) gives ∇ = r̂ + φ̂φ + ẑ , (cylindrical)
∂r r ∂φ ∂z
dT 2 x̂2 + ŷ3 − ẑ2
= ∇T · âl = (x̂2x + ŷ2yz + ẑy ) · √ (3.82)
dl 17
4x + 6yz − 2y2 A similar procedure leads to the expression for the gradient in
= √ . spherical coordinates:
17
At (1, −1, 2), ∂ 1 ∂ 1 ∂
∇ = R̂ + θ̂θ + φ̂φ . (3.83)
∂R R ∂θ R sin θ ∂ φ
dT 4 − 12 − 2 −10
= √ =√ . (spherical)
dl (1,−1,2) 17 17
3-4.1 Gradient Operator in Cylindrical and 3-4.2 Properties of the Gradient Operator
Spherical Coordinates
For any two scalar functions U and V , the following relations
Even though Eq. (3.73) was derived using Cartesian coordi- apply:
nates, it should have counterparts in other coordinate systems.
To convert Eq. (3.72) into cylindrical coordinates (r, φ , z), we (1) ∇(U + V ) = ∇U + ∇V , (3.84a)
start by restating the coordinate relations (2) ∇(UV ) = U ∇V + V ∇U, (3.84b)
p y (3) ∇V n = nV n−1 ∇V , for any n. (3.84c)
r = x2 + y2 , tan φ = . (3.77)
x
From differential calculus,
∂T ∂T ∂r ∂T ∂φ ∂T ∂z Example 3-12: Calculating the Gradient
= + + . (3.78)
∂x ∂r ∂x ∂φ ∂x ∂z ∂x
Find the gradient of each of the following scalar functions and
Since z is orthogonal to x and ∂ z/∂ x = 0, the last term in then evaluate it at the given point.
Eq. (3.78) vanishes. From the coordinate relations given by
Eq. (3.77), it follows that (a) V1 = 24V0 cos (π y/3)sin (2π z/3) at (3, 2, 1) in Cartesian
coordinates,
∂r x (b) V2 = V0 e−2r sin 3φ at (1, π /2, 3) in cylindrical coordi-
=p = cos φ , (3.79a) nates,
∂x x + y2
2
(c) V3 = V0 (a/R)cos 2θ at (2a, 0, π ) in spherical coordinates.
∂φ 1
= − sin φ . (3.79b) Solution: (a) Using Eq. (3.72) for ∇,
∂x r
Hence, ∂ V1 ∂ V1 ∂ V1
∇V1 = x̂ + ŷ + ẑ
∂T ∂ T sin φ ∂ T ∂x ∂y ∂z
= cos φ − . (3.80)
∂x ∂r r ∂φ πy 2π z πy 2π z
= −ŷ8π V0 sin sin + ẑ16π V0 cos cos
This expression can be used to replace the coefficient of x̂ in 3 3 3 3
Eq. (3.72), and a similar procedure can be followed to obtain
πy 2π z πy 2π z
an expression for ∂ T /∂ y in terms of r and φ . If, in addition, we = 8π V0 −ŷ sin sin + ẑ2 cos cos .
3 3 3 3
use the relations x̂ = r̂ cos φ − φ̂φ sin φ and ŷ = r̂ sin φ + φ̂φ cos φ
[from Eqs. (3.57a) and (3.57b)], then Eq. (3.72) becomes At (3, 2, 1),
2π 2π
∂T 1 ∂T ∂T
∇T = r̂ + φ̂φ + ẑ . (3.81) ∇V1 = 8π V0 −ŷ sin2 + ẑ2 cos2 = π V0 [−ŷ6 + ẑ4] .
∂r r ∂φ ∂z 3 3
150 CHAPTER 3 VECTOR ANALYSIS
Module 3.2 Gradient Select a scalar function f (x, y, z), evaluate its gradient, and display both in an appropriate 2-D plane.
(b) The function V2 is expressed in terms of cylindrical At (2a, 0, π ), R = 2a and θ = 0, which yields
variables. Hence, we need to use Eq. (3.82) for ∇:
V0
∂ 1 ∂ ∂ ∇V3 = −R̂
∇V2 = r̂ + φ̂φ + ẑ V0 e−2r sin 3φ 4a
.
∂r r ∂φ ∂z
= −r̂2V0 e−2r sin 3φ + φ̂φ(3V0 e−2r cos 3φ )/r
3 cos 3φ
= −r̂2 sin 3φ + φ̂φ V0 e−2r .
r
Exercise 3-9: Given V = x2 y + xy2 + xz2 , (a) find the
At (1, π /2, 3), r = 1 and φ = π /2. Hence, gradient of V , and (b) evaluate it at (1, −1, 2).
3π 3π Answer: (a) ∇V = x̂(2xy + y2 + z2 ) + ŷ(x2 + 2xy)
∇V2 = −r̂2 sin + φ̂φ3 cos V0 e−2 = r̂2V0 e−2 = r̂0.27V0.
2 2 + ẑ2xz, (b) ∇V (1,−1,2) = x̂3 − ŷ + ẑ4. (See EM .)
(c) As V3 is expressed in spherical coordinates, we apply
Eq. (3.83) to V3 :
∂ 1 ∂ 1 ∂ a
∇V3 = R̂ + θ̂θ + φ̂φ V0 cos 2θ
∂R R ∂θ R sin θ ∂ φ R Exercise 3-10: Find the directional derivative of
V = rz2 cos 2φ along the direction of A = r̂2 − ẑ and
V0 a 2V0 a
= −R̂ cos 2θ − θ̂θ 2 sin 2θ evaluate it at (1, π /2, 2).
R2 R √
V0 a Answer: (dV/dl) (1,π /2,2) = −4/ 5 . (See EM .)
= −[R̂ cos 2θ + θ̂θ2 sin 2θ ] 2 .
R
3-4 GRADIENT OF A SCALAR FIELD 151
Technology Brief 5:
Global Positioning System
The Global Positioning System (GPS), initially devel-
oped in the 1980s by the U.S. Department of Defense
as a navigation tool for military use, has evolved into
a system with numerous civilian applications, including
vehicle tracking, aircraft navigation, map displays in au-
tomobiles and hand-held cell phones (Fig. TF5-1), and
topographic mapping. The overall GPS comprises three
segments. The space segment consists of 24 satellites
(Fig. TF5-2), each circling Earth every 12 hours at an
orbital altitude of about 12,000 miles and transmitting
continuous coded time signals. All satellite transmitters
broadcast coded messages at two specific frequencies:
1.57542 GHz and 1.22760 GHz. The user segment
consists of hand-held or vehicle-mounted receivers that
determine their own locations by receiving and process-
ing multiple satellite signals. The third segment is a
network of five ground stations distributed around the
world that monitor the satellites and provide them with
updates on their precise orbital information.
Principle of Operation
The triangulation technique allows the determination
of the location (x0 , y0 , z0 ) of any object in 3-D space
from knowledge of the distances d1 , d2 , and d3 between
that object and three other independent points in space
of known locations (x1 , y1 , z1 ) to (x3 , y3 , z3 ). In GPS, the
distances are established by measuring the times it
takes the signals to travel from the satellites to the GPS
receivers, and then multiplying them by the speed of
light c = 3 × 108 m/s. Time synchronization is achieved
by using atomic clocks. The satellites use very precise
clocks, accurate to 3 nanoseconds (3 × 10−9 s), but
receivers use less accurate, inexpensive, ordinary quartz
clocks. Consequently, the receiver clock may have an Figure TF5-2 GPS nominal satellite constellation. Four
satellites in each plane with 20,200 km altitudes and a 55◦
unknown time offset error t0 relative to the satellite
inclination.
clocks. To correct for the time error of a GPS receiver,
a signal from a fourth satellite is needed.
152 CHAPTER 3 VECTOR ANALYSIS
Exercise 3-11: The power density radiated by a star where x is measured in kilometers and x = 0 is the sea–
(Fig. E3.11(a)) decreases radially as S(R) = S0 /R2 , where land boundary. (a) In which direction does ∇T point and
R is the radial distance from the star and S0 is a constant. (b) at what value of x is it a maximum?
Recalling that the gradient of a scalar function denotes the
maximum rate of change of that function per unit distance T
and the direction of the gradient is along the direction of
T2
maximum increase, generate an arrow representation of
∇S.
T1
S x
Sea Land
(a)
∆
T
(a)
x
Sea Land
(b)
∆ Figure E3.12
S
T2 − T1
(b) T (x) = T1 + ,
e−x + 1
∂T e−x (T2 − T1 )
∇T = x̂ = x̂ .
∂x (e−x + 1)2
(See EM
.)
Figure E3.11