STEMviz
Mathematics · Geometry, Vectors and Statistics

Vectors in 2D - Addition, Subtraction, Scalar Multiplication

Vectors as displacements in 2D: component form, magnitude, addition, subtraction, scalar multiplication, parallel vectors, and unit vectors.

Vectors in 2D - Addition, Subtraction, Scalar Multiplication

A vector carries two pieces of information at once — a magnitude and a direction — and this chapter builds the algebra that lets you combine vectors exactly as reliably as you combine numbers. Where the previous chapter described points and lines through coordinates, this chapter introduces a new object, the vector, that describes displacement, and the operations that let you add, subtract and scale displacements.

To follow the chapter you need the distance formula and basic coordinate geometry from the previous chapter, since a vector's magnitude is computed exactly the same way. Have graph paper or a sketch ready — vectors are easiest to understand by drawing them before computing with them.

A vector is not a point. A point (3,4)(3,4) names a fixed location. A vector (34)\begin{pmatrix}3\\4\end{pmatrix} names a displacement — "3 units across, 4 units up" — and the same vector can be drawn starting from any point in the plane; only its length and direction matter, not where it is drawn.

1. Vectors as Displacements

A vector is a quantity possessing both magnitude and direction, represented geometrically as an arrow and written v⃗\vec{v} or v\mathbf{v}. The vector from point AA to point BB is written AB→\overrightarrow{AB}, and if A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2), its component form is

AB→=(x2−x1y2−y1)\overrightarrow{AB} = \begin{pmatrix} x_2 - x_1 \\ y_2 - y_1 \end{pmatrix}

— exactly the differences used inside the distance formula. Two vectors are equal if and only if they have the same components, regardless of where they are drawn; AB→\overrightarrow{AB} and CD→\overrightarrow{CD} represent the same vector whenever B−A=D−CB-A = D-C, even if A≠CA\neq C.

A position vector is the special case of a vector drawn from the origin OO to a point P(x,y)P(x,y), written OP→\overrightarrow{OP} or p⃗\vec{p}, with components simply (xy)\begin{pmatrix}x\\y\end{pmatrix}. Position vectors let every point be treated as a vector, which is what makes vector algebra useful for geometry.

2. Magnitude of a Vector

The magnitude (or length, or norm) of v⃗=(ab)\vec{v} = \begin{pmatrix}a\\b\end{pmatrix} is denoted ∣v⃗∣|\vec{v}| and found by Pythagoras' theorem, treating aa and bb as the legs of a right triangle:

∣v⃗∣=a2+b2|\vec{v}| = \sqrt{a^2+b^2}

A vector with ∣v⃗∣=1|\vec{v}|=1 is called a unit vector. The magnitude of AB→\overrightarrow{AB} is exactly the distance ∣AB∣|AB| from the previous chapter — vectors and coordinate geometry describe the same underlying facts in different language.

Worked example. Find ∣v⃗∣|\vec{v}| for v⃗=(−512)\vec{v} = \begin{pmatrix}-5\\12\end{pmatrix}.

∣v⃗∣=(−5)2+122=25+144=169=13|\vec{v}| = \sqrt{(-5)^2+12^2} = \sqrt{25+144} = \sqrt{169} = 13

3. Addition and Subtraction of Vectors

Vectors add component-wise: to add u⃗=(u1u2)\vec{u}=\begin{pmatrix}u_1\\u_2\end{pmatrix} and v⃗=(v1v2)\vec{v}=\begin{pmatrix}v_1\\v_2\end{pmatrix},

u⃗+v⃗=(u1+v1u2+v2)\vec{u}+\vec{v} = \begin{pmatrix}u_1+v_1\\u_2+v_2\end{pmatrix}

Geometrically this is the triangle rule: draw u⃗\vec{u}, then draw v⃗\vec{v} starting where u⃗\vec{u} ended; the sum is the vector from the start of u⃗\vec{u} to the end of v⃗\vec{v}. Equivalently, the parallelogram rule draws both vectors from the same starting point and completes the parallelogram; the diagonal from that common point is the sum. Both rules describe the same addition, since in both pictures the resulting arrow has components u1+v1u_1+v_1 and u2+v2u_2+v_2.

Subtraction u⃗−v⃗\vec{u}-\vec{v} is addition of the negative of v⃗\vec{v}, where −v⃗=(−v1−v2)-\vec{v}=\begin{pmatrix}-v_1\\-v_2\end{pmatrix} is the vector of the same magnitude pointing in the opposite direction:

u⃗−v⃗=(u1−v1u2−v2)\vec{u}-\vec{v} = \begin{pmatrix}u_1-v_1\\u_2-v_2\end{pmatrix}

Geometrically, if u⃗\vec{u} and v⃗\vec{v} are drawn from the same point, u⃗−v⃗\vec{u}-\vec{v} is the vector from the tip of v⃗\vec{v} to the tip of u⃗\vec{u} — the "other" diagonal of the parallelogram. This is exactly why AB→=b⃗−a⃗\overrightarrow{AB} = \vec{b}-\vec{a} for position vectors a⃗=OA→\vec{a}=\overrightarrow{OA} and b⃗=OB→\vec{b}=\overrightarrow{OB}: travelling from AA to BB is the same as travelling from OO to BB and subtracting the journey from OO to AA.

Worked example. Let u⃗=(4−1)\vec{u}=\begin{pmatrix}4\\-1\end{pmatrix} and v⃗=(−23)\vec{v}=\begin{pmatrix}-2\\3\end{pmatrix}. Find u⃗+v⃗\vec{u}+\vec{v} and u⃗−v⃗\vec{u}-\vec{v}.

u⃗+v⃗=(4+(−2)−1+3)=(22),u⃗−v⃗=(4−(−2)−1−3)=(6−4)\vec{u}+\vec{v} = \begin{pmatrix}4+(-2)\\-1+3\end{pmatrix} = \begin{pmatrix}2\\2\end{pmatrix}, \qquad \vec{u}-\vec{v} = \begin{pmatrix}4-(-2)\\-1-3\end{pmatrix} = \begin{pmatrix}6\\-4\end{pmatrix}

4. Scalar Multiplication

Multiplying a vector v⃗=(v1v2)\vec{v}=\begin{pmatrix}v_1\\v_2\end{pmatrix} by a real number (scalar) kk scales every component:

kv⃗=(kv1kv2),∣kv⃗∣=∣k∣ ∣v⃗∣k\vec{v} = \begin{pmatrix}kv_1\\kv_2\end{pmatrix}, \qquad |k\vec{v}| = |k|\,|\vec{v}|

If k>0k>0, kv⃗k\vec{v} points in the same direction as v⃗\vec{v} but is kk times as long. If k<0k<0, kv⃗k\vec{v} points in the exact opposite direction. If k=0k=0, the result is the zero vector 0⃗=(00)\vec{0}=\begin{pmatrix}0\\0\end{pmatrix}, which has no direction at all.

Parallel vectors. Two non-zero vectors u⃗\vec{u} and v⃗\vec{v} are parallel if and only if u⃗=kv⃗\vec{u}=k\vec{v} for some scalar kk — equivalently, their components are proportional: u1v1=u2v2\dfrac{u_1}{v_1}=\dfrac{u_2}{v_2} (provided neither denominator is zero). This is the vector analogue of two lines sharing a gradient.

Worked example — the harder case. Determine whether u⃗=(6−9)\vec{u}=\begin{pmatrix}6\\-9\end{pmatrix} is parallel to v⃗=(−46)\vec{v}=\begin{pmatrix}-4\\6\end{pmatrix}, and if so, find kk such that u⃗=kv⃗\vec{u}=k\vec{v}.

Checking proportionality: 6−4=−32\dfrac{6}{-4}=-\dfrac{3}{2} and −96=−32\dfrac{-9}{6}=-\dfrac{3}{2}. The ratios match, so the vectors are parallel, with k=−32k=-\dfrac{3}{2} (confirm: −32(−46)=(6−9)-\dfrac32\begin{pmatrix}-4\\6\end{pmatrix}=\begin{pmatrix}6\\-9\end{pmatrix} ✓). The edge case to notice: the scalar is negative, so despite being "parallel," u⃗\vec{u} and v⃗\vec{v} actually point in opposite directions — "parallel" in the vector sense includes anti-parallel vectors, unlike the everyday use of the word.

5. Unit Vectors and the i⃗\vec{i}, j⃗\vec{j} Notation

The vectors i⃗=(10)\vec{i}=\begin{pmatrix}1\\0\end{pmatrix} and j⃗=(01)\vec{j}=\begin{pmatrix}0\\1\end{pmatrix} are the standard unit vectors along the two axes. Any vector can be written as a combination of them:

(ab)=ai⃗+bj⃗\begin{pmatrix}a\\b\end{pmatrix} = a\vec{i}+b\vec{j}

This is a linear combination, and it is exactly how component form and i⃗\vec{i},j⃗\vec{j} form express the same vector. To find the unit vector v^\hat{v} in the direction of a non-zero vector v⃗\vec{v}, divide by its own magnitude:

v^=1∣v⃗∣v⃗\hat{v} = \frac{1}{|\vec{v}|}\vec{v}

Worked example. Find the unit vector in the direction of v⃗=(34)\vec{v}=\begin{pmatrix}3\\4\end{pmatrix}.

Since ∣v⃗∣=9+16=5|\vec{v}|=\sqrt{9+16}=5,

v^=15(34)=(0.60.8)\hat{v} = \frac{1}{5}\begin{pmatrix}3\\4\end{pmatrix} = \begin{pmatrix}0.6\\0.8\end{pmatrix}

Check: ∣v^∣=0.36+0.64=1=1|\hat{v}|=\sqrt{0.36+0.64}=\sqrt{1}=1 ✓.

6. Position Vectors and the Midpoint

If a⃗\vec{a} and b⃗\vec{b} are the position vectors of AA and BB, the position vector of the midpoint MM of ABAB is

m⃗=12(a⃗+b⃗)\vec{m} = \frac{1}{2}(\vec{a}+\vec{b})

This restates the midpoint formula of the previous chapter in vector language, and it generalises immediately: the point PP dividing ABAB in the ratio m:nm:n has position vector

p⃗=na⃗+mb⃗m+n\vec{p} = \frac{n\vec{a}+m\vec{b}}{m+n}

identical in structure to the coordinate section formula, because each component of a vector equation is itself just that coordinate equation.

Common Exam Pitfalls

  • Treating a vector like a point. A vector has no fixed location; writing v⃗=(3,4)\vec{v}=(3,4) as if it were the point (3,4)(3,4) blurs a distinction the exam rewards you for keeping — use column notation or AB→\overrightarrow{AB} to signal a vector clearly.
  • Computing AB→\overrightarrow{AB} as A−BA-B instead of B−AB-A. The vector from AA to BB is "where BB is relative to AA," so it is always the destination's position vector minus the start's: b⃗−a⃗\vec{b}-\vec{a}.
  • Forgetting that scalar multiplication by a negative number reverses direction. −2v⃗-2\vec{v} is not merely "longer" — it points the opposite way, which matters when sketching or interpreting a result geometrically.
  • Confusing "parallel" with "same direction." Vectors satisfying u⃗=kv⃗\vec{u}=k\vec{v} with k<0k<0 are still classified as parallel in this algebraic sense, even though they point in opposite directions.
  • Dividing by magnitude instead of multiplying by its reciprocal when finding a unit vector — and forgetting to check the result has length 1. Always verify ∣v^∣=1|\hat v| = 1 as a final check.
  • Adding magnitudes instead of adding vectors. ∣u⃗+v⃗∣≠∣u⃗∣+∣v⃗∣|\vec{u}+\vec{v}| \neq |\vec{u}|+|\vec{v}| in general — only when u⃗\vec u and v⃗\vec v point in exactly the same direction does equality hold; otherwise the triangle inequality makes the sum's magnitude strictly smaller.

Summary

  • A vector AB→\overrightarrow{AB} with A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2) has components (x2−x1y2−y1)\begin{pmatrix}x_2-x_1\\y_2-y_1\end{pmatrix}, and AB→=b⃗−a⃗\overrightarrow{AB}=\vec b-\vec a in position-vector form.
  • Magnitude: ∣v⃗∣=a2+b2|\vec v|=\sqrt{a^2+b^2} for v⃗=(ab)\vec v=\begin{pmatrix}a\\b\end{pmatrix}; this equals the distance formula.
  • Addition/subtraction is component-wise; geometrically, the triangle rule (addition) and parallelogram rule (both diagonals) describe the same algebra.
  • Scalar multiplication kv⃗k\vec v scales magnitude by ∣k∣|k| and reverses direction when k<0k<0.
  • Two non-zero vectors are parallel iff u⃗=kv⃗\vec u = k\vec v for some scalar kk (proportional components); this includes anti-parallel vectors (k<0k<0).
  • Unit vectors: i⃗=(10)\vec i=\begin{pmatrix}1\\0\end{pmatrix}, j⃗=(01)\vec j=\begin{pmatrix}0\\1\end{pmatrix}; any vector is ai⃗+bj⃗a\vec i+b\vec j; the unit vector in the direction of v⃗\vec v is v^=v⃗/∣v⃗∣\hat v = \vec v/|\vec v|.
  • Midpoint in vector form: m⃗=12(a⃗+b⃗)\vec m=\tfrac12(\vec a+\vec b); section-ratio form: p⃗=na⃗+mb⃗m+n\vec p = \dfrac{n\vec a+m\vec b}{m+n}.