Coordinate Systems: Chapter-5
Coordinate Systems: Chapter-5
Coordinate Systems: Chapter-5
Chapter-5
Coordinate systems
Cartesian coordinates:
Cartesian variables x, y, z
A xA
ˆ x yA
ˆ y zA
ˆ z
Vector representation,
A Ax 2 Ay 2 Az 2
Magnitude of A is ,
xˆ yˆ zˆ
A B Ax Ay Az xˆ Ay Bz Az B y yˆ Ax Bz Az Bx zˆ Ax B y Ay Bx
Bx By Bz
Cross product
Differential length, d ⃗l =^x dx+ ^y dy + z^ dz
Differential surface area, d ⃗s x = x^ dy dz , d ⃗s y = ^y dz dx , d ⃗s z= z^ dx dy
Differential volume, dV =dx dy dz
Page 1 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
Cylindrical coordinates:
Figure: Differential length, area, and Figure: Point P ( r 1 , ϕ1 , z 1 ) in cylindrical coordinates; r 1is
volume in cylindrical coordinates. the radial distance from the origin in the xyplane, ϕ 1is the
angle in xy plane measured from the x axis toward the y
axis, and z 1 is the vertical distance from the xy plane.
Cylindrical variables r , , z
A rA ˆ r ˆ A zA
ˆ z
Vector representation,
A Ar 2 A 2 Az 2
Magnitude of A is ,
ˆ ˆ ˆ ˆ
Base vector properties: rˆ rˆ zˆ zˆ 1 and rˆ zˆ zˆ rˆ 0
r^ × ϕ^ =^z , ϕ^ × ^z =^r , ^z × r^ =^ϕ
A B Ar Br A B Az Bz
Dot product
Cross product
r^ ϕ^ z^
|
Á × B́= A r
Br |
A ϕ A z = r^ ( A ϕ Bz − A z Bϕ )− ϕ^ ( A r Bz − A z Br ) + ^z ( A r B ϕ− A ϕ Br )
Bϕ B z
Page 2 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
Spherical coordinates:
Spherical variables R, ,
ˆ ˆ A ˆ A
A RA
Vector representation, r
A AR 2 A 2 A 2
Magnitude of A is ,
R R1 for P ( R1 , 1 , 1 )
OP= ^
Position vector, ⃗
ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ
Base vector properties: R R 1 and R R 0
Rˆ ˆ ˆ, ˆ ˆ Rˆ , ˆ Rˆ ˆ
A B AR BR A B A B
Dot product
Cross product
Rˆ ˆ ˆ
A B AR A A Rˆ A B A B ˆ AR B A BR ˆ AR B A BR
BR B B
Page 3 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
ˆ
That is, rˆ xˆ cos yˆ sin , xˆ sin yˆ cos and zˆ = z.
ˆ
Page 4 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
√ x 2+ y 2
R=√ x 2 + y 2 + z 2 , θ=arctan ( z ) , ϕ=arctan ( yx ); 0 r , 0 2 , z
AR Aθ Aϕ
^
R θ^ ϕ^
Ax x^ sin θ cos ϕ cos θ cos ϕ −sin ϕ
Ay ^y sin θ sin ϕ cos θ sin ϕ cos ϕ
Az ^z cos θ −sin θ 0
Page 5 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
That is,
xˆ Rˆ sin cos ˆ cos cos ˆ sin , yˆ Rˆ sin sin ˆ cos sin ˆ cos
and zˆ Rˆ cos ˆ sin .
Page 6 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
z=z=3
Page 7 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
y 0
ϕ=tan−1 =tan−1 =0
x 1
π
So, the spherical point ( R , θ , ϕ )= 2 , ( 6
,0 )
π
Example 4: Transform 2 , ( 6 )
,0 from spherical coordinate to Cartesian coordinate.
π
Solution: x=R sin θ cos ϕ=2 sin cos 0=1
6
π
y=R sin θ sin ϕ=2 sin sin 0=0
6
π
z=R cos θ=2 cos = √ 3
6
So, the Cartesian point ( x , y , z )=( 1,0 , √3 )
π
Example 5: Transform 2 , ( 6 )
,0 from spherical coordinate to cylindrical coordinate.
π
Solution: r =R sinθ=2 sin =1
6
π
z=R cos θ=2 cos = √ 3
6
ϕ=ϕ=0
So, the cylindrical pint ( r , z , ϕ ) =( 1 , √ 3 , 0 )
Example 6: Transform ( 1 , √3 , 0 ) from cylindrical coordinate to spherical coordinate.
2
Solution: R=√ r 2+ z 2= 12 + ( √ 3 ) =2
√
θ=tan −1 ( rz )=ta n ( √13 )= π6
−1
ϕ=ϕ=0
π
So, the spherical point ( R , θ , ϕ )= 2 , ( 6
,0 )
A=^x ( x + y ) + ^y ( y −x )+ z^ zin spherical coordinate.
Example 7: Express vector ⃗
Solution: We know in spherical coordinate
Page 8 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
R A R + θ^ A θ+ ϕ^ A ϕ
A= ^
⃗
A R= A x sinθ cos ϕ+ A y sin θ sin ϕ+ A z cos θ
¿ ( x+ y ) sin θ cos ϕ+( y −x)sin θ sin ϕ+ z cos θ
¿ ( R sin θ cos ϕ+ R sin θ sin ϕ ) sin θ cos ϕ+ ( R sin θ sin ϕ−R sin θ cos ϕ ) sin θ sin ϕ+ R cos θ cos θ
¿ R sin2 θ cos2 ϕ+ R sin2 θ sin ϕ cos ϕ+ R sin2 θ sin 2 ϕ−R sin2 θ sin ϕ cos ϕ+ R cos 2 θ
¿ R sin 2 θ ( cos2 ϕ+sin 2 ϕ ) + R cos 2 θ
¿ R sin 2 θ + R cos2 θ=R
Aθ =A x cos θ cos ϕ+ A y cos θ sin ϕ− A z sin θ
¿( x + y )cos θ cos ϕ+( y−x )cos θ sin ϕ−z sinθ
¿ ( R sin θ cos ϕ+ R sin θ sin ϕ ) cos θ cos ϕ+ ( R sinθ sin ϕ−R sin θ cos ϕ ) cos θ sin ϕ−R sin θ cos θ
¿ R sin θ cos θ cos2 ϕ+ R sin θ cos θ sin ϕ cos ϕ+ R sin θ cos θ sin 2 ϕ−R sin θ cos θ sin ϕ cos ϕ−R sin θ cos θ
¿ R sin θ cos θ(sin 2 ϕ+ cos2 ϕ ¿ )−R sin θ cos θ ¿
¿0
Aϕ =− A x sin ϕ+ A y cos ϕ
¿−( x+ y ) sin ϕ+( y−x )cos ϕ
¿−( R sinθ cos ϕ+ R sin θ sin ϕ ) sin ϕ+ ( R sin θ sin ϕ−R sin θ cos ϕ ) cos ϕ
¿−R sinθ sin ϕ cos ϕ−R sin θ sin2 ϕ+ R sin θ sin ϕ cos ϕ−R sin θ cos2 ϕ
¿−R sinθ (sin2 ϕ ¿ +cos 2 ϕ)=−R sin θ¿
∴⃗ ^ R−ϕ^ R sinθ
A=R
A= ^
Example 8: Express vector ⃗ R R−ϕ^ R sin θ in Cartesian form.
A=^x A x + ^y A y + z^ A z
Solution: We know in Cartesian coordinate ⃗
A x = A R sinθ cos ϕ+ Aθ cos θ cos ϕ – A ϕ sin ϕ
¿ R sin θ cos ϕ+0. cos θ cos ϕ+ R sin θ sin ϕ
¿ x+ y
A y =A R sin θ sin ϕ+ A θ cos θ sin ϕ+ A ϕ cos ϕ
¿ R sin θ sin ϕ+0. cos θ sin ϕ – R sin θ cos ϕ
¿ y−x
A z= A R cos θ−A θ sin θ
¿ R cos θ−0. sinθ
¿z
∴⃗
A = x^ ( x+ y ) + ^y ( y−x ) + ^z z
A=^x ( x + y ) + ^y ( y −x )+ z^ z to cylindrical coordinates.
Example 9: Transform vector ⃗
Page 9 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
A=^r A r + ϕ^ A ϕ + ^z A z
Solution: We know, cylindrical coordinate ⃗
Ar = A x cos ϕ+ A y sin ϕ=( x + y ) cos ϕ+ ( y−x ) sin ϕ
¿ ( r cos ϕ+ r sin ϕ ) cos ϕ+ ( r sin ϕ−r cos ϕ ) sin ϕ
¿ r cos2 ϕ+r sin ϕ cos ϕ+r sin2 ϕ−r sin ϕ cos ϕ
¿ r ( cos 2 ϕ+ sin 2 ϕ )=r
Aϕ =− A x sin ϕ+ A y cos ϕ
¿−( x+ y ) sin ϕ+ ( y−x ) cos ϕ
¿−( r cos ϕ+r sin ϕ ) sin ϕ+ ( r sin ϕ−r cos ϕ ) cos ϕ
¿−r cos ϕ sin ϕ−r sin 2 ϕ+r cos ϕ sin ϕ−r co s2 ϕ
¿−r ( sin2 ϕ+co s2 ϕ )
¿−r
A z=z
∴⃗
A =^r r −^ϕ r + ^z z
A=^r r−^ϕ r + z^ z in Cartesian coordinate.
Example 10: Express vector ⃗
Solution: We know in Cartesian coordinate ⃗ A=^x A x + ^y A y + z^ A z
A x = Ar cos φ− A φ sin φ
¿ r cos φ+ r sin φ
¿ x+ y
A y =A r sin φ+ A φ cos φ
¿ r sin φ−r cos φ
¿ y−x
A z=z
Hence, ∴ ⃗
A = x^ ( x+ y ) + ^y ( y−x ) + ^z z
A=^r 3cos ϕ− ϕ^ 2r + z^ z to spherical coordinate.
Example 11: Transform the vector ⃗
R A R + θ^ A θ+ ϕ^ A ϕ
A= ^
Solution: We know in spherical coordinate ⃗
A R= A r sinθ + A z cos θ
¿ 3 cos ϕ sin θ+ z cos θ=3 cos ϕ sin θ+ R cos θ cos θ
Aθ =A r cos θ−A z sin θ
¿ 3 cos ϕ cos θ−z sinθ=3 cos ϕ cos θ−R cos θ sin θ
Aϕ = A ϕ =−2 r=−2 R sin θ
∴⃗ ^ ( 3 cos ϕ sinθ+ R cos 2 θ )−θ^ 2 R sinθ + ϕ^ ( 3 cos ϕ cos θ−R cos θ sin θ )
A=R
Page 10 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
ˆA Rˆ cos ˆ sin ˆ sin 2 3, ,
Example 12: Transform the vector at the point 2 to
cylindrical coordinates.
ˆA Rˆ cos ˆ sin ˆ sin 2 3, ,
Solution: Given that, at the point 2 .
R 3, , then r =Rsin 3, and z =Rcos 0
Here, 2
3, , 3, , 0
We get, 2
Now, from given equation A R=cos φ=−1, Aθ =sin φ=0 , A φ =sin 2 θ=1
We know,
Aˆ Ar rˆ Aˆ Az zˆ
Ar AR sin A cos 1, A A 1 and Az AR cos A sin 0
ˆ ˆ
Hence, A rˆ .
A rˆ cos ˆ sin zˆ sin cos at the point 2, , 2
Example 13: Transform the vector 4 .
to spherical coordinates.
A rˆ cos ˆ sin zˆ sin cos at the point 2, , 2 .
Solution: Given that , 4
Ar cos , A sin , and Az cos sin and r =2, = , z2
Here, 4
r 2
R r 2 z 2 4 4 8 , tan 1 tan 1 ,
We get, z 2 4 4
( R, , ) 8, ,
4 4
A AR Rˆ A ˆ Aˆ
We know,
AR Ar sin Az cos , A Ar cos Az sin and A A .
Here,
AR cos sin cos sin cos , A Ar cos cos cos sin sin and A sin .
A cos sin cos sin cos Rˆ Ar cos cos cos sin sin ˆ sin ˆ
1 ˆ
8, , A .853Rˆ 0.1464ˆ
At the point 4 4 2 .
Page 11 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
Sample exercise-5
1. Convert the coordinates of the following points from Cartesian to cylindrical and
spherical coordinates:
2π 5 π 2π
a. p1=(−1 , √ 3 ,−2 √ 3) (
Ans: 2 ,
3 ) (
,−2 √ 3 and 4 , ,
6 3
. )
3π
Ans: ( 4 , 0 ,−4) and ( 4 √ 2 ,
4 )
b. p2=(4 ,0 ,−4 ) ,0 .
7π π 7π
Ans: ( 4 , , 4 ) and ( 4 √ 2 , ,
4 4 )
c. p3=( √ 8 ,− √8 , 4 ) .
4
2. Convert the coordinates of the following points from cylindrical to Cartesian and
spherical coordinates:
2π π 2π
a. p1=(2 ,
3
,2 √ 3) Ans: (−1 , √3 , 2 √ 3 ) and 4 ,( ,
6 3
.)
2π
b. p2=( √ 3 ,0 ,−1) Ans: ( √ 3 , 0 ,−1) and 2 , ( 3
,0 . )
2π
c. p3=(4 √ 3 , π ,−4) Ans: (−4 √ 3 , 0 ,−4 ) and 8 , ( 3 )
,π .
3. Convert the coordinates of the following points from spherical to Cartesian and
cylindrical coordinates:
a. p1=(3 ,
3π 5π
,
4 3
) Ans: ( 3 √42 ,− 3 √4 6 , −3√ 2 ) and ( √32 , 53π , −3√ 2 ) .
π π π
b. p2=(4 , , )
2 4
Ans: (2 √ 2, 2 √2 , 0) and 4 , ( 4 )
,0 .
π π 1 1 1 π 1
c. p3=(1 , , )
4 2 (
Ans: 0 , ,
√2 √ 2
and) ( , ,
√2 2 √2
. )
4. Transform the following vectors into cylindrical coordinates at the indicated
points:
a. A=^x ( x + y ) + ^y ( x + y ) + ^z z at p=(4 , 0 ,−4) Ans: A=4 r^ + 4 ϕ^ −4 ^z .
Page 12 of 13
Matrices, Vectors & Fourier Analysis Summer 2018-19
Page 13 of 13