What Is a Vector?

A size and a direction, drawn as an arrow and written as components.

1. Scalars and Vectors

Some quantities are described completely by a single number and its unit: a temperature of 20 degrees, a mass of 3 kilograms, a time of 10 seconds.

A scalar is a quantity that has a size only.

Others need a direction as well. “Walk 5 metres” could leave you anywhere on a circle around where you started. “Walk 5 metres east” puts you in exactly one place.

A vector is a quantity that has both a size and a direction. Its size is called its magnitude.

Some everyday examples of each:

  • Scalars: mass, temperature, time, distance, speed, energy.
  • Vectors: displacement, velocity, force, acceleration.

The clearest way to see the difference is through two pairs that sound alike, where only one of each pair includes a direction.

Distance and displacement

Distance is how far you travel along your path. It is a scalar. Displacement is how far, and in which direction, you end up from where you started. It is a vector: one straight arrow from start to finish, whatever route you took.

A dotted winding path from point A to point B, labelled path walked: distance, and a straight orange arrow from A to B, labelled displacement.
Fig 1: The distance is the length of the winding path. The displacement is the straight arrow from $A$ to $B$.

Example 1

You walk once around a rectangular block, 100 metres long and 50 metres wide, and come back to your front door. The distance you travelled, in metres, is

$$100 + 50 + 100 + 50 = 300$$

But you finished where you started, so your displacement has no length at all. A vector of length zero is called the zero vector, written $\bar{0}$. It is the only vector with no direction.

Speed and velocity

Speed is how fast something moves, such as 50 kilometres per hour. It is a scalar. Velocity is speed together with the direction of motion, such as 50 kilometres per hour heading north. It is a vector. Two cars driving at 50 kilometres per hour in opposite directions have the same speed but different velocities.

Drawing a vector

We draw a vector as an arrow. The length of the arrow shows the magnitude, and the way it points shows the direction. The start of the arrow is its tail and the pointed end is its head. We name a vector with a single lowercase letter and a small bar over it, such as $\bar{v}$. A vector named by the points at its tail and head gets an arrow over both letters instead: $\overrightarrow{AB}$ is the vector from the point $A$ to the point $B$.

2. Where an Arrow Is Drawn

An arrow on a page has a length, a direction and a position. Only the first two describe the vector.

Three arrows of the same length pointing in the same direction, drawn in different places, each labelled v.
Fig 2: Three drawings of the same vector $\bar{v}$.

Two arrows represent the same vector when they have the same length and point in the same direction, wherever they are drawn.

“Walk 5 metres east” is the same instruction whether you start at your front door or in a park. So we can slide a vector anywhere without changing it, as long as we don't stretch it or turn it. In particular, we can always put its tail at one agreed starting point, the origin. That is what lets us describe a vector with numbers.

3. Components

Put the tail of a vector at the origin $O$ of a set of axes. Its components are how far it goes along each axis to get from its tail to its head.

In one dimension

With a single axis, a number line, a vector can only point left or right. One number describes it completely: its size is how far the vector goes, and its sign gives the direction.

A number line from −5 to 5 with two arrows starting at 0: vector a pointing 3 units right and vector b pointing 3 units left.
Fig 3: $\bar{a} = (3)$ and $\bar{b} = (-3)$ go the same distance in opposite directions.

So in one dimension, the direction of a vector is nothing more than its sign.

In two dimensions

In a plane, an arrow from $O$ goes some distance along the $x$-axis and some distance along the $y$-axis. These are its components, $v_x$ and $v_y$, and we write $\bar{v} = (v_x, v_y)$.

Axes x and y from the origin O. Vector v runs from O up and to the right; it has a horizontal part v_x along the x-axis and a vertical part v_y up to its head.
Fig 4: The components of $\bar{v}$: $v_x$ along the $x$-axis, then $v_y$ parallel to the $y$-axis.

Example 2

$\bar{v} = (3, 4)$ goes 3 units in the $x$ direction and 4 units in the $y$ direction.

$\bar{w} = (-3, 4)$ goes 3 units the other way along $x$, and 4 units in the $y$ direction. A negative component means the opposite direction along that axis, just as in one dimension.

In three dimensions

Space has a third axis, $z$, at right angles to the other two. A vector in space has three components: $\bar{v} = (v_x, v_y, v_z)$. For example, $(2, 3, 6)$ goes 2 units along $x$, 3 along $y$ and 6 along $z$.

4. More Than Three Dimensions

We cannot draw a fourth axis, but nothing stops us writing a fourth number. A list of $n$ numbers describes a vector in $n$ dimensions. With that many components the letters run out, so we number them instead:

$$\bar{v} = (v_1, v_2, \dots, v_n)$$

Here $v_1$ is the component along the first axis, $v_2$ along the second, and so on. In three dimensions, $v_1$, $v_2$ and $v_3$ are simply $v_x$, $v_y$ and $v_z$ under new names.

5. Notation in Other Books

Different books and teachers write vectors in different ways. The ideas are the same; only the symbols change.

What is writtenForms you will meet
A vector$\bar{v}$$\vec{v}$$\mathbf{v}$$\underline{v}$
The vector from point $A$ to point $B$$\overrightarrow{AB}$
Its components$(v_x, v_y)$$\langle v_x, v_y \rangle$$\begin{pmatrix} v_x \\ v_y \end{pmatrix}$
Its magnitude$|\bar{v}|$$\|\bar{v}\|$$v$

Printed books often use bold letters, $\mathbf{v}$. Bold is hard to write by hand, so handwritten work uses a bar, an arrow or an underline instead.

Some books write components in angle brackets, $\langle v_x, v_y \rangle$, to keep a vector apart from the coordinates of a point, which use round brackets. Others stack the components in a column.

For the magnitude, more advanced books often use double bars, $\|\bar{v}\|$, keeping single bars for the absolute value of a number. Physics books often write the plain letter $v$, so $v$ is a speed while $\vec{v}$ is a velocity.

You may also see a vector written as $v_x\hat{\imath} + v_y\hat{\jmath}$ or $v_x\hat{x} + v_y\hat{y}$. This is the same vector, built from special vectors of length 1 called unit vectors, which the Unit Vectors page explains.

This site writes $\bar{v}$ for a vector named by one letter, $\overrightarrow{AB}$ for the vector from a point $A$ to a point $B$, $(v_x, v_y)$ for its components and $|\bar{v}|$ for its magnitude. The next page uses them to answer the first question you can ask about any vector: how long is it?