Microsoft PowerPoint - 2. ELMAG - 1 - Vector Algebra
Microsoft PowerPoint - 2. ELMAG - 1 - Vector Algebra
Elektromagnetika 1
(Vector Algebra)
Vector Algebra
Scalars and Vectors
Unit Vector
Vector Addition and Subtraction
Position and Distance Vectors
Vector Multiplication
Components of a Vector
VECTOR ALGEBRA
A = A aA
which completely specifies A in terms of its magnitude A and its
direction aA.
A vector A in Cartesian (or rectangular) coordinates may be repre-
sented as
(a) Unit vectors ax, ay, and az (b) components of A along ax, ay, and az
Where :
Ax, Ay and Az are called the components of A in the x, y, and z
directions respectively;
ax, ay, and az are unit vectors in the x, y, and z directions,
respectively.
The magnitude of vector A is given by
If two points P and Q are given by (xP , yP , zP) and (xQ , yQ , zQ), the
distance vector (or separation vector) is the displacement from P to Q
as shown in the figure above; that is,
rPQ = rQ − rP
= (xQ − xP) ax + (yQ − yP) ay + (zQ − zP) az
A vector field is said to be constant or uniform if it does not depend
on space variables x, y, and z. For example, vector B = 3ax − 2ay +
10az is a uniform vector while vector A = 2xy ax + y2 ay − xz2 az is
not uniform because B is the same everywhere whereas A varies
from point to point.
EXAMPLE 1
Solution:
(a) The component of A along ay is Ay = −4.
(b) 3A − B = 3(10, −4, 6) − (2, 1, 0)
= (30, −12, 18) − (2, 1, 0)
= (28, −13, 18)
Hence
(c) Let C = A + 2B = (10, −4, 6) + (4, 2, 0) = (14, −2, 6)
A unit vector along C is
or
PRACTICE EXERCISE 1
Given vectors A = ax + 3az and B = 5ax + 2ay − 6az , determine
(a) A + B
(b) 5A − B
(c) The component of A along ay
(d) A unit vector parallel to 3A + B
Answer: (a) 7, (b) (0, −2, 21), (c) 0, (d) ± (0,9117; 0,2279; 0,3419).
EXAMPLE 2
Solution:
(a) rPQ = 0ax + 2ay + 4az = 2ay + 4az
(b) rPQ = rQ − rP = (−3, 1, 5) − (0, 2, 4) = (−3, −1, 1)
or rPQ = −3ax − ay + az
(c) Since rPQ is the distance vector from P to Q, the distance
between P and Q is the magnitude of this vector; that is,
Alternatively:
and
PRACTICE EXERCISE 2
Given points P(l, −3, 5), Q(2, 4, 6), and R(0, 3, 8), find:
(a) the position vectors of P and R,
(b) the distance vector rQR,
(c) the distance between Q and R,
Answer: (a) ax − 3 ay + 5 az ; 3ax + 3 ay , (b) −2ax − ay
EXAMPLE 3
A river flows southeast at 10 km/hr and a boat flows upon it with its
bow pointed in the direction of travel. A man walks upon the deck at
2 km/hr in a direction to the right and per pendicular to the direction
of the boat's movement. Find the velocity of the man with respect to
the earth.
Solution:
Consider the Figure below as illustrating the problem. The velocity of
the boat is
The velocity of the man with
respect to the boat (relative
velocity) is
VECTOR MULTIPLICATION
When two vectors A and B are multiplied, the result is either a scalar
or a vector depending on how they are multiplied. Thus there are two
types of vector multiplication:
1. Scalar (or dot) product: A • B
2. Vector (or cross) product: A × B
Multiplication of three vectors A, B, and C can result in either:
3. Scalar triple product: A • (B × C)
4. Vector triple product: A × (B × C)
Dot Product
The dot product of two vectors A and B, wrilten as A • B. is defined
geometrically as the product of the magnitudes of A and B and the
cosine of the angle between them. Thus:
but
COMPONENTS OF A VECTOR
A direct application of vector product is its use in determining the
projection (or component) of a vector in a given direction. The
projection can be scalar or vector.
Given a vector A, we define the scalar component AB of A along
vector B as
or
Notice from Figure (b) that the vector can be resolved into two
orthogonal components: one component AB parallel to B, another (A
− AB) perpendicular to B.
We have considered addition, subtraction, and multiplication of
vectors. However, division of vectors A/B has not been considered
because it is undefined except when A and B are parallel so that A =
k B, where k is a constant .
EXAMPLE 4
Given vectors A = 3ax + 4ay + az and B = 2ay − 5az, find the angle
between A and B.
Solution:
The angle θAB can be found
by using either dot product
or cross product.
Alternatively:
PRACTICE EXERCISE 4
If A = ax + 3az and B = 5ax + 2ay − 6 az , find θAB .
Answer: 120,6°.
EXAMPLE 5
Three field quantities are given by
Determine
Solution:
Alternatively:
as obtained before.
(c)
EXAMPLE 6
Derive the cosine formula :
that is,
Hence,
EXAMPLE 7
Show that points P1 (5, 2, −4),
− P2 (1, 1, 2), and P3 (−3,
− 0, 8) all lie on a
straight line. Determine the shortest distance between the line and point
P4 (3, −1, 0).
Solution:
The distance vector is given by
Similarly,
showing that the angle between and is zero (sin θ = 0). This
implies that P1 , P2 , and P3 lie on a straight line.
Alternatively, the vector equation of the straight line is easily determined
from Figure (a). For any point P on the line joining P1 and P2
This is the vector equation of the straight line joining P1 and P2. If P3 is
on this line, the position vector of P3 must satisfy the equation; r3 does
satisfy the equation when λ = 2.
The shortest distance between the line and point P4 (3, −1, 0) is the per-
pendicular distance from the point to the line. From Figure (b), it is clear
that
The shortest distance between the line and point P4 (3, −1, 0) is the per-
pendicular distance from the point to the line. From Figure (b), it is clear
that
Any point on the line may be used as a reference point. Thus, instead of
using P1 as a reference point, we could use P3 so that
PRACTICE EXERCISE 7
If P1 is (1,2, −3) and P2 is (−4, 0,5), find
(a) The distance P1 P2
(b) The vector equation of the line P1 P2
(c) The shortest distance between the line P1 P2 and point P3 (7, − 1,2)