This appendix closely follows the development of the materials given in [], which is a standard development used in many textbooks. The three coordinate systems, (a) rectangular, (b) cylindrical, and (c) spherical, are shown in Figure 1A.1.
1A.1.1Rectangular to Cylindrical (and Cylindrical to Rectangular) Transformation
Referring to Figure 1A.1b, the coordinate transformation from rectangular (x, y, z) to cylindrical (ρ, ϕ, z) coordinates is given by
(1A.1)x=ρcosϕ,y=ρsinϕ,z=z.x=ρcosϕ,y=ρsinϕ,z=z.
In rectangular coordinates, a vector A is written as
(1A.2)A=ˆxAx+ˆyAy+ˆzAz,A=xˆAx+yˆAy+zˆAz,
where ˆx,ˆy,andˆzxˆ,yˆ,andzˆ are the unit vectors and Ax, Ay, and Az are the components of the vector A in the rectangular coordinate system. We can also write A as
(1A.3)A=ˆρAρ+ˆφAϕ+ˆzAz,A=ρˆAρ+φˆAϕ+zˆAz,
where ˆρ,ˆφ,andˆzρˆ,φˆ,andzˆ are the unit vectors and Aρ, Aϕ, and Az are the vector components in the cylindrical coordinate system. It can be shown that
(1A.4)ˆx=ˆρcosϕ−ˆφsinϕ,ˆy=ˆρsinϕ+ˆφcosϕ,ˆz=ˆz,xˆ=ρˆcosϕ−φˆsinϕ,yˆ=ρˆsinϕ+φˆcosϕ,zˆ=zˆ,
and therefore,
(1A.5)A=(ˆρcosϕ−ˆφsinϕ)Ax+(ˆρsinϕ−ˆφcosϕ)Ay+ˆzAz,A=ˆρ(Axcosϕ+Aysinϕ)−ˆφ(Axsinϕ+Aycosϕ)+ˆzAz,A=(ρˆcosϕ−φˆsinϕ)Ax+(ρˆsinϕ−φˆcosϕ)Ay+zˆAz,A=ρˆ(Axcosϕ+Aysinϕ)−φˆ(Axsinϕ+Aycosϕ)+zˆAz,
thus
(1A.6)Aρ=Axcosϕ+Aysinϕ,Aϕ=−Axsinϕ+Aycosϕ,Az=Az.Aρ=Axcosϕ+Aysinϕ,Aϕ=−Axsinϕ+Aycosϕ,Az=Az.
This can be expressed in the matrix form as
(1A.7)[AρAϕAz]=[cosϕsinϕ0−sinϕcosϕ0001][AxAyAz]=[A]rc[AxAyAz],⎡⎣⎢AρAϕAz⎤⎦⎥=⎡⎣⎢cosϕ−sinϕ0sinϕcosϕ0001⎤⎦⎥⎡⎣⎢AxAyAz⎤⎦⎥=[A]rc⎡⎣⎢AxAyAz⎤⎦⎥,
where
(1A.8)[A]rc=[cosϕsinϕ0−sinϕcosϕ0001][A]rc=⎡⎣⎢cosϕ−sinϕ0sinϕcosϕ0001⎤⎦⎥
is the transformation matrix for rectangular to cylindrical components. Since [A]rc is an orthonormal matrix (its inverse is equal to its transpose), the transformation matrix from cylindrical to rectangular components can be written as
(1A.9)[A]cr=[A]−1rc=[A]Trc=[cosϕ−sinϕ0sinϕcosϕ0001],[A]cr=[A]−1rc=[A]Trc=⎡⎣⎢cosϕsinϕ0−sinϕcosϕ0001⎤⎦⎥,
(1A.10)[AxAyAz]=[cosϕ−sinϕ0sinϕcosϕ0001][AρAϕAz],⎡⎣⎢AxAyAz⎤⎦⎥=⎡⎣⎢cosϕsinϕ0−sinϕcosϕ0001⎤⎦⎥⎡⎣⎢AρAϕAz⎤⎦⎥,
(1A.11)Ax=Aρcosϕ−Aϕsinϕ,Ay=Aρsinϕ+Aϕcosϕ,Az=Az.Ax=Aρcosϕ−Aϕsinϕ,Ay=Aρsinϕ+Aϕcosϕ,Az=Az.
1A.1.2Cylindrical to Spherical (and Spherical to Cylindrical) Transformation
From Figure 1A.1c, it can be seen that the cylindrical and spherical coordinates are related by
(1A.12)ρ=rsinθ,z=rcosθ.ρ=rsinθ,z=rcosθ.
In a manner similar to the previous section, it can be shown that
(1A.13)Ar=Aρsinθ+Azcosθ,Aθ=Aρcosθ−Azsinθ,Ar=Aρsinθ+Azcosθ,Aθ=Aρcosθ−Azsinθ,
therefore
or in matrix notation
(1A.14)[ArAθAϕ]=[sinθ0cosθcosθ0−sinθ010][AρAϕAz],⎡⎣⎢ArAθAϕ⎤⎦⎥=⎡⎣⎢sinθcosθ0001cosθ−sinθ0⎤⎦⎥⎡⎣⎢AρAϕAz⎤⎦⎥,
(1A.15)[A]cs=[sinθ0cosθcosθ0−sinθ010].[A]cs=⎡⎣⎢sinθcosθ0001cosθ−sinθ0⎤⎦⎥.
The [A]cs matrix is orthonormal and so its inverse is given by
(1A.16)[A]sc=[A]−1cs=[A]Tcs=[sinθcosθ0001cosθ−sinθ0][A]sc=[A]−1cs=[A]Tcs=⎡⎣⎢sinθ0cosθcosθ0−sinθ010⎤⎦⎥
and the spherical to cylindrical transformation is accomplished by
(1A.17)[AρAϕAz]=[sinθcosθ0001cosθ−sinθ0][ArAθAϕ],⎡⎣⎢AρAϕAz⎤⎦⎥=⎡⎣⎢sinθ0cosθcosθ0−sinθ010⎤⎦⎥⎡⎣⎢ArAθAϕ⎤⎦⎥,
(1A.18)Aρ=Arsinθ+Aθcosθ,Aϕ=Aϕ,Az=Arcosθ−Aθsinθ.Aρ=Arsinθ+Aθcosθ,Aϕ=Aϕ,Az=Arcosθ−Aθsinθ.
1A.1.3Rectangular to Spherical (and Spherical to Rectangular) Transformation
From Figure 1A.1c, it can be seen that the rectangular and spherical coordinates are related by
(1A.19)x=rsinθcosϕ,x=rsinθcosϕ,
or
and the spherical and rectangular components by
(1A.20)Ar=Axsinθcosϕ+Aysinθsinϕ+Azcosθ,Aθ=Axcosθcosϕ+Aycosθsinϕ−Azsinθ,Aϕ=−Axsinϕ+Aycosϕ.Ar=Axsinθcosϕ+Aysinθsinϕ+Azcosθ,Aθ=Axcosθcosϕ+Aycosθsinϕ−Azsinθ,Aϕ=−Axsinϕ+Aycosϕ.
In the matrix form,
(1A.21)[ArAθAϕ]=[sinθcosϕsinθsinϕcosθcosθcosϕcosθsinϕ−sinθ−sinϕcosϕ0][AxAyAz],⎡⎣⎢ArAθAϕ⎤⎦⎥=⎡⎣⎢sinθcosϕcosθcosϕ−sinϕsinθsinϕcosθsinϕcosϕcosθ−sinθ0⎤⎦⎥⎡⎣⎢AxAyAz⎤⎦⎥,
(1A.22)[A]rs=[sinθcosϕsinθsinϕcosθcosθcosϕcosθsinϕ−sinθ−sinϕcosϕ0].[A]rs=⎡⎣⎢sinθcosϕcosθcosϕ−sinϕsinθsinϕcosθsinϕcosϕcosθ−sinθ0⎤⎦⎥.
The [A]rs matrix is orthonormal and so its inverse is given by
(1A.23)[A]sr=[A]−1rs=[A]Trs=[sinθcosϕcosθcosϕ−sinϕsinθsinϕcosθsinϕcosϕcosθ−sinθ0][A]sr=[A]−1rs=[A]Trs=⎡⎣⎢sinθcosϕsinθsinϕcosθcosθcosϕcosθsinϕ−sinθ−sinϕcosϕ0⎤⎦⎥
and the spherical to rectangular transformation is accomplished by
(1A.24)[AxAyAz]=[sinθcosϕcosθcosϕ−sinϕsinθsinϕcosθsinϕcosϕcosθ−sinθ0][ArAθAϕ],⎡⎣⎢AxAyAz⎤⎦⎥=⎡⎣⎢sinθcosϕsinθsinϕcosθcosθcosϕcosθsinϕ−sinθ−sinϕcosϕ0⎤⎦⎥⎡⎣⎢ArAθAϕ⎤⎦⎥,
(1A.25)Ax=Arsinθcosϕ+Aθcosθcosϕ−Aϕsinϕ,Ay=Arsinθsinϕ+Aθcosθsinϕ+Aϕcosϕ,Az=Arcosθ−Aθsinθ.Ax=Arsinθcosϕ+Aθcosθcosϕ−Aϕsinϕ,Ay=Arsinθsinϕ+Aθcosθsinϕ+Aϕcosϕ,Az=Arcosθ−Aθsinθ.