Beruflich Dokumente
Kultur Dokumente
Vector Analysis
Dr. V. Karteek
vkarteek@thapar.edu
Dr. V. Karteek
Vector Algebra
I Electromagnetics is a study of electric and magnetic phenomena using scalar and vector
fields.
I Vector algebra is essential in understanding the concepts of Electromagnetics.
I A field may be defined mathematically as some function that connects an arbitrary origin
to a general point in space.
I Vectors are objects with direction and magnitude.
I Displacements have direction as well as magnitude, and it is essential to take both into
account.
I Velocity, acceleration, force and momentum are other examples of vectors.
I Scalars are the quantities that have magnitude but no direction, ex. distance.
→
− →−
I Boldface letters (A, B) or ( A , B ) are used to represent vectors and normal letters
(A, B) are used to represent scalars.
I The magnitude of a vector A is written |A| or, more simply, A.
I Vectors are denoted by arrows in the diagrams.
I The length of the arrow is proportional to the magnitude of the vector and the arrowhead
indicates its direction.
I Dr. V. Karteek
−A is a vector with the same magnitude as A but of opposite direction.
I Vectors have magnitude and direction but not location.
I We are concerned with two- and three-dimensional spaces only.
I Vectors may be defined in n-dimensional space in more advanced applications.
(a) (b)
Fig. 1: Vectors.
Unit Vector
I A unit vector aA along A is defined as a vector whose magnitude is unity and its
direction is along A.
A A
aA = = (1)
Dr. V. Karteek |A| A
I A vector in Cartesian coordinates may be represented as
(Ax , Ay , Az ) or Ax ax + Ay ay + Az az (2)
I (Ax , Ay , Az ) are components of A in (x, y, z)-directions.
I The unit vectors in (x, y, z)-directions can be represented as (ax , ay , az ) or (î, ĵ, k̂) or
(x̂, ŷ, ẑ).
(a) (b)
Dr. V. Karteek
Fig. 3: Addition and subtraction of two vectors.
I The vector addition is carried out component by component.
A + B = (Ax + Bx )ax + (Ay + By )ay + (Az + Bz )az (4)
I Addition is commutative, as shown in Fig. 3a.
A+B=B+A (5)
I Addition is associative:
(A + B) + C = A + (B + C) (6)
I Addition is also distributive:
k(A + B) = kA + kB (7)
Multiplication by a Scalar
I Multiplication of a vector by a positive scalar a multiplies the magnitude but leaves the
direction unchanged.
I Scalar multiplication is commutative, associative and distributive.
kA = Ak
k(lA) = (kl)A
k(A + B) = kA + kB
Dr. V. Karteek
Dot Product of Two Vectors
I The dot product two vectors is defined geometrically as the product of the magnitudes of
the two vectors and the cosine of the smaller angle between them (drawn tail to tail).
I The dot product of two vectors is given by
A · B = AB cos(θ) (8)
I θ is the angle they form when placed tail-to-tail as shown in Fig. 4
A·B=B·A (10)
A · (B + C) = A · B + A · C (11)
ax · ay = ay · az = az · ax = 0 (12)
ax · ax = ay · ay = az · az = 1 (13)
Dr. V. Karteek
I Two vectors A and B are said to be parallel if A · B = AB.
I For any vector A, A · A = A2 .
I Geometrically, A · B is the product of A times the projection of B along A (or the
product of B times the projection of A along B).
I The dot product obeys commutative and distributive laws:
A·B=B·A (10)
A · (B + C) = A · B + A · C (11)
ax · ay = ay · az = az · ax = 0 (12)
ax · ax = ay · ay = az · az = 1 (13)
C 2 = C · C = (A − B) · (A − B) = A2 + B 2 − 2AB cos(θ)
Dr. V. Karteek
Cross Product of Two Vectors
I The cross product of two vectors is defined by
A × B = AB sin(θ)an (14)
I Where an is a unit vector pointing perpendicular to the plane of A and B.
I There are two directions perpendicular to any plane: “in” and “out”.
I The ambiguity is resolved by the right-hand thumb rule.
I Let your fingers point in the direction of the first vector and curl around (via the smaller
angle) toward the second, then your thumb indicates the direction of an .
I Geometrically, |A × B| is the area of the parallelogram generated by A and B.
I B × C points out of the page and A × (B × C) points down with a magnitude ABC.
I
Dr. V. Karteek
But A × B = 0 and so, (A × B) × C = 0 6= A × (B × C).
I If two vectors are parallel, their cross product is zero. In particular,
A×A=0 (18)
0 is the zero vector with magnitude 0.
I Cross product in component form, derived using Eqn. (14) are given by,
ax × ax = ay × ay = az × az = 0
ax × ay = −ay × ax = az
ay × az = −az × ay = ax
az × ay = −ay × az = ax
I The cross product is given by,
A × B = (Ax ax + Ay ay + Az az ) × (Bx ax + By ay + Bz az )
= (Ay Bz − Az By )ax + (Az Bx − Ax Bz )ay + (Ax By − Ay Bx )az (19)
I The above expression can be written in determinant form,
ax ay az
A × B = Ax Ay Az (20)
Bx By Bz
Dr. V. Karteek
I Find the angle between the face diagonals and the angle between the body diagonals of a
unit cube.
(a) (b)
Solution: From Fig. 7a, A = 1ax + 0ay + 1az and B = 0ax + 1ay + 1az
A·B=1·0+0·1+1·1=1
√ √
A · B = AB cos(θ) = 2 2 cos(θ) = 2 cos(θ)
◦
Dr. V. Karteek⇒ 1 = 2 cos(θ) ⇒ θ = 60
I By following a similar procedure for Fig. 7b with A = 1ax + 1ay − 1az and
B = 1ax + 1ay + 1az , we can obtain θ = 70.5288◦ .
Scalar Triple Product
I The scalar triple product is defined by A · (B × C).
I Geometrically, |A · (B × C)| is the volume of the parallelepiped generated by A, B and C.
I Since, |B × C| is the area of base in Fig. 8, and |A cos(θ)| is the altitude,
A · (B × C) = B · (C × A) = C · (A × B) (21)
I It can also be written as,
A · (C × B) = B · (A × C) = C · (B × A) (22)
Fig. 8: Parallelepiped.
Dr. V. Karteek
I In component form,
Ax Ay Az
A · (B × C) = Bx By Bz (23)
Cx Cy Cz
I The dot and cross can be interchanged,
A · (B × C) = (A × B) · C (24)
I
Dr. V.Prove
Exercise: Karteek
the BAC-CAB rule by writing out both sides in component form.
I All higher vector products can be similarly reduced, often by repeated application of
Eqn. (25), for example,
(A × B) · (C × D) = (A · C)(B · D) − (A · D)(B · C)
A × [B × (C × D)] = B[A · (C × D)] − (A · B)(C × D)
Components of a Vector
I The projection of a vector in a given direction is obtained by using scalar product.
Dr. V. Karteek
I The projection can be a scalar or vector.
I Given a vector A, the scalar component AB of A along vector B is,
AB = A cos(θAB ) = |A||aB | cos(θAB ) = A · aB (27)
I The vector component AB of A along B is simply the scalar quantity in Eqn. (27)
multiplied by a unit vector along B,
AB = AB aB = (A · aB )aB (28)
I The vector can be resolved into two orthogonal components: AB parallel to B and
(A − AB ) perpendicular to B.
I Division of two vectors is undefined except when the two vectors are parallel (A = kB).
r = r − r0 (33)
r − r0
r̂ =
|r − r0 |
(34)
Dr. V. Karteek
I In Cartesian coordinates,
r = (x − x0 )ax + (y − y 0 )ay + (z − z 0 )az (35)
r p
| | = (x − x0 )2 + (y − y 0 )2 + (z − z 0 )2 (36)
(x − x0 )a 0
x + (y − y )ay + (z − z )az
0
r̂ = p
(x − x0 )2 + (y − y 0 )2 + (z − z 0 )2
(37)
Coordinate Systems
I The study of EM theory requires us to be able to define all points uniquely in space.
I A point or vector can be represented in any curvilinear coordinate system, which may be
orthogonal or nonorthogonal.
I An orthogonal system is one in which the coordinates arc mutually perpendicular.
I Nonorthogonal systems are hard to work with and they are of little or no practical use.
I There are many orthogonal coordinate systems, but we restrict to three systems:
1. Cartesian
2. Cylindrical
3. Spherical
I A hard problem in one coordinate system may turn out to be easy with considerably
Dr. V. Karteek
lower solving time in another system.
I Topics covered on vectors (dot product, cross product, etc..) are equally applicable to
other coordinate systems.
I Sometimes, it is necessary to transform points and vectors from one coordinate system to
another.
Cartesian Coordinates (x, y, z)
I A point P can be represented as (x, y, z) as illustrated in the next slide.
I The ranges of the coordinate variables x, y, and z are
−∞ < x < ∞
−∞ < y < ∞ (38)
−∞ < z < ∞
(Ax , Ay , Az ) or Ax ax + Ay ay + Az az (39)
I where a , a , and a are unit vectors along the x-, y-, and z-directions
x y z
Dr. V. Karteek
z
z = z2 plane
P2 (x2 , y2 , z2 )
z1 az
az
P1 (x1 , y1 , z1 )
x = x2 plane ax ay
y1 ay
x1 ax
y = y2 plane
y
x
Dr. V. Karteek
Cylindrical Coordinates (ρ, φ, z)
I Cylindrical coordinate system is very convenient while dealing with problems having
cylindrical symmetry.
I A point P in cylindrical coordinates is represented as (ρ, φ, z) shown in next slide.
I ρ is the radius of the cylinder passing through P or the radial distance from the z-axis.
I φ is called the azimuthal angle, is measured from the x-axis in the xy-plane.
I The ranges of the variables are
0≤ρ<∞
0 ≤ φ < 2π (40)
−∞ < z < ∞
I A vector A in cylindrical coordinates can be written as,
(Aρ , Aφ , Az ) or Aρ aρ + Aφ aφ + Az az (41)
I where aρ , aφ , and az are unit vectors along the ρ-, φ-, and z-directions.
I A vector will have the dimensions of the quantity it is representing.
For example 15 N force in aφ direction is represented as 15aφ N, but not as 15a◦φ .
I
Dr. V. Karteek
z
z = z1 plane
z1
az
P1 (ρ1 , φ1 , z1 )
aφ
aρ
ρ = ρ1 surface
ρ1
y
φ1
x
φ = φ1 plane
Dr. V. Karteek
I The magnitude of A is, q
|A| = A2ρ + A2φ + A2z (42)
I Since aρ , aφ , and az are mutually orthogonal,
aρ · aρ = aφ · aφ = az · az = 1
aρ · aφ = aφ · az = az · aρ = 0
aρ × aρ = aφ × aφ = az × az = 0
aρ × aφ = −aφ × aρ = az
aφ × az = −az × aφ = aρ
az × aρ = −aρ × az = aφ
I The relationships between the variables (x, y, z) of the Cartesian coordinate system and
those of the cylindrical system (ρ, φ, z) are given by,
p y
ρ = x2 + y 2 , φ = arctan , z=z (43)
x
x = ρ cos(φ), y = ρ sin(φ), z = z (44)
Dr. V. Karteek
I The relationships between (ax , ay , az ) and (aρ , aφ , az ) are given by,
or
Aρ = Ax cos(φ) + Ay sin(φ)
Aφ = −Ax sin(φ) + Ay cos(φ) (52)
Az = Az
Dr. V. Karteek
I In matrix from,
Aρ cos(φ) sin(φ) 0 Ax
Aφ = − sin(φ) cos(φ) 0 Ay (53)
Az 0 0 1 Az
I By using inverse transformation,
−1
Ax cos(φ) sin(φ) 0 Aρ
Ay = − sin(φ) cos(φ) 0 Aφ (54)
Az 0 0 1 Az
I It can also be obtained from Eqns. (45) to (47) as,
Ax cos(φ) − sin(φ) 0 Aρ
Ay = sin(φ) cos(φ) 0 Aφ (55)
Az 0 0 1 Az
I Dot product can also be used to obtain Eqns. (53) to (55),
Ax ax · aρ ax · aφ ax · az Aρ
Ay = ay · aρ ay · aφ ay · az Aφ (56)
Az az · aρ az · aφ az · az Az
Dr. V. Karteek
I The spherical system is more appropriate with problems having spherical symmetry.
I A point P can be represented as (r, θ, φ) as shown in next slide.
I r is defined as the distance from the origin to point P .
I θ (colatitude or polar angle) is the angle between the z-axis and position vector of P .
I φ (azimuthal angle) is measured from x-axis.
I The ranges of the variables are,
0≤r<∞
0≤θ≤π (57)
0 ≤ φ < 2π
(Ar , Aθ , Aφ ) or Ar ar + Aθ aθ + Aφ aφ (58)
I where ar , aθ , and aφ are unit vectors along the r-, θ-, and φ-directions.
I The magnitude of A is, q
|A| = A2r + A2θ + A2φ (59)
Dr. V. Karteek
z
ar
aφ
θ P1 (r1 , θ1 , φ1 )
aθ
φ
y
Dr. V. Karteek
Dr. V. Karteek
I Since ar , aθ , and aφ are mutually orthogonal,
ar · ar = aθ · aθ = aφ · aφ = 1
ar · aθ = aθ · aφ = aφ · ar = 0
ar × ar = aθ × aθ = aφ × aφ = 0
ar × aθ = −aθ × ar = aφ
aθ × aφ = −aφ × aθ = ar
aφ × ar = −ar × aφ = aθ
I The relationships between the variables (x, y, z) of the Cartesian coordinate system and
those of the spherical system (r, θ, φ) are given by,
p !
p x 2 + y2 y
r = x2 + y 2 + z 2 , θ = arctan , φ = arctan (60)
z x
x = r sin(θ) cos(φ), y = r sin(θ) sin(φ), z = r cos(θ) (61)
Dr. V. Karteek
I The relationships between (ax , ay , az ) and (ar , aθ , aφ ) are given by,
ax = sin(θ) cos(φ)ar + cos(θ) cos(φ)aθ − sin(φ)aφ (62)
ay = sin(θ) sin(φ)ar + cos(θ) sin(φ)aθ + cos(φ)aφ (63)
az = cos(θ)ar − sin(θ)aθ (64)
ar = sin(θ) cos(φ)ax + sin(θ) sin(φ)ay + cos(θ)az (65)
aθ = cos(θ) cos(φ)ax + cos(θ) sin(φ)ay − sin(θ)az (66)
aφ = − sin(φ)ax + cos(φ)az (67)
I By substituting Eqns. (62) to (64) into Eqn. (39),
A =[Ax sin(θ) cos(φ) + Ay sin(θ) sin(φ) + Az cos(θ)]ar +
[Ax cos(θ) cos(φ) + Ay cos(θ) sin(φ) − Az sin(θ)]aθ + [−Ax sin(φ) + Ay cos(φ)]aφ (68)
or
Ar = Ax sin(θ) cos(φ) + Ay sin(θ) sin(φ) + Az cos(θ)
Aθ = Ax cos(θ) cos(φ) + Ay cos(θ) sin(φ) − Az sin(θ) (69)
Aφ = −Ax sin(φ) + Ay cos(φ)
Dr. V. Karteek
I In matrix from,
Ar sin(θ) cos(φ) sin(θ) sin(φ) cos(θ) Ax
Aθ = cos(θ) cos(φ) cos(θ) sin(φ) − sin(θ) Ay (70)
Aφ − sin(φ) cos(φ) 0 Az
I By using inverse transformation,
−1
Ax sin(θ) cos(φ) sin(θ) sin(φ) cos(θ) Ar
Ay = cos(θ) cos(φ) cos(θ) sin(φ) − sin(θ) Aθ (71)
Az − sin(φ) cos(φ) 0 Aφ
I It can also be obtained from Eqns. (62) to (64) as,
Ax sin(θ) cos(φ) cos(θ) cos(φ) − sin(φ) Ar
Ay = sin(θ) sin(φ) cos(θ) sin(φ) cos(φ) Aθ (72)
Az cos(θ) − sin(θ) 0 Aφ
I Dot product can also be used to obtain Eqns. (70) to (72),
Ar ar · ax ar · ay ar · az Ax
Aθ = aθ · ax aθ · ay aθ · az Ay (73)
Aφ aφ · ax aφ · ay aφ · az Az
Dr. V. Karteek
I In different coordinate systems, the point or vector is not changed, it is only expressed
differently.
I The distance between two points r1 and r2 is given by,
d = |r2 − r1 | (74)
p
d = (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2 (Cartesian)
(75)
q
d = ρ21 + ρ22 − 2ρ1 ρ2 cos(φ2 − φ1 ) + (z2 − z1 )2 (cylindrical)
(76)
q
d = r12 + r22 − 2r1 r2 cos(θ1 ) cos(θ2 ) − 2r1 r2 sin(θ1 ) sin(θ2 ) cos(φ2 − φ1 ) (spherical)
(77)
I The magnitude of displacement vector is same in all the three coordinate systems.
Dr. V. Karteek