Salick Academy

Two dimensions become three, and one new operation — the scalar product — turns out to answer nearly every question about angle and perpendicularity.

Vectors in three dimensions

A vector in space is written in component form or in unit vector form:

a=(231)=2i+3jk\mathbf{a} = \begin{pmatrix} 2 \\ 3 \\ -1 \end{pmatrix} = 2\mathbf{i} + 3\mathbf{j} - \mathbf{k}

where i\mathbf{i}, j\mathbf{j} and k\mathbf{k} are unit vectors along the xx, yy and zz axes.

Addition, subtraction and scalar multiples work componentwise, exactly as in two dimensions:

(2i+3jk)+(i2j+4k)=3i+j+3k(2\mathbf{i} + 3\mathbf{j} - \mathbf{k}) + (\mathbf{i} - 2\mathbf{j} + 4\mathbf{k}) = 3\mathbf{i} + \mathbf{j} + 3\mathbf{k}

And travelling between points is unchanged:

AB=OBOA\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA}

Magnitude and unit vectors

a=x2+y2+z2|\mathbf{a}| = \sqrt{x^2 + y^2 + z^2}

3i+4j12k=9+16+144=169=13|3\mathbf{i} + 4\mathbf{j} - 12\mathbf{k}| = \sqrt{9 + 16 + 144} = \sqrt{169} = 13

A unit vector has magnitude 1. To find the unit vector in the direction of a\mathbf{a}, divide by the magnitude:

a^=aa\hat{\mathbf{a}} = \frac{\mathbf{a}}{|\mathbf{a}|}

The unit vector along 3i+4j3\mathbf{i} + 4\mathbf{j} is 15(3i+4j)\frac15(3\mathbf{i} + 4\mathbf{j}), since the magnitude is 5.

The scalar product

ab=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = a_1b_1 + a_2b_2 + a_3b_3

For a=2i+3jk\mathbf{a} = 2\mathbf{i} + 3\mathbf{j} - \mathbf{k} and b=i2j+4k\mathbf{b} = \mathbf{i} - 2\mathbf{j} + 4\mathbf{k}:

ab=(2)(1)+(3)(2)+(1)(4)=264=8\mathbf{a}\cdot\mathbf{b} = (2)(1) + (3)(-2) + (-1)(4) = 2 - 6 - 4 = -8

Two useful facts:

aa=a2\mathbf{a}\cdot\mathbf{a} = |\mathbf{a}|^2 ab=0    a and b are perpendicular\mathbf{a}\cdot\mathbf{b} = 0 \iff \mathbf{a} \text{ and } \mathbf{b} \text{ are perpendicular}

(assuming neither is the zero vector).

Are 2i+3jk2\mathbf{i}+3\mathbf{j}-\mathbf{k} and ijk\mathbf{i}-\mathbf{j}-\mathbf{k} perpendicular?

(2)(1)+(3)(1)+(1)(1)=23+1=0(2)(1) + (3)(-1) + (-1)(-1) = 2 - 3 + 1 = 0

Yes.

The angle between two vectors

ab=abcosθcosθ=abab\mathbf{a}\cdot\mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta \qquad \Rightarrow \qquad \cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}

Find the angle between a=2i+3jk\mathbf{a} = 2\mathbf{i}+3\mathbf{j}-\mathbf{k} and b=i2j+4k\mathbf{b} = \mathbf{i}-2\mathbf{j}+4\mathbf{k}.

ab=8a=14b=21\mathbf{a}\cdot\mathbf{b} = -8 \qquad |\mathbf{a}| = \sqrt{14} \qquad |\mathbf{b}| = \sqrt{21}

cosθ=81421=8294=0.4666\cos\theta = \frac{-8}{\sqrt{14}\sqrt{21}} = \frac{-8}{\sqrt{294}} = -0.4666

θ=117.8° (1 d.p.)\theta = 117.8° \text{ (1 d.p.)}

The vector equation of a line

A line is fixed by one point on it and one direction along it:

r=a+td\mathbf{r} = \mathbf{a} + t\mathbf{d}

where a\mathbf{a} is the position vector of a known point, d\mathbf{d} is the direction vector, and tt is a parameter running over all real numbers.

The line through (1,2,3)(1,2,3) in the direction 2ij+4k2\mathbf{i}-\mathbf{j}+4\mathbf{k}:

r=(i+2j+3k)+t(2ij+4k)\mathbf{r} = (\mathbf{i}+2\mathbf{j}+3\mathbf{k}) + t(2\mathbf{i}-\mathbf{j}+4\mathbf{k})

Splitting into components gives the parametric equations:

x=1+2ty=2tz=3+4tx = 1 + 2t \qquad y = 2 - t \qquad z = 3 + 4t

Through two points AA and BB? Take a=OA\mathbf{a} = \overrightarrow{OA} and d=AB=ba\mathbf{d} = \overrightarrow{AB} = \mathbf{b} - \mathbf{a}.

Relationships between lines

In three dimensions, two lines are:

  • Parallel — their direction vectors are scalar multiples of each other.
  • Intersecting — not parallel, and there exist parameter values giving the same point.
  • Skew — neither parallel nor intersecting. This possibility exists only in 3D; two non-parallel lines in a plane must meet.

To test for intersection, set the two vector equations equal and solve the resulting component equations. Two of the three will determine the parameters; the third must then be satisfied. If it is not, the lines are skew.

The angle between two intersecting lines is the angle between their direction vectors, found with the scalar product as above.