Vectors Notes
Vectors Notes
Natural Resources
Bunda Campus
Introduction to Vectors
Lecture Notes
Francisco Chamera
January 8, 2024
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 1
Contents
1 Vector Algebra 2
1 Vector Algebra
Definition 1.1. A vector represents the length and direction of a line segment.
The length of a vector v is denoted |v|.
Sometimes vectors are referred to a fixed point, an origin. Such a vector is called a
position vector. So we might refer to the position vector of a point P with respect
−→
to an origin O. In writing, might put OP for this vector. Alternatively, we could
write it as r (see Figure 1). These two expressions refer to the same vector.
Solution
−→ −→ √ √
P Q = [2 − 3, −7 − (−4)] = [−1, −3], so |P Q| = 12 + 32 = 10.
Example 1.4.
Solution
√ √ √
|v| = 32 + 42 = 9 + 16 = 25 = 5.
Definition 1.5. Two vectors u and v are equal if they have the same magnitude
and direction regardless of their initial point.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 3
Definition 1.6. Let v = [v1 , v2 , ..., vn ] and w = [w1 , w2 , ..., wn ] be vectors and λ be
any scalar. Then
Solution
u + v = [1 + 5, 4 + 2] = [6, 6].
Example 1.8.
The following are the properties of vector addition and scalar multiplication.
1. u + v = v + u (commutativity).
2. (u + v) + w = u + (v + w) (associativity).
3. There is a unique vector 0 such that for all vectors u, u + 0 = 0 + u = u
(identity element for vector addition).
4. For every vector u there is a unique vector −u such that u + (−u) = 0.
5. λ(µu) = (λµ)u = (λµu) = λ(µu) (associativity for scalar multiplication).
6. λ(u + v) = λu + λv (distributive law for vector addition).
7. (λ + µ)u = λu + µu (distributive law for scalar multiplication).
8. The number 1 is the identity element for scalar multiplication: 1u = u.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 4
Definition 1.9. Suppose P and Q are any points in R3 . Then the line segemnt
−→
from P to Q, denoted P Q, is called the geometric vector from P to Q. Point P
−→ −→ −→
is called the tail of P Q, Q is called the tip of P Q, and the length of P Q is denoted
−→
|P Q|.
The following theorem gives the parallelgram law. Also refer to Figure 2.
Parallelgram law also defines vector subtraction as in the following theorem and
Figure 3.
Theorem 1.11. If v and w have a common tail, then v − w is the vector from the
tip of w to the tip of v.
Definition 1.12. The dot product or inner product of two vectors v = [v1 , v2 , ..., vn ]
and w = [w1 , w2 , ..., wn ] is
v.w = v1 w1 + v2 w2 + ... + vn wn .
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 5
The dot product is also called scalar product since it has only magnitude, no
direction. The following theorem gives properties of scalar products.
Theorem 1.13. For any vector v, w, w1 , w2 , and any r ∈ R, we have the following
1. v.w = w.v
2. v.(w1 + w2 ) = v.w1 + v.w2
3. v.(rw) = r(v.w)
4. v.v = |v|2 , where |v| denotes the length of v (also called the magnitude or
norm).
Example 1.14.
Definition 1.15. The angle between two non-zero vectors u and v is defined as the
unique angle θ ∈ [0, π] which satisfies
u.v
u.v = |u|.|v| cos θ ⇒ cos θ = .
|u||v|
Example 1.16.
Find the angle between vectors u = [3, −1] and v = [−4, 2].
Solution
Now
u.v −14 7 7
cos θ = =√ √ = − √ ⇒ θ = cos−1 − √ = 3.
|u|.|v| 10 × 20 5 2 5 2
Example 1.17.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 6
Find the angle between vectors u = [3, −1, 2] and v = [1, −1, −2].
Solution
Now
u.v 0 π
cos θ = =√ √ = 0 ⇒ θ = cos−1 0 = .
|v|.|u| 14 × 6 2
Hence the two vectors are perpendicular.
Definition 1.18. Two vectors u and v are said to be orthogonal (perpendicular)
π
if the angle between them is . They are parallel if the angle between them is 0.
2
Example 1.19.
Find the angle between vectors u = [1, 2, −3] and v = [2, 4, −6].
Solution
Now
28 28 28
cos θ = √ √ =√ = = 1 ⇒ θ = cos−1 1 = 0.
14 × 56 784 28
Hence the two vectors are parallel.
Remark 1.20. Two vectors are orthogonal if their dot product is 0. So to check if
u and v are orthogonal we check whether u.v = 0 or not.
Example 1.21.
Solution
Find the unit vector in the same direction as the vector v = [1, 3].
Solution
√ √
|v| = 12 + 33 = 10.
1 1 3
Hence u = √ [1, 3] = √ , √ .
10 10 10
An important set of unit vectors, denoted by i, j, and k, are those having the direc-
tions, respectively, of the positive x, y, and z axes of a three-dimensional rectangular
coordinate system (see Figure 4).
Find the unit vector in the direction of the vector v = 12i − 3j − 4k.
Solution
√ √ √
|v| = 122 + 32 + 42 = 144 + 9 + 16 = 169 = 13.
12 3 4
Hence the unit vector is u = i − j − k.
13 13 13
Example 1.26.
Let u = 6i − 3j + k and v = 4i + 2j. Find u.v and the angle between the two vectors.
Solution
√ √
u.v = 6(4) + (−3)(2) + 1(0) = 24 − 6 = 18. |u| = 46 and |v| = 2 5.
u.v 18
Hence cos θ = =√ √ = 0.593 giving θ = cos−1 0.593 = 0.936.
|u||v| 46 × 2 5
To get direction of a × b use the right hand rule (see Figure 6 and Figure 5):
• Make a set of directions with your right hand thumb and first index finger,
and with middle finger positioned perpendicular to plane of both.
• Point your thumb along the first vector a.
• Point your 1-st index finger along b, making the smallest possible angle to a.
• The direction of the middle finger gives the direction of a × b.
Figure 6: a × b
1. u × v = −v × u
2. λ(u × v) = (λu) × v = u × (λv) = (u × v)λ
3. (u + v) × w = (u × w) + (v × w)
4. u × v = 0 if and only if the vectors u and v are parallel.
5. |u × v| = |u||v| sin θ where θ is the angle between u and v.
Example 1.28.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 10
Solution
Recall that the vectors i and j are perpendicular. Further, if we apply the right
hand rule, we see that a vector perpendicular to both i and j is k. Now
π
i × j = |i||j| sin k = (1)(1)(1)k = k.
2
The cross product of two vectors is found by calculating the determinant as stated
in the following definition.
Definition 1.29. Let u = u1 i + u2 j + u3 k and v = v1 i + v2 j + v3 k. Then
i j k
u × v = u1 u2 u3 .
v1 v2 v3
Example 1.30.
Solution
i j k
u×v = 1 3 4
2 1 3
= (3(3) − 4(1))i − (1(3) − 4(2))j + (1(1) − 3(2))k
= 5i + 5j − 5k.
Example 1.31.
Solution
i j k
i×i= 1 0 0 =0
1 0 0
and
i j k
i × j = 1 0 0 = k.
0 1 0
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 11
Vector Equation
The line consists of all points obtained by adding a multiple of the vector v = [a, b, c]
−→ −→
to the vector OP = [p, q, r]. It contains the point P as well as a copy of v = P Q
attached to P . Every vector contained in the line is necessarily parallel to v. We
−→
think about the parameter t as “time”. At t = 0 we are at the end point P of OP
−→ −→
and at t = 1 we are at the end point Q of OQ = OP + v.
Symmetric Equation
If we write
[x, y, z] = [p, q, r] + t[a, b, c]
as a collection of equations
and solve each equation for t we get equivalent form of equation 1 as follows
x−p y−q z−r
L = {(x, y, z)| = = }. (3)
a b c
The eqation in 3 is called symmetric equation.
Parametric Equations
The equations in 2 are called parametric equations. Note that if we are given a
line in this form, we can immediately read off the point on the line (p, q, r) and a
direction vector [a, b, c].
Example 2.1.
Find vector, parametric and symmetric equations of the line L which passes through
the points A = (2, 4, 3) and B = (3, 4, 1).
Solution
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 12
Solution
By Definition 2.2, parallel lines extend in the same direction. That is if L1 has
direction vector v1 and L2 has direction vector v2 then L1 and L2 are parallel if and
only if v1 and v2 point in the same (or exact opposite) direction, i.e., if v1 is a scalar
multiple of v2 .
Solution
Equating z’s
−1 − 4t = 5 + s.
Checking if z values are equal for t and s:
−1 − 4t = 5 + s ⇒ −1 − 4(−1) = 5 + (−2) ⇒ 3 = 3.
Therefore, L1 and L2 are intersecting lines. Substituting values of t and s in L1
gives
x = 3 − (−1) = 4, y = 5 + 3(−1), z = −1 − 4(−1) = 3.
Hence the point of intersection is (4, 2, 3).
Example 2.5.
Determine whether the lines L1 and L2 are parallel, skew or intersecting. If they
intersect, find the point of intersection.
L1 :x = 4 + t y = −8 − 2t z = 12t
L2 :x = 3 + 2s y = −1 + s z = −3 − 3s.
Solution
Let v1 and v2 be direction vectors for L1 and L2 respectively. Then v1 = [1, −2, 12]
and v2 = [2, 1, −3]. Clearly, L1 and L2 are not parallel.
n.(r − r0 ) = 0.
Figure 7: Plane
Given points P = (x, y, z) and P0 = (x0 , y0 , z0 ) and the normal vector n = [a, b, c],
the vector equation is
If we put d = −ax0 − by0 − cz0 we get the following equation which is called linear
equation:
ax + by + cz + d = 0.
Example 2.6.
Find the scalar and linear equation of the plane which passes through the points
P (1, 3, 2), Q(3, −1, 6) and R(5, 2, 0).
Solution
The vectors
−→ −→
P Q = [2, −4, 4] and P R = [4, −1, −2]
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 15
i j k
−→ −→
n = P Q × P R = 2 −4 4 = 12i + 20j + 14k.
4 −1 −2
Example 2.7.
Determine the equation of the plane that contains the lines L1 and L2
L1 :x = 3 − t y = 5 + 3t z = −1 − 4t
L2 :x = 8 + 2s y = −6 − 4s z = 5 + s.
Solution
In order to find the equation of a plane, we need a point on the plane and a vector
n = [a, b, c] that is orthogonal to the plane. We have two points in the plane:
i j k
n = u × v = −1 3 −4 = −13i − 7j − 2k.
2 −4 1
The angle between two planes is the angle between their normal vectors.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 16
Definition 2.8. Two planes are parallel if their normal vectors are parallel. If two
planes are not parallel, then they intersect in a straight line and the angle between
them is defined as the acute angle between their normal vectors.
Algebraically, we can combine the equations of the planes and try to solve them.
The solutions give us the line of intersection, while no solution means the planes are
parallel.
Example 2.9.
Solution
4x − y = 0 ⇒ y = 4x.
x − 2(4x) + z = 0 ⇒ z = 7x.
Let x = t. Then y = 4t and z = 7t. Hence the equation of the line of intersection is
L : x = t y = 4t y = 7t.
Example 2.10.
Calculate the angle between the planes T1 and T2 given by the equations x+y+z = 1
and x − 2y + 3z = 1, respectively.
Solution
Algebraically, we can combine the equations of the line and the plane and try to
solve them. The solutions give us the intersection point, while no solution means
parallel.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 17
Example 2.12.
x = 2 + 3t, y = −4t , z = 5 + t
Solution
Example 2.13.
Solution
Alternatively, direction vector of the line is v = [3, −4, −4] and the normal vector
to the plane is n = [4, 5, −2].
so v and n are orthogonal implying that the line and the plane are parallel.
Theorem 2.14. The distance between the point P1 (x1 , y1 , z1 ) and the plane
ax + by + cz + d = 0 is given by
|ax1 + by1 + cz1 + d|
D= √ .
a2 + b2 + c2
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 18
Proof. Choose a point P0 (x0 , y0 , z0 ) on the plane. The distance is given by the
−−→
absolute value of the scalar projection of P0 P onto the normal vector n = [a, b, c]
and hence
−−→
−−→ |n.P0 P | |a(x1 − x0 ) + b(y1 − y0 ) + c(z1 − z0 )|
D = |compn P0 P | = = √ .
|n| a2 + b2 + c2
Using ax0 + by0 + cz0 = d, we get the desired formula.
Proof. Take a point P1 (x1 , y1 , z1 ) on the second plane. Since ax1 + by1 + cz1 + d2 = 0,
the distance between these two planes is
|ax1 + by1 + cz1 + d| |d1 − d2 |
√ =√ .
a2 + b2 + c2 a2 + b2 + c2
Example 2.16.
Solution
Exercise 2.17.
1. Find a set of vector, parametric, and symmetric equations of the line through
the origin and the point (4, 3, −1).
2. Find a set of vector, parametric, and symmetric equations of the line through
the point (0, 14, −10) and parallel to the line x = −1+2t, y = 6−3t, z = 3+9t.
Introduction to Vectors, Francisco Chamera, LUANAR - Bunda 19
3. Is the line through (−4, −6, 1) and (−2, 0, −3) parallel to, intersecting with,
or skew with the line through (10, 18, 4) and (5, 3, 14)?
4. Find a set of vector, scalar, and linear equations of the plane through (1, −1, −1)
and parallel to the plane 5x − y − z = 6.