3.4. Arithmetic operations on vectors#
3.4.1. Vector equality#
(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.,
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}\).
3.4.2. Vector addition#
(Addition of two vectors)
The addition of two vectors \(\vec{a},\vec{b}\in\mathbb{R}^n\) is calculated using
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.
3.4.3. Scalar multiplication#
(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
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}\).
(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