Component Form: Vectors as Triples

Along the three axes sit the standard unit vectors i^,j^,k^\hat{i}, \hat{j}, \hat{k} — each of magnitude 11, along OX,OY,OZOX, OY, OZ respectively. Dropping perpendiculars from a point P(x,y,z)P(x, y, z) shows that its position vector decomposes as

r⃗=OP→=xi^+yj^+zk^\vec{r} = \overrightarrow{OP} = x\hat{i} + y\hat{j} + z\hat{k}

This is the component form. The numbers x,y,zx, y, z are the scalar components and xi^,yj^,zk^x\hat{i}, y\hat{j}, z\hat{k} the vector components. Applying Pythagoras twice gives the magnitude:

∣r⃗∣=x2+y2+z2|\vec{r}| = \sqrt{x^2 + y^2 + z^2}

Algebra becomes arithmetic

For a⃗=a1i^+a2j^+a3k^\vec{a} = a_1\hat{i} + a_2\hat{j} + a_3\hat{k} and b⃗=b1i^+b2j^+b3k^\vec{b} = b_1\hat{i} + b_2\hat{j} + b_3\hat{k}:

  1. Sum: a⃗+b⃗=(a1+b1)i^+(a2+b2)j^+(a3+b3)k^\vec{a} + \vec{b} = (a_1 + b_1)\hat{i} + (a_2 + b_2)\hat{j} + (a_3 + b_3)\hat{k}
  2. Difference: a⃗−b⃗=(a1−b1)i^+(a2−b2)j^+(a3−b3)k^\vec{a} - \vec{b} = (a_1 - b_1)\hat{i} + (a_2 - b_2)\hat{j} + (a_3 - b_3)\hat{k}
  3. Equality: a⃗=b⃗  ⟺  a1=b1, a2=b2, a3=b3\vec{a} = \vec{b} \iff a_1 = b_1,\ a_2 = b_2,\ a_3 = b_3 — all three components, no exceptions.
  4. Scalar multiple: λa⃗=(λa1)i^+(λa2)j^+(λa3)k^\lambda\vec{a} = (\lambda a_1)\hat{i} + (\lambda a_2)\hat{j} + (\lambda a_3)\hat{k}

with the distributive laws ka⃗+ma⃗=(k+m)a⃗k\vec{a} + m\vec{a} = (k + m)\vec{a}, k(ma⃗)=(km)a⃗k(m\vec{a}) = (km)\vec{a}, and k(a⃗+b⃗)=ka⃗+kb⃗k\left(\vec{a} + \vec{b}\right) = k\vec{a} + k\vec{b}.

Collinearity, in components

a⃗\vec{a} and b⃗\vec{b} are collinear if and only if b⃗=λa⃗\vec{b} = \lambda\vec{a} for some nonzero scalar λ\lambda — equivalently

b1a1=b2a2=b3a3=λ\frac{b_1}{a_1} = \frac{b_2}{a_2} = \frac{b_3}{a_3} = \lambda

(the components are proportional). The sign of λ\lambda tells same direction (λ>0\lambda > 0) or opposite (λ<0\lambda < 0).

Key Point: the components a1,a2,a3a_1, a_2, a_3 of a⃗\vec{a} are its direction ratios. And if l,m,nl, m, n are direction cosines, then li^+mj^+nk^l\hat{i} + m\hat{j} + n\hat{k} is the unit vector in that direction — cosines are the components of the unit vector.

Vector Joining Two Points, and the Section Formula

The joining vector

For points P1(x1,y1,z1)P_1(x_1, y_1, z_1) and P2(x2,y2,z2)P_2(x_2, y_2, z_2), the triangle law in triangle OP1P2OP_1P_2 gives P1P2→=OP2→−OP1→\overrightarrow{P_1P_2} = \overrightarrow{OP_2} - \overrightarrow{OP_1}:

P1P2→=(x2−x1)i^+(y2−y1)j^+(z2−z1)k^\overrightarrow{P_1P_2} = (x_2 - x_1)\hat{i} + (y_2 - y_1)\hat{j} + (z_2 - z_1)\hat{k}

Terminal minus initial — always. Its magnitude is (x2−x1)2+(y2−y1)2+(z2−z1)2\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}, the distance formula.

Section formula

Let PP and QQ have position vectors a⃗\vec{a} and b⃗\vec{b}, and let RR divide PQPQ in the ratio m:nm : n.

Point R dividing PQ internally with position vector formula

  1. Internal division (RR between PP and QQ with PRRQ=mn\dfrac{PR}{RQ} = \dfrac{m}{n}):

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

  1. External division (RR outside the segment with PRQR=mn\dfrac{PR}{QR} = \dfrac{m}{n}):

r⃗=mb⃗−na⃗m−n\vec{r} = \frac{m\vec{b} - n\vec{a}}{m - n}

  1. Midpoint (m=nm = n):

r⃗=a⃗+b⃗2\vec{r} = \frac{\vec{a} + \vec{b}}{2}

Key Point (memory hook): in the internal formula the coefficient mm (the first number of the ratio) multiplies b⃗\vec{b} (the far point QQ) — the ratio counts from PP, so mm parts lie on the PP-side and the weight mm lands on the opposite end. Cross-pairing ma⃗+nb⃗m\vec{a} + n\vec{b} is the single most common section-formula error.

The external formula is the internal one with n→−nn \to -n — one formula to remember, one sign to flip.

Solved Examples

Example 1: Forcing equality

Find x,y,zx, y, z so that the vectors xi^+2j^+zk^x\hat{i} + 2\hat{j} + z\hat{k} and 2i^+yj^+k^2\hat{i} + y\hat{j} + \hat{k} are equal.

Solution:

  1. Componentwise matching: equality of vectors means equality of all corresponding components.
  2. Read off: x=2x = 2, y=2y = 2, z=1z = 1.

Answer: x=2,y=2,z=1x = 2, y = 2, z = 1 — one vector equation is three scalar equations.


Example 2: Same magnitude, unequal vectors

Let a⃗=i^+2j^\vec{a} = \hat{i} + 2\hat{j} and b⃗=2i^+j^\vec{b} = 2\hat{i} + \hat{j}. Is ∣a⃗∣=∣b⃗∣|\vec{a}| = |\vec{b}|? Are the vectors equal?

Solution:

  1. Magnitudes: ∣a⃗∣=1+4=5|\vec{a}| = \sqrt{1 + 4} = \sqrt{5} and ∣b⃗∣=4+1=5|\vec{b}| = \sqrt{4 + 1} = \sqrt{5} — equal. ✓
  2. Components: a1=1≠2=b1a_1 = 1 \neq 2 = b_1 — the vectors are not equal.

Answer: ∣a⃗∣=∣b⃗∣|\vec{a}| = |\vec{b}| but a⃗≠b⃗\vec{a} \neq \vec{b}: equal length says nothing about direction.


Example 3: Unit vector from components

Find the unit vector in the direction of a⃗=2i^+3j^+k^\vec{a} = 2\hat{i} + 3\hat{j} + \hat{k}.

Solution:

  1. Magnitude: ∣a⃗∣=4+9+1=14|\vec{a}| = \sqrt{4 + 9 + 1} = \sqrt{14}.
  2. Divide: a^=114(2i^+3j^+k^)=214i^+314j^+114k^\hat{a} = \dfrac{1}{\sqrt{14}}\left(2\hat{i} + 3\hat{j} + \hat{k}\right) = \dfrac{2}{\sqrt{14}}\hat{i} + \dfrac{3}{\sqrt{14}}\hat{j} + \dfrac{1}{\sqrt{14}}\hat{k}.

Answer: a^=214i^+314j^+114k^\hat{a} = \dfrac{2}{\sqrt{14}}\hat{i} + \dfrac{3}{\sqrt{14}}\hat{j} + \dfrac{1}{\sqrt{14}}\hat{k}.


Example 4: Prescribed magnitude in a given direction

Find a vector of magnitude 77 units in the direction of i^−2j^\hat{i} - 2\hat{j}.

Solution:

  1. Normalise: ∣i^−2j^∣=5|\hat{i} - 2\hat{j}| = \sqrt{5}, so the unit vector is 15i^−25j^\dfrac{1}{\sqrt{5}}\hat{i} - \dfrac{2}{\sqrt{5}}\hat{j}.
  2. Scale by 77: the required vector is 75i^−145j^\dfrac{7}{\sqrt{5}}\hat{i} - \dfrac{14}{\sqrt{5}}\hat{j}.

Answer: 75i^−145j^\dfrac{7}{\sqrt{5}}\hat{i} - \dfrac{14}{\sqrt{5}}\hat{j} — normalise first, then stretch.


Example 5: Unit vector of a sum

Find the unit vector in the direction of the sum of 2i^+2j^−5k^2\hat{i} + 2\hat{j} - 5\hat{k} and 2i^+j^+3k^2\hat{i} + \hat{j} + 3\hat{k}.

Solution:

  1. Add first: the sum is 4i^+3j^−2k^4\hat{i} + 3\hat{j} - 2\hat{k}.
  2. Magnitude: 16+9+4=29\sqrt{16 + 9 + 4} = \sqrt{29}.
  3. Divide: 429i^+329j^−229k^\dfrac{4}{\sqrt{29}}\hat{i} + \dfrac{3}{\sqrt{29}}\hat{j} - \dfrac{2}{\sqrt{29}}\hat{k}.

Answer: 129(4i^+3j^−2k^)\dfrac{1}{\sqrt{29}}\left(4\hat{i} + 3\hat{j} - 2\hat{k}\right). Never normalise the two vectors separately and then add — unit vectors of parts do not sum to the unit vector of the whole.


Example 6: Direction ratios to direction cosines

Write the direction ratios of a⃗=i^+j^−2k^\vec{a} = \hat{i} + \hat{j} - 2\hat{k} and hence its direction cosines.

Solution:

  1. Ratios = components: a=1a = 1, b=1b = 1, c=−2c = -2.
  2. Normalise: ∣a⃗∣=1+1+4=6|\vec{a}| = \sqrt{1 + 1 + 4} = \sqrt{6}, so l=16l = \dfrac{1}{\sqrt{6}}, m=16m = \dfrac{1}{\sqrt{6}}, n=−26n = -\dfrac{2}{\sqrt{6}}.

Answer: direction ratios (1,1,−2)(1, 1, -2); direction cosines (16,16,−26)\left(\dfrac{1}{\sqrt{6}}, \dfrac{1}{\sqrt{6}}, -\dfrac{2}{\sqrt{6}}\right).


Example 7: Joining vector and the section formula

(i) Find the vector from P(2,3,0)P(2, 3, 0) to Q(−1,−2,−4)Q(-1, -2, -4). (ii) Find the point RR dividing the join of A(i^+2j^−k^)A\left(\hat{i} + 2\hat{j} - \hat{k}\right) and B(−i^+j^+k^)B\left(-\hat{i} + \hat{j} + \hat{k}\right) in the ratio 2:12 : 1 internally and externally.

Solution:

  1. (i) Terminal minus initial: PQ→=(−1−2)i^+(−2−3)j^+(−4−0)k^=−3i^−5j^−4k^\overrightarrow{PQ} = (-1 - 2)\hat{i} + (-2 - 3)\hat{j} + (-4 - 0)\hat{k} = -3\hat{i} - 5\hat{j} - 4\hat{k}.
  2. (ii) Internal, m:n=2:1m : n = 2 : 1: r⃗=2b⃗+1a⃗3=2(−i^+j^+k^)+(i^+2j^−k^)3=−i^+4j^+k^3\vec{r} = \dfrac{2\vec{b} + 1\vec{a}}{3} = \dfrac{2\left(-\hat{i} + \hat{j} + \hat{k}\right) + \left(\hat{i} + 2\hat{j} - \hat{k}\right)}{3} = \dfrac{-\hat{i} + 4\hat{j} + \hat{k}}{3}.
  3. External: r⃗=2b⃗−a⃗2−1=−2i^+2j^+2k^−i^−2j^+k^=−3i^+3k^\vec{r} = \dfrac{2\vec{b} - \vec{a}}{2 - 1} = -2\hat{i} + 2\hat{j} + 2\hat{k} - \hat{i} - 2\hat{j} + \hat{k} = -3\hat{i} + 3\hat{k}.

Answer: (i) −3i^−5j^−4k^-3\hat{i} - 5\hat{j} - 4\hat{k}; (ii) internal 13(−i^+4j^+k^)\dfrac{1}{3}\left(-\hat{i} + 4\hat{j} + \hat{k}\right), external 3(k^−i^)3\left(\hat{k} - \hat{i}\right).


Example 8: A right triangle, detected by vectors

Show that A(2i^−j^+k^)A(2\hat{i} - \hat{j} + \hat{k}), B(i^−3j^−5k^)B(\hat{i} - 3\hat{j} - 5\hat{k}), C(3i^−4j^−4k^)C(3\hat{i} - 4\hat{j} - 4\hat{k}) are the vertices of a right-angled triangle.

Solution:

  1. Side vectors: AB→=−i^−2j^−6k^\overrightarrow{AB} = -\hat{i} - 2\hat{j} - 6\hat{k}, BC→=2i^−j^+k^\overrightarrow{BC} = 2\hat{i} - \hat{j} + \hat{k}, CA→=−i^+3j^+5k^\overrightarrow{CA} = -\hat{i} + 3\hat{j} + 5\hat{k}.
  2. Squared lengths: ∣AB→∣2=1+4+36=41\left|\overrightarrow{AB}\right|^2 = 1 + 4 + 36 = 41, ∣BC→∣2=6\left|\overrightarrow{BC}\right|^2 = 6, ∣CA→∣2=35\left|\overrightarrow{CA}\right|^2 = 35.
  3. Pythagoras: 41=6+3541 = 6 + 35. ✓

Answer: since ∣AB→∣2=∣BC→∣2+∣CA→∣2\left|\overrightarrow{AB}\right|^2 = \left|\overrightarrow{BC}\right|^2 + \left|\overrightarrow{CA}\right|^2, the triangle is right-angled (at CC, where the two shorter sides meet). Also check the sides close up: AB→+BC→+CA→=0⃗\overrightarrow{AB} + \overrightarrow{BC} + \overrightarrow{CA} = \vec{0}. ✓