Professional Documents
Culture Documents
University of Strathclyde Department of Mathematics Vectors
University of Strathclyde Department of Mathematics Vectors
University of Strathclyde Department of Mathematics Vectors
UNIVERSITY OF STRATHCLYDE
DEPARTMENT OF MATHEMATICS
Vectors
Contents
1 Introduction to vectors 2
1.1 Physical meaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Magnitude and direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Vector algebra 6
2.1 Multiplication of a vector by a scalar . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Vector addition and subtraction . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 The unit vectors i, j and k . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 Answers to exercises 17
Vectors 2
1 Introduction to vectors
1.2 Notation
In these notes we will discuss vectors in two dimensional (2D) or three dimensional (3D)
space. These can be represented by a directed line segment, or by an ordered collection
of numbers (scalars) called the vector’s components. Vectors will be denoted either by a
*
lower case letter in bold type (a), or as a directed line segment (AB). Handwritten vectors
will be underlined (a).
For example, in 2D:
y
A
2
1 B
a
x
O 1 2
* *
a = OA = (1, 2), b = OB = (2, 1), and (1, 2) 6= (2, 1).
Vectors in 3D space have three components, for example, (1, 0, −2) and (a1 , a2 , a3 ). The
vectors a = (a1 , a2 , a3 ) and b = (b1 , b2 , b3 ) are equal if and only if their corresponding
components are equal, i.e. if a1 = b1 , a2 = b2 and a3 = b3 . We often write a general vector
in 3D space as r = (x, y, z).
*
1.3 Magnitude and direction a = (a1 , a2 , a3 ) = OA.
( a1 , a2 , a )
3
A
a3
y
O
a1
a2
x
If |a| = 1 then a is a unit vector. Unit vectors are often denoted by a hat b — for example
b = ( 53 , 0, −4
a 5
) is a unit vector.
The zero vector is 0 = (0, 0, 0). It is the only vector with zero magnitude.
Examples 1A
Examples in Lectures
* *
Suppose that OP = r = (x, y, z) and that α, β, γ are the angles that the line OP makes
with the positive x, y, z axes respectively. Set l = cos α, m = cos β, n = cos γ. Then
x y z
l= , m= , n= . (4.2)
|r| |r| |r|
*
The quantities l, m and n are known as the direction cosines of the line OP (they specify
its direction). Note that
x2 + y 2 + z 2
l 2 + m2 + n2 = = 1.
|r|2
Examples 1C
Examples in Lectures
Vectors 4
2. Evaluate |(1, 1, 1)|, |(1, 0, −1)|, |(1, −2, 3)|, |(0, 2, 3)|.
4. If 3/a, 5/a and 7/a are the direction cosines of a given vector, then find the value of
a.
5. A line makes an angle of π/3 with each of Ox and Oy. Find the angle it makes with
Oz.
Vectors 6
2 Vector algebra
2a -2a
It satisfies q
p
|ta| = (ta1 )2 + (ta2 )2 + (ta3 )2 = t2 (a21 + a22 + a23 ) = |t| |a| .
That is, the length of ta is the size of t multiplied by the length of a.
Vectors a and b are parallel if b = ta for some t 6= 0. They are in the same direction if
t > 0 and in the opposite direction if t < 0.
1
b=
The unit vector in the same direction as the vector a is a a.
|a|
Examples 2A
Examples in Lectures
So vector addition can be thought of as “followed by”, and (5.2) is known as the triangle
law of vector addition (see the picture below).
It gives the same result as adding the vectors together componentwise — i.e. if a = (a1 , a2 , a3 )
and b = (b1 , b2 , b3 ), then
a + b = (a1 + b1 , a2 + b2 , a3 + b3 ) (5.3)
a − b = (a1 − b1 , a2 − b2 , a3 − b3 ) . (5.4)
Vectors 7
It follows that
a+b = b+a
a − b = a + (−b) .
y
B
5
BC
4
AB
3 C
2 A AC
x
O 1 2 3 4 5 6 7 8
For example, in the above 2D picture, A is the point (1, 2), B is (4, 5), and C is (8, 3). The
* * *
directed line segments AB, BC and AC are the vectors (3, 3), (4, −2) and (7, 1). So we have
* * *
AB + BC = (3 , 3) + (4 , −2) = (3 + 4, 3 − 2) = (7, 1) = AC .
*
The vector AB is the position of B relative to A. It follows from the triangle law that
* * *
OA + AB = OB, and so
* * *
AB = OB − OA . (5.5)
The sum of two vectors a and b can be found by considering a parallelogram with sides
along a and b:
b
a+b
a a
Examples 2C
Examples in Lectures
Vectors 8
(a1 , a2 , a3 ) = a1 i + a2 j + a3 k . (5.6)
Examples 2E
Examples in Lectures
4. A, B and C are the points (−1, 2, 4), (2, 5, 3) and (3, 2, 1) respectively. Express in
* * * * * * *
the form xi + yj + zk the vectors AB + AC, BA − BC, 2 AB + 3 BC − 5 CA,
* * *
AB + BC + CA.
* * *
5. P and Q are the points (2, 3, −6) and (3, −4, 5). Find the lengths of OP , OQ and P Q
and determine their direction cosines. What are the coordinates of the midpoints of
OP , of OQ and of P Q ?
Vectors 10
The scalar (or dot, or inner) product of the two vectors a = (a1 , a2 , a3 ) and b = (b1 , b2 , b3 )
is denoted by a · b and defined to be
a · b = a1 b1 + a2 b2 + a3 b3 . (6.1)
It is a scalar quantity.
The scalar product satisfies:
(1) a · b = b · a.
(2) a · (b + c) = a · b + a · c.
(3) a · a = |a|2 .
Note that (a · b) · c is meaningless.
Examples 3A
Examples in Lectures
θ A
x
O a
Demonstration: We rotate the axes so that a = (a, 0, 0) and b = (b1 , b2 , 0) (rotating the
axes does not change the angle between two vectors).
Vectors 11
We have cos θ = b1 /|b|, |a| = a and a · b = a b1 . So |a| |b| cos θ = a b1 = a · b, which is our
formula (6.2).
It follows from (6.2) that the angle θ between the two vectors a and b satisfies
a·b
cos θ = , (6.3)
|a| |b|
Examples 3C
Examples in Lectures
Note: two nonzero vectors a and b are perpendicular (at right angles) if and only if a·b = 0.
This will be useful later when we look at planes.
a · b = a1 b1 + a2 b2 + a3 b3 .
It satisfies
a · b = |a| |b| cos θ ,
where θ is the angle between the two vectors.
Vectors 12
The vector (or cross, or outer) product of the two vectors a = (a1 , a2 , a3 ) and b =
(b1 , b2 , b3 ) is denoted by a × b (or sometimes by a ∧ b) and is defined to be
a × b = (a2 b3 − a3 b2 , a3 b1 − a1 b3 , a1 b2 − a2 b1 )
= (a2 b3 − a3 b2 ) i + (a3 b1 − a1 b3 ) j + (a1 b2 − a2 b1 ) k .
It is a vector quantity.
It is easiest to remember the definition in “determinant form”:
¯ ¯
¯ i j k ¯ ¯ ¯ ¯ ¯ ¯ ¯
¯ ¯ ¯ a a ¯ ¯ a a ¯ ¯ a a ¯
¯ ¯ ¯ 2 3 ¯ ¯ 1 3 ¯ ¯ 1 2 ¯
a × b = ¯ a1 a2 a3 ¯ = i ¯ ¯ − j¯ ¯ + k¯ ¯,
¯ ¯ ¯ b2 b3 ¯ ¯ b1 b3 ¯ ¯ b1 b2 ¯
¯ b1 b2 b3 ¯
where ¯ ¯
¯ a b ¯
¯ ¯
¯ ¯ = ad − bc.
¯ c d ¯
Examples 4A
Examples in Lectures
(5) a×(b×c) 6= (a×b)×c in general, so you must use brackets, (a×b×c is meaningless).
Examples 4C
Examples in Lectures
θ
a
Examples 4E
Examples in Lectures
Vectors 15
(a) a = (3, −1, 2), b = (1, 1, −4) (b) a = (2, 1, 7), b = (3, 1, −1)
(c) a = (0, 1, 6), b = (−1, 2, 1) (d) a = (1, 2, −1), b = (3, 6, −3)
4. Find the area of the parallelogram with two of its sides along 3 i + 4 j and i + j + k.
5. Use the vector product to find the area of the triangle with vertices A(1, −1, 0),
B(2, 1, −1) and C(−1, 1, 2).
Vectors 17
5 Answers to exercises
Introduction to vectors
1. x = 5, y = 3, z = −1.
√ √ √ √
2. 3, 2, 14, 13.
3. a and b are unit vectors; c isn’t.
√
4. a = ± 83.
5. angle is π/4 or 3π/4.
Vector algebra
√ √ √
1. (i) (3/5, 0, 4/5), (ii) (2/7, −3/7, 6/7) (iii) (1/ 3, 1/ 3, −1/ 3).
√
2. 14, 3, 1 (for any α).
3. a = 12, b = 0.5.
4. 7i + 3j − 4k, −4i + 3k, 29i − 3j − 23k, 0.
√ √
5. Lengths: 7, 5 2, 3 19.
3 −4 1 1 −7 11
Direct. cosines: 2/7, 3/7, −6/7; √ , √ , √ ; √ , √ , √ .
5 2 5 2 2 3 19 3 19 3 19
Midpoints: (1, 3/2, −3), (3/2, −2, 5/2), (5/2, −1/2, −1/2).
Scalar product
6.1. (a) 27, (b) 35, (c) −40, (b) 0.
6.2. (a) −2, 16, 3, 5. (b) ≈ 97.66o , (c) ≈ 48.19o .
6.3. angle = π/2 (i.e. 90o ).
Vector product
1. (a) (2, 14, 4) (b) (−8, 23, −1)
(c) (−11, −6, 1) (d) (0, 0, 0) = 0
1
2. √ (−1, 3, −1).
11
3. (a) (8, −8, 12) and (2, −30, 8).
(b) (0, 0, −16) and (0, 0, −16).
√
4. 26.
√
5. 3 2.