No history yet

Vectors and Vector Operations

More Than Just a Number

Some quantities in the world can be described with a single number. Your height, the temperature outside, the price of a coffee. These are called scalars.

But what if you need to describe movement? If you say you walked 3 miles, that's a scalar. It only tells us distance. It doesn't tell us where you ended up. To do that, you need a direction. "I walked 3 miles northeast." That's a vector.

A vector is a mathematical object that has both magnitude (size or length) and direction. We usually draw them as arrows. The arrow's length represents the magnitude, and the way it points shows the direction.

In a 2D plane, we can describe a vector by its components along the x and y axes. The vector v\vec{v} in the diagram moves 4 units to the right and 3 units up. We can write this vector as:

v=(43)\vec{v} = \begin{pmatrix} 4 \\ 3 \end{pmatrix}

This notation is a clean way to bundle the magnitude and direction into a single package. Vectors aren't limited to two dimensions; they can exist in 3D space or even in much higher-dimensional spaces that are harder to visualize.

Combining Vectors

We can perform operations on vectors, just like with regular numbers. Let's start with addition. Imagine you walk 4 blocks east and then 3 blocks north. Your journey has two parts, each represented by a vector. The total change in your position, from your starting point to your final destination, is the sum of these two vectors.

Geometrically, we add vectors by placing them "tip-to-tail." The arrow representing the sum, called the resultant vector, is drawn from the tail of the first vector to the tip of the second.

Lesson image

Another way to visualize this is the parallelogram rule. If you place the tails of the two vectors at the same starting point, they form the adjacent sides of a parallelogram. The resultant vector is the diagonal of that parallelogram that starts from the common tail.

Mathematically, adding vectors is simple. You just add their corresponding components.

a=(a1a2),b=(b1b2)a+b=(a1+b1a2+b2)\vec{a} = \begin{pmatrix} a_1 \\ a_2 \end{pmatrix}, \quad \vec{b} = \begin{pmatrix} b_1 \\ b_2 \end{pmatrix} \\ \\ \vec{a} + \vec{b} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \end{pmatrix}

Vector subtraction works similarly. Subtracting a vector is the same as adding its negative. A negative vector has the same magnitude but points in the exact opposite direction.

ab=a+(b)=(a1b1a2b2)\vec{a} - \vec{b} = \vec{a} + (-\vec{b}) = \begin{pmatrix} a_1 - b_1 \\ a_2 - b_2 \end{pmatrix}

Scaling Vectors

What happens if you take a vector and multiply it by a plain number (a scalar)? This operation is called scalar multiplication. It scales the vector, changing its length.

Multiplying a vector by 2 doubles its length but keeps its direction the same. Multiplying it by 0.5 halves its length. Multiplying by a negative scalar, like -1, reverses its direction completely while keeping its magnitude.

Lesson image

The calculation is straightforward: you multiply each component of the vector by the scalar.

kv=k(v1v2)=(kv1kv2)k \cdot \vec{v} = k \begin{pmatrix} v_1 \\ v_2 \end{pmatrix} = \begin{pmatrix} k \cdot v_1 \\ k \cdot v_2 \end{pmatrix}

For example, if v=(23)\vec{v} = \begin{pmatrix} 2 \\ 3 \end{pmatrix}, then 3v=(3233)=(69)3\vec{v} = \begin{pmatrix} 3 \cdot 2 \\ 3 \cdot 3 \end{pmatrix} = \begin{pmatrix} 6 \\ 9 \end{pmatrix}. The new vector points in the same direction but is three times as long.

These basic operations—addition, subtraction, and scalar multiplication—are the building blocks for almost everything else in linear algebra. Understanding them visually and mathematically is the first key step.

Quiz Questions 1/5

Which of the following is a key difference between a scalar and a vector?

Quiz Questions 2/5

If you multiply a vector by a scalar of -2, what happens to the vector?