Skip to content

Vectors in two and three dimensions

A vector is a quantity with both magnitude and direction. It can describe a displacement, velocity, acceleration or force. A scalar has magnitude but no direction, such as distance, speed, time, mass or temperature.

For example,

(43)\begin{pmatrix}4\\-3\end{pmatrix}

represents a movement of 44 units in the positive xx direction and 33 units in the negative yy direction. It describes a change, not a fixed point.

This lesson develops the notation and geometric meaning needed for all later vector work.

You should be able to:

  • read coordinates in all four quadrants;
  • subtract negative numbers;
  • use the xx, yy and zz axes;
  • distinguish distance from displacement.

Review coordinate geometry or GCSE vectors if these ideas are uncertain.

Direction is part of a vector’s identity. A speed of 12 m s112\text{ m s}^{-1} is a scalar, but a velocity of 12 m s112\text{ m s}^{-1} due east is a vector. Changing only the direction changes the velocity even when the speed stays constant.

QuantityScalar or vector?Reason
77 km travelledScalarDistance has no direction
77 km northVectorDisplacement includes direction
20C20^\circ\text{C}ScalarTemperature has no direction
55 N vertically downwardsVectorForce includes direction
3 m s23\text{ m s}^{-2} towards the originVectorAcceleration includes direction

Suppose a walker travels 55 km east and then 55 km west. The total distance is 1010 km, but the overall displacement is the zero vector because the walker finishes where they started.

Classify each quantity as scalar or vector.

  1. A mass of 2.42.4 kg.
  2. A wind velocity of 18 km h118\text{ km h}^{-1} south-west.
  3. A journey time of 3535 minutes.
  4. An acceleration of 9.8 m s29.8\text{ m s}^{-2} downwards.
Answer

Mass and time are scalars. Wind velocity and acceleration are vectors because their directions are specified.

A vector can be represented by an arrow. The arrow’s length represents its magnitude and its arrowhead gives its direction.

Common notation includes

a,AB,(a1a2).\mathbf a, \qquad \overrightarrow{AB}, \qquad \begin{pmatrix}a_1\\a_2\end{pmatrix}.
  • a\mathbf a is a named vector. Printed vectors are usually bold.
  • AB\overrightarrow{AB} is the vector from AA to BB. The order of the letters gives the direction.
  • A column vector gives the change in each coordinate.

In handwriting, bold type is impractical, so a vector may be written as an underlined letter, such as a\underline a. Use one convention consistently.

Worked example 1: interpret a column vector

Section titled “Worked example 1: interpret a column vector”

Describe the movement represented by

p=(62).\mathbf p=\begin{pmatrix}-6\\2\end{pmatrix}.

The first component is the horizontal change. Since it is negative, the movement is 66 units left.

The second component is the vertical change. Since it is positive, the movement is 22 units up.

Therefore p\mathbf p represents 66 units left and 22 units up.

It does not by itself specify where the movement begins.

A vector records a movement, not a location. An arrow may be translated parallel to itself without changing the vector. Such a vector is called a free vector.

Two vectors are equal precisely when they have the same magnitude and the same direction. Their starting points may differ. In component form,

(ab)=(cd)a=c and b=d.\begin{pmatrix}a\\b\end{pmatrix} = \begin{pmatrix}c\\d\end{pmatrix} \quad\Longleftrightarrow\quad a=c\text{ and }b=d.

So every arrow representing 33 units right and 44 units down is the vector

(34),\begin{pmatrix}3\\-4\end{pmatrix},

regardless of where the arrow is drawn.

Given

(2p1q+4)=(73),\begin{pmatrix}2p-1\\q+4\end{pmatrix} = \begin{pmatrix}7\\-3\end{pmatrix},

find pp and qq.

Equal vectors have equal corresponding components, so

2p1=7,q+4=3.2p-1=7, \qquad q+4=-3.

Solving gives

2p=8    p=4,q=7.2p=8\implies p=4, \qquad q=-7.

Hence

p=4,q=7.\boxed{p=4,\quad q=-7}.

The vector equation is simply two scalar equations written together.

In two dimensions,

a=(xy)\mathbf a=\begin{pmatrix}x\\y\end{pmatrix}

has horizontal component xx and vertical component yy.

The standard unit vectors are

i=(10),j=(01).\mathbf i=\begin{pmatrix}1\\0\end{pmatrix}, \qquad \mathbf j=\begin{pmatrix}0\\1\end{pmatrix}.

They point one unit along the positive xx and yy axes respectively. Therefore

(xy)=xi+yj.\boxed{\begin{pmatrix}x\\y\end{pmatrix}=x\mathbf i+y\mathbf j}.

This is called unit vector notation or i\mathbf i, j\mathbf j notation.

Worked example 3: convert between notations

Section titled “Worked example 3: convert between notations”

Write a=3i+5j\mathbf a=-3\mathbf i+5\mathbf j as a column vector, and write

b=(47)\mathbf b=\begin{pmatrix}4\\-7\end{pmatrix}

in unit vector notation.

The coefficient of i\mathbf i is the horizontal component and the coefficient of j\mathbf j is the vertical component. Thus

a=(35).\boxed{\mathbf a=\begin{pmatrix}-3\\5\end{pmatrix}}.

Conversely,

b=4i7j.\boxed{\mathbf b=4\mathbf i-7\mathbf j}.

The minus sign belongs to the j\mathbf j component. Writing 4i+7j4\mathbf i+7\mathbf j would reverse the vertical movement.

Three dimensional vectors need one further component:

a=(xyz)=xi+yj+zk,\mathbf a= \begin{pmatrix}x\\y\\z\end{pmatrix} =x\mathbf i+y\mathbf j+z\mathbf k,

where

i=(100),j=(010),k=(001).\mathbf i=\begin{pmatrix}1\\0\\0\end{pmatrix}, \qquad \mathbf j=\begin{pmatrix}0\\1\\0\end{pmatrix}, \qquad \mathbf k=\begin{pmatrix}0\\0\\1\end{pmatrix}.

The k\mathbf k direction is the positive zz direction. The order is always xx, then yy, then zz.

Write

r=2ij+6k\mathbf r=2\mathbf i-\mathbf j+6\mathbf k

as a column vector and state its components.

An omitted numerical coefficient is 11, so j=1j-\mathbf j=-1\mathbf j. Therefore

r=(216).\boxed{\mathbf r=\begin{pmatrix}2\\-1\\6\end{pmatrix}}.

Its xx, yy and zz components are 22, 1-1 and 66 respectively.

  1. Write 5i2j5\mathbf i-2\mathbf j as a column vector.
  2. Write (407)\begin{pmatrix}-4\\0\\7\end{pmatrix} in i\mathbf i, j\mathbf j, k\mathbf k notation.
  3. If (m+12n3)=(683)\begin{pmatrix}m+1\\2n\\3\end{pmatrix}=\begin{pmatrix}6\\-8\\3\end{pmatrix}, find mm and nn.
Answer
  1. (52)\begin{pmatrix}5\\-2\end{pmatrix}.
  2. 4i+7k-4\mathbf i+7\mathbf k. The zero j\mathbf j term may be omitted.
  3. m+1=6m+1=6 and 2n=82n=-8, so m=5\boxed{m=5} and n=4\boxed{n=-4}.

The zero vector has every component equal to zero:

0=(00)or0=(000).\mathbf 0=\begin{pmatrix}0\\0\end{pmatrix} \quad\text{or}\quad \mathbf 0=\begin{pmatrix}0\\0\\0\end{pmatrix}.

It represents no change in position. Its magnitude is zero, so it has no defined direction.

The vector opposite to a\mathbf a is a-\mathbf a. Every component changes sign. For example,

(251)=(251).-\begin{pmatrix}-2\\5\\1\end{pmatrix} =\begin{pmatrix}2\\-5\\-1\end{pmatrix}.

The two vectors have the same magnitude but opposite directions.

Suppose

PQ=3i4j+2k.\overrightarrow{PQ}=3\mathbf i-4\mathbf j+2\mathbf k.

Find QP\overrightarrow{QP}.

Reversing the journey negates the vector:

QP=PQ=(3i4j+2k)=3i+4j2k.\begin{aligned} \overrightarrow{QP} &=-\overrightarrow{PQ}\\ &=-(3\mathbf i-4\mathbf j+2\mathbf k)\\ &=\boxed{-3\mathbf i+4\mathbf j-2\mathbf k}. \end{aligned}

Notice that all three signs change.

For points A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2),

AB=(x2x1y2y1).\boxed{\overrightarrow{AB} =\begin{pmatrix}x_2-x_1\\y_2-y_1\end{pmatrix}}.

In words, calculate finish minus start in each coordinate.

In three dimensions, if A(x1,y1,z1)A(x_1,y_1,z_1) and B(x2,y2,z2)B(x_2,y_2,z_2), then

AB=(x2x1y2y1z2z1).\boxed{\overrightarrow{AB} =\begin{pmatrix}x_2-x_1\\y_2-y_1\\z_2-z_1\end{pmatrix}}.

This works because each component measures the change needed to get from AA to BB.

Worked example 6: displacement in two dimensions

Section titled “Worked example 6: displacement in two dimensions”

Let A(2,5)A(-2,5) and B(4,1)B(4,-1). Find AB\overrightarrow{AB} and BA\overrightarrow{BA}.

For AA to BB, subtract the coordinates of AA from those of BB:

AB=(4(2)15)=(66).\begin{aligned} \overrightarrow{AB} &=\begin{pmatrix}4-(-2)\\-1-5\end{pmatrix}\\ &=\boxed{\begin{pmatrix}6\\-6\end{pmatrix}}. \end{aligned}

The result makes geometric sense: move 66 units right and 66 units down.

For the reverse journey,

BA=(245(1))=(66)=AB.\overrightarrow{BA} =\begin{pmatrix}-2-4\\5-(-1)\end{pmatrix} =\boxed{\begin{pmatrix}-6\\6\end{pmatrix}} =-\overrightarrow{AB}.

The final equality provides a useful check.

Worked example 7: displacement in three dimensions

Section titled “Worked example 7: displacement in three dimensions”

Let P(3,2,5)P(3,-2,5) and Q(1,4,2)Q(-1,4,2). Find PQ\overrightarrow{PQ} in column form and unit vector notation.

Use finish minus start:

PQ=(134(2)25)=(463).\begin{aligned} \overrightarrow{PQ} &=\begin{pmatrix}-1-3\\4-(-2)\\2-5\end{pmatrix}\\ &=\begin{pmatrix}-4\\6\\-3\end{pmatrix}. \end{aligned}

Therefore

PQ=4i+6j3k.\boxed{\overrightarrow{PQ}=-4\mathbf i+6\mathbf j-3\mathbf k}.

The middle calculation is 4(2)=64-(-2)=6, not 22. Brackets reduce sign errors.

Worked example 8: find an unknown coordinate

Section titled “Worked example 8: find an unknown coordinate”

Points R(2,a,1)R(2,a,-1) and S(7,3,4)S(7,3,4) satisfy

RS=(525).\overrightarrow{RS}=\begin{pmatrix}5\\-2\\5\end{pmatrix}.

Find aa.

From the coordinates,

RS=(723a4(1))=(53a5).\overrightarrow{RS} =\begin{pmatrix}7-2\\3-a\\4-(-1)\end{pmatrix} =\begin{pmatrix}5\\3-a\\5\end{pmatrix}.

Compare the second components:

3a=2.3-a=-2.

Hence a=5-a=-5, so

a=5.\boxed{a=5}.

Checking: the change in the yy coordinate is 35=23-5=-2, as required.

The vectors (12)\begin{pmatrix}1\\2\end{pmatrix} and (21)\begin{pmatrix}2\\1\end{pmatrix} do not point in the same direction. Having the same component values in a different order does not make vectors equal.

Negative components do not mean negative length

Section titled “Negative components do not mean negative length”

In (34)\begin{pmatrix}-3\\4\end{pmatrix}, the negative sign means movement in the negative xx direction. A magnitude is never negative.

The point (3,2)(3,2) is a location. The vector (32)\begin{pmatrix}3\\2\end{pmatrix} is a movement. They use related numbers, but brackets and context communicate different meanings.

It is tempting to say that 0\mathbf 0 points nowhere. More precisely, its direction is undefined because an arrow of zero length has no orientation.

Try these without looking back.

  1. Explain why two arrows at different locations can represent the same vector.
  2. Write a=3i5j+2k\mathbf a=3\mathbf i-5\mathbf j+2\mathbf k as a column vector and find a-\mathbf a.
  3. Points C(4,1)C(-4,1) and D(2,7)D(2,7) are given. Find CD\overrightarrow{CD} and DC\overrightarrow{DC}.
  4. Points E(1,3,2)E(1,-3,2) and F(p,4,5)F(p,4,-5) satisfy EF=(677)\overrightarrow{EF}=\begin{pmatrix}6\\7\\-7\end{pmatrix}. Find pp.
  5. A particle moves from AA to BB and returns to AA. State its overall displacement vector.
Answers
  1. A vector is determined by magnitude and direction, not its starting position. Translating an arrow parallel to itself does not change the vector.

a=(352),a=(352).\mathbf a=\begin{pmatrix}3\\-5\\2\end{pmatrix}, \qquad -\mathbf a=\begin{pmatrix}-3\\5\\-2\end{pmatrix}.
CD=(2(4)71)=(66),DC=(66).\overrightarrow{CD} =\begin{pmatrix}2-(-4)\\7-1\end{pmatrix} =\begin{pmatrix}6\\6\end{pmatrix}, \qquad \overrightarrow{DC}=\begin{pmatrix}-6\\-6\end{pmatrix}.
  1. Comparing the first component gives p1=6p-1=6, so p=7\boxed{p=7}.

  2. The particle finishes where it started, so its overall displacement is 0\boxed{\mathbf 0}.

2D vector:(xy)=xi+yj,3D vector:(xyz)=xi+yj+zk,reverse direction:BA=AB,between points:AB=position of Bposition of A.\begin{aligned} \text{2D vector:}\quad &\begin{pmatrix}x\\y\end{pmatrix}=x\mathbf i+y\mathbf j,\\[4pt] \text{3D vector:}\quad &\begin{pmatrix}x\\y\\z\end{pmatrix}=x\mathbf i+y\mathbf j+z\mathbf k,\\[4pt] \text{reverse direction:}\quad &\overrightarrow{BA}=-\overrightarrow{AB},\\[4pt] \text{between points:}\quad &\overrightarrow{AB}=\text{position of }B-\text{position of }A. \end{aligned}

Equal vectors have equal corresponding components. The zero vector has all components zero, and a vector can be moved parallel to itself without changing its value.

You can now interpret vectors in two and three dimensions, move between column and unit vector notation, and find a displacement from coordinates.

Next, learn how to combine and scale vectors in vector arithmetic, then calculate length and orientation in vector magnitude and direction. Position vectors use these ideas to solve geometric problems involving points, distances and division of line segments.