Skip to main content
Mathematics LibreTexts

4.2: Review of Vectors

  • Page ID
    197424
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \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{\longvect}{\overrightarrow}\)

    \( \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}\)
    Learning Objectives
    • Find the position vector of a point in \(\mathbb{R}^n\).
    • Understand vector addition and scalar multiplication, algebraically.
    • Understand vector addition, geometrically.
    • Find the length of a vector and the distance between two points in \(\mathbb{R}^n\).
    • Find the corresponding unit vector to a vector in \(\mathbb{R}^n\).
    • Understand scalar multiplication, geometrically.
    • Introduce the notion of linear combination of vectors.

    In this section we review the concept and operations between vectors.

    The notation \(\mathbb{R}^{n}\) refers to the collection of ordered lists of \(n\) real numbers, that is \[\mathbb{R}^{n} = \left\{ \left( x_{1}, \cdots, x_{n}\right) :x_{j}\in \mathbb{R}\text{ for }j=1,\cdots ,n\right\}\nonumber \] In this chapter, we take a closer look at vectors in \(\mathbb{R}^n\). First, we will consider what \(\mathbb{R}^n\) looks like in more detail. Recall that the point given by \(0=\left( 0, \cdots, 0 \right)\) is called the origin.

    Now, consider the case of \(\mathbb{R}^n\) for \(n=1.\) Then from the definition we can identify \(\mathbb{R}\) with points in \(\mathbb{R}^{1}\) as follows: \[\mathbb{R} = \mathbb{R}^{1}= \left\{ \left( x_{1}\right) :x_{1}\in \mathbb{R} \right\}\nonumber \] Hence, \(\mathbb{R}\) is defined as the set of all real numbers and geometrically, we can describe this as all the points on a line.

    Now suppose \(n=2\). Then, from the definition, \[\mathbb{R}^{2}= \left\{ \left(x_{1}, x_{2}\right) :x_{j}\in \mathbb{R}\text{ for }j=1,2 \right\}\nonumber \] Consider the familiar coordinate plane, with an \(x\) axis and a \(y\) axis. Any point within this coordinate plane is identified by where it is located along the \(x\) axis, and also where it is located along the \(y\) axis. Consider as an example the following diagram.

    Points P and Q plotted. Details in caption.
    Figure 4.1.1: Diagram illustrates points \( Q=(-3,4) \) and \( P=(2,1) \) in \(\mathbb{R}^{2}\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Hence, every element in \(\mathbb{R}^2\) is identified by two components, \(x\) and \(y\), in the usual manner. The coordinates \(x, y\) (or \(x_1\),\(x_2\)) uniquely determine a point in the plan. Note that while the definition uses \(x_1\) and \(x_2\) to label the coordinates and you may be used to \(x\) and \(y\), these notations are equivalent.

    Now suppose \(n=3\). You may have previously encountered the \(3\)-dimensional coordinate system, given by \[\mathbb{R}^{3}= \left\{ \left( x_{1}, x_{2}, x_{3}\right) :x_{j}\in \mathbb{R}\text{ for }j=1,2,3 \right\}\nonumber \]

    Points in \(\mathbb{R}^3\) will be determined by three coordinates, often written \(\left(x,y,z\right)\) which correspond to the \(x\), \(y\), and \(z\) axes. We can think as above that the first two coordinates determine a point in a plane. The third component determines the height above or below the plane, depending on whether this number is positive or negative, and all together this determines a point in space. You see that the ordered triples correspond to points in space just as the ordered pairs correspond to points in a plane and single real numbers correspond to points on a line.

    The idea behind the more general \(\mathbb{R}^n\) is that we can extend these ideas beyond \(n = 3.\) This discussion regarding points in \(\mathbb{R}^n\) leads into a study of vectors in \(\mathbb{R}^n\). While we consider \(\mathbb{R}^n\) for all \(n\), we will largely focus on \(n=2,3\) in this section.

    Consider the following definition.

    Definition \(\PageIndex{1}\) The Position Vector

    Let \(P=\left( p_{1},\cdots ,p_{n}\right)\) be the coordinates of a point in \(\mathbb{R}^{n}.\) Then the vector \(\overrightarrow{0P}\) with its tail at \(0=\left( 0,\cdots ,0\right)\) and its tip at \(P\) is called the position vector of the point \(P\). We write \[\overrightarrow{0P} = \left [ \begin{array}{c} p_{1} \\ \vdots \\ p_{n} \end{array} \right ]\nonumber \]

    For this reason we may write both \(P=\left( p_{1},\cdots ,p_{n}\right) \in \mathbb{R}^{n}\) and \(\overrightarrow{0P} = \left [ p_{1} \cdots p_{n} \right ]^T \in \mathbb{R}^{n}\).

    This definition is illustrated in the following picture for the special case of \(\mathbb{R}^{3}\).

    Plot of P=(p1,p2,p3) and line segment 0P =[p1 p2 p3]^T and the axes shown.
    Figure 4.1.2: Diagram illustrates a 3D coordinate system where \( P(p_1, p_2, p_3) \) is a point in space. The position vector \( \vec{OP} \) extends from the origin \( O \) to the point \( P \). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Thus every point \(P\) in \(\mathbb{R}^{n}\) determines its position vector \(\overrightarrow{0P}\). Conversely, every such position vector \(\overrightarrow{0P}\) which has its tail at \(0\) and point at \(P\) determines the point \(P\) of \(\mathbb{R}^{n}\).

    Now suppose we are given two points, \(P,Q\) whose coordinates are \(\left( p_{1},\cdots ,p_{n}\right)\) and \(\left( q_{1},\cdots ,q_{n}\right)\) respectively. We can also determine the position vector from \(P\) to \(Q\) (also called the vector from \(P\) to \(Q\)) defined as follows. \[\overrightarrow{PQ} = \left [ \begin{array}{c} q_{1}-p_{1}\\ \vdots \\ q_{n}-p_{n} \end{array} \right ] = \overrightarrow{0Q} - \overrightarrow{0P}\nonumber \]

    Now, imagine taking a vector in \(\mathbb{R}^n\) and moving it around, always keeping it pointing in the same direction as shown in the following picture.

    Diagram illustrating vectors in \(\mathbb{R}^{n}\), showing the position vector.
    Figure 4.1.3: Diagram illustrates vectors in \(\mathbb{R}^{3}\). \(\vec{OP}\) is the position vector from \(O\) to point \(P\). \(\vec{AB}\) is a vector parallel to \(\vec{OP}\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    After moving it around, it is regarded as the same vector. Each vector, \(\overrightarrow{0P}\) and \(\overrightarrow{AB}\) has the same length (or magnitude) and direction. Therefore, they are equal.

    Consider now the general definition for a vector in \(\mathbb{R}^n\).

    Definition \(\PageIndex{2}\) Vectors in \(\mathbb{R}^n\)

    Let \(\mathbb{R}^{n} = \left\{ \left( x_{1}, \cdots, x_{n}\right) :x_{j}\in \mathbb{R}\text{ for }j=1,\cdots ,n\right\} .\) Then, \[\vec{x} = \left [ \begin{array}{c} x_{1} \\ \vdots \\ x_{n} \end{array} \right ]\nonumber \] is called a vector. Vectors have both size (magnitude) and direction. The numbers \(x_{j}\) are called the components of \(\vec{x}\).

    Using this notation, we may use \(\vec{p}\) to denote the position vector of point \(P\). Notice that in this context, \(\vec{p} = \overrightarrow{0P}\). These notations may be used interchangeably.

    You can think of the components of a vector as directions for obtaining the vector. Consider \(n=3\). Draw a vector with its tail at the point \(\left( 0,0,0\right)\) and its tip at the point \(\left( a,b,c\right)\). This vector it is obtained by starting at \(\left( 0,0,0\right)\), moving parallel to the \(x\) axis to \(\left( a,0,0\right)\) and then from here, moving parallel to the \(y\) axis to \(\left( a,b,0\right)\) and finally parallel to the \(z\) axis to \(\left( a,b,c\right).\) Observe that the same vector would result if you began at the point \(\left( d,e,f \right)\), moved parallel to the \(x\) axis to \(\left( d+a,e,f\right) ,\) then parallel to the \(y\) axis to \(\left( d+a,e+b,f\right) ,\) and finally parallel to the \(z\) axis to \(\left( d+a,e+b,f+c\right)\). Here, the vector would have its tail sitting at the point determined by \(A= \left( d,e,f\right)\) and its point at \(B=\left( d+a,e+b,f+c\right) .\) It is the same vector because it will point in the same direction and have the same length. It is like you took an actual arrow, and moved it from one location to another keeping it pointing the same direction.

    We conclude this section with a brief discussion regarding notation. In previous sections, we have written vectors as columns, or \(n \times 1\) matrices. For convenience in this chapter we may write vectors as the transpose of row vectors, or \(1 \times n\) matrices. These are of course equivalent and we may move between both notations. Therefore, recognize that \[\left [ \begin{array}{r} 2 \\ 3 \end{array} \right ] = \left [ \begin{array}{rr} 2 & 3 \end{array} \right ]^T\nonumber \]

    Notice that two vectors \(\vec{u} = \left [ u_{1} \cdots u_{n}\right ]^T\) and \(\vec{v}=\left [ v_{1} \cdots v_{n}\right ]^T\) are equal if and only if all corresponding components are equal. Precisely, \[\begin{array}{c} \vec{u}=\vec{v} \; \mbox{if and only if}\\ u_{j}=v_{j} \; \mbox{for all}\; j=1,\cdots ,n \end{array}\nonumber \] Thus \(\left [ \begin{array}{rrr} 1 & 2 & 4 \end{array} \right ]^T \in \mathbb{R}^{3}\) and \(\left [ \begin{array}{rrr} 2 & 1 & 4 \end{array} \right ]^T \in \mathbb{R}^{3}\) but \(\left [ \begin{array}{rrr} 1 & 2 & 4 \end{array} \right ]^T \neq \left [ \begin{array}{rrr} 2 & 1 & 4 \end{array} \right ]^T\) because, even though the same numbers are involved, the order of the numbers is different.

    For the specific case of \(\mathbb{R}^3\), there are three special vectors which we often use. They are given by \[\vec{i} = \left [ \begin{array}{rrr} 1 & 0 & 0 \end{array} \right ]^T\nonumber \] \[\vec{j} = \left [ \begin{array}{rrr} 0 & 1 & 0 \end{array} \right ]^T\nonumber \] \[\vec{k} = \left [ \begin{array}{rrr} 0 & 0 & 1 \end{array} \right ]^T\nonumber \] We can write any vector \(\vec{u} = \left [ \begin{array}{rrr} u_1 & u_2 & u_3 \end{array} \right ]^T\) as a linear combination of these vectors, written as \(\vec{u} = u_1 \vec{i} + u_2 \vec{j} + u_3 \vec{k}\). This notation will be used throughout this chapter.

    Addition and scalar multiplication are two important algebraic operations done with vectors. Notice that these operations apply to vectors in \(\mathbb{R}^{n}\), for any value of \(n\). We will explore these operations in more detail in the following sections.

    Recall that an element of \(\mathbb{R}^{n}\) is an ordered list of numbers. For the specific case of \(n=2,3\) this can be used to determine a point in two or three dimensional space. This point is specified relative to some coordinate axes.

    Consider the case \(n=3\). Recall that taking a vector and moving it around without changing its length or direction does not change the vector. This is important in the geometric representation of vector addition.

    Suppose we have two vectors, \(\vec{u}\) and \(\vec{v}\) in \(\mathbb{R}^{3}\). Each of these can be drawn geometrically by placing the tail of each vector at \(0\) and its point at \(\left( u_{1}, u_{2}, u_{3}\right)\) and \(\left( v_{1}, v_{2}, v_{3}\right)\) respectively. Suppose we slide the vector \(\vec{v}\) so that its tail sits at the point of \(\vec{u}\). We know that this does not change the vector \(\vec{v}\). Now, draw a new vector from the tail of \(\vec{u}\) to the point of \(\vec{v}\). This vector is \(\vec{u}+\vec{v}\).

    The geometric significance of vector addition in \(\mathbb{R}^n\) for any \(n\) is given in the following definition.

    Definition \(\PageIndex{3}\): Geometry of Vector Addition

    Let \(\vec{u}\) and \(\vec{v}\) be two vectors. Slide \(\vec{v}\) so that the tail of \(\vec{v}\) is on the point of \(\vec{u}\). Then draw the arrow which goes from the tail of \(\vec{u}\) to the point of \(\vec{v}\). This arrow represents the vector \(\vec{u}+\vec{v}\).

    Diagram illustrating vector addition in \(\mathbb{R}^2\).
    Figure \(\PageIndex{4}\): Diagram illustrates vector addition in \(\mathbb{R}^{2}\). The vector \(\vec{u}\) starts at the origin, the vector \(\vec{v}\) is placed at the tip of \(\vec{u}\), and their sum \(\vec{u}\) + \(\vec{v}\) is the resulting vector from the origin to the tip of \(\vec{v}\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    This definition is illustrated in the following picture in which \(\vec{u}+\vec{v}\) is shown for the special case \(n=3\).

    Diagram illustrating vector addition in \(\mathbb{R}^{3}\)
    Figure \(\PageIndex{5}\): Diagram illustrating vector addition in \(\mathbb{R}^{3}\), showing two vectors \(\vec{u}\) and \(\vec{v}\) in three-dimensional space. The image demonstrates how to add two vectors geometrically by placing the tail of one vector at the tip of the other. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Notice the parallelogram created by \(\vec{u}\) and \(\vec{v}\) in the above diagram. Then \(\vec{u} + \vec{v}\) is the directed diagonal of the parallelogram determined by the two vectors \(\vec{u}\) and \(\vec{v}\).

    When you have a vector \(\vec{v}\), its additive inverse \(-\vec{v}\) will be the vector which has the same magnitude as \(\vec{v}\) but the opposite direction. When one writes \(\vec{u}-\vec{v,}\) the meaning is \(\vec{u} + \left( -\vec{v}\right)\) as with real numbers. The following example illustrates these definitions and conventions.

    Example \(\PageIndex{1}\): Graphing Vector Addition

    Consider the following picture of vectors \(\vec{u}\) and \(\vec{v}\).

    vector u shown as long upward and right pointing, vector v shown as shorter downward left pointing
    Figure \(\PageIndex{6}\): Diagram illustrates two vectors in \(\mathbb{R}^2\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Sketch a picture of \(\vec{u}+\vec{v},\vec{u}-\vec{v}.\)

    Solution

    We will first sketch \(\vec{u}+\vec{v}.\) Begin by drawing \(\vec{u}\) and then at the point of \(\vec{u}\), place the tail of \(\vec{v}\) as shown. Then \(\vec{u}+\vec{v}\) is the vector which results from drawing a vector from the tail of \(\vec{u}\) to the tip of \(\vec{v}\).

    Diagram illustrating vector addition in \(\mathbb{R}^2\)
    Figure \(\PageIndex{7}\): Diagram illustrates vector addition in \(\mathbb{R}^2\), showing two vectors \(\vec{u}\) and \(\vec{v}\). The image demonstrates how to add two vectors geometrically by placing the tail of one vector at the tip of the other. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Next consider \(\vec{u}-\vec{v}.\) This means \(\vec{u}+\left( -\vec{v} \right) .\) From the above geometric description of vector addition, \(-\vec{v}\) is the vector which has the same length but which points in the opposite direction to \(\vec{v}\). Here is a picture.

    Diagram illustrating vector subtraction in \(\mathbb{R}^2\)
    Figure \(\PageIndex{8}\): Diagram illustrates vector subtraction in \(\mathbb{R}^2\), showing two vectors \(\vec{u}\) and \(\vec{v}\). The image demonstrates how to subtract two vectors geometrically by placing the tail of \(-\vec{v}\) at the tip of \(\vec{u}\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Addition of Vectors in \(\mathbb{R}^n\)

    Addition of vectors in \(\mathbb{R}^n\) is defined as follows.

    Definition \(\PageIndex{4}\): Addition of Vectors in \(\mathbb{R}^n\)

    If \(\vec{u}=\left [ \begin{array}{c} u_{1} \\ \vdots \\ u_{n} \end{array} \right ],\; \vec{v}= \left [ \begin{array}{c} v_{1} \\ \vdots \\ v_{n} \end{array} \right ] \in \mathbb{R}^{n}\) then \(\vec{u}+\vec{v}\in \mathbb{R}^{n}\) and is defined by

    \[\begin{aligned} \vec{u}+\vec{v} &= \left [ \begin{array}{c} u_{1} \\ \vdots \\ u_{n} \end{array} \right ] + \left [ \begin{array}{c} v_{1} \\ \vdots \\ v_{n} \end{array} \right ]\\ & = \left [ \begin{array}{c} u_{1}+v_{1} \\ \vdots \\ u_{n}+v_{n} \end{array} \right ]\end{aligned}\]

    To add vectors, we simply add corresponding components. Therefore, in order to add vectors, they must be the same size.

    Addition of vectors satisfies some important properties which are outlined in the following theorem.

    Theorem \(\PageIndex{1}\): Properties of Vector Addition

    The following properties hold for vectors \(\vec{u},\vec{v}, \vec{w} \in \mathbb{R}^{n}\).

    • The Commutative Law of Addition \[\vec{u}+\vec{v}=\vec{v}+\vec{u}\nonumber \]
    • The Associative Law of Addition \[\left( \vec{u}+\vec{v}\right) +\vec{w}=\vec{u}+\left( \vec{v}+\vec{w}\right)\nonumber \]
    • The Existence of an Additive Identity \[\vec{u}+\vec{0}=\vec{u} \label{vectoridentity}\]
    • The Existence of an Additive Inverse \[\vec{u}+\left( -\vec{u}\right) =\vec{0}\nonumber \]

    The additive identity shown in Equation \(\eqref{vectoridentity}\) is also called the zero vector, the \(n \times 1\) vector in which all components are equal to \(0\). Further, \(-\vec{u}\) is simply the vector with all components having same value as those of \(\vec{u}\) but opposite sign; this is just \((-1)\vec{u}\). This will be made more explicit in the next section when we explore scalar multiplication of vectors. Note that subtraction is defined as \(\vec{u}-\vec{v} = \vec{u}+\left( -\vec{v} \right)\).

    We now explore what is meant by the length of a vector in \(\mathbb{R}^n\). We develop this concept by first looking at the distance between two points in \(\mathbb{R}^n\).

    First, we will consider the concept of distance for \(\mathbb{R}\), that is, for points in \(\mathbb{R}^1\). Here, the distance between two points \(P\) and \(Q\) is given by the absolute value of their difference. We denote the distance between \(P\) and \(Q\) by \(d(P,Q)\) which is defined as \[d(P,Q) = \sqrt{ \left( P-Q\right) ^{2}} \label{distance1}\]

    Consider now the case for \(n=2\), demonstrated by the following picture.

    Diagram illustrating the distance between two points \(P\) and \(Q\).
    Figure \(\PageIndex{9}\): Diagram illustrates the distance between two points \(P\) and \(Q\) in \(\mathbb{R}^2\). The image demonstrates how to calculate the distance using the Pythagorean theorem. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    There are two points \(P =\left( p_{1},p_{2}\right)\) and \(Q = \left(q_{1},q_{2}\right)\) in the plane. The distance between these points is shown in the picture as a solid line. Notice that this line is the hypotenuse of a right triangle which is half of the rectangle shown in dotted lines. We want to find the length of this hypotenuse which will give the distance between the two points. Note the lengths of the sides of this triangle are \(\left| p_{1}-q_{1}\right|\) and \(\left| p_{2}-q_{2}\right|\), the absolute value of the difference in these values. Therefore, the Pythagorean Theorem implies the length of the hypotenuse (and thus the distance between \(P\) and \(Q\)) equals \[\left( \left| p_{1}-q_{1}\right| ^{2}+\left| p_{2}-q_{2}\right| ^{2}\right) ^{1/2}=\left( \left( p_{1}-q_{1}\right) ^{2}+\left( p_{2}-q_{2}\right) ^{2}\right) ^{1/2} \label{distance2}\]

    Now suppose \(n=3\) and let \(P = \left( p_{1},p_{2},p_{3}\right)\) and \(Q = \left( q_{1},q_{2},q_{3}\right)\) be two points in \(\mathbb{R}^{3}.\) Consider the following picture in which the solid line joins the two points and a dotted line joins the points \(\left( q_{1},q_{2},q_{3}\right)\) and \(\left( p_{1},p_{2},q_{3}\right) .\)

    Diagram illustrating the distance between two points \(P\) and \(Q\) in \(\mathbb{R}^2\).
    Figure \(\PageIndex{10}\): Diagram illustrates the distance between two points \(P\) and \(Q\) in \(\mathbb{R}^3\). The image demonstrates how to calculate the distance using the Pythagorean theorem in three-dimensional space. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Here, we need to use Pythagorean Theorem twice in order to find the length of the solid line. First, by the Pythagorean Theorem, the length of the dotted line joining \(\left( q_{1},q_{2},q_{3}\right)\) and \(\left( p_{1},p_{2},q_{3}\right)\) equals \[\left( \left( p_{1}-q_{1}\right) ^{2}+\left( p_{2}-q_{2}\right) ^{2}\right) ^{1/2}\nonumber \] while the length of the line joining \(\left( p_{1},p_{2},q_{3}\right)\) to \(\left( p_{1},p_{2},p_{3}\right)\) is just \(\left| p_{3}-q_{3}\right| .\) Therefore, by the Pythagorean Theorem again, the length of the line joining the points \(P = \left( p_{1},p_{2},p_{3}\right)\) and \(Q = \left( q_{1},q_{2},q_{3}\right)\) equals \[\left( \left( \left( \left( p_{1}-q_{1}\right) ^{2}+\left( p_{2}-q_{2}\right) ^{2}\right) ^{1/2}\right) ^{2}+\left( p_{3}-q_{3}\right) ^{2}\right) ^{1/2}\nonumber \] \[=\left( \left( p_{1}-q_{1}\right) ^{2}+\left( p_{2}-q_{2}\right) ^{2}+\left( p_{3}-q_{3}\right) ^{2}\right) ^{1/2} \label{distance3}\]

    This discussion motivates the following definition for the distance between points in \(\mathbb{R}^n\).

    Definition \(\PageIndex{5}\): Distance Between Points

    Let \(P=\left( p_{1},\cdots ,p_{n}\right)\) and \(Q=\left( q_{1},\cdots ,q_{n}\right)\) be two points in \(\mathbb{R}^{n}\). Then the distance between these points is defined as \[\text{ distance between }P\text{ and } Q\text{ } = d( P, Q ) = \left( \sum_{k=1}^{n}\left\vert p_{k}-q_{k}\right\vert ^{2}\right) ^{1/2}\nonumber \] This is called the distance formula. We may also write \(\left\vert P - Q \right\vert\) as the distance between \(P\) and \(Q\).

    From the above discussion, you can see that Definition \(\PageIndex{1}\) holds for the special cases \(n=1,2,3\), as in Equations \(\eqref{distance1}\), \(\eqref{distance2}\), \(\eqref{distance3}\). In the following example, we use Definition \(\PageIndex{1}\) to find the distance between two points in \(\mathbb{R}^4\).

    Example \(\PageIndex{2}\): Distance Between Points

    Find the distance between the points \(P\) and \(Q\) in \(\mathbb{R}^{4}\), where \(P\) and \(Q\) are given by \[P=\left( 1,2,-4,6\right)\nonumber \] and \[Q=\left( 2,3,-1,0\right)\nonumber \]

    Solution

    We will use the formula given in Definition \(\PageIndex{1}\) to find the distance between \(P\) and \(Q\). Use the distance formula and write \[d(P,Q)= \left( \left( 1-2\right) ^{2}+\left( 2-3\right) ^{2}+\left( -4-\left( -1\right) \right) ^{2}+\left( 6-0\right)^{2}\right) ^{\frac{1}{2}} = 47\nonumber \]

    Therefore, \(d( P,Q) = \sqrt{47}.\)

    There are certain properties of the distance between points which are important in our study. These are outlined in the following theorem.

    Theorem \(\PageIndex{2}\): Properties of Distance

    Let \(P\) and \(Q\) be points in \(\mathbb{R}^n\), and let the distance between them, \(d( P, Q)\), be given as in Definition \(\PageIndex{1}\). Then, the following properties hold.

    • \(d( P, Q) = d( Q, P)\)
    • \(d( P, Q) \geq 0\), and equals 0 exactly when \(P = Q.\)

    There are many applications of the concept of distance. For instance, given two points, we can ask what collection of points are all the same distance between the given points. This is explored in the following example.

    Example \(\PageIndex{3}\): The Plane Between Two Points

    Describe the points in \(\mathbb{R}^3\) which are at the same distance between \(\left( 1,2,3\right)\) and \(\left( 0,1,2\right) .\)

    Solution

    Let \(P = \left( p_1 , p_2, p_3\right)\) be such a point. Therefore, \(P\) is the same distance from \(\left( 1,2,3\right)\) and \(\left( 0,1,2\right) .\) Then byDefinition \(\PageIndex{1}\), \[\sqrt{\left( p_1 -1\right) ^{2}+\left( p_2 -2\right) ^{2}+\left( p_3-3\right) ^{2}}= \sqrt{\left( p_1 - 0 \right)^{2}+\left( p_2-1\right) ^{2}+\left( p_3-2\right) ^{2}}\nonumber \] Squaring both sides we obtain \[\left( p_1 -1\right) ^{2}+\left( p_2 -2\right) ^{2}+\left( p_3 -3\right) ^{2}=p_1^{2}+\left( p_2-1\right) ^{2}+\left( p_3 -2\right) ^{2}\nonumber \] and so \[ \ p_1^{2}-2p_1+14+p_2^{2}-4p_2+p_3^{2}-6p_3=p_1^{2}+p_2^{2}-2p_2+5+p_3^{2}-4p_3\nonumber \] Simplifying, this becomes \[-2p_1+14-4p_2-6p_3=-2p_2+5-4p_3\nonumber \] which can be written as \[2p_1+2p_2+2p_3=-9 \label{distanceplane}\] Therefore, the points \(P = \left( p_1,p_2,p_3\right)\) which are the same distance from each of the given points form a plane whose equation is given by \(\eqref{distanceplane}\).

    We can now use our understanding of the distance between two points to define what is meant by the length of a vector. Consider the following definition.

    Definition \(\PageIndex{6}\): Length of a Vector

    Let \(\vec{u} = \left[ u_{1} \cdots u_{n} \right]^T\) be a vector in \(\mathbb{R}^n\). Then, the length of \(\vec{u}\), written \(\| \vec{u} \|\) is given by \[\| \vec{u} \| = \sqrt{ u_{1}^2 + \cdots + u_{n}^2}\nonumber \]

    This definition corresponds to Definition \(\PageIndex{1}\), if you consider the vector \(\vec{u}\) to have its tail at the point \(0 = \left( 0, \cdots ,0 \right)\) and its tip at the point \(U = \left(u_1, \cdots, u_n \right)\). Then the length of \(\vec{u}\) is equal to the distance between \(0\) and \(U\), \(d(0,U)\). In general, \(d(P,Q)=||\vec{PQ}||\).

    ConsiderExample \(\PageIndex{1}\). ByDefinition \(\PageIndex{2}\), we could also find the distance between \(P\) and \(Q\) as the length of the vector connecting them. Hence, if we were to draw a vector \(\overrightarrow{PQ}\) with its tail at \(P\) and its point at \(Q\), this vector would have length equal to \(\sqrt{47}\).

    We conclude this section with a new definition for the special case of vectors of length \(1\).

    Definition \(\PageIndex{7}\): Unit Vector

    Let \(\vec{u}\) be a vector in \(\mathbb{R}^{n}\). Then, we call \(\vec{u}\) a unit vector if it has length 1, that is if \[\| \vec{u} \| = 1\nonumber \]

    Let \(\vec{v}\) be a vector in \(\mathbb{R}^{n}\). Then, the vector \(\vec{u}\) which has the same direction as \(\vec{v}\) but length equal to \(1\) is the corresponding unit vector of \(\vec{v}\). This vector is given by \[\vec{u} = \frac{1}{\| \vec{v} \|} \vec{v}\nonumber \]

    We often use the term normalize to refer to this process. When we normalize a vector, we find the corresponding unit vector of length \(1\). Consider the following example.

    Example \(\PageIndex{4}\): Finding a Unit Vector

    Let \(\vec{v}\) be given by \[\vec{v} = \left[ \begin{array}{rrr} 1 & -3 & 4 \end{array} \right]^T\nonumber \] Find the unit vector \(\vec{u}\) which has the same direction as \(\vec{v}\).

    Solution

    We will use Definition \(\PageIndex{3}\) to solve this. Therefore, we need to find the length of \(\vec{v}\) which, by Definition \(\PageIndex{2}\) is given by \[\| \vec{v} \| = \sqrt{ v_{1}^2 + v_{2}^2+ v_{3}^2}\nonumber \] Using the corresponding values we find that \[\begin{aligned} \| \vec{v} \| &= \sqrt{ 1^2 + \left(-3 \right)^2 + 4^2} \\ &= \sqrt{ 1 + 9 + 16} \\ &= \sqrt{26} \end{aligned}\] In order to find \(\vec{u}\), we divide \(\vec{v}\) by \(\sqrt{26}\). The result is \[\begin{aligned} \vec{u} &= \frac{1}{\| \vec{v} \|} \vec{v} \\ &= \frac{1}{\sqrt{26}} \left[ \begin{array}{rrr} 1 & -3 & 4 \end{array} \right]^T \\ &= \left[ \begin{array}{rrr} \frac{1}{\sqrt{26}} & -\frac{3}{\sqrt{26}} & \frac{4}{\sqrt{26}} \end{array} \right]^T\end{aligned}\]

    You can verify using the Definition \(\PageIndex{1}\) that \(\| \vec{u} \| = 1\).

    Now suppose we have a vector \(\vec{u} = \left[ \begin{array}{lll} u_1 & u_2 & u_3 \end{array} \right]^T\) and we multiply \(\vec{u}\) by a scalar \(k\). By Definition 4.2.2, \(k\vec{u} = \left[ \begin{array}{rrr} ku_{1} & ku_{2} & ku_{3} \end{array} \right]^T\). Then, by using Definition 4.4.1, the length of this vector is given by \[\sqrt{\left( \left( k u_{1}\right) ^{2}+\left( k u_{2}\right) ^{2}+\left( k u_{3}\right) ^{2}\right) }=\left\vert k \right\vert \sqrt{u_{1}^{2}+u_{2}^{2}+u_{3}^{2}}\nonumber \] Thus the following holds. \[\| k \vec{u} \| =\left\vert k \right\vert \| \vec{u} \|\nonumber \] In other words, multiplication by a scalar magnifies or shrinks the length of the vector by a factor of \(\left\vert k \right\vert\). If \(\left\vert k \right\vert > 1\), the length of the resulting vector will be magnified. If \(\left\vert k \right\vert <1\), the length of the resulting vector will shrink. Remember that by the definition of the absolute value, \(\left\vert k \right\vert >0\).

    What about the direction? Draw a picture of \(\vec{u}\) and \(k\vec{u}\) where \(k\) is negative. Notice that this causes the resulting vector to point in the opposite direction while if \(k >0\) it preserves the direction the vector points. Therefore the direction can either reverse, if \(k < 0\), or remain preserved, if \(k > 0\).

    Consider the following example.

    Example \(\PageIndex{5}\): Graphing Scalar Multiplication

    Consider the vectors \(\vec{u}\) and \(\vec{v}\) drawn below.

    Diagram illustrating vectors in \(\mathbb{R}^2\).

    Figure \(\PageIndex{11}\): Diagram illustrates two vectors \(\vec{u}\) and \(\vec{v}\) in \(\mathbb{R}^2\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Draw \(-\vec{u}\), \(2\vec{v}\), and \(-\frac{1}{2}\vec{v}\).

    Solution

    In order to find \(-\vec{u}\), we preserve the length of \(\vec{u}\) and simply reverse the direction. For \(2\vec{v}\), we double the length of \(\vec{v}\), while preserving the direction. Finally \(-\frac{1}{2}\vec{v}\) is found by taking half the length of \(\vec{v}\) and reversing the direction. These vectors are shown in the following diagram.

    Scalar Multiplication - Kuttler.png
    Figure \(\PageIndex{12}\): Diagram illustrating scalar multiplication of vectors in \(\mathbb{R}^2\). The image demonstrates how to scale a vector by multiplying it by a scalar. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    In the following example, we examine the geometric meaning of this concept.

    Example \(\PageIndex{6}\): Graphing a Linear Combination of Vectors

    Consider the following picture of the vectors \(\vec{u}\) and \(\vec{v}\):

    Diagram illustrating vectors in \(\mathbb{R}^2\).
    Figure \(\PageIndex{13}\): Diagram illustrates two vectors (\vec{u}\) and \(\vec{v}\) in \(\mathbb{R}^2\). (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Sketch a picture of \(\vec{u}+2\vec{v},\vec{u}-\frac{1}{2}\vec{v}.\)

    Solution

    The two vectors are shown below.

    Diagram illustrating vector addition and scalar multiplication.
    Figure \(\PageIndex{14}\): Diagram illustrates vector addition and scalar multiplication in \(\mathbb{R}^2\). The image demonstrates how to add and scale vectors geometrically. (CC BY-NC-SA 4.0; Kuttler via A First Course in LINEAR ALGEBRA)

    Scalar Multiplication of Vectors in \(\mathbb{R}^n\)

    Scalar multiplication of vectors in \(\mathbb{R}^n\) is defined as follows.

    Definition \(\PageIndex{8}\): Scalar Multiplication of Vectors in \(\mathbb{R}^n\)

    If \(\vec{u}\in \mathbb{R}^{n}\) and \(k\in \mathbb{R}\) is a scalar, then \(k\vec{u}\in \mathbb{R}^{n}\) is defined by \[k\vec{u}=k\left [ \begin{array}{c} u_{1} \\ \vdots \\ u_{n} \end{array} \right ] = \left [ \begin{array}{c} ku_{1} \\ \vdots \\ ku_{n} \end{array} \right ]\nonumber \]

    Just as with addition, scalar multiplication of vectors satisfies several important properties. These are outlined in the following theorem.

    Theorem \(\PageIndex{3}\): Properties of Scalar Multiplication

    The following properties hold for vectors \(\vec{u},\vec{v}\in \mathbb{R}^{n}\) and \(k,p\) scalars.

    • The Distributive Law over Vector Addition \[k \left( \vec{u}+\vec{v}\right) = k\vec{u}+ k\vec{v}\nonumber\]
    • The Distributive Law over Scalar Addition \[\left( k + p \right)\vec{u} = k \vec{u}+p \vec{u}\nonumber\]
    • The Associative Law for Scalar Multiplication \[k \left( p \vec{u}\right) = \left(k p \right)\vec{u}\nonumber\]
    • Rule for Multiplication by \(1\) \[1\vec{u}=\vec{u}\nonumber\]
    Proof

    We will show the proof of: \[k \left( \vec{u}+\vec{v}\right) = k \vec{u}+ k \vec{v}\nonumber\] Note that: \[\begin{array}{ll} k \left( \vec{u}+\vec{v}\right) & =k \left [ u_{1}+v_{1} \cdots u_{n}+v_{n}\right ]^T \\ & = \left [ k \left( u_{1}+v_{1}\right) \cdots k \left( u_{n}+v_{n}\right) \right ]^T \\ & = \left [ k u_{1}+ k v_{1} \cdots k u_{n}+ k v_{n}\right ]^T \\ & = \left [ k u_{1} \cdots k u_{n} \right ]^T + \left [ k v_{1} \cdots k v_{n} \right ]^T \\ & = k \vec{u}+k \vec{v} \\ \end{array}\nonumber\]

    We now present a useful notion you may have seen earlier combining vector addition and scalar multiplication

    Definition \(\PageIndex{9}\): Linear Combination

    A vector \(\vec{v}\) is said to be a linear combination of the vectors \(\vec{u}_1,\cdots , \vec{u}_n\) if there exist scalars, \(a_{1},\cdots ,a_{n}\) such that \[\vec{v} = a_1 \vec{u}_1 + \cdots + a_n \vec{u}_n\nonumber \]

    For example, \[3 \left [ \begin{array}{r} -4 \\ 1 \\ 0 \end{array} \right ] + 2 \left [ \begin{array}{r} -3 \\ 0\\ 1 \end{array} \right ] = \left [ \begin{array}{r} -18 \\ 3 \\ 2 \end{array} \right ].\nonumber \] Thus we can say that \[\vec{v}= \left [ \begin{array}{r} -18 \\ 3 \\ 2 \end{array} \right ]\nonumber \] is a linear combination of the vectors \[\vec{u}_1 = \left [ \begin{array}{r} -4 \\ 1 \\ 0 \end{array} \right ] \mbox{ and } \vec{u}_2 = \left [ \begin{array}{r} -3 \\ 0\\ 1 \end{array} \right ]\nonumber \]


    This page titled 4.2: Review of Vectors is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Doli Bambhania, Fatemeh Yarahmadi, and Bill Wilson.