Skip to main content

Vector arithmetic: Addition, scalar multiplication, magnitude and unit vectors

Syllabus dot point

“Perform vector arithmetic with vectors in the plane, including component and column-vector notation, and find the magnitude and unit vector”

14 min read

Quick answer

A 2D vector is an arrow with components (a1,a2)(a_1, a_2), added and scaled componentwise (head to tail or by the parallelogram rule). Its magnitude is ∣a∣=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2} by Pythagoras, and its unit vector is a^=a/∣a∣\hat{\mathbf{a}} = \mathbf{a}/|\mathbf{a}|. The vector from PP to QQ is q−p\mathbf{q} - \mathbf{p} (end minus start), and its magnitude is the distance PQPQ.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to be fluent with two-dimensional vectors: their notation (column, component and i,j\mathbf{i}, \mathbf{j} form), what they mean as arrows, how to add and subtract them both algebraically and geometrically, how to scale them, and how to find a magnitude (length) and a unit vector. This is the alphabet of the whole Vectors module. Every later dot point, the scalar product, projection, lines and geometric proofs, is written in this language, so the few minutes spent making it automatic here are repaid many times over.

The answer

A vector is an arrow: magnitude and direction

A vector carries two pieces of information at once, a magnitude (length) and a direction, and nothing else. Picture it as an arrow. Crucially, a vector is free: an arrow of the same length pointing the same way is the same vector, wherever you draw it on the page. This is why addition works by sliding arrows around, and why AB→\overrightarrow{AB} depends only on where AA and BB are, not on any axes. A quantity with size but no direction (mass, time, temperature) is a scalar, an ordinary number.

A two-dimensional vector a\mathbf{a} has a horizontal component a1a_1 and a vertical component a2a_2. The three notations you must read and write fluently are

a=(a1a2)=a1i+a2j=(a1,a2),\mathbf{a} = \begin{pmatrix} a_1 \\ a_2 \end{pmatrix} = a_1 \mathbf{i} + a_2 \mathbf{j} = (a_1, a_2),

where i=(1,0)\mathbf{i} = (1, 0) and j=(0,1)\mathbf{j} = (0, 1) are the standard unit vectors along the axes. In handwriting a vector is underlined (a‾\underline{a}) or written with an arrow; printed work uses bold. The components a1a_1 and a2a_2 tell you "how far across" and "how far up" the arrow goes, so they encode the magnitude and direction together.

Vector addition: head to tail, or the parallelogram

To add vectors, add components:

a+b=(a1+b1a2+b2).\mathbf{a} + \mathbf{b} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \end{pmatrix}.

The picture is the part NESA cares about. There are two equivalent constructions, and you should be able to draw either.

  • Head to tail (the triangle rule). Draw a\mathbf{a}, then draw b\mathbf{b} starting from the head of a\mathbf{a}. The sum a+b\mathbf{a} + \mathbf{b} is the single arrow from the tail of a\mathbf{a} to the head of b\mathbf{b}. It is the net displacement of "go along a\mathbf{a}, then along b\mathbf{b}".
  • The parallelogram rule. Draw a\mathbf{a} and b\mathbf{b} from a common point. Complete the parallelogram. The diagonal from the common point is a+b\mathbf{a} + \mathbf{b}.

They give the same arrow because the far side of the parallelogram is just a copy of b\mathbf{b} moved to the head of a\mathbf{a}, which is exactly the head-to-tail picture.

Below, a+b\mathbf{a} + \mathbf{b} is built up one move at a time, finishing with the full parallelogram so you can see both diagonals.

Stage 1, the two vectors. Draw a\mathbf{a} and b\mathbf{b} with their tails together at a point OO. So far nothing has been added; these are the two arrows we want to combine.

Stage 1: the two vectors from a common point Two vectors a and b drawn with their tails together at a point O. Vector a points to the right; vector b points up and to the right. a b O Two vectors a and b, tails together at O.

Stage 2, slide b to the head of a. A vector is free, so move a copy of b\mathbf{b} (keeping its length and direction) until its tail sits at the head of a\mathbf{a}. The original b\mathbf{b} is left dashed for reference.

Stage 2: slide b to the head of a Vector a points right. A copy of b is moved so its tail starts at the head of a; the original b is shown dashed at O. a b b O Slide a copy of b so its tail sits at the head of a.

Stage 3, the sum closes the triangle. The resultant a+b\mathbf{a} + \mathbf{b} is the arrow from OO (the tail of a\mathbf{a}) straight to the head of the moved b\mathbf{b}. It closes the triangle, which is why this is called the triangle rule.

Stage 3: the sum closes the triangle Vector a then the moved b; the sum a plus b is drawn heavy from O to the head of the moved b, closing the triangle. a b a + b O a + b runs from O to the head of the moved b.

Stage 4, the parallelogram and the difference. Drawing both a\mathbf{a} and b\mathbf{b} from OO and completing the parallelogram gives the same diagonal a+b\mathbf{a} + \mathbf{b}. The other diagonal, from the head of b\mathbf{b} to the head of a\mathbf{a}, is a−b\mathbf{a} - \mathbf{b} (think "b\mathbf{b} plus what gets you to a\mathbf{a}").

Stage 4: the parallelogram rule and the difference A parallelogram with sides a and b from O. The diagonal from O is a plus b; the diagonal from the head of b to the head of a is a minus b. a b a + b a - b O Diagonal from O is a + b; the other diagonal is a - b.

Vector subtraction

Subtract componentwise:

a−b=(a1−b1a2−b2).\mathbf{a} - \mathbf{b} = \begin{pmatrix} a_1 - b_1 \\ a_2 - b_2 \end{pmatrix}.

There are two reliable ways to see a−b\mathbf{a} - \mathbf{b} geometrically. Either read it as the addition a+(−b)\mathbf{a} + (-\mathbf{b}), where −b-\mathbf{b} is b\mathbf{b} reversed, or read it straight off the parallelogram above: with a\mathbf{a} and b\mathbf{b} from a common point, a−b\mathbf{a} - \mathbf{b} is the arrow from the head of b\mathbf{b} to the head of a\mathbf{a}. The second picture is the engine behind the displacement rule next.

Key fact

The vector from point PP to point QQ is

PQ→=q−p=(q1−p1q2−p2)(end minus start),\overrightarrow{PQ} = \mathbf{q} - \mathbf{p} = \begin{pmatrix} q_1 - p_1 \\ q_2 - p_2 \end{pmatrix} \quad (\textbf{end minus start}),

where p,q\mathbf{p}, \mathbf{q} are the position vectors of P,QP, Q. Its length ∣PQ→∣=(q1−p1)2+(q2−p2)2|\overrightarrow{PQ}| = \sqrt{(q_1 - p_1)^2 + (q_2 - p_2)^2} is the distance PQPQ. Reversing the order gives QP→=−PQ→\overrightarrow{QP} = -\overrightarrow{PQ}, the same arrow pointing the other way.

Scalar multiplication: stretching and flipping

For a scalar λ\lambda and a vector a\mathbf{a},

λa=(λa1λa2).\lambda \mathbf{a} = \begin{pmatrix} \lambda a_1 \\ \lambda a_2 \end{pmatrix}.

Geometrically λa\lambda \mathbf{a} is parallel to a\mathbf{a} with magnitude ∣λ∣ ∣a∣|\lambda|\,|\mathbf{a}|: same direction if λ>0\lambda > 0, opposite if λ<0\lambda < 0, and the zero vector if λ=0\lambda = 0. This single idea is the definition of parallel that every proof uses: two vectors are parallel exactly when one is a scalar multiple of the other.

Magnitude by Pythagoras

The magnitude (length, or modulus) of a\mathbf{a} is

∣a∣=a12+a22.|\mathbf{a}| = \sqrt{a_1^2 + a_2^2}.

This is just Pythagoras' theorem on the right triangle whose legs are the components a1a_1 and a2a_2 and whose hypotenuse is the arrow itself.

Magnitude from components by Pythagoras Vector a from O drawn as the hypotenuse of a right triangle whose horizontal leg is a1 and vertical leg is a2. A small square marks the right angle. The magnitude of a is the square root of a1 squared plus a2 squared. a a1 a2 O

For a displacement PQ→=Q−P\overrightarrow{PQ} = Q - P, the same formula gives the distance between the points:

∣PQ→∣=(q1−p1)2+(q2−p2)2.|\overrightarrow{PQ}| = \sqrt{(q_1 - p_1)^2 + (q_2 - p_2)^2}.

This is literally the distance formula from coordinate geometry, which is no coincidence: the distance formula is the magnitude of a displacement vector.

Unit vectors

A unit vector has magnitude 11. The unit vector in the direction of a non-zero a\mathbf{a} is

a^=1∣a∣ a.\hat{\mathbf{a}} = \frac{1}{|\mathbf{a}|}\,\mathbf{a}.

Dividing by the length rescales the arrow to length 11 without turning it, so ∣a^∣=1|\hat{\mathbf{a}}| = 1 by construction. Two everyday uses: to build a vector of a prescribed length kk in a given direction, take ka^k\hat{\mathbf{a}}; and to extract a direction from a vector while throwing away its size, take a^\hat{\mathbf{a}}.

The vector laws and the triangle inequality

Vector addition is commutative (a+b=b+a\mathbf{a} + \mathbf{b} = \mathbf{b} + \mathbf{a}) and associative ((a+b)+c=a+(b+c)(\mathbf{a} + \mathbf{b}) + \mathbf{c} = \mathbf{a} + (\mathbf{b} + \mathbf{c})); scalar multiplication distributes over addition (λ(a+b)=λa+λb\lambda(\mathbf{a} + \mathbf{b}) = \lambda\mathbf{a} + \lambda\mathbf{b}). These mirror the laws of ordinary arithmetic and let you rearrange vector expressions freely, which is exactly what geometric proofs rely on.

One law does not carry over from numbers, and it is a favourite trap. Magnitudes do not add:

∣a+b∣≤∣a∣+∣b∣(the triangle inequality),|\mathbf{a} + \mathbf{b}| \le |\mathbf{a}| + |\mathbf{b}| \quad (\text{the triangle inequality}),

with equality only when a\mathbf{a} and b\mathbf{b} point the same way. The reason is geometric: in the triangle rule, the side a+b\mathbf{a} + \mathbf{b} can never be longer than the broken path along a\mathbf{a} then b\mathbf{b}, and is shorter whenever the path bends.

How exam questions ask about vector arithmetic

The wording is rarely "do vector arithmetic". Learn to translate:

  • "Find AB→\overrightarrow{AB}" or "the displacement from AA to BB": compute b−a\mathbf{b} - \mathbf{a} (end minus start).
  • "Find the distance ABAB" or "the length of AB→\overrightarrow{AB}": take ∣b−a∣|\mathbf{b} - \mathbf{a}|.
  • "Find a unit vector in the direction of ...": divide the vector by its magnitude.
  • "Find the vector of magnitude kk in the direction of ...": form a^\hat{\mathbf{a}}, then multiply by kk.
  • "Show that AA, BB, CC are collinear": show AB→=λ AC→\overrightarrow{AB} = \lambda\,\overrightarrow{AC} for some scalar λ\lambda (parallel and sharing the point AA forces one straight line).
  • "Are a\mathbf{a} and b\mathbf{b} parallel?": test whether one is a scalar multiple of the other (equal ratios of components).
  • "Express AB→\overrightarrow{AB} in terms of a\mathbf{a} and b\mathbf{b}": build a head-to-tail route through the named points (for example AB→=AO→+OB→=b−a\overrightarrow{AB} = \overrightarrow{AO} + \overrightarrow{OB} = \mathbf{b} - \mathbf{a}).
Exam technique

Lay every magnitude out in full: ∣a∣=a12+a22= … |\mathbf{a}| = \sqrt{a_1^2 + a_2^2} = \sqrt{\,\ldots\,}, then the surd. Markers want to see the squared terms before the root, and a dropped square root is the single most common lost mark. Keep magnitudes as exact surds (26\sqrt{26}, 252\sqrt{5}) unless a decimal is asked for. For displacement, write "AB→=b−a\overrightarrow{AB} = \mathbf{b} - \mathbf{a} (end minus start)" so the order is unambiguous, and remember the answer is the distance when a magnitude is taken. Stay in one notation per question (default to column vectors), and never write "==" between a vector and a scalar: AB→\overrightarrow{AB} is a vector, ∣AB→∣|\overrightarrow{AB}| is a number.

Worked example

Add vectors component by component and find the magnitude

For a=(3,1)\mathbf{a} = (3, 1) and b=(−2,4)\mathbf{b} = (-2, 4), add componentwise, then apply Pythagoras to the result:

a+b=(3+(−2), 1+4)=(1,5),∣a+b∣=12+52=26.\mathbf{a} + \mathbf{b} = (3 + (-2),\, 1 + 4) = (1, 5), \qquad |\mathbf{a}+\mathbf{b}| = \sqrt{1^2 + 5^2} = \sqrt{26}.

Leave it as the exact surd 26\sqrt{26}. As a sanity check on the triangle inequality, ∣a∣=10|\mathbf{a}| = \sqrt{10} and ∣b∣=20|\mathbf{b}| = \sqrt{20}, and indeed 26<10+20\sqrt{26} < \sqrt{10} + \sqrt{20}.

Scale a vector to unit length

For v=(6,8)\mathbf{v} = (6, 8), find the magnitude first, then divide the vector by it so the length becomes exactly 11:

∣v∣=36+64=100=10,v^=v∣v∣=110(6,8)=(0.6,0.8).|\mathbf{v}| = \sqrt{36 + 64} = \sqrt{100} = 10, \qquad \hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|} = \frac{1}{10}(6, 8) = (0.6, 0.8).

Check: ∣v^∣=0.62+0.82=0.36+0.64=1|\hat{\mathbf{v}}| = \sqrt{0.6^2 + 0.8^2} = \sqrt{0.36 + 0.64} = 1. Good.

Compute the displacement and distance between two points

The vector from A=(1,2)A = (1, 2) to B=(4,6)B = (4, 6) is end minus start, and its magnitude is the distance:

AB→=B−A=(4−1, 6−2)=(3,4),∣AB→∣=9+16=25=5.\overrightarrow{AB} = B - A = (4 - 1,\, 6 - 2) = (3, 4), \qquad |\overrightarrow{AB}| = \sqrt{9 + 16} = \sqrt{25} = 5.

Compute a scalar combination componentwise

For a=(2,3)\mathbf{a} = (2, 3) and b=(5,−1)\mathbf{b} = (5, -1), find 3a−2b3\mathbf{a} - 2\mathbf{b}. Scale each vector, then subtract:

3a=(6,9),2b=(10,−2),3a−2b=(6−10, 9−(−2))=(−4,11).3\mathbf{a} = (6, 9), \qquad 2\mathbf{b} = (10, -2), \qquad 3\mathbf{a} - 2\mathbf{b} = (6 - 10,\, 9 - (-2)) = (-4, 11).

Build a vector of prescribed magnitude in a given direction

Find the vector of magnitude 77 in the direction of (3,−4)(3, -4). Form the unit vector first, then scale it to the required length:

∣(3,−4)∣=9+16=5,d^=15(3,−4)=(0.6,−0.8),|(3, -4)| = \sqrt{9 + 16} = 5, \qquad \hat{\mathbf{d}} = \tfrac{1}{5}(3, -4) = (0.6, -0.8),

7d^=7(0.6,−0.8)=(4.2,−5.6).7\hat{\mathbf{d}} = 7(0.6, -0.8) = (4.2, -5.6).

Test whether two vectors are parallel

Are a=(2,−1)\mathbf{a} = (2, -1) and b=(−6,3)\mathbf{b} = (-6, 3) parallel? Check whether one is a scalar multiple of the other by comparing the ratios of corresponding components: −62=−3\frac{-6}{2} = -3 and 3−1=−3\frac{3}{-1} = -3. The ratios agree, so b=−3a\mathbf{b} = -3\mathbf{a}: the vectors are parallel, pointing in opposite directions (anti-parallel).

Prove three points are collinear

Show that A=(1,1)A = (1, 1), B=(3,4)B = (3, 4) and C=(7,10)C = (7, 10) lie on one straight line. Compute two displacements from the same point and test for parallelism:

AB→=(2,3),AC→=(6,9)=3(2,3)=3 AB→.\overrightarrow{AB} = (2, 3), \qquad \overrightarrow{AC} = (6, 9) = 3(2, 3) = 3\,\overrightarrow{AB}.

Since AC→\overrightarrow{AC} is a scalar multiple of AB→\overrightarrow{AB} and both start at AA, the three points are collinear (and CC is three times as far from AA as BB is, in the same direction).

Common traps
Sign error in PQ→\overrightarrow{PQ}
It is Q−PQ - P (end minus start), not P−QP - Q. Reversing gives QP→\overrightarrow{QP}, the opposite arrow.
Forgetting the square root for magnitude
∣a∣=a12+a22|\mathbf{a}| = \sqrt{a_1^2 + a_2^2}, not a12+a22a_1^2 + a_2^2. Always take the root.
Adding magnitudes
∣a+b∣≠∣a∣+∣b∣|\mathbf{a} + \mathbf{b}| \ne |\mathbf{a}| + |\mathbf{b}| in general; the triangle inequality only gives ≤\le, with equality only for same-direction vectors.
Treating a unit vector as "one component"
A unit vector has length 11, found by dividing by the magnitude; it is not a vector with a 11 in it.
Mixing notations mid-question
(a1,a2)(a_1, a_2), (a1a2)\begin{pmatrix} a_1 \\ a_2 \end{pmatrix} and a1i+a2ja_1\mathbf{i} + a_2\mathbf{j} are the same vector. Pick one (column form unless told otherwise) and stay with it.
Equating a vector with a scalar
AB→\overrightarrow{AB} is an arrow; ∣AB→∣|\overrightarrow{AB}| is its length. Do not write a magnitude equal to a vector or vice versa.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style2 marks
If a=(3−4)\mathbf{a} = \begin{pmatrix} 3 \\ -4 \end{pmatrix}, find ∣a∣|\mathbf{a}| and the unit vector in the direction of a\mathbf{a}.
Show worked answer →

Magnitude: ∣a∣=32+(−4)2=9+16=25=5|\mathbf{a}| = \sqrt{3^2 + (-4)^2} = \sqrt{9 + 16} = \sqrt{25} = 5.

Unit vector: a^=1∣a∣a=15(3−4)=(3/5−4/5)\hat{\mathbf{a}} = \frac{1}{|\mathbf{a}|} \mathbf{a} = \frac{1}{5} \begin{pmatrix} 3 \\ -4 \end{pmatrix} = \begin{pmatrix} 3/5 \\ -4/5 \end{pmatrix}.

Markers reward the Pythagorean magnitude calculation, the explicit scaling by 1∣a∣\frac{1}{|\mathbf{a}|}, and the components of the unit vector.

HSC-style3 marks
The points AA and BB have position vectors a=(25)\mathbf{a} = \begin{pmatrix} 2 \\ 5 \end{pmatrix} and b=(8−3)\mathbf{b} = \begin{pmatrix} 8 \\ -3 \end{pmatrix}. Find AB→\overrightarrow{AB} and the distance ABAB.
Show worked answer →

AB→=b−a=(8−2−3−5)=(6−8)\overrightarrow{AB} = \mathbf{b} - \mathbf{a} = \begin{pmatrix} 8 - 2 \\ -3 - 5 \end{pmatrix} = \begin{pmatrix} 6 \\ -8 \end{pmatrix}.

Distance AB=∣AB→∣=62+(−8)2=36+64=100=10AB = |\overrightarrow{AB}| = \sqrt{6^2 + (-8)^2} = \sqrt{36 + 64} = \sqrt{100} = 10.

Markers reward the subtraction (end minus start), the components of AB→\overrightarrow{AB}, and the magnitude as the distance.

Practise this

Sources & how we know this

ExamExplained