1.1: Vectors
- Page ID
- 106376
This page is a draft and is under active development.
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)\( \def\Span#1{\text{Span}\left\lbrace #1\right\rbrace} \def\vect#1{\mathbf{#1}} \def\ip{\boldsymbol{\cdot}} \def\iff{\Longleftrightarrow} \def\cp{\times} \)
Introduction
There is little need to explain the usefulness of the ordinary (real) numbers you are familiar with. Nevertheless, they have their restrictions. For example, they can only describe one aspect of an object like the height of a person, or the age of a tree, or the weight of a car. But in many cases we also want to know a person's location, or a tree's widest circumference, or a car's width. Quite often we are interested not just in size but also in direction. For example, if you are biking from Rotterdam to The Hague, you are probably less interested in how fast you are going than whether you are going in the right direction. Similarly, you don't just want to know the amount of energy needed to open a door, you also want to know whether you should pull or push. All this cannot be captured just by one number. We therefore have a need for something more general. Something which allows us to express a force and a direction at once, something which allows us to collect a lot of information about an object not in one number but in one thing. This thing turns out to be a vector. We will define vectors properly in Section \(\PageIndex{3}\). First, in Section \(\PageIndex{2}\), we try to get some intuition about length and direction by looking at arrows in the plane.
Arrows in the plane
Consider an arrow in the plane \(\vect{v}_{1} \) as in Figure \(\PageIndex{1}\).
Figure \(\PageIndex{1}\): Two arrows in the plane.
You can think of such an arrow as a very simple route plan: it tells you in what direction to go and for how long. If you need to go in the same direction but twice as far, this corresponds to stretching the arrow \(\vect{v}_{1} \) by a factor \(2 \). It makes sense to call this new arrow \(2\vect{v}_{1} \). Of course, such route plans can be combined. Take a look at Figure \(\PageIndex{2}\). If you first take the route described by \(\vect{v}_{1} \), which takes you from \(A \) to \(B \), and then you take the route described by \(\vect{v}_{2} \), which takes you from \(B \) to \(C \), you have in total gone from \(A \) to \(C \). Since the route from \(A \) to \(C \) is a combination of the routes given by \(\vect{v}_{1} \) and \(\vect{v}_{2} \), we write it as \(\vect{v}_{1}+\vect{v}_{2} \).
Figure \(\PageIndex{2}\): Geometrical interpretation of addition in the plane.
Let us try to give this intuitive idea firm ground to stand on. We say by convention that by \[ \vect{v}= \left[\begin{array} {r} x\\y \end{array}\right]\nonumber\] we mean an arrow pointing \(x \) units to the right and \(y \) units straight up. If \(x \) is a negative number our arrow will point to the left and if \(y \) is negative the arrow will point down. We will call such a representation of an arrow a vector and the values \(x \) and \(y \) will be called its entries (cfr. Definition \(\PageIndex{1}\)). In Figure \(\PageIndex{2}\), for example, we see the arrows \[ \vect{v}_{1}= \left[\begin{array} {r} 1\\2 \end{array}\right]\quad\text{and}\quad\vect{v}_{2}= \left[\begin{array} {r} -2\\-1 \end{array}\right].\nonumber\] If we glue the arrow \(\vect{v}_{2} \) to the tip of \(\vect{v}_{1} \), we find a new arrow, let's call it \(\vect{v}_{3} \), that points \(1 \) unit to the left (which is \(-1 \) unit to the right) and \(1 \) unit straight up. So \[ \vect{v}_{3}= \left[\begin{array} {r} -1\\1 \end{array}\right].\nonumber\] We obtain the same result if we add the first and second entries of \(\vect{v}_{1} \) and \(\vect{v}_{2} \) component wise. In other words: \[ \vect{v}_{3}= \left[\begin{array} {r} 1+(-2)\\ 2+(-1) \end{array}\right]= \left[\begin{array} {r} 1\\2 \end{array}\right]+ \left[\begin{array} {r} -2\\-1 \end{array}\right]=\vect{v}_{1}+\vect{v}_{2}.\nonumber\] As you see, it is very easy to find the sum of two arrows using our new notation. The same holds true for the stretching of an arrow. Let us try, for example, to stretch \(\vect{v}_{3} \) to \(2 \) times its length, that is, let us try to find \(2\vect{v}_{3} \). This gives an arrow pointing two units to the left and two units straight up. If we multiply both entries of \(\vect{v}_{3} \) with 2, we find a new vector \(\vect{v}_{4} \) with: \[ \vect{v}_{4}= \left[\begin{array} {r} -2\\2 \end{array}\right]\nonumber\] which is precisely \(2\vect{v}_{3} \). We have found that the geometrical notion of an arrow in the plane with a certain length pointing in a certain direction is captured perfectly by the algebraic notion of its vector. Moreover, the natural operations of stretching and combining arrows can easily be done algebraically. In fact, there is no reason why we should restrict ourselves to arrows in the plane. We can just as well take arrows in three dimensional space and glue them together or stretch them. In Section \(\PageIndex{3}\) we will formalise this notion to \(n \) dimensions -- and we will see that it is not so strange to have more than \(3 \) dimensions!
Vectors and \(\mathbb{R}^{n} \)
The same game we played in the plane also works in \(3 \)-dimensional space -- or even in higher dimensions. Since our intuition tends to break down in higher dimension, we want solid algebraic foundation to support us in these unfamiliar lands. Let us therefore formalize our concept of arrows.
Note that the order of the entries is very important. For example \[ \left[\begin{array} {r} 1\\-1 \end{array}\right]\quad\text{and}\quad \left[\begin{array} {r} -1\\1 \end{array}\right]\nonumber\] are not the same vectors. Indeed, the first one points down and to the right, while the second one points up and to the left. Two vectors are only equal if they have the same entries in the same order.
Suppose we have two vectors \[ \vect{v}_{1}= \left[\begin{array} {r} a_{1}\\\vdots\\a_{n}\end{array}\right]\quad\text{and}\quad\vect{v}_{2}= \left[\begin{array}{r} b_{1}\\\vdots \\b_{n}\end{array}\right]\nonumber\] of the same size. The sum of \(\vect{v}_{1} \) and \(\vect{v}_{2} \), denoted by \(\vect{v}_{1}+\vect{v}_{2} \), is the vector \[ \vect{v}_{1}+\vect{v}_{2}= \left[\begin{array}{r} a_{1}+b_{1}\\\vdots\\a_{n}+b_{n}\end{array}\right].\nonumber\] If \(c \) is a real number, then the scalar multiple \(c\vect{v}_{1} \) is the vector \[ c\vect{v}_{1}= \left[\begin{array} {r} ca_{1}\\\vdots\\ca_{n} \end{array}\right].\nonumber\] We will sometimes call real numbers scalars, because we use them to scale vectors. To lighten our notation, we will write \(-\vect{v}_{1} \) for \((-1)\vect{v}_{1} \). Likewise, we will often write \(\vect{v}_{1}-\vect{v}_{2} \) for \(\vect{v}_{1}+(-\vect{v}_{2}) \).
Figure \(\PageIndex{3}\): Geometrical interpretation of addition for three-dimensional vectors.
Note that we only define the sum of two vectors if they have the same size!
This might look a bit scary, but is really just what we did in the plane, just with more numbers now. We now use the term vector instead of arrow. Adding two vectors is again just gluing the second one to the tip of the first one, and taking a scalar multiple of a vector is just stretching it again (or perhaps shrinking it). Since vector addition and scalar multiplication will be used all the time in this text, it will be convenient to know how to work with these operations. Luckily, it turns out that they satisfy most of the calculation rules that you are familiar with from standard arithmetic, as you can see from the following:
Suppose \(\vect{v}_{1},\vect{v}_{2},\vect{v}_{3} \) are vectors in \(\mathbb{R}^{n} \) for some natural number \(n \) and let \(c_{1},c_{2} \) be in \(\mathbb{R} \). Then we have:
- \(\vect{v}_{1}+\vect{0}=\vect{v}_{1}=\vect{0}+\vect{v}_{1} \)
- \((\vect{v}_{1}+\vect{v}_{2})+\vect{v}_{3}=\vect{v}_{1}+(\vect{v}_{2}+\vect{v}_{3}) \)
- \(\vect{v}_{1}+\vect{v}_{2}=\vect{v}_{2}+\vect{v}_{1} \)
- \(\vect{v}_{1}+(-\vect{v}_{1})=\vect{0} \)
- \(1\vect{v}_{1}=\vect{v}_{1} \)
- \(c_{1}(\vect{v}_{1}+\vect{v}_{2})=c_{1}\vect{v}_{1}+c_{1}\vect{v}_{2} \)
- \((c_{1}+c_{2})\vect{v}_{1}=c_{1}\vect{v}_{1}+c_{2}\vect{v}_{1} \)
- \(c_{1}(c_{2}\vect{v}_{1})=(c_{1}c_{2})\vect{v}_{1} \)
Skip/Read the proof -
For example, the equation ii tells us that we do not have to worry about bracketing when adding vectors. That is, we can first add \(\vect{v}_{1} \) to \(\vect{v}_{2} \) and then add \(\vect{v}_{3} \) to the result or we can first add \(\vect{v}_{2} \) to \(\vect{v}_{3} \) and then add the result to \(\vect{v}_{1} \). In both cases, we will get the same answer.
More than three dimensions? How does that make sense? Well, it is actually not so strange at all! Here is an example in which four dimensions occur very naturally. Sodium sulfide \((\ce{Na2S})\) is a chemical used to turn wood into pulp, to bleach textile, and so on. It is produced by adding carbon \((\ce{C})\) to sodium sulfate \((\ce{Na_{2}SO_{4}})\), which gives the following reaction: \[ \ce{Na2SO4 + 2 C -> Na2S + 2 CO2}. \label{Eq:Vectors:ChemReac} \] Note that for every molecule of sodium sulfate we need two molecules of carbon in this reaction and that for every molecule of sodium sulfate, two molecules of carbon dioxide \((\ce{CO2})\) are produced.
Figure \(\PageIndex{4}\): The chemical reaction given in \ref{Eq:Vectors:ChemReac}.
There are four different chemical elements involved in this reaction: sodium \((\ce{Na})\), sulfide \((\ce{S})\), oxygen \((\ce{O})\), and carbon. Each of our molecules can be written as a vector of size four with the entries giving the number of sodium, sulfide, oxygen, and carbon atoms (in that order) in the molecule. This gives: \[ \ce{Na2SO4}: \left[\begin{array} {r} 2\\1\\4\\0 \end{array}\right]\quad \ce{C}: \left[\begin{array} {r} 0\\0\\0\\1 \end{array}\right]\quad \ce{Na2S}: \left[\begin{array} {r} 2\\1\\0\\0 \end{array}\right]\quad\text{and}\quad \ce{CO2}: \left[\begin{array} {r} 0\\0\\2\\1 \end{array}\right].\nonumber\] In order for the reaction given in \eqref{Eq:Vectors:ChemReac} to be balanced, we need to know that there are no atoms on the left which are not present on the right and vice versa. That is, we need to have the following vector equation: \[ \left[\begin{array} {r} 2\\1\\4\\0 \end{array}\right]+2 \left[\begin{array} {r} 0\\0\\0\\1 \end{array}\right]= \left[\begin{array} {r} 2\\1\\0\\0 \end{array}\right]+2 \left[\begin{array} {r} 0\\0\\2\\1 \end{array}\right]\nonumber\] which indeed holds. The reaction under consideration here is a very simple one. It is not at all rare for seven or eight different elements to be involved in a chemical reaction. This naturally gives rise to a seven- or eight-dimensional vector equation.
Points and vectors
Vectors are quite easy to work with, even in more than three dimensions. It will therefore be convenient to relate the familiar concepts from plain old plane geometry and the somewhat more advanced three-dimensional geometry in terms of vectors. In this section, we will establish a link between points and vectors by introducing a sort of common anchor point for all vectors. In Section, we will relate lines and planes to vectors. Suppose we fix an arbitrary point in the plane. Let us call it the origin and write it as \(O \). Every other point can now be fully determined by its displacement from \(O \). In other words, any point \(P \) in the place can be described by saying how far it is to the right of \(O \) and how far it is up from \(O \). If \(a_{1} \) is the former quantity and \(a_{2} \) is the latter, we will write \(P=(a_{1},a_{2}) \). If \(P \) happens to be to the left of the origin, \(a_{1} \) will be negative. Similarly, if \(P \) is lower than \(O \), \(a_{2} \) will be negative. In Figure \(\PageIndex{5}\), you can see the point \(P=(-1,2) \). For the point \(O \) itself, we have \(O=(0,0) \) since the displacement from \(O \) to \(O \) is \(0 \) in both directions.
Figure \(\PageIndex{5}\): The point \(P=(-1,2) \) and its associated vector \(\vect{v}=\left[\begin{array}{r}-1\\2\end{array}\right] \).
This might call to mind the vectors we saw in Section \(\PageIndex{2}\). Remember that a vector in the plane was given by two displacements. A point \(P=(a_{1},a_{2}) \) is given by the displacement from \(O \), so if we take \(O \) as the starting point of the vector \[ \vect{v}_{P}= \left[\begin{array}{r}a_{1}\\a_{2}\end{array}\right],\nonumber\] its end point will be precisely \(P \). By fixing our origin \(O \), we have therefore introduced a natural correspondence between points in the plane and vectors with two components: a point \(P=(a_{1},a_{2}) \) corresponds to the vector pointing from \(O \) to \(P \), which is given by \(\vect{v} \). In a similar vein, we can associate vectors with three components to points in three-dimensional space. We again fix an origin \(O=(0,0,0) \). Any other point \(P \) is given by its displacement from \(O \) to the right (\(a_{1} \)), up (\(a_{2} \)), and forward (\(a_{3} \)). To this point, we can associate the vector \[ \vect{v}_{P}= \left[\begin{array} {r} a_{1}\\a_{2}\\a_{3} \end{array}\right].\nonumber\] If we let \(\vect{v} \) start in \(O \), its end point will be precisely \(P \). This method works just as well for points on the line, which correspond to vectors with just one component. In fact, it works for any \(\mathbb{R}^{n} \). We fix an origin \(O=(0,\ldots,0) \). A point \(P=(a_{1},\ldots,a_{n}) \) then corresponds to the vector \(\vect{v}_{p} \) pointing from \(O \) to \(P \), i.e. the vector \[ \vect{v}_{P}= \left[\begin{array} {r} a_{1}\\\vdots\\ a_{n} \end{array}\right].\nonumber\]