Vector Algebra
Vector Algebra
Vector Algebra
2
Fig. EM waves propagation [2]
Scalars, vectors and fields
⇒If a quantity has only magnitude, is known as scalar.
Examples- time, temperature, distance, electric potential, population etc.
⇒If a quantity is denoted by the magnitude along with direction, is known as
vector.
Examples- velocity, force, displacement, electric field intensity etc.
⇒The scalar quantity is denoted by simply a letter e.g. 𝐴𝐴, 𝐵𝐵, 𝐶𝐶…, and the vector
quantity is generally denoted by letters with an arrow on top e.g.𝐴𝐴, ⃗ or
⃗ 𝐵𝐵, 𝐶𝐶,…
by bold letters.
⇒The field is a function that describes the quantity in a region. Field may be
scalar or vector depends upon the quantity.
Examples- temperature distribution in building, sound intensity in a theater,
electric potential in a region etc.
3
Unit vector
⇒A vector quantity has the magnitude as well as the direction. If the magnitude of
the vector quantity is unity, it is known as unit vector.
𝐴𝐴⃗
̂ ̂
𝐴𝐴 = , where 𝐴𝐴=unit vector, 𝐴𝐴 =magnitude of 𝐴𝐴.⃗
𝐴𝐴
⃗ 𝑥𝑥 𝑎𝑎
⇒𝐴𝐴=𝐴𝐴 �𝑥𝑥 + 𝐴𝐴𝑦𝑦 𝑎𝑎�𝑦𝑦 +𝐴𝐴𝑧𝑧 𝑎𝑎
�𝑧𝑧 ,
where 𝑎𝑎�𝑥𝑥 , 𝑎𝑎�𝑦𝑦 , 𝑎𝑎
�𝑧𝑧 are the unit vectors along x-axis,
y-axis and z-axis, respectively. 𝐴𝐴𝑥𝑥 , 𝐴𝐴𝑦𝑦 , 𝐴𝐴𝑧𝑧 are
magnitudes of vector 𝐴𝐴⃗ along x-axis, y-axis,
z-axis, respectively.
�𝑥𝑥 +𝐴𝐴𝑦𝑦 𝑎𝑎�𝑦𝑦 +𝐴𝐴𝑧𝑧 𝑎𝑎
𝐴𝐴𝑥𝑥 𝑎𝑎 �𝑧𝑧
̂
⇒𝐴𝐴 =
𝐴𝐴2𝑥𝑥 +𝐴𝐴2𝑦𝑦 +𝐴𝐴2𝑧𝑧
5
Vector addition
• Two vectors i.e. 𝐴𝐴⃗ , and 𝐵𝐵 can be added to give new vector 𝐶𝐶⃗ i. e. 𝐶𝐶= ⃗ 𝐴𝐴+𝐵𝐵.
⃗
• The addition rule for two vectors is given below.
⃗ 𝑥𝑥 𝑎𝑎
Suppose 𝐴𝐴=𝐴𝐴 �𝑧𝑧 , and 𝐵𝐵=𝐵𝐵𝑥𝑥 𝑎𝑎
�𝑥𝑥 + 𝐴𝐴𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐴𝐴𝑧𝑧 𝑎𝑎 �𝑧𝑧 , then,
�𝑥𝑥 + 𝐵𝐵𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐵𝐵𝑧𝑧 𝑎𝑎
⃗ 𝐴𝐴+𝐵𝐵
𝐶𝐶= ⃗ = 𝐴𝐴𝑥𝑥 + 𝐵𝐵𝑥𝑥 𝑎𝑎
�𝑥𝑥 + 𝐴𝐴𝑦𝑦 + 𝐵𝐵𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐴𝐴𝑧𝑧 + 𝐵𝐵𝑧𝑧 𝑎𝑎
�𝑧𝑧
⇒Vector addition is commutative (𝐴𝐴⃗ + 𝐵𝐵=𝐵𝐵 + 𝐴𝐴),
⃗
⃗ 𝐶𝐶)=
distributive [𝐴𝐴(𝐵𝐵+ ⃗ 𝐴𝐴𝐵𝐵+
⃗ 𝐴𝐴⃗𝐶𝐶],
⃗ and
⃗
associative [𝐴𝐴+(𝐵𝐵+ ⃗ 𝐴𝐴+𝐵𝐵)+
𝐶𝐶)=( ⃗ ⃗
𝐶𝐶].
6
Vector subtraction
• Two vectors subtraction can be done as 𝐶𝐶= ⃗ 𝐴𝐴⃗ − 𝐵𝐵 = 𝐴𝐴⃗ +(−𝐵𝐵).
• The subtraction rule for two vectors is given below.
⃗ 𝑥𝑥 𝑎𝑎
Suppose 𝐴𝐴=𝐴𝐴 �𝑧𝑧 , and 𝐵𝐵=𝐵𝐵𝑥𝑥 𝑎𝑎
�𝑥𝑥 + 𝐴𝐴𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐴𝐴𝑧𝑧 𝑎𝑎 �𝑧𝑧 , then,
�𝑥𝑥 + 𝐵𝐵𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐵𝐵𝑧𝑧 𝑎𝑎
𝐷𝐷=𝐴𝐴⃗ − 𝐵𝐵 = 𝐴𝐴𝑥𝑥 − 𝐵𝐵𝑥𝑥 𝑎𝑎
�𝑥𝑥 + 𝐴𝐴𝑦𝑦 − 𝐵𝐵𝑦𝑦 𝑎𝑎�𝑦𝑦 + 𝐴𝐴𝑧𝑧 − 𝐵𝐵𝑧𝑧 𝑎𝑎
�𝑧𝑧
⇒Vector subtraction is distributive
[𝐴𝐴(𝐵𝐵 ⃗ 𝐴𝐴𝐵𝐵
⃗ − 𝐶𝐶)= ⃗ − 𝐴𝐴⃗𝐶𝐶].
⃗
7
Examples-vector addition and subtraction
• If vector A and vector B are defined as:
𝐴𝐴⃗ = 5𝑖𝑖�𝑥𝑥 + 7𝑖𝑖�𝑦𝑦 + 𝑖𝑖�𝑧𝑧
𝐵𝐵 = 4𝑖𝑖�𝑥𝑥 + 6𝑖𝑖�𝑦𝑦 − 2𝑖𝑖�𝑧𝑧
• 𝐴𝐴⃗ + 𝐵𝐵 =?
• 𝐴𝐴⃗ − 𝐵𝐵 =?
8
Examples-vector addition and subtraction
(cont.)
• Solution:
• 𝐴𝐴⃗ + 𝐵𝐵 = 9𝑖𝑖�𝑥𝑥 + 13𝑖𝑖�𝑦𝑦 − 𝑖𝑖�𝑧𝑧
• 𝐴𝐴⃗ − 𝐵𝐵 = 𝑖𝑖�𝑥𝑥 + 𝑖𝑖�𝑦𝑦 + 3𝑖𝑖�𝑧𝑧
9
Position vector & distance vector
• The position vector of a point 𝑃𝑃 is directed from the
origin 𝑂𝑂 to 𝑃𝑃, and denoted by 𝑂𝑂𝑂𝑂.
• In the figure, the position vector
𝑂𝑂𝑂𝑂 = 𝒓𝒓𝒑𝒑 = 3�
𝑎𝑎𝑥𝑥 + 4�
𝑎𝑎𝑦𝑦 +5�
𝑎𝑎𝑧𝑧
Dot product- The dot product of two vectors is defined as the multiplication of
their magnitudes and the cosine of the angle between the vectors.
⃗ 𝐵𝐵 = 𝐴𝐴⃗ 𝐵𝐵 cos𝜃𝜃, where 𝜃𝜃 is the angle between the vector 𝐴𝐴⃗ and 𝐵𝐵.
𝐴𝐴.
⇒If two vectors are orthogonal to each other, the dot product is zero.
=> The dot product follows the following rules:
- The dot product is commutative, i.e. 𝐴𝐴. ⃗ 𝐵𝐵 = 𝐵𝐵. 𝐴𝐴⃗
⃗ 𝐵𝐵 + 𝐶𝐶⃗ = 𝐴𝐴.
- The dot product is distributive, i.e. 𝐴𝐴. ⃗ 𝐵𝐵 + 𝐴𝐴.
⃗ 𝐶𝐶⃗
11
Vector multiplication (cont.)
� 𝑘𝑘.
⇒𝚤𝚤.̂ 𝚥𝚥̂ = 𝚥𝚥.̂ 𝑘𝑘= � 𝚤𝚤=0;
̂ 𝚤𝚤.̂ 𝚤𝚤̂ = 𝚥𝚥.̂ 𝚥𝚥= � 𝑘𝑘=1
̂ 𝑘𝑘. �
⇒ If 𝐴𝐴⃗ = 𝐴𝐴1 𝚤𝚤̂ + 𝐴𝐴2 𝚥𝚥̂ + 𝐴𝐴3 𝑘𝑘, � and 𝐵𝐵 = 𝐵𝐵1 𝚤𝚤̂ + 𝐵𝐵2 𝚥𝚥̂ + 𝐵𝐵3 𝑘𝑘� , then
⃗ 𝐵𝐵=𝐴𝐴1 𝐵𝐵1 +𝐴𝐴2 𝐵𝐵2 +𝐴𝐴3 𝐵𝐵3 .
𝐴𝐴.
ˆ ˆ ˆ
A.B ⇒ A i + A j + A k . B i + B j + B k
ˆ ˆ ˆ
1 2 3 1 2 3
= A iˆ . B iˆ + A iˆ . B ˆj + A iˆ . B kˆ +
1 1 1 2 1 3
A ˆ
j
.
B ˆ
i
+
A ˆj
. B ˆ
j
+
A ˆ
j
. B kˆ
+
2 1 2 2 2 3
Fig. Cross product using clock rotation (a) moving clockwise, (b)
moving anti-clockwise[1] 14
Vector multiplication (cont.)
� 𝐵𝐵=𝐵𝐵1 𝚤𝚤+̂ 𝐵𝐵2 𝚥𝚥̂ + 𝐵𝐵3 𝑘𝑘�
⃗ 1 𝚤𝚤+̂ 𝐴𝐴2 𝚥𝚥̂ + 𝐴𝐴3 𝑘𝑘,
⇒If 𝐴𝐴=𝐴𝐴
A × B ⇒ A iˆ + A ˆj + A kˆ × B iˆ + B ˆj + B kˆ
1 2 3 1 2 3
( )( )( )( )( )
= A iˆ × B iˆ + A iˆ × B ˆj + A iˆ × B kˆ +
1 1 1 2 1 3
( )( )( )( )( )
A ˆj × B iˆ + A ˆj × B ˆj + A ˆj × B kˆ +
2 1 2 2 2 3
( )
3
( )
A kˆ × B iˆ + A kˆ × B ˆj + A kˆ × B kˆ
1 3 2 3 3
= 0 + A B kˆ − A B ˆj − A B kˆ + 0 + A B iˆ + A B ˆj − A B iˆ + 0
1 2 1 3 2 1 2 3 3 1 3 2
( ) ( ) (
= A B − A B iˆ − A B − A B ˆj + A B − A B kˆ
2 3 3 2 1 3 3 1
)
1 2 2 1
16
Example-scalar and vector multiplication
(cont.)
• Sol.
A.B = (2 xˆ + 4 yˆ )( . xˆ + 7 yˆ ) = 2 + 28 = 30
A × B = (2 xˆ + 4 yˆ )× ( xˆ + 7 yˆ )
= (2 xˆ )× ( xˆ ) + (2 xˆ )× (7 yˆ ) + (4 yˆ )× ( xˆ ) + (4 yˆ )× (7 yˆ )
= 0 + 14 zˆ − 4 zˆ + 0 = 10 zˆ
zˆ is ⊥ to A, B
ˆ
A × B = A B sin θiN = A B sin θzˆ
A = (2 ) + (4 ) = 4.472; B = (1) + (7 ) = 7.071
2 2 2 2
A.B = (2 xˆ + 4 yˆ )(
. xˆ + 7 yˆ ) = 2 + 28 = 30
(
)
A B = 31.62; cos θ = A.B A B = 0.9487 ⇒ θ = 18.43o
∴ A B sin θ = 31.62 x0.3161 = 9.996 ≅ 10
17
Scalar triple product
⇒The scalar product of three vectors (scalar triple product) 𝐴𝐴, ⃗ 𝐵𝐵 and 𝐶𝐶⃗ is defined as
⃗ 𝐵𝐵 × 𝐶𝐶⃗ .
𝐴𝐴.
⃗ 1 𝚤𝚤+
⇒If 𝐴𝐴=𝐴𝐴 � 𝐵𝐵=𝐵𝐵1 𝚤𝚤+̂ 𝐵𝐵2 𝚥𝚥̂ + 𝐵𝐵3 𝑘𝑘,
̂ 𝐴𝐴2 𝚥𝚥̂ + 𝐴𝐴3 𝑘𝑘, � and 𝐶𝐶=𝐶𝐶 ̂ 𝐶𝐶2 𝚥𝚥̂ + 𝐶𝐶3 𝑘𝑘�
⃗ 1 𝚤𝚤+
iˆ1 iˆ2 iˆ3
A.BxC = ( A1iˆ1 + A2iˆ2 + A3iˆ3 ). B1 B2 B3
C1 C2 C3
A1 A2 A3
⇒ A.BxC = B1 B2 B3
C1 C2 C3
⇒Since the value of the determinant on the right side remains unchanged if the rows are
⃗ 𝐵𝐵 × 𝐶𝐶⃗ = 𝐶𝐶.
interchanged in a cylindrical manner, we have 𝐴𝐴. ⃗ 𝐴𝐴⃗ × 𝐵𝐵 = 𝐵𝐵. 𝐶𝐶⃗ × 𝐴𝐴⃗
18
Vector triple product
⃗ 𝐵𝐵 and 𝐶𝐶⃗ is defined as 𝐴𝐴⃗ ×
⇒The vector product of three vectors (vector triple product) 𝐴𝐴,
𝐵𝐵 × 𝐶𝐶⃗ .
⇒𝐴𝐴⃗ × 𝐵𝐵 × 𝐶𝐶⃗ =𝐵𝐵 𝐴𝐴.
⃗ 𝐶𝐶⃗ − 𝐶𝐶⃗ 𝐴𝐴.
⃗ 𝐵𝐵
⇒It should be noted that
𝐴𝐴⃗ 𝐵𝐵. 𝐶𝐶⃗ ≠ 𝐴𝐴.
⃗ 𝐵𝐵 𝐶𝐶⃗
𝐴𝐴⃗ × 𝐵𝐵 × 𝐶𝐶⃗ ≠ 𝐴𝐴⃗ × 𝐵𝐵 × 𝐶𝐶⃗
• As an example, let us assume the three vectors to unit vectors as follows:
𝐴𝐴⃗ = 𝚤𝚤;̂ 𝐵𝐵 = 𝚤𝚤;̂ 𝐶𝐶⃗ = 𝚥𝚥̂
𝐴𝐴⃗ × 𝐵𝐵 × 𝐶𝐶⃗ =𝚤𝚤̂ × 𝚤𝚤̂ × 𝚥𝚥̂ =𝚤𝚤̂ × 𝑘𝑘� = −𝚥𝚥̂
𝐴𝐴⃗ × 𝐵𝐵 × 𝐶𝐶=
⃗ 𝚤𝚤̂ × 𝚤𝚤̂ × 𝚥𝚥=0
̂ × 𝚥𝚥̂ = 0
19
Components of a vector
⇒Using vector product, the projection (scalar or vector) of the vector
in a given direction can be determined.
⃗ 𝑎𝑎�𝐵𝐵 𝑐𝑐𝑐𝑐𝑐𝑐𝜃𝜃𝐴𝐴𝐴𝐴 = 𝐴𝐴.
⇒𝐴𝐴𝐵𝐵 = 𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝜃𝜃𝐴𝐴𝐴𝐴 =|𝐴𝐴| ⃗ 𝑎𝑎�𝐵𝐵 (scalar component)
20
References
[1] M.N. Sadiku: Elements of Electromagnetics, Oxford University Press,
ISBN 0-19-510368-8
[2] “Electromagnetics and Applications Assignment Help”,
(http://www.assignmenthelp.net/assignment_help/Electromagnetics-
And-Applications)
21