Beruflich Dokumente
Kultur Dokumente
THEORY
3
Vector
UNIVERSITI MALAYSIA PERLIS
4
Basic Laws of Vector Algebra
UNIVERSITI MALAYSIA PERLIS
5
Vector in Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
A Ax , Ay , Az
• OR
A xˆAx yˆAy zˆAz
6
Vector in Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
• Vector A has
magnitude A = |A| to
the direction of
propagation.
8
Unit Vectors
UNIVERSITI MALAYSIA PERLIS
9
Unit Vectors
UNIVERSITI MALAYSIA PERLIS
A xˆAx yˆ Ay zˆAz
A Ax Ay Az
2 2 2
10
Unit Vectors
UNIVERSITI MALAYSIA PERLIS
A A
aA
Ax Ay Az
2 2 2 A
11
Example 1: Unit Vector
UNIVERSITI MALAYSIA PERLIS
G2,2,1
12
Solution to Example 1
UNIVERSITI MALAYSIA PERLIS
G 2 xˆ 2 yˆ zˆ
Find the magnitude of G
G 22
2 1 3
2 2
13
Solution to Example 1
UNIVERSITI MALAYSIA PERLIS
G 2 2 1
aG xˆ yˆ zˆ
G 3 3 3
0.667 xˆ 0.667 yˆ 0.333zˆ
14
Equality of vectors
UNIVERSITI MALAYSIA PERLIS
15
Vector Algebra
UNIVERSITI MALAYSIA PERLIS
16
Example 2: Vector Algebra
UNIVERSITI MALAYSIA PERLIS
If A 10x̂ 4 ŷ 6ẑ
B 2 xˆ ŷ
Find:
(a) The component of A along ŷ
(b) The magnitude of 3 A B
(c) A unit vector C along A 2 B
17
Solution to Example 2
UNIVERSITI MALAYSIA PERLIS
(a) The component of A along ŷ is
Ay 4
(b) 3 A B 310,4,6 2,1,0
30,12,18 2,1,0
28,13,18
28x̂ 13ŷ 18ẑ
18
Solution to Example 2
UNIVERSITI MALAYSIA PERLIS
3A B 28 2
13 18 35.74
2 2
(c) Let C A 2 B
10,4,6 4,2,0
14,2,6
14x̂ 2 ŷ 6ẑ
19
Solution to Example 2
UNIVERSITI MALAYSIA PERLIS
So, the unit vector along Cis:
cˆ
C
14,2,6
C 14 2 6
2 2 2
14 2 6
xˆ yˆ zˆ
15.36 15.36 15.36
0.911xˆ 0.130 yˆ 0.391zˆ
20
Position and Distance Vectors
UNIVERSITI MALAYSIA PERLIS
• The position vector rP of point P is
the vector from origin O to point P
rP OP xa x ya y za z
21
Position and Distance Vectors
UNIVERSITI MALAYSIA PERLIS
rP 3a x 4a y 5a z
22
Position and Distance Vectors
UNIVERSITI MALAYSIA PERLIS
• If we have two
position vectors, rP
and rQ , the third
vector or distance
vector can be defined
as rPQ :-
rPQ rQ rP
23
Example 3: Position Vectors
UNIVERSITI MALAYSIA PERLIS
24
Solution to Example 3
UNIVERSITI MALAYSIA PERLIS
(a) rP 0a x 2a y 4a z 2a y 4a z
(b) rPQ rQ rP
3,1,5 0,2,4
3a x a y a z
(c) Since rPQ is a distance vector, the distance
between P and Q is the magnitude of this
distance vector.
25
Solution to Example 3
UNIVERSITI MALAYSIA PERLIS
Distance, d
d rPQ 32
1 1 3.317
2 2
(d) Let the required vector be A then
A Aa A
Where A 10 is the magnitude of A
26
Solution to Example 3
UNIVERSITI MALAYSIA PERLIS
Since A is parallel to PQ , it must have
the same unit vector as rPQ or rQP
rPQ 3,1,1
aA
rPQ 3.317
So, A 10
3, 1,1
3.317
27
Multiplication of Vectors
UNIVERSITI MALAYSIA PERLIS
• When two vectors A and B are multiplied,
the result is either a scalar or vector,
depending on how they are multiplied.
28
Scalar or Dot Product
UNIVERSITI MALAYSIA PERLIS
•The dot product of two vectors, A and B is
defined as the product of the magnitude of A ,
the magnitude of B and the cosine of the
smaller angle between them.
A B A B cos AB
29
Dot Product in Cartesian
UNIVERSITI MALAYSIA PERLIS
AB 0
32
Laws of Dot Product
UNIVERSITI MALAYSIA PERLIS
A B C A B A C
33
Properties of dot product
UNIVERSITI MALAYSIA PERLIS
ax ax a y a y az az 1
ax a y a y az az ax 0
34
Vector or Cross Product
UNIVERSITI MALAYSIA PERLIS
• The cross product of two vectors, A and B is a
vector, which is
equalto the product of the
magnitudes of A and B and the sine of smaller
angle between them
A B nˆ A B sin AB
35
Vector or Cross Product
UNIVERSITI MALAYSIA PERLIS
A B nˆ A B sin AB
Direction of n̂ is
normal (90°) to the
plane containing A
and B
36
Vector or Cross Product
UNIVERSITI MALAYSIA PERLIS
37
Cross product in Cartesian
UNIVERSITI MALAYSIA PERLIS
38
Cross product in Cartesian
UNIVERSITI MALAYSIA PERLIS
40
Properties of Vector Product
UNIVERSITI MALAYSIA PERLIS
ax a y az , a y az ax , az ax a y
41
Example 4:Dot & Cross Product
UNIVERSITI MALAYSIA PERLIS
A 2a x 3a y 4a z
B a x 5a y 6a z
42
Solution to Example 4
UNIVERSITI MALAYSIA PERLIS
A B Ax Bx Ay B y Az Bz
(2)( 1) (3)( 5) (4)(6)
41
43
Solution to Example 4
UNIVERSITI MALAYSIA PERLIS
A B C BA C CA B
45
Example 5
UNIVERSITI MALAYSIA PERLIS
46
Solution to Example 5
UNIVERSITI MALAYSIA PERLIS
xˆ yˆ zˆ
A B 1 1 2 xˆ 3 yˆ zˆ
0 1 1
xˆ yˆ zˆ
A B C 3 1 1 xˆ 3 yˆ 7 zˆ 2
2 0 3
• Cartesian coordinates ( x, y, z )
• Spherical coordinates (r , , )
48
Cartesian coordinates
UNIVERSITI MALAYSIA PERLIS
49
Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
50
Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential in
Length
dL dxa x dya y dza z
51
Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Surface
52
Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Surface
dS x dydza x
dS y dxdza y
dS z dxdya z
53
Cartesian Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Volume
dV dxdydz z
x
54
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
x 55
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
56
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
57
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
• Increment in
length for
direction is:
d
• d is not
increment in
length!
58
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Surface
dS ddza
dS ddza
dS z dda z
59
Circular Cylindrical Coordinates
UNIVERSITI MALAYSIA PERLIS
60
Example 6
UNIVERSITI MALAYSIA PERLIS
61
Solution to Example 6
UNIVERSITI MALAYSIA PERLIS
64
Solution to Example 7
UNIVERSITI MALAYSIA PERLIS
5 2.269 4.5
V
3
1.745
dddz
z 3
5
2 2.269
1.745 3 z
4.5
3
2
(8)(0.524) (1.5)
Must convert
into radians
6.288
65
Solution to Example 7
UNIVERSITI MALAYSIA PERLIS
20.7
66
67
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
69
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
70
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Surface
71
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
• Differential Surface
dS r r sin dda r
2
72
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
73
Spherical Coordinates
UNIVERSITI MALAYSIA PERLIS
74
Example 8a
UNIVERSITI MALAYSIA PERLIS
75
Solution: Example 8a
UNIVERSITI MALAYSIA PERLIS
Q v dv
v
2 2102
sin dRd d
2
4R
0 0 R 0
2102 2
4 dR sin d d
2
R
R 0 0 0
210-2
R3
4 cos 0 20
3 0
?? C 76
Example 8b
UNIVERSITI MALAYSIA PERLIS
77
Solution : Example 8b
UNIVERSITI MALAYSIA PERLIS
9( cos )
60 2
30 0
rˆ xˆ cos yˆ sin
• Relationships
between (x, y, z)
and (r, θ, Φ) are
shown in the
diagram.
81
Cartesian to Spherical
Transformations
UNIVERSITI MALAYSIA PERLIS
83
Example 9
Express vector A xˆ x y yˆ y x zˆ z in
UNIVERSITI MALAYSIA PERLIS
spherical coordinates.
Solution
Using the transformation relation,
AR Ax sin cos Ay sin sin Az cos
x y sin cos y x sin sin z cos
we get:
A 0
A R sin
Hence,
A R̂AR θ̂A φ̂A R̂R φ̂R sin
85
Transformations
UNIVERSITI MALAYSIA PERLIS
87
Gradient of a scalar field
UNIVERSITI MALAYSIA PERLIS
But,
dy dL a y
dz dL a z
So, previous equation can be rewritten as:
T T T
dT a x dL a y dL a z dL
x y z
T T T
a x ay a z dL
x y z 89
Gradient of a scalar field
UNIVERSITI MALAYSIA PERLIS
1
rˆ φˆ zˆ (cylindric al)
r r z
• Gradient operator in spherical coordinates:
ˆ ˆ1 1
R θ φˆ (spherical )
R R R sin
91
Example 10
UNIVERSITI MALAYSIA PERLIS
z
(a) V e sin 2 x cosh y
(b) U r z cos 2
2
92
Solution to Example 10
UNIVERSITI MALAYSIA PERLIS
V V V
V ax ay az
x y z
z z
2e cos 2 x cosh ya x e sin 2 x sinh ya y
z
e sin 2 x cosh ya z
93
Solution to Example 10
UNIVERSITI MALAYSIA PERLIS
U 1 U U
U ar a az
r r z
2rz cos 2a r 2rz sin 2a
r cos 2a z
2
94
Solution to Example 10
UNIVERSITI MALAYSIA PERLIS
W 1 W 1 W
W aR a a
R R R sin
10 sin cos a R 10 sin 2 cos a
2
10 sin sin a
95
Directional derivative
UNIVERSITI MALAYSIA PERLIS
dT
T â L
dl
96
Example 11
UNIVERSITI MALAYSIA PERLIS
97
Solution to Example 11
2
UNIVERSITI MALAYSIA PERLIS
GradT :T ˆ
x
x ˆ
y ˆ
z
x y 2
z ˆ
x 2 x ˆ
y 2 yz ˆ
z y 2
y z
We denote L as the given direction,
Unit vector is L xˆ 2 yˆ 3 zˆ 2
and L xˆ 2 yˆ 3 zˆ 2 xˆ 2 yˆ 3 zˆ 2
aˆ L
L 22 32 22 17
dT 4 x 6 yz 2 y 2 10
T aˆ L
dL 1, 1, 2 17 1, 1, 2 17 98
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
A dS
div A A lim s
v 0 v
100
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
101
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
Where,
A dS
A dS
s front back left right top bottom
And, v is volume enclosed by surface S
102
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
Ax A y Az
A
x y z
1 1 A Az
A rAr
r r r z
103
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
1 A sin
A 2
1
R AR
2
R sin
1 A
R sin
R R
104
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
• Example: A point
charge q
• Total flux of the
electric field E
due to q is
Total Flux E ds
S
105
Divergence of a vector field
UNIVERSITI MALAYSIA PERLIS
E x E y E z
E div E
x y z
106
Example 12
UNIVERSITI MALAYSIA PERLIS
1
(c) W 2 cos a R R sin cos a cos a
R
107
Solution to Example 12
UNIVERSITI MALAYSIA PERLIS
2
x
x yz 0 xz
y z
2 xyz x
108
Solution to Example 12
UNIVERSITI MALAYSIA PERLIS
1 1 Q Q z
Q rQr
r r r z
1 2
r r
r sin
1 2
r
r z z cos
z
2 sin cos
109
Solution to Example 12
UNIVERSITI MALAYSIA PERLIS
W sin
W 2
1
R WR
2
1
R sin
1 W
R sin
R R
2
1
cos 1
R sin
R sin 2 cos
R R
1
cos
R sin
2 cos cos
110
Divergence Theorem
UNIVERSITI MALAYSIA PERLIS
S
E ds
v
Edv (divergenc e theorem)
111
Example 13
UNIVERSITI MALAYSIA PERLIS
A vector field D r 3
a r exists in the region
between two concentric cylindrical surfaces
defined by r = 1 and r = 2, with both cylinders
extending between z = 0 and z = 5. Verify the
divergence theorem by evaluating:
(a) D ds
S
(b) DdV
V
112
Solution to Example 13
UNIVERSITI MALAYSIA PERLIS
2 5
0 z 0
r 4 a r ddz(a r )
r 1
10
113
Solution to Example 13
2 5
UNIVERSITI MALAYSIA PERLIS
Douter
0 z 0
r 3 a r rddz(a r )
r 2
2 5
0 z 0
r 4 a r ddz(a r )
r 2
160
2 2
Dbottom
r 1 0
r 3 a r rddr (a z )
z 0
0
2 2
Dtop
r 1 0
r 3 a r rddr (a z )
z 5
0
114
Solution to Example 13
UNIVERSITI MALAYSIA PERLIS
• Therefore:
D dS 10 160 0 0
S
150
115
Solution to Example 13
UNIVERSITI MALAYSIA PERLIS
D
1
r r
rr 3 4r 2
5 2 2
• So,
DdV
z 0 0 r 1
4r 2 rdrddz
2
5
4 2
r 150
r 1
0
z 0 116
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
117
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
118
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
119
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
is not zero
120
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
121
Curl of a vector field
UNIVERSITI MALAYSIA PERLIS
122
Vector identities involving curl
UNIVERSITI MALAYSIA PERLIS
(1) A B A B
(2) ( A) 0 for any vector A
(3) (V ) 0 for any scalar function V
123
Curl in Cartesian coordinates
UNIVERSITI MALAYSIA PERLIS
124
Curl in cylindrical coordinates
UNIVERSITI MALAYSIA PERLIS
128
Solution to Example 14
UNIVERSITI MALAYSIA PERLIS
1 Q z Q Q r Q z
1 rQ Q r
Q r
a
r x
a a z
r z z r y
z
sin r 2 a r 0 0 a
r
1
3r 2 z r cos a z
r
z sin r 3 a r 3rz cos a z
1
r
129
Solution to Example 14
UNIVERSITI MALAYSIA PERLIS
continue... 130
Solution to Example 14
UNIVERSITI MALAYSIA PERLIS
continued ...
1 cos sin R sin cos
W a R
R sin
1 1
cos 2
R
R cos
aθ
R sin R
1 ( R sin cos )
2
cos 2
R
aφ
R R
131
Solution to Example 14
UNIVERSITI MALAYSIA PERLIS
• (c) continued…
1
cos 2 R sin sin a R 0 cos a
1
R sin R
1 sin
2 R sin cos 2 a
R R
cos 2 cos
sin a R a
R sin R
1
2 cos 3 sin a
R
132
Stokes’s Theorem
UNIVERSITI MALAYSIA PERLIS
B ds B dl
S
C
(Stoke' s theorem)
133
Example 15
UNIVERSITI MALAYSIA PERLIS
134
135
Example 15
UNIVERSITI MALAYSIA PERLIS
Solution to Example 15
UNIVERSITI MALAYSIA PERLIS
B ds B dl
S
C
• Left-hand side:
First, use curl in cylindrical coordinates
1 Bz B Br Bz 1 Br
B rˆ φ̂ ẑ rB
r z z r r z
sin cos
rˆ 2 φ̂ 2
r r 136
Solution to Example 15
UNIVERSITI MALAYSIA PERLIS
137
Solution to Example 15
UNIVERSITI MALAYSIA PERLIS
• Right-hand side:
Definition of field B on segments ab, bc,
cd, and da is
b c d a
B dl B
C
a
ab dl Bbc dl Bcd dl Bda dl
b c d
138
Solution to Example 15
UNIVERSITI MALAYSIA PERLIS
• At different segments,
B ab Bcd zˆ cos / 2 0 where dl φˆ rd
0
1 z
a 0
1 3
CB dl d ẑ 4 ẑdz 3 4 dz 4 3 4
• Thus,
140
Laplacian of a Scalar
UNIVERSITI MALAYSIA PERLIS
1 V 1 2
V 2
V
V
2
(r ) 2 2
r r r r 2
z
141
Example 16
UNIVERSITI MALAYSIA PERLIS
142
Solution to Example 16
UNIVERSITI MALAYSIA PERLIS
z
• (a) V 2e sin 2 x cosh y
2
• (b) U 0
2
10 cos
• (c)
W
2
1 2 cos2
r
143
Laplacian of a vector
UNIVERSITI MALAYSIA PERLIS
2
2
2
E 2 2 2 E xˆ 2 E x yˆ 2 E y zˆ 2 E z
2
x y z
144
Laplacian of a vector
UNIVERSITI MALAYSIA PERLIS
E E E
2
145