Professional Documents
Culture Documents
EC501 - 2 - Vector Algebra (Compatibility Mode)
EC501 - 2 - Vector Algebra (Compatibility Mode)
Quick review
– complex numbers Z = x+ j⋅ y x = Re ( Z ) y = Im ( Z )
© complex conjugate
Z∗ = x − j ⋅ y
© magnitude
Z ⋅ Z ∗ = ( x + j ⋅ y ) ⋅ ( x − j ⋅ y ) = x2 + y2 = Z
2
Z = Re ( Z ) + Im ( Z )
2 2
( )
y
j arctan
Z = x + j ⋅ y = Z e jθ = Z ( cos θ + j sin θ ) = x2 + y2 e x
Im ( Z )
∠Z = arctan
Re ( Z )
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
( )e
acts like a vector in 2- y, Im(Z) 2
j arctan
space Z = 1+ j ⋅ 2 = 1 +2
2 2 1
© if Z is a function of a 2
variable ω (say, for
instance, frequency), then
the ”vector· is different Z = 1 + j–2
for different values of ω 1
– this is formally called
a ”vector field· θ
– we,ll look at this
more later 0
-2 -1 1 2 x, Re(Z)
-1
-2
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
-1 (j)
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Quick review
– easiest to use phasor form, i.e., Euler,s formula
( )
y
j arctan
Z = x + j ⋅ y = Z e jθ = x2 + y 2 e x
( )e
y
= ( Z e jθ ) = Z e j⋅n⋅θ =
n j ⋅n⋅arctan
(Z )
n
x2 + y 2
n n x
– examples
© square root of -1 (this should be j!)
1 π
= (1⋅ e )
1 j⋅
©
( −1) 2
jπ
square root of j (i.e., the fourth root of -1)
2 = 1⋅ e 2
= j
1
1 π
π 1
j ⋅
2 π
π π 1 1
( j)
j j
2 = 1⋅ e 2
= e 2 2
= e 4
= cos + j ⋅ sin = + j ⋅
4 4 2 2
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Az
– infinitesimal surface area
dz
dx
© dx –dy
© dy –dz z y r dy
© dx –dz
A
– infinitesimal volume element x Ay
y
© dx –dy –dz
Ax
( Ax ) + ( Ay ) + ( Az )
x 2
A=
2 2
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
y = ρ sin φ
ρ
– infinitesimal surface area y
φ
© dz –dρ x
© dz –(ρ dφ)
ρ dφ
z dz
© dρ –(ρ dφ)
– infinitesimal volume dρ
ρ
element
© dz –dρ –(ρ dφ)
φ y
x ρ dφ
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Spherical z
coordinates
– use spheres to define position
© radial distance r
© plus two ”angular· positions
θ
y
z φ
r
θ
φ x z
θ
r z = r cos θ θ
r
y
φ x = ρ cos φ y
φ ρ = r sin θ
x r
A = Ar r + Aθ θ + Aφφ x
r = x2 + y 2 + z 2
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
spherical
coordinates z
– differential area
© dr –(r dθ)
z = r cos θ θ
r
© dr –((r sinθ) dφ)
x = ρ cos φ y
© (r dθ) –((r sinθ) dφ)
φ ρ = r sin θ
z
r sinθ dφ
dr
r dθ
θ
y
φ
r sin θ
x
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
– ”scalar operations·
© result is a simple number, without a ”direction·
© dot product
– ”vector operations·
© result has both direction and magnitude, i.e., it is still a vector
© vector addition / subtraction
© cross product
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Dot product
– dot product: scalar result v
© ”projection· of one vector onto another A
© properties θAB
A • B = A ⋅ B ⋅cos (θ AB )
– commutative
– distributive v
B
– since we need three unit vectors to specify a point in three dimensions, A and B can
be written as
r r
A = A1a1 + A2 a2 + A3 a3 B = B1a1 + B2 a2 + B3 a3
– now use distributive and commutative properties to multiply this out
r r
A • B = ( A1a1 + A2 a2 + A3a3 ) • ( B1a1 + B2 a2 + B3 a3 )
A • B = ( A1 ⋅ B1 )( a1 • a1 ) + ( A2 ⋅ B2 )( a2 • a2 ) + ( A3 ⋅ B3 )( a3 • a3 )
+ ( A1 ⋅ B2 + A2 ⋅ B1 )( a1 • a2 ) + ( A1 ⋅ B3 + A3 ⋅ B1 )( a1 • a3 ) + ( A2 ⋅ B3 + A3 ⋅ B2 )( a2 • a3 )
– if a1, a2 and a3 are normalized and orthogonal then
( a1 • a1 ) = 1 ( a2 • a2 ) = 1 ( a3 • a3 ) = 1 ( a1 • a2 ) = 0 ( a1 • a3 ) = 0 ( a2 • a3 ) = 0
A • B = ( A1 ⋅ B1 ) + ( A2 ⋅ B2 ) + ( A3 ⋅ B3 )
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Dot products
– the dot product of a vector with a unit vector gives you z
the component of the vector in the direction of the unit
z
φ
vector
© we can use this to convert from one coordinate A ρ
system to another y
z
© example: convert from rectangular coordinates to
cylindrical
x φ φ
ρ
r r
A = Ax ax + Ay a y + Az az A = Aρ aρ + Aφ aφ + Az az
r r r
Aρ = A • aρ Aφ = A • aφ Az = A • az
Aρ = ( Ax ax + Ay a y + Az az ) • aρ = Ax ( ax • aρ ) + Ay ( a y • aρ ) + Az ( az • aρ )
1 424 3 1 424 3 1 424 3
cos φ sin φ 0
Ay
Aρ = Ax cos φ + Ay sin φ φ = arctan
Ax
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Dot products
z
φ
– from rectangular coordinates to cylindrical z
r r
A = Ax ax + Ay a y + Az az A = Aρ aρ + Aφ aφ + Az az A ρ
y
ax • aρ = cos φ a y • aρ = sin φ a z • aρ = 0 z
r r r x φ φ
Aρ = A • aρ Aφ = A • aφ Az = A • az ρ
Aφ = ( Ax ax + Ay a y + Az az ) • aφ = Ax ( ax • aφ ) + Ay ( a y • aφ ) + Az ( az • aφ )
1 424 3 1 424 3 1 424 3
− sin φ cos φ 0
ax • aφ = − sin φ a y • aφ = cos φ az • aφ = 0
Aρ cos φ sin φ 0 Ax
A = − sin φ cos φ 0 A
φ y
Az 0 0 1 Az
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Aρ
cos φ = 3π
4 ( ) ( 4)
sin φ = 3π 0 Ax = −1 −1
2 2
1
2
0 −1 1 + 1
2 2 2 1
A = − sin φ = 3π
φ 4 ( ) cos (φ = 3π )
4
0 Ay = 1 = − 1
2 2
−1
2
0 1 = 1 + −1 = 0
2 2 2
Az 0
0 0 1 Az = 0 0 0 1 0 0
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Aρ
cos φ = π
4 ( ) ( 4)
sin φ = π 0 Ax = −1
2
1
2
1
2
0 −1 − 1 + 1
2 2 2 0
A = − sin φ = π
φ 4 ( ) cos (φ = π )
4
0 Ay = 1 = − 1
2 2
1
2
0 1 = 1 + 1 = 1
2 2 2
Az 0
0 0 1 Az = 0 0 0 1 0 0
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Dot products
– convert from rectangular coordinates to spherical
ax • aφ = − sin φ a y • aφ = cos φ az • aφ = 0
z
r
φ Ar sin θ cos φ sin θ sin φ cos θ Ax
θ
θ Aθ = cos θ cos φ cos θ sin φ − sin θ Ay
r Aφ − sin φ
cos φ 0 Az
y
φ – what are θ and φ in terms of x, y, and x?
x z y
= cos θ = tan φ
r x
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Cross products
– cross product: vector result
© direction set by ”right hand rule·
A × B = aN A ⋅ B ⋅ sin (θ AB ) v
A× B
v
v v B
A × B = A ⋅ B ⋅sin (θ AB )
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
”Fields·
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
Web resources
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad
S V Pandey 2008, last update 1 st June 2011 2EC301, Dept. of ECE, NU-IT, Ahmedabad