2.3 Vectors

Vectors are groups of numbers which, when named “vectors”, have both a magnitude and direction. The magnitude of the vector corresponds to the length of the vector. The direction of the vector must be relative to a given coordinate system. Within mathematics, vectors are described using a linearly independent basis. A basis is a set of n vectors within a coordinate system. All other vectors can be build using combinations of these n vectors. The term linearly independent signifies that none of the basis vectors are made up of other basis vectors. The general term used to describe these possible combinations of vectors using a basis is called vector space. It is possible to have a vector space build up of any positive amount of basis vectors. However, since we exist in 3 dimensions, in engineering applications we typically operate in a vector space composed of 3 basis vectors. Mathematically, we could say we operate in a vector space of 3. These 3 basis vectors are named î, ĵ, and k^ and are shown in equations 2.190, 2.191, and 2.192 respectively.

î = 1,0,0 (2.190)

ĵ = 0,1,0 (2.191)

k^ = 0,0,1 (2.192)

A vector a operating in the the vector space build on the î, ĵ, and k^ vectors would take on the following format shown in equation 2.193.

a = a1î + a2ĵ + a3k^ (2.193)

As mentioned previously, the magnitude of a vector is the length of the vector. Using geometry, we can calculate the magnitude of vector a shown in equation 2.193 using the following equation (the symbol for magnitude is ||a||).

||a|| = a1 2 + a2 2 + a3 2

A unit vector is a vector of magnitude 1. Any vector can be converted to a unit vector by dividing all its components (a1, a2, a3) by its magnitude (||a||).

In this book, we will cover two vector operations: the dot product and the cross product.

2.3.1 Vector addition and subtraction

To add two vectors, we simply add each component as shown in equation 2.194.

a + b = (a1 + b1)î + (a2 + b2)ĵ + (a3 + b3)k^ (2.194)

Similarly, to subtract vectors, we simply subtract each component as shown in equation 2.195.

a b = (a1 b1)î + (a2 b2)ĵ + (a3 b3)k^ (2.195)

2.3.2 The Dot Product

The dot product is a vector operation that can be performed on two vectors which exist in any n value vector space. In vector space 3, the dot product is defined as equation 2.196 for vectors a and b.

a b = a1 b1 + a2 b2 + a3 b3 (2.196)

Equation 2.196 can be extrapolated to the perform the dot product on vectors which exist in a different vector space.

An alternative equation for calculating the dot product is shown in equation 2.197.

a b = ||a||||b||cos(𝜃) (2.197)

In equation 2.197, 𝜃 is the angle between a and b.

Orthogonal Vectors are defined as vectors with a dot product of 0.

2.3.3 The Cross Product

The cross product is a vector operation that can be performed on two vectors which exist in a vector space of 3 or more. However, in this book we will focus only on the cross product in vector space 3. In this situation, the cross product is defined as equation 2.198 for a and b.

a ×b = ||a||||b|| 𝑠𝑖𝑛(𝜃) n (2.198)

n is defined as a unit vector which is perpendicular to both a and b. 𝜃 is the angle between a and b.

We can use equation 2.198 to state the following for our vector space 3 basis vectors (equations equations 2.190, 2.191, and 2.192) introduced earlier.

î ×ĵ = k^ (2.199)

ĵ ×k^ = î (2.200)

k^ ×î = ĵ (2.201)

Please note that in equations 2.199, 2.200 and 2.201, a angle convention was introduced (for example, the 𝜃 between î and ĵ is defined to be positive - this implies that the 𝜃 between ĵ and î is negative).

Our goal now is to find a general expression for the cross product of vector space 3 vectors a and b. This problem statement is presented mathematically as follows.

(a1î + a2ĵ + a3k^) × (b1î + b2ĵ + b3k^)

Distributing, we get the following equation.

a ×b = (a1î × b1î) + (a1î × b2ĵ) + (a1î × b3k^) + (a2ĵ × b1î) + (a2ĵ × b2ĵ) + (a2ĵ × b3k^) + (a3k^ × b1î) + (a3k^ × b2ĵ) + (a3k^ × b3k^)

We know that any unit vector crossed with itself is 0, therefore, î ×î, ĵ ×ĵ, k^ ×k^ terms are eliminated. Simplifying and replacing the cross products with identities provided in equations 2.199, 2.200, and 2.201, we can simplify to get the following.

a ×b = (a2b3 a3b2)î + (a3b1 a1b3)ĵ + (a1b2 a2b1)k^