You are on page 1of 7

Review of Coordinate Systems

A good understanding of coordinate systems can be very helpful in solving problems


related to Maxwell’s Equations. The three most common coordinate systems are
rectangular (x, y, z), cylindrical (r,  , z), and spherical ( r ,  ,  ).

Unit vectors in rectangular, cylindrical, and spherical coordinates

In rectangular coordinates a point P is specified by x,


y, and z, where these values are all measured from the
origin (see figure at right). A vector at the point P is
specified in terms of three mutually perpendicular
components with unit vectors ˆi, ˆj, and k ˆ (also called
ˆx, ˆy, and ˆz ). The unit vectors ˆi, ˆj, and k
ˆ form a right-
handed set; that is, if you push ˆi into ˆj with your right
hand, your right thumb will point along k̂ direction.

In cylindrical coordinates a point P is specified by


r,  , z, where  is measured from the x axis (or x-z
plane) (see figure at right). A vector at the point P
is specified in terms of three mutually perpendicular
components with unit vectors r̂ perpendicular to
the cylinder of radius r, φ̂ perpendicular to the
plane through the z axis at angle  , and ẑ
perpendicular to the x-y plane at distance z. The
unit vectors r̂ , φ̂ , ẑ form a right-handed set.
In spherical coordinates a point P is specified by
r ,  ,  , where r is measured from the origin,  is
measured from the z axis, and  is measured from
the x axis (or x-z plane) (see figure at right). With
z axis up,  is sometimes called the zenith angle
and  the azimuth angle. A vector at the point P
is specified in terms of three mutually
perpendicular components with unit vectors r̂
perpendicular to the sphere of radius r, θ̂
perpendicular to the cone of angle  , and φ̂
perpendicular to the plane through the z axis at
angle  . The unit vectors rˆ , θˆ , φˆ form a right-
handed set.

Infinitesimal lengths and volumes

An infinitesimal length in the rectangular system is given by

dL = d x2 + d y2 + d z2 (1)

and an infinitesimal volume by

dv = dx dy dz (2)

In the cylindrical system the corresponding quantities are

dL = d r 2 + r 2 d 2 + d z 2 (3)

and d v = d r r d d z (4)

In the spherical system we have

dL = d r 2 + r 2 d 2 + r 2 sin 2  d 2 (5)

and d v = dr r d r sin  d (6)


Direction cosines and coordinate-system transformation

As shown in the figure on the right, the


projection x of the scalar distance r on the x axis
is given by r cos  where  is the angle
between r and the x axis. The projection of r on
the y axis is given by r cos  , and the
projection on the z axis by r cos  . Note that
 =  so cos  = cos  .

The quantities cos  , cos  , and cos  are


called the direction cosines. From the theorem
of Pythagoras,

cos 2  + cos 2  + cos 2  = 1 (7)

The scalar distance r of a spherical coordinate


system transforms into rectangular coordinate
distance

x = r cos  = r sin  cos  (8)


y = r cos  = r sin  sin  (9)
z = r cos  = r cos  (10)
from which
cos  = sin  cos  (11)
cos  = sin  sin  direction cosines (12)
cos  = cos  (13)

As the converse of (8), (9), and (10), the spherical coordinate values ( r ,  ,  ) may be
expressed in terms of rectangular coordinate distances as follows:

r = x2 + y2 + z2 r0 (14)

z
 = cos −1 (0     ) (15)
x +y +z
2 2 2

y
 = tan −1 (16)
x

From these and similar coordinate transformations of spherical to rectangular and


rectangular to spherical coordinates, we may express a vector A at some point P with
spherical components Ar , A , A as the rectangular components Ax , Ay , and Az , where
Ax = Ar sin  cos  + A cos  cos  − A sin  (17)
Ay = Ar sin  sin  + A cos  sin  + A cos  (18)
Az = Ar cos  − A sin  (19)

Note that the direction cosines are simply the dot products of the spherical unit vector r̂
with the rectangular unit vectors ˆx, ˆy, and ˆz :

rˆ  xˆ = sin  cos  = cos α (20)


rˆ  yˆ = sin  sin  = cos β (21)
rˆ  zˆ = cos  = cos Υ (22)

These and other dot product combinations are listed in the following table:

Rectangular Cylindrical Spherical

x̂ ŷ ẑ r̂ φ̂ ẑ r̂ θ̂ φ̂
x̂ 1 0 0 cos  − sin  0 sin  cos  cos  cos  − sin 
Rectangular

ŷ 0 1 0 sin  cos  0 sin  sin  cos  sin  cos 


ẑ 0 0 1 0 0 1 cos  − sin  0

r̂ cos  sin  0 1 0 0 sin  cos  0


Cylindrical

φ̂ − sin  cos  0 0 1 0 0 0 1

ẑ 0 0 1 0 0 1 cos  − sin  0

r̂ sin  cos  sin  sin  cos  sin  0 cos  1 0 0


Spherical

θ̂ cos  cos  cos  sin  − sin  cos  0 − sin  0 1 0

φ̂ − sin  cos  0 0 1 0 0 0 1

Note that the unit vectors r̂ in the cylindrical and spherical systems are not the same.
For example,

Spherical Cylindrical
rˆ  xˆ = sin  cos  rˆ  xˆ = cos 
rˆ  yˆ = sin  sin  rˆ  yˆ = sin 
rˆ  zˆ = cos  rˆ  zˆ = 0
In addition to rectangular, cylindrical, and spherical coordinate systems, there are many
other systems such as the elliptical, spheroidal (both prolate and oblate), and paraboloidal
systems. Although the number of possible systems is infinite, all of them can be treated
in terms of a generalized curvilinear coordinate system.

The fundamental parameters of the rectangular, cylindrical, and spherical coordinate


systems are summarized in the following table:

Coordinate Unit Length Coordinate


Coordinates Range
system vectors elements surfaces
x −  to +  ˆx or ˆi dx Plane x=constant
Rectangular
y −  to +  ˆy or ˆj dy Plane y=constant
z −  to +  ˆz or k ˆ dz Plane z=constant

r 0 to  r̂ dr Cylinder r=constant
Cylindrical  0 to 2 φ̂ r d Plane  =constant
z −  to +  ẑ dz Plane z=constant

r 0 to  r̂ dr Sphere r=constant
Spherical  0 to  θ̂ r dθ Cone θ=constant
 0 to 2 φ̂ r sin  d Plane  =constant

The following two tables give the unit vector dot products in rectangular coordinates for
both rectangular-cylindrical and rectangular-spherical coordinates.

x̂ ŷ ẑ
x y
r̂ 0
x2 + y2 x2 + y2
−y x
φ̂ 0
x2 + y2 x2 + y2

ẑ 0 0 1

Rectangular-cylindrical product in rectangular coordinates

x
Example: φˆ  yˆ = cos  =
x2 + y2
· x̂ ŷ ẑ
r̂ x y z
x2 + y2 + z 2 x2 + y2 + z 2 x2 + y2 + z 2
θ̂ xz yz x2 + y 2

x2 + y 2 x2 + y 2 + z 2 x2 + y 2 x2 + y 2 + z 2 x2 + y2 + z 2
φ̂ y x
− 0
x +y
2 2
x + y2
2

Rectangular-spherical product in rectangular coordinates

x
Example: xˆ  rˆ = sin  cos  =
x + y2 + z2
2

Here are the transformations of vector components between coordinate systems:

Rectangular to cylindrical Cylindrical to rectangular

y x
A = − Ax + Ay Ay = Ar sin φ + Aφ cos φ
x +y
2 2
x + y2
2

Az = Az Az = Az

Rectangular to spherical
x y z
Ar = Ax + Ay + Az
x + y2 + z2
2
x +y +z
2 2 2
x + y2 + z2
2

xz yz x2 + y 2
A = Ax + Ay − Az
x2 + y 2 x2 + y 2 + z 2 x2 + y 2 x2 + y 2 + z 2 x2 + y 2 + z 2
y x
A = − Ax + Ay
x2 + y 2 x2 + y 2

Spherical to rectangular

Ax = Ar sin cos + A cos cos  − A sin 


Ay = Ar sin  sin  + A cos sin  + A cos 
Az = Ar cos − A sin
And here are expressions for the gradient, divergence, and curl in all three coordinate
systems:

Rectangular coordinates

f f f
f = xˆ + yˆ + zˆ
x y z
A Ay Az
•A = x + +
x y z
xˆ yˆ zˆ
 Az Ay   Ax Az   Ay Ax    
  A = xˆ  −  + yˆ  −  + zˆ  −  =
 y z   z x   x y  x y z
Ax Ay Az

Cylindrical coordinates

f 1 f f
f = rˆ + φˆ + zˆ
r r  z
1  1 A Az
•A = rAr + +
r r r  z
1 1
rˆ φˆ zˆ
r r
 1 Az A   Ar Az  1  Ar    
  A = rˆ  −  + φˆ  −  + zˆ  rA − =
 r  z   z r  r  r   r  z
Ar rA Az

Spherical coordinates

f ˆ 1 f 1 f
f = rˆ +θ + φˆ
r r  r sin  
1  1  1 A
 • A = 2 r 2 Ar + ( A sin  ) +
r r r sin   r sin  
1   A  1  1 Ar   1  A 
  A = rˆ  ( A sin  ) −   + θˆ  − rA  + φˆ  rA − r 
r sin      r  sin   r  r  r  

You might also like