No history yet

Vectors and Vector Operations

What is a Vector?

Some quantities are simple. If you ask for the temperature, you get a single number: 25°C. If you ask for the price of a coffee, you get another single number: $4. These are called scalars.

But what if you ask for directions? 'Go 3 miles' isn't very helpful. You need more information: 'Go 3 miles north.' That combination of a magnitude (3 miles) and a direction (north) is a vector.

vector

noun

A mathematical object that has both a magnitude (size or length) and a direction.

We often represent vectors as arrows. The arrow's length shows its magnitude, and where it points shows its direction. In a coordinate system, we can describe a 2D vector by its components along the x and y axes. A vector that moves 4 units to the right and 3 units up is written as (4,3)(4, 3).

Adding and Subtracting Vectors

Adding vectors isn't like adding regular numbers. You can't just add their lengths. When we add vectors, we add their corresponding components.

For example, let's take two vectors: u=(2,5)\vec{u} = (2, 5) and v=(4,1)\vec{v} = (4, 1). Their sum is a new vector.

u+v=(2+4,5+1)=(6,6)\vec{u} + \vec{v} = (2+4, 5+1) = (6, 6)

Geometrically, this is like following one set of directions and then another. Imagine walking along vector u\vec{u}, and then from where you stopped, walking along vector v\vec{v}. The vector from your starting point to your final destination is the sum u+v\vec{u} + \vec{v}. This is called the 'tip-to-tail' method.

Subtracting vectors works the same way. To find uv\vec{u} - \vec{v}, you just subtract the components.

uv=(24,51)=(2,4)\vec{u} - \vec{v} = (2-4, 5-1) = (-2, 4)

Geometrically, subtracting v\vec{v} is the same as adding a vector that has the same length as v\vec{v} but points in the exact opposite direction. This 'opposite' vector is written as v-\vec{v}. So, uv\vec{u} - \vec{v} is the same as u+(v)\vec{u} + (-\vec{v}).

Scalar Multiplication

What happens if you multiply a vector by a plain number (a scalar)? This is called scalar multiplication, and it changes the vector's magnitude, or length. It 'scales' the vector up or down.

Take our vector v=(4,3)\vec{v} = (4, 3). If we multiply it by the scalar 2, we get a new vector that's twice as long but points in the same direction.

2v=2(4,3)=(2×4,2×3)=(8,6)2\vec{v} = 2(4, 3) = (2 \times 4, 2 \times 3) = (8, 6)

Multiplying by a negative scalar reverses the vector's direction. For instance, multiplying v\vec{v} by -1 gives us (4,3)( -4, -3), a vector of the same length pointing the opposite way.

Lesson image

This is incredibly useful. Any time you need to make something stronger, weaker, faster, or slower without changing its direction, you're using scalar multiplication.

Quiz Questions 1/5

Which of the following quantities is a vector?

Quiz Questions 2/5

Given two vectors, u=(2,5)\vec{u} = (2, 5) and v=(4,1)\vec{v} = (4, 1), what is their sum u+v\vec{u} + \vec{v}?