Vector Arithmetic and Geometry
Vector Arithmetic and Geometry
info
Vectors are often written in bold or are underlined and in this document we use
the former (the latter is often used in handwriting where it is more difficult to
express and distinuish bold characters). For example we may write =
1
( ). Some of the properties and vectors are outlined in this document. A more
5
thorough coveage can be found in Cartesian components of vectors4
www.appliedmathematics.info
Cartesian Coordinates
www.appliedmathematics.info
1
The size or magnitude of a two-dimensional vector is defined by: || = |( )| =
2
Examples 5
2
2
The magnitude of the vector (2) is |(2)| = 22 + (2)2 + 52 =
5
5
33 = 5.745 (3d. p. ).
7
7
The magnitude of the vector (1) is |(1)| = 72 + 12 + 32 = 59 =
3
3
7.681 (3d. p. ).
Unit vectors
A vector is said to be a unit vector is its magnitude is one. For example the
are unit vectors.
directonal vectors , and
Example 6
0.8
0.8
) has magnitude |( )| = 0.82 + 0.62 = 0.64 + 0.36 =
0.6
0.6
1 = 1 and hence it is a unit vector. .
The vector (
Example 7
2
2
1
1
1
The magnitude of the vector 7 (3) is 7 |(3)| = 7 22 + 32 + 62 =
6
6
1
1
4 + 9 + 36 = 7 49 = 1 and hence it is a unit vector.
7
6
7
Trigonometry
Vector Norm and Normalisation
www.appliedmathematics.info
A vector can be transformed into a unit vector with the same direction but with
unit magnitude by dividing the components by the vectors magnitude; for any
Example 8
1
From Example 4 it was found that the vector ( ) has magnitude 26. The
5
1
1
0.1961
0.1961
vector 26 ( ) = (
) has magnitude |(
)| =
5
0.9806
0.9806
0.19612 + 0.98062 = 0.03845 + 0.9615 = 1 = 1 (working to 4 d. p. ).
.
Distance between two points
The geometrical distance between two points P1 and P2 is the magnitude of the
vector 1 2; |12 | .
Example 9
Let P1=(2,4) and P2=(3,9) be points on the x-y plane. Following on from
1
Example 1, the vector linking the two points is 1 2 = ( ). From Example 4
5
1
it was shown that |( )| = 26 = 5.099 (3d. p. ) and hence this is also the
5
distance between the two points.
Example 10
Following on from Example 3, P1=(1,-3,2) and P2=(3,-5,7) are points in
2
three dimensions and 1 2 = (2) . In Example 5 it was shown that is
5
2
|(2)| = 33 = 5.745 (3d. p. ), and hence this is the distance
5
between the points.
www.appliedmathematics.info
The dot product of two vectors in the same direction is equal to the product of
their magnitudes. The dot product of two perpendicular vectors is zero.
In general
. = |||| cos
where is the angle between the vectors and . For further information on the
properties of the scalar product see The Scalar Product8. In the following
examples the angle between two vectors in two dimensions and three dimensios
is calculated and the result is compared to the angle obtained through the
application of the cosine formula to a triangle9.
8
9
www.appliedmathematics.info
Example 13
1
2
The cosine of the angle between the vectors = ( ) and = ( ) is
5
3
.
||||
1
2
( ).( )
13
5 3
1
2 =2613
|( )| |( )|
5
3
or 1350.
Let us compare this with the angle that is obtained by the cosine rule. The
length of the vector a is || = 26 , the length of the vector b is || = 13
and the length of the remaining vector is | | = 65 . Applying the
cosine rule:
2
and
cos =
13
2613
, as before .
Example 14
7
2
(
)
(
The cosine of the angle between the vectors = 2 and = 1) is
5
3
2
7
(2).(1)
27
3
5
7 =3359
2
|(2)||(1)|
5
3
52.270 (2 d.p.).
Let us compare this with the angle that is obtained by the cosine rule. The
length of the vector a is || = 33 , the length of the vector b is || = 59
and the length of the remaining vector is | | = 38 . Applying the
cosine rule:
2
38 = 33 + 59 233 59cos
cos =
27
3359
, as before .
www.appliedmathematics.info
= |1
1
2
2
3 | ,
3
using the notation of the method for finding the determinant of a 33 matrix11,
or by
(1 2 2 1 ).
= (2 3 3 2 ) + (3 1 1 3 ) +
10
11
www.appliedmathematics.info
Example 15
7
2
(
)
(
Let = 2 and = 1) be two vectors,
5
3
= |2 2 5|
7 1 3
(2 1 (2) 7)
= ((2) 3 5 1) + (5 7 2 3) +
11
= ( 29 ) .
= 11 + 29 + 16
16
To show that is perpendicular to and , let us find the dot products.
[Note the dot product of two perpendicular vectors is zero.]
7
11
( ). = ( 29 ) . (1) = (11) 7 + 29 1 + 16 3
16
3
= 77 + 29 + 48 = 0.
11
2
( ). = ( 29 ) . (2) = (11) 2 + 29 (2) + 16 5
16
5
= 22 58 + 80 = 0.
From the equation above, the magnitude of is equal to |||| sin
| | = |||| sin ,
which is also equal to the area of the parallelogram illustrated in the following
diagram.
In order to show this let us view the parallelogram as follows, with the vector
viewed on a horizontal axis and the vectors replaced by their lengths || and ||.
||
|| sin
||
www.appliedmathematics.info
The height of the parallelogram is || sin and hence the area of the
parallelogram is |||| sin .
Application: Normal to a line between two points in 2D
Consider the line joining two 2-points 1 to 2 . Let be the vector linking 1 to 2
2
2
; = 1 2 . The normal to the line is ( ) to the left of the line and ( ) to the
1
1
2
1 2
1
right. The unit normal to the left of the line is || ( ) and to right it is || ( ) .
1
1
Note that the normal may also be defined in the opposite direction, but in this
case the normal lies to point to the left of the vector 1 2
normal to the left
Example 16
Let 1 = (2,4) and 2 = (3,9) be two points. The vector
1 2 is equal to =
1
5
( ), as shown in Example 2. Hence the normal to 1 2 is ( ) to the left
5
1
5
and ( ) to the right,as illustrated in the following diagram.
1
(3,9)
(
5
)
1
5
( )
1
(2,4)
www.appliedmathematics.info
1
2
| |.
Note that this is also equal to 2 |||| sin and this fits in with the formula for the
area of a triangle12.
Example 17
In this example the area of the triangle with vertices P1=(1,-3, 2), P2=(3,-5,
7) and P3=(8,-2, 5) is determined.
7
2
Let =
1 2 and =
1 3 then = (2) and = (1).
5
3
11
Hence = ( 29 ) , as shown in Example 14. The area of the triangle
16
1
1
joining the three points is | | = (11)2 + 292 + 162
2
In order to verify this result let us find 2 |||| sin . From Examples 5,
|| = 33 and || = 59 and from Example 14 = 52.270. Hence
1
2
12