3.4. Arithmetic operations on vectors#

3.4.1. Vector equality#

Definition 3.1 (Vector equality)

Two vectors in \(\mathbb{R}^n\) are said to be equal their corresponding elements are equal. In other words \(\vec{a},\vec{b}\in \mathbb{R}^n\) where \(\vec{a} = (a_1, a_2, \ldots, a_n)^\mathsf{T}\) and \(\vec{b} = (b_1, b_2, \ldots, b_n)^\mathsf{T}\) respectively, are equal if and only if the elements which correspond co-ordinate-wise are equal, i.e.,

\[ \begin{align*} a_i = b_i, \qquad i = 1, \ldots, n. \end{align*} \]

Informally this happens if and only if they have the same magnitude and they point in the same direction.

It follows from the definition of vector equality that a vector can be moved parallel to itself and still represent the same vector, i.e., the position of the vector does not matter when considering vector equality. Consider Fig. 3.6 which shows four vectors in \(\mathbb{R}^2\). The vectors \(\vec{a}\) and \(\vec{b}\) point in the same direction and have the same magnitude so we can say that \(\vec{a}=\vec{b}\). The vector \(\vec{c}\) has the same magnitude as \(\vec{a}\) and \(\vec{b}\) but points in the opposite direction so \(\vec{c}\neq \vec{a}\). The vector \(\vec{d}\) points in the same direction as \(\vec{a}\) but has a larger magnitude so \(\vec{d} \neq \vec{a}\).

../_images/3_vector_equality.svg

Fig. 3.6 Of these four vectors only \(\vec{a}\) and \(\vec{b}\) are equal.#

3.4.2. Vector addition#

Given three points with position vectors \(\vec{a}\), \(\vec{b}\) and \(\vec{c}\) in \(\mathbb{R}^n\) it is natural to ask how we might express the vector \(\overrightarrow{\vec{ac}}\) in terms of \(\overrightarrow{\vec{ab}}\) and \(\overrightarrow{\vec{bc}}.\) The answer is given by vector addition. In other words \(\overrightarrow{\vec{ac}} = \overrightarrow{\vec{ab}} + \overrightarrow{\vec{bc}}\) where addition of two vectors is defined below.

Definition 3.2 (Addition of two vectors)

The addition of two vectors \(\vec{a},\vec{b}\in\mathbb{R}^n\) is calculated using

\[\begin{split} \begin{align*} \vec{a} + \vec{b} = \begin{pmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{pmatrix} + \begin{pmatrix} b_1 \\ b_2 \\ \vdots \\ b_n \end{pmatrix} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \\ \vdots \\ a_n + b_n \end{pmatrix}. \end{align*} \end{split}\]

Intuitively this makes sense, the displacement from \(\vec{a}\) to \(\vec{c}\) in any coordinate direction is just the displacement from \(\vec{a}\) to \(\vec{b}\) plus the displacement from \(\vec{b}\) to \(\vec{c}\) in the relevant coordinate direction.

The geometric representation of \(\vec{a}+\vec{b}\) is represented in Fig. 3.7. Note that \(\vec{a}+\vec{b}\) is the same as placing the tail of \(\vec{b}\) at the head of \(\vec{a}\). Note also, as the figure demonstrates, that the order in which one adds the two vectors is unimportant. This is known as the parallelogram law of addition.

../_images/3_vector_addition.svg

Fig. 3.7 The addition of two vectors.#

3.4.3. Scalar multiplication#

Definition 3.3 (Scalar multiplication of a vector)

The multiplication of a vector \(\vec{a}\in \mathbb{R}^n\) by a scalar \(k \in \mathbb{R}\) is defined by

\[\begin{split} k \vec{a} = k\begin{pmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{pmatrix} = \begin{pmatrix} k a_1 \\ k a_2 \\ \vdots \\ k a_n \end{pmatrix}. \end{split}\]

Multiplying a vector by a scalar has the effect of scaling the vector \(\vec{a}\) to produce a vector parallel to \(\vec{a}\) with a magnitude of \(k|\vec{a}|\). In general if two vectors \(\vec{u}\) and \(\vec{v}\) are parallel then we write \(\vec{u} \parallel \vec{v}\).

Theorem 3.1 (Properties of scalar multiplication of vectors)

The scalar multiplication of a vector \(\vec{a}\) by a scalar \(k\) has the following properties:

  • \(k\vec{a}\) = \(\vec{a}k\) is a vector parallel to \(\vec{a}\);

  • \(0\vec{a} = (0, 0, \ldots, 0)^\mathsf{T} = \vec{0}\);

  • \(1\vec{a} = \vec{a}\);

  • \(|k\vec{a}| = |k||\vec{a}|\)   (\(|\vec{a}|\) is the length of the vector \(\vec{a}\) - see vector magnitude);

  • if \(k>0\) then \(\vec{a}\) and \(k\vec{a}\) point in the same direction, whereas if \(k<0\) then \(\vec{a}\) and \(k\vec{a}\) point in opposite directions.

../_images/3_scalar_multiplication_of_a_vector.svg

Fig. 3.8 Scaled variations of the vector \(\vec{a}\).#