Addition and subtraction are both defined for vectors.
They actually work rather intuitively.
Addition
Addition is defined as follows;
Presume we want to sum two vectors v β \vec{v} v and w β \vec{w} w where
v β = [ v 1 v 2 ] , w β = [ w 1 w 2 ] . \vec{v} = \begin{bmatrix}
v_1 \\
v_2
\end{bmatrix},
\vec{w} = \begin{bmatrix}
w_1 \\
w_2
\end{bmatrix}. v = [ v 1 β v 2 β β ] , w = [ w 1 β w 2 β β ] .
Then, their sum is
v β + w β = [ v 1 v 2 ] + [ w 1 w 2 ] = [ v 1 + w 1 v 2 + w 2 ] \vec{v} + \vec{w} =
\begin{bmatrix}
v_1 \\
v_2
\end{bmatrix} + \begin{bmatrix}
w_1 \\
w_2
\end{bmatrix} =
\begin{bmatrix}
v_1 + w_1 \\
v_2 + w_2
\end{bmatrix} v + w = [ v 1 β v 2 β β ] + [ w 1 β w 2 β β ] = [ v 1 β + w 1 β v 2 β + w 2 β β ]
Subtraction
Subtraction follows the same logic, where for the two vectors v β \vec{v} v and w β \vec{w} w defined above
v β β w β = [ v 1 v 2 ] β [ w 1 w 2 ] = [ v 1 β w 1 v 2 β w 2 ] \vec{v} - \vec{w} =
\begin{bmatrix}
v_1 \\
v_2
\end{bmatrix} - \begin{bmatrix}
w_1 \\
w_2
\end{bmatrix} =
\begin{bmatrix}
v_1 - w_1 \\
v_2 - w_2
\end{bmatrix} v β w = [ v 1 β v 2 β β ] β [ w 1 β w 2 β β ] = [ v 1 β β w 1 β v 2 β β w 2 β β ]
Commutativity
From the definition above,
it is evident that the same commutativity that holds
for addition of real numbers R \mathbb{R} R ,
also holds for vector addition:
v β + w β = [ v 1 v 2 ] + [ w 1 w 2 ] = [ v 1 + w 1 v 2 + w 2 ] = [ w 1 + v 1 w 2 + v 2 ] = [ w 1 w 2 ] + [ v 1 v 2 ] = w β + v β \begin{align*}
\vec{v} + \vec{w} &=
\begin{bmatrix}
v_1 \\
v_2
\end{bmatrix} + \begin{bmatrix}
w_1 \\
w_2
\end{bmatrix} \\
&= \begin{bmatrix}
v_1 + w_1 \\
v_2 + w_2
\end{bmatrix} \\
&= \begin{bmatrix}
w_1 + v_1 \\
w_2 + v_2
\end{bmatrix} \\
&= \begin{bmatrix}
w_1 \\
w_2
\end{bmatrix} + \begin{bmatrix}
v_1 \\
v_2
\end{bmatrix} \\
&= \vec{w} + \vec{v}
\end{align*} v + w β = [ v 1 β v 2 β β ] + [ w 1 β w 2 β β ] = [ v 1 β + w 1 β v 2 β + w 2 β β ] = [ w 1 β + v 1 β w 2 β + v 2 β β ] = [ w 1 β w 2 β β ] + [ v 1 β v 2 β β ] = w + v β
Graphical Representation
If youβre adding a vector v β \vec{v} v to a vector w β \vec{w} w , the resulting vector v β + w β \vec{v} + \vec{w} v + w
will be the result of moving w β \vec{w} w in such a way, such that
w β \vec{w} w βs starting point will be at v β \vec{v} v βs end, as shown in the following
figure:
In the example depicted above, the vectors are the following:
v β = [ 4 2 ] , w β = [ 4 6 ] , v β + w β = [ 8 8 ] \vec{v} = \begin{bmatrix}
4 \\
2
\end{bmatrix}, \vec{w} = \begin{bmatrix}
4 \\
6
\end{bmatrix}, \vec{v} + \vec{w} = \begin{bmatrix}
8 \\
8
\end{bmatrix} v = [ 4 2 β ] , w = [ 4 6 β ] , v + w = [ 8 8 β ]