girgit.org

Vector Algebra

Components: writing a vector with î, ĵ and k̂

The big ideaEvery vector can be written as \( x\hat{i} + y\hat{j} + z\hat{k} \): so many steps along x, along y and along z. After that, vector sums are just sums of numbers.

In simple words

To reach any spot in a room from one corner, you can go some steps along one wall, some steps along the other wall, and then some steps straight up. Three numbers say it all. Adding two trips is then easy: add the steps along each wall and the steps up, one at a time.

The three unit vectors î, ĵ, k̂

Take the points A(1, 0, 0), B(0, 1, 0) and C(0, 0, 1). Each is 1 unit from O along an axis, so \( \overrightarrow{OA},\ \overrightarrow{OB},\ \overrightarrow{OC} \) are unit vectors along the x, y and z axes. They are named \( \hat{i},\ \hat{j},\ \hat{k} \).

Now take any point P(x, y, z). From O, walk x units along \( \hat{i} \), then y units along \( \hat{j} \): you reach P₁(x, y, 0), the point on the floor (the XY-plane) right below P. Then climb z units along \( \hat{k} \) to P. Adding these moves head to tail,

\[ \vec{r} = \overrightarrow{OP} = x\hat{i} + y\hat{j} + z\hat{k}. \]

This is the component form of the vector. The numbers x, y, z are its scalar components (also called rectangular components), and \( x\hat{i},\ y\hat{j},\ z\hat{k} \) are its vector components along the axes.

Length from components

Use Pythagoras twice. On the floor, the right triangle O, Q(x, 0, 0), P₁ gives \( OP_1^2 = x^2 + y^2 \). Then the right triangle O, P₁, P (P is straight above P₁) gives \( OP^2 = OP_1^2 + z^2 \). So

\[ |x\hat{i} + y\hat{j} + z\hat{k}| = \sqrt{x^2 + y^2 + z^2}. \]

Try it: set the three components and walk the three steps. The two square roots are Pythagoras on the floor and then up.

Doing algebra with components

Let \( \vec{a} = a_1\hat{i} + a_2\hat{j} + a_3\hat{k} \) and \( \vec{b} = b_1\hat{i} + b_2\hat{j} + b_3\hat{k} \). Work one direction at a time:

Component rules

  • Sum: \( \vec{a} + \vec{b} = (a_1 + b_1)\hat{i} + (a_2 + b_2)\hat{j} + (a_3 + b_3)\hat{k} \)
  • Difference: \( \vec{a} - \vec{b} = (a_1 - b_1)\hat{i} + (a_2 - b_2)\hat{j} + (a_3 - b_3)\hat{k} \)
  • Equal: \( \vec{a} = \vec{b} \) if and only if \( a_1 = b_1,\ a_2 = b_2,\ a_3 = b_3 \)
  • Scalar multiple: \( \lambda\vec{a} = (\lambda a_1)\hat{i} + (\lambda a_2)\hat{j} + (\lambda a_3)\hat{k} \)
  • Collinear: \( \vec{b} = \lambda\vec{a} \) if and only if \( \dfrac{b_1}{a_1} = \dfrac{b_2}{a_2} = \dfrac{b_3}{a_3} = \lambda \) (components in proportion)

Link to direction. The components \( a_1, a_2, a_3 \) are themselves direction ratios of \( \vec{a} \). And if l, m, n are the direction cosines of a vector, then \( l\hat{i} + m\hat{j} + n\hat{k} = \cos\alpha\,\hat{i} + \cos\beta\,\hat{j} + \cos\gamma\,\hat{k} \) is the unit vector in its direction.

Worked examples

Let \( \vec{a} = 2\hat{i} - \hat{j} + 2\hat{k} \) and \( \vec{b} = \hat{i} + 3\hat{j} - \hat{k} \).

  1. \( \vec{a} + \vec{b} = 3\hat{i} + 2\hat{j} + \hat{k} \) and \( \vec{a} - \vec{b} = \hat{i} - 4\hat{j} + 3\hat{k} \).
  2. \( 3\vec{a} = 6\hat{i} - 3\hat{j} + 6\hat{k} \).
  3. \( |\vec{a}| = \sqrt{4 + 1 + 4} = 3 \), so \( \hat{a} = \frac{2}{3}\hat{i} - \frac{1}{3}\hat{j} + \frac{2}{3}\hat{k} \). Its direction cosines are \( \frac{2}{3}, -\frac{1}{3}, \frac{2}{3} \).
  4. Unit vector along a sum. With \( \vec{c} = \hat{i} + 2\hat{j} + 2\hat{k} \): \( \vec{a} + \vec{c} = 3\hat{i} + \hat{j} + 4\hat{k} \), whose length is \( \sqrt{9 + 1 + 16} = \sqrt{26} \). The unit vector is \( \frac{1}{\sqrt{26}}(3\hat{i} + \hat{j} + 4\hat{k}) \).
  5. Given length. A vector of length 10 along \( 3\hat{i} - 4\hat{j} \): its length is 5, so the unit vector is \( \frac{3}{5}\hat{i} - \frac{4}{5}\hat{j} \), and the answer is \( 6\hat{i} - 8\hat{j} \).
  6. Equality. If \( x\hat{i} + 4\hat{j} - z\hat{k} = 3\hat{i} + y\hat{j} + 2\hat{k} \), match components: x = 3, y = 4, z = −2.
  7. Collinear? \( 3\hat{i} - 6\hat{j} + 9\hat{k} \) and \( -\hat{i} + 2\hat{j} - 3\hat{k} \): the ratios are \( \frac{-1}{3} = \frac{2}{-6} = \frac{-3}{9} = -\frac{1}{3} \). All equal, so they are collinear, pointing opposite ways.

Guess first: same length, same vector?

\( \vec{p} = \hat{i} + 2\hat{j} + 3\hat{k} \) and \( \vec{q} = 3\hat{i} + 2\hat{j} + \hat{k} \) use the same three numbers. Guess: are they equal?

See what happens
Both have length \( \sqrt{1 + 4 + 9} = \sqrt{14} \), but they are not equal: the \( \hat{i} \) parts (1 and 3) differ, and so do the \( \hat{k} \) parts. Equal vectors need every matching component equal, which means the same length and the same direction.

Unit vectors in a plane. A unit vector in the XY-plane making angle θ with the positive x-axis is \( \cos\theta\,\hat{i} + \sin\theta\,\hat{j} \). As θ runs from 0 to 2π, its tip goes once round the circle \( x^2 + y^2 = 1 \), so this gives every unit vector in that plane. At 30°: \( \frac{\sqrt{3}}{2}\hat{i} + \frac{1}{2}\hat{j} \).

Words to know

î, ĵ, k̂
Unit vectors along the x, y and z axes.
Component form
Writing a vector as \( x\hat{i} + y\hat{j} + z\hat{k} \).
Scalar components
The three numbers x, y, z.
Vector components
The three pieces \( x\hat{i},\ y\hat{j},\ z\hat{k} \).
Direction ratios
Any set of numbers proportional to the components.

What is the unit vector in the direction of \( 2\hat{i} + \hat{j} - 2\hat{k} \)?

  1. \( \frac{2}{3}\hat{i} + \frac{1}{3}\hat{j} - \frac{2}{3}\hat{k} \)
  2. \( \frac{2}{9}\hat{i} + \frac{1}{9}\hat{j} - \frac{2}{9}\hat{k} \)
  3. \( 2\hat{i} + \hat{j} - 2\hat{k} \)

For which p are \( 2\hat{i} - 3\hat{j} + 4\hat{k} \) and \( -4\hat{i} + p\hat{j} - 8\hat{k} \) collinear?

  1. p = −6
  2. p = 6
  3. Any value of p

A vector has scalar components 4, 0, −3. What are its vector components?

  1. 4, 0, −3
  2. \( 4\hat{i},\ 0\hat{j},\ -3\hat{k} \)
  3. \( 5\hat{i} \)