Adding and Scaling Vectors

Adding vectors head to tail, and multiplying them by a number.

1. Adding Vectors

Walk along a vector $\bar{a}$, then along a vector $\bar{b}$. Where do you end up? Your total displacement is one straight arrow from where you started to where you finished. That arrow is the sum of the two vectors.

Vector a, then vector b drawn from the head of a. An orange arrow labelled a + b runs from the tail of a straight to the head of b.
Fig 1: $\bar{b}$ starts where $\bar{a}$ ends, and $\bar{a} + \bar{b}$ goes straight from start to finish.

To add $\bar{b}$ to $\bar{a}$, draw $\bar{b}$ with its tail at the head of $\bar{a}$. The sum $\bar{a} + \bar{b}$ is the arrow from the tail of $\bar{a}$ to the head of $\bar{b}$.

This is called the head-to-tail rule. We are allowed to move $\bar{b}$ so that its tail meets the head of $\bar{a}$ because, as the first page showed, a vector stays the same wherever it is drawn.

2. Adding with Components

Let $\bar{a} = (a_x, a_y)$ and $\bar{b} = (b_x, b_y)$, and follow the walk one axis at a time. Along the $x$-axis, $\bar{a}$ moves you $a_x$ and then $\bar{b}$ moves you a further $b_x$, so the total movement along $x$ is $a_x + b_x$. In the same way, the total movement along $y$ is $a_y + b_y$. These totals are the components of the sum:

$$\bar{a} + \bar{b} = (a_x + b_x,\ a_y + b_y)$$

The same reasoning adds a third pair of components in three dimensions. In $n$ dimensions we define the sum the same way, adding matching components:

$$\bar{a} + \bar{b} = (a_1 + b_1,\ a_2 + b_2,\ \dots,\ a_n + b_n)$$

Example 1

For $\bar{a} = (3, 1)$ and $\bar{b} = (1, 2)$:

$$\bar{a} + \bar{b} = (3 + 1,\ 1 + 2) = (4, 3)$$
A grid with x from 0 to 5 and y from 0 to 4. Vector a runs from the origin to (3, 1). Vector b runs from (3, 1) to (4, 3). The orange sum a + b runs from the origin straight to (4, 3).
Fig 2: $\bar{a}$ takes you to $(3, 1)$, then $\bar{b}$ adds 1 along $x$ and 2 along $y$, ending at $(4, 3)$.

3. Order Does Not Matter

Walking along $\bar{a}$ then $\bar{b}$, or along $\bar{b}$ then $\bar{a}$, brings you to the same place. Drawn together, the two routes form a parallelogram, and both end at its far corner.

A parallelogram. Along the bottom, a then b; along the top, dashed, b then a. Both routes end at the same corner, joined to the start by the orange diagonal a + b.
Fig 3: Both routes reach the same corner, so $\bar{a} + \bar{b} = \bar{b} + \bar{a}$.

Components show why. Adding two numbers gives the same answer in either order, so $a_x + b_x = b_x + a_x$, and the same holds along every other axis. Therefore

$$\bar{a} + \bar{b} = \bar{b} + \bar{a}$$

The sum is the diagonal of the parallelogram, which is why this way of adding is also called the parallelogram rule.

4. Multiplying by a Number

Multiplying a vector by a number stretches it, shrinks it or turns it around. In this setting the number is called a scalar, as on the first page, so this is called scalar multiplication.

Four parallel arrows: v; 2v, twice as long in the same direction; half of v, half as long; and minus v, the same length as v pointing the opposite way.
Fig 4: $\bar{v}$, then $2\bar{v}$, $\tfrac{1}{2}\bar{v}$ and $-\bar{v}$.

For a whole number this is repeated addition. For example,

$$2\bar{v} = \bar{v} + \bar{v} = (v_x + v_x,\ v_y + v_y) = (2v_x,\ 2v_y)$$

Following that pattern, for any number $k$ we multiply every component by $k$:

For a number $k$ and a vector $\bar{v} = (v_x, v_y)$,

$$k\bar{v} = (k v_x,\ k v_y)$$

and in $n$ dimensions, $k\bar{v} = (k v_1, k v_2, \dots, k v_n)$.

Now we can check that this does what Fig 4 shows. First, its length. Using the formula from the Magnitude page:

$$\begin{align} |k\bar{v}| &= \sqrt{(k v_x)^2 + (k v_y)^2} \\ &= \sqrt{k^2 (v_x^2 + v_y^2)} \\ &= \sqrt{k^2}\ \sqrt{v_x^2 + v_y^2} \end{align}$$

On that page we also saw that $\sqrt{k^2} = |k|$, so

$$|k\bar{v}| = |k|\,|\bar{v}|$$

So $k\bar{v}$ is $|k|$ times as long as $\bar{v}$. Second, its direction. Every component is multiplied by the same $k$, so the components keep the same proportions to each other and the arrow stays on the same line. If $k$ is positive, every component keeps its sign and the arrow points the same way. If $k$ is negative, every component changes sign and the arrow points the opposite way. And if $k = 0$, every component becomes 0, giving the zero vector.

Example 2

For $\bar{v} = (3, 4)$, which has length 5:

$$\begin{align} 2\bar{v} &= (6, 8) & |2\bar{v}| &= 10 \\ -\bar{v} &= (-3, -4) & |-\bar{v}| &= 5 \end{align}$$

5. Subtracting Vectors

Subtracting a vector means adding its opposite:

$$\bar{a} - \bar{b} = \bar{a} + (-\bar{b}) = (a_x - b_x,\ a_y - b_y)$$
Vectors a and b drawn from the same point. An orange arrow labelled a − b runs from the head of b to the head of a.
Fig 5: With $\bar{a}$ and $\bar{b}$ drawn from the same point, $\bar{a} - \bar{b}$ runs from the head of $\bar{b}$ to the head of $\bar{a}$.

To see why the arrow in Fig 5 is right, walk along $\bar{b}$ and then along $\bar{a} - \bar{b}$. By the head-to-tail rule you reach the head of $\bar{a}$, and the components agree: $b_x + (a_x - b_x) = a_x$, and the same along $y$. So

$$\bar{b} + (\bar{a} - \bar{b}) = \bar{a}$$

Example 3

For $\bar{a} = (5, 1)$ and $\bar{b} = (2, 3)$:

$$\bar{a} - \bar{b} = (5 - 2,\ 1 - 3) = (3, -2)$$

Check: $\bar{b} + (3, -2) = (2 + 3,\ 3 - 2) = (5, 1)$, which is $\bar{a}$.

Subtraction gives the vector between two points. If arrows from the origin reach a point $A$ at $\bar{a}$ and a point $B$ at $\bar{b}$, then the vector from $A$ to $B$ is

$$\overrightarrow{AB} = \bar{b} - \bar{a}$$