Skip to main content

Section 1.2 An Introduction to Vectors

Subsection 1.2.1 Vectors and their Properties

Definition 1.2.1.

A vector is a,typically, a one dimensional array of numbers written as

\begin{equation*} \vec{v}= \left[ \begin{array}{r} 2\\ -3 \end{array} \right] \end{equation*}

or horizontally as \(\vec{v}=\left[ 2,-3\right]\text{.}\)

We say that a vector is typically thought of as an array of numbers because in this course that is mostly how we use it. We will look in later units at a couple examples where it is not and array of numbers.

In addition to the numerical definition/representation of vectors we can also view them graphically like so:

Figure 1.2.2. My First Vectors

The vector that is at an angle in Figure 1.2.2 is the vector \(\vec{v}=\left[ 2,-3 \right]\) from above, the horizontal and vertical vectors in are called elementary vectors and are called \(\vec{e_1}=\left[ 1,0 \right]\) and \(\vec{e_2}=\left[ 0,1 \right]\) respectively. Elementary vectors will play an important roll later.

Vectors play an important and useful roll in mathematics. They can be used to gather, organize, and track related information such as populations of animals, profits and costs, or the spread of disease across population. Here, and in multi-variable calculus, they are most frequently used because they can indicate direction and magnitude and so accurately represent change. For example the vector \(\vec{v}=\left[ 2,-3 \right]\) has a magnitude of \(|\vec{v}|=\sqrt{2^2+(-3)^2}=\sqrt{13}\approx 3.61\text{,}\) which is found using the Pythagorean Theorem. We describe its direction by using a unit vector, that is a vector of length one pointing in the same direction. In this case the unit vector will be

\begin{equation*} \vec{u}=\frac{1}{\sqrt{13}}\left[2,-3\right]=\left[\frac{2}{\sqrt{13}},-\frac{3}{\sqrt{13}}\right]. \end{equation*}

In general given a vector \(\vec{v}=\left[ v_1, v_2, v_3, \ldots, v_n\right]\) the length of \(\vec{v}\) is given by

\begin{equation*} \left|\vec{v}\right|=\sqrt{v_1^2+v_2^2+v_3^2+\cdots+v_n^2}, \end{equation*}

and the unit vector giving the direction of \(\vec{v}\) is given by

\begin{equation*} \frac{\vec{v}}{\left|\vec{v}\right|}= \left[ \frac{\vec{v_1}}{\left|\vec{v}\right|}, \frac{\vec{v_2}}{\left|\vec{v}\right|}, \frac{\vec{v_3}}{\left|\vec{v}\right|}, \ldots, \frac{\vec{v_n}}{\left|\vec{v}\right|} \right] \end{equation*}

To practice calculating magnitudes and unit vectors click Evaluate (Sage).

Subsection 1.2.2 Combining Vectors

Thare are also a number of ways to combine vectors. If

\begin{equation*} \vec{v}=\left[2,3,0\right] \end{equation*}

and

\begin{equation*} \vec{u}=\left[-1,0,5\right]\text{,} \end{equation*}

then we may add these to get

\begin{align*} \vec{v}+\vec{u}\amp=\left[2,3,0\right]+\left[-1,0,5\right]\\ \amp= \left[2-1,3+0,0+5\right]\\ \amp= \left[ 1,3,5\right] \end{align*}
Figure 1.2.3. \(\vec{v}+\vec{u}\)

or similarly subtract them

\begin{align*} \vec{v}-\vec{u}\amp=\left[2,3,0\right]-\left[-1,0,5\right]\\ \amp= \left[2+1,3-0,0-5\right]\\ \amp= \left[ 3,3,-5\right]\, . \end{align*}
Figure 1.2.4. \(\vec{v}-\vec{u}\)

We may also multiply vectors by scalars, which here means a number, like this

\begin{align*} 5\vec{u}\amp=5\left[ -1,0,5\right]\\ \amp= \left[ -5,0,25\right]\, . \end{align*}
Figure 1.2.5. \(5\vec{u}\)

If we do all of this at once like so

\begin{align*} -2\vec{v}+5\vec{u}\amp=\left[-4,-6,0\right]+\left[-5,0,25\right]\\ \amp= \left[-4-5,-6+0,0+25\right]\\ \amp= \left[ -9,-6,25\right] \end{align*}
Figure 1.2.6. \(-2\vec{v}+5\vec{u}\)

we say that we are taking a linear combination of \(\vec{v}\) and \(\vec{u}\text{.}\)

While addition and subtraction of vectors works as expected, there is no single well defined multiplication of vectors. Instead of a single multiplication we have two, the dot product and the cross product. While both of these products are important here we will concern ourselves only with the dot product. The dot product of two vectors is calculated by multiplying entries in the vectors together and then adding the results as follows

\begin{align*} \vec{v}\cdot\vec{u}\amp=\left[2,3,0\right]\cdot\left[-1,0,5\right]\\ \amp=2(-1)+3(0)+0(5)\\ \amp=-2+0+0\\ \amp=-2. \end{align*}

Geometrically, the dot product is equivalent to

\begin{equation*} \vec{v}\cdot\vec{u}=|\vec{v}||\vec{u}|\cos(\theta)\text{,} \end{equation*}

where \(\theta\) is the angle between the two vectors.

To practice your linear combinations and dot products click Evaluate (Sage).

As a final note drawing to connect this subsection with the last note that

\begin{equation*} \vec{v}\cdot\vec{v}=|\vec{v}|^2 \end{equation*}

so that the unit vector in the direction of \(\vec{v}\) is equal to

\begin{equation*} \frac{\vec{v}}{|\vec{v}|}=\frac{\vec{v}}{\sqrt{\vec{v}\cdot\vec{v}}}. \end{equation*}

Subsection 1.2.3 Vector Equations

Linear combinations of vectors are important because they will let us relate vectors to systems of equations. Consider the following system of equations:

\begin{align*} 7x+3y-9z\amp=2\\ -x+2y+5z\amp=13\\ 2x- y\amp=0 \end{align*}

looking at the first column it looks like

\begin{equation*} \left[ \begin{array}{r} 7x \\ -x \\ 2x \end{array} \right] =x \left[ \begin{array}{r} 7 \\ -1 \\ 2 \end{array} \right] \end{equation*}

that is an unknown scalar \(x\) times a vector \(\left[7, -1, 2\right]\text{.}\) Similarly, the second column is

\begin{equation*} \left[ \begin{array}{r} 3y \\ 2y \\ -y \end{array} \right] =y \left[ \begin{array}{r} 3 \\ 2 \\ -1 \end{array} \right] \end{equation*}

and the third is

\begin{equation*} \left[ \begin{array}{r} -9z \\ 5z \\ 0 \end{array} \right] =z \left[ \begin{array}{r} -9 \\ 5 \\ 0 \end{array} \right] . \end{equation*}

Thus the original system of equations can be rewritten into a single vector equation like so

\begin{equation*} \left[ \begin{array}{r} 7 \\ -1 \\ 2 \end{array} \right] x + \left[ \begin{array}{r} 3 \\ 2 \\ -1 \end{array} \right] y + \left[ \begin{array}{r} -9 \\ 5 \\ 0 \end{array} \right] z = \left[ \begin{array}{r} 2 \\ 13 \\ 0 \end{array} \right]. \end{equation*}

This is the sort of relationship we will explore in the next section.

Section Vocabulary.

Vector, Elementary Vectors, Unit Vectors, Magnitude, Scalar, Dot Product, Linear Combination, Vector Equation