Other Coordinate System and Transformation
Other Coordinate System and Transformation
Transformation
EE 23 ELECTROMAGNETICS
Engr. Rewil Tornalejo
Cylindrical Coordinate System
• Three dimensional version of polar
coordinates in analytical geometry
• A point 𝑃 𝜌, 𝜙, 𝑧 is the intersection of
three mutually perpendicular planes
• The unit vector are express as 𝜌, 𝑧Ƹ
ො 𝜙,
or 𝑎𝜌 , 𝑎𝜙 , 𝑎𝑧
• Note: 𝑎𝜌 × 𝑎𝜙 = 𝑎𝑧
• Cartesian to cylindrical : convert 𝑥 and 𝑦 to
polar coordinates and retain 𝑧.
Coordinate Transformation
• Given a vector A in some coordinate system, we can
transform it to another coordinate system by projecting it to
the unit vectors of the desired coordinate system.
• Example: given a vector A = 𝐴𝑥 , 𝐴𝑦 , 𝐴𝑧 in cartesian
coordinates, transform the vector to cylindrical coordinates.
• Step 1: solve 𝐴𝜌 , 𝐴𝜙 , 𝐴𝑧 using the following
• 𝐴𝜌 = 𝐴 ∙ 𝑎Ԧ𝜌 𝐴𝜙 = 𝐴 ∙ 𝑎Ԧ 𝜙 𝐴𝑧 = 𝐴 ∙ 𝑎Ԧ 𝑧
So
𝐴𝜌 = 𝐴𝒙 𝑎Ԧ 𝑥 + 𝐴𝑦 𝑎Ԧ 𝑦 + 𝐴𝑧 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ𝜌 = 𝐴𝒙 𝑎Ԧ 𝑥 ∙ 𝑎Ԧ𝜌 + 𝐴𝒚 𝑎Ԧ 𝑦 ∙ 𝑎Ԧ𝜌 +
𝐴𝒛 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ𝜌
Coordinate Transformation
So
𝐴𝜙 = 𝐴𝒙 𝑎Ԧ 𝑥 + 𝐴𝑦 𝑎Ԧ 𝑦 + 𝐴𝑧 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ 𝜙 = 𝐴𝒙 𝑎Ԧ 𝑥 ∙ 𝑎Ԧ 𝜙 + 𝐴𝒚 𝑎Ԧ 𝑦 ∙ 𝑎Ԧ 𝜙 +
𝐴𝒛 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ 𝜙
𝐴𝑧 = 𝐴𝒙 𝑎Ԧ 𝑥 + 𝐴𝑦 𝑎Ԧ 𝑦 + 𝐴𝑧 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ 𝑧 = 𝐴𝒙 𝑎Ԧ 𝑥 ∙ 𝑎Ԧ 𝑧 + 𝐴𝒚 𝑎Ԧ 𝑦 ∙ 𝑎Ԧ 𝑧 +
𝐴𝒛 𝑎Ԧ 𝑧 ∙ 𝑎Ԧ 𝑧
Step 2: replace the dot product of the unit vectors using the
following: 𝒂𝝆 𝒂𝝓 𝒂𝒛
𝒂𝑥 ∙ cos 𝜙 −sin 𝜙 0
𝒂𝑦 ∙ sin 𝜙 cos 𝜙 0
𝒂𝑧 ∙ 0 0 1
Coordinate transformation
• Step 3:
• In 𝐴𝜌 , 𝐴𝜙 , 𝐴𝑧 , convert all 𝑥 ′ 𝑠 𝑦 ′ 𝑠 𝑧 ′ 𝑠 to cylindrical coordinates
• 𝑥 = ρ cos 𝜙,
• 𝑦 = ρ sin 𝜙
• 𝑧=𝑧
Coordinate transformation
• Conversion from rectangular to cylindrical
𝜌 = 𝑥2 + 𝑦2 𝜌 ≥ 0
−1 𝑦
𝜙 = tan 0 ≤ 𝜙 ≤ 2𝜋
𝑥
z=𝑧
Coordinate transformation
While calculating 𝜙 make sure the signs of 𝑥 and 𝑦. if
both are positive, 𝜙 is positive in the first quadrant. If 𝑥
is negative and 𝑦 is positive the point is in the second
quadrant hence 𝜙 must be within +90° to +180°,
hence when x is negative, it is necessary to add 180°
to the 𝜙 to obtain accurate 𝜙 corresponding to the
point. When y is negative and x is positive then 𝜙 is in
fourth quadrant, similarly, when x is negative and y is
negative the 𝜙 is in the third quadrant.
The results of transformation can
be written in a matrix form from
rectangular to cylindrical
𝐴𝜌 cos 𝜙 sin 𝜙 0 𝐴𝑥
𝐴𝜙 = − sin 𝜙 cos 𝜙 0 𝐴𝑦
𝐴𝑧 0 0 1 𝐴𝑧
Example
−1
−4
𝜙 = tan
3
Example:
1. Transform the vector field 𝑊 = 10𝑎𝑥 − 8𝑎𝑦 + 6𝑎𝑧
2. Given the cartesian coordinate of the vector field H = 20𝑎𝜌 −
10𝑎𝜙 + 3𝑎𝑧 at point 𝑃 𝑥 = 5 , 𝑦 = 2, 𝑧 = −1
The results of transformation can be
written in a matrix form cylindrical to
rectangular
𝐴𝑥 cos 𝜙 −sin 𝜙 0 𝐴𝜌
𝐴𝑦 = sin 𝜙 cos 𝜙 0 𝐴𝜙
𝐴𝑧 0 0 1 𝐴𝑧
Spherical Coordinate system
𝒂𝑧 ∙ cos 𝜃 − sin 𝜃 0
• Step 3:
• In 𝐴𝑟 , 𝐴𝜙 , 𝐴𝜃 , convert all 𝑥 ′ 𝑠 𝑦 ′ 𝑠 𝑧 ′ 𝑠 to spherical coordinates
• 𝑥 = 𝑟 sin 𝜃 cos 𝜙,
• 𝑦 = 𝑟 sin 𝜃 sin 𝜙
• 𝑧 = 𝑟 cos 𝜃
Coordinate Transformation
𝐴𝜌 cos 𝜙 sin 𝜙 0 𝐴𝑥
𝐴𝜙 = − sin 𝜙 cos 𝜙 0 𝐴𝑦
𝐴𝑧 0 0 1 𝐴𝑧
𝐴𝑥 cos 𝜙 − sin 𝜙 0 𝐴𝜌
𝐴𝑦 = sin 𝜙 cos 𝜙 0 𝐴𝜙
𝐴𝑧 0 0 1 𝐴𝑧
𝐴𝜌 sin 𝜃 cos 𝜃 0 𝐴𝑟
𝐴𝜙 = 0 0 1 𝐴𝜃
𝐴𝑧 cos 𝜃 − sin 𝜃 0 𝐴𝜙
𝑟= 𝑥2 + 𝑦2 + 𝑧2
−1 𝑧 −1 𝑧
θ= cos or cos
𝑟 𝑥 2 +𝑦 2 +𝑧 2
𝑦
𝜙= tan−1
𝑥
Example
1. Transform to cylindrical coordinates
(a) 𝐺 = 2𝑥 + 𝑦 𝑎𝑥 − (𝑦 − 4𝑥)𝑎𝑦 at point 𝑄 𝜌, 𝜙, 𝑧
(b) Give the cartesian components of the vector
𝐻 = 20𝑎𝜌 − 10𝑎𝜙 + 3𝑎𝑧 at 𝑃(𝑥 = 5, 𝑦 = 2, 𝑧 = −1)
(c) Express 𝐵 = 𝑟 2 𝑎𝑟 + sin 𝜃 𝑎𝜙 in cartesian coordinate at 𝑃(𝑥 =
1, 𝑦 = 2, 𝑧 = 3)
Problem Set
1. Given two points, 𝐶 −3, 2, 1 and 𝐷(𝑟 = 5, 𝜃 =
20 °, 𝜙 = −70°) find
(a)spherical coordinates of C;
(b) the Cartesian coordinates of D;
(c) the distance from C to D.
2. Transform the following vectors to spherical
coordinates at the points given
(a) 10𝑎𝑥 at 𝑃(𝑥 = −3, 𝑦 = 2, 𝑧 = 4);
(b) 10𝑎𝑦 at 𝑄 𝜌 = 5, 𝜙 = 30°, 𝑧 = 4 ;
(c) 10𝑎𝑧 at 𝑀 𝑟 = 4, 𝜃 = 110°, 𝜙 = 120°
Problem Set
3. At point 𝑃 −3, 4, 5 , express the vector that extends from P
to 𝑄 2, 0, −1 in:
a. Rectangular coordinates
b. Cylindrical coordinates
c. Spherical coordinates
d. Show that these vectors has the same magnitude.