doc 1/8
Example: Expressing
Vector Fields with
Coordinate Systems
Consider the vector field:
⎛x ⎞ ˆ
A = xz aˆx + ( x 2 + y 2 ) aˆy + ⎜ ⎟ az
⎝z ⎠
Ax = xz
= ( r sinθ cosφ ) ( r cosθ )
= r 2sinθ cosθ cosφ
Ay = x 2 + y 2
2 2
= ( r sinθ cosφ ) + ( r sinθ sinφ )
= r 2sin2θ ( cos φ + sin φ )
2 2
= r 2sin2θ
x
Az =
z
r sinθ cosφ
=
r cosθ
= tanθ cosφ
⎛x ⎞ ˆ ˆ
A ⋅aˆr = xz aˆx ⋅aˆr + ( x 2 + y 2 ) aˆy ⋅aˆr + ⎜ ⎟ az ⋅ar
⎝z ⎠
⎛x ⎞
= xz ( sinθ cosφ ) + ( x 2 + y 2 ) ( sinθ sinφ ) + ⎜ ⎟ ( cosθ )
⎝z ⎠
x2 +y2 x
= xz
x2 +y2 +z2 x2 +y2
x2 +y2 y
+ (x + y2 2
)
x2 +y2 +z2 x2 +y2
⎛x ⎞ z
+⎜ ⎟
⎝ z ⎠ x2 +y2 +z2
x 2z y (x 2 + y 2 ) x
= + +
x2 +y2 +z2 x2 +y2 +z2 x2 +y2 +z2
x 2z + x 2y + y 3 + x
=
x2 +y2 +z2
⎛x ⎞ ˆ ˆ
A ⋅ aˆθ = xz aˆx ⋅ aˆθ + ( x 2 + y 2 ) aˆy ⋅ aˆθ + ⎜ ⎟ az ⋅ aθ
⎝z ⎠
⎛x ⎞
= xz ( cosθ cosφ ) + ( x 2 + y 2 ) ( cosθ sinφ ) − ⎜ ⎟ ( sinθ )
⎝z ⎠
z x
= xz
x2 +y2 +z2 x2 +y2
z y
+ (x 2 + y 2 )
x2 +y2 +z2 x2 +y2
⎛x ⎞ x2 +y2
−⎜ ⎟
⎝ z ⎠ x2 +y2 +z2
x 2z 3 yz 2 ( x 2 + y 2 )
= +
z x +y +z
2 2 2
x +y
2 2
z x2 +y2 +z2 x2 +y2
x (x 2 + y 2 )
−
z x2 +y2 +z2 x2 +y2
x 2z 3 + x 2yz 2 + y 3z − x 3 − xy 2
=
z x2 +y2 +z2 x2 +y2
⎛x
⎞ ˆ ˆ
A ⋅aˆφ = xz aˆx ⋅ aˆφ + ( x 2 + y 2 ) aˆy ⋅ aˆφ + ⎜
⎟ az ⋅ aφ
⎝z
⎠
⎛x ⎞
= xz ( -sinφ ) + ( x 2 + y 2 ) ( cosφ ) + ⎜ ⎟ 0
⎝z ⎠
−y x
= xz + (x 2 + y 2 )
x2 +y2 x2 +y2
−xyz + x 3 + xy 2
=
x2 +y2
Jim Stiles The Univ. of Kansas Dept. of EECS
8/23/2005 Example Expressing Vector Fields with Coordinate Systems.doc 5/8
⎛ x 2z + x 2y + y 3 + x ⎞
A=⎜ ⎟ aˆr
⎜ x2 +y2 +z2 ⎟
⎝ ⎠
⎛ x 2z 3 + x 2yz 2 + y 3z − x 3 − xy 2 ⎞
+⎜ ⎟ aˆθ
⎜ z x2 +y2 +z2 x2 +y2 ⎟
⎝ ⎠
⎛ −xyz + x 3 + xy 2 ⎞
+⎜ ⎟ aˆφ
⎜ x +y
2 2 ⎟
⎝ ⎠
First, Aρ is:
⎛x ⎞ ˆ ˆ
A ⋅aˆρ = xz aˆx ⋅ aˆρ + ( x 2 + y 2 ) aˆy ⋅ aˆρ + ⎜ ⎟ az ⋅ a ρ
⎝z ⎠
⎛x ⎞
= xz ( cosφ ) + ( x 2 + y 2 ) ( sinφ ) + ⎜ ⎟ ( 0 )
⎝z ⎠
= ρ cosφ z ( cosφ ) + ρ 2 ( sinφ )
= ρ cos2φ z + ρ 2sinφ
And Aφ is:
⎛x ⎞ ˆ ˆ
A ⋅aˆφ = xz aˆx ⋅ aˆφ + ( x 2 + y 2 ) aˆy ⋅ aˆφ + ⎜ ⎟ az ⋅ aφ
⎝z ⎠
⎛x ⎞
= xz ( -sinφ ) + ( x 2 + y 2 ) ( cosφ ) + ⎜ ⎟ ( 0 )
⎝z ⎠
= − ρ cosφ z ( sinφ ) + ρ 2 ( cosφ )
= ρ cosφ ( ρ − z sinφ )
⎛x ⎞ ˆ ˆ
A ⋅aˆz = xz aˆx ⋅ aˆz + ( x 2 + y 2 ) aˆy ⋅ aˆz + ⎜ ⎟ az ⋅ az
⎝z ⎠
⎛x ⎞
= xz ( 0 ) + ( x 2 + y 2 ) ( 0 ) + ⎜ ⎟ (1 )
⎝z ⎠
⎛x ⎞
=⎜ ⎟
⎝z ⎠
ρ cosφ
=
z
⎛ ρ cosφ ⎞ ˆ
A = ( ρ cos2φ z + ρ 2sinφ ) aˆρ + ρ cosφ ( ρ − z sinφ ) aˆφ + ⎜ ⎟ az
⎝ z ⎠
1.
A = r 2sinθ cosθ cosφ aˆx + r 2sin2θ aˆy + tanθ cosφ aˆz
2.
⎛ x 2z + x 2y + y 3 + x ⎞
A=⎜ ⎟ aˆr
⎜ x 2
+ y 2
+ z 2 ⎟
⎝ ⎠
⎛ x 2z 3 + x 2yz 2 + y 3z − x 3 − xy 2 ⎞
+⎜ ⎟ aˆθ
⎜ z x2 +y2 +z2 x2 +y2 ⎟
⎝ ⎠
⎛ −xyz + x 3 + xy 2 ⎞
+⎜ ⎟ aˆφ
⎜ x +y
2 2 ⎟
⎝ ⎠
3.
⎛ ρ cosφ ⎞ ˆ
A = ( ρ cos2φ z + ρ 2sinφ ) aˆρ + ρ cosφ ( ρ − z sinφ ) aˆφ + ⎜ ⎟ az
⎝ z ⎠
Please note: