Skip to main content
Examonaut

Topic 5 · Lesson 3 of 4

Lines, planes and distances

The equation (r − a) × b = 0

A point with position vector r\mathbf{r} lies on the line through AA (position vector a\mathbf{a}) with direction b\mathbf{b} exactly when r−a\mathbf{r} - \mathbf{a} is parallel to b\mathbf{b}, that is when

(r−a)×b=0(\mathbf{r} - \mathbf{a}) \times \mathbf{b} = \mathbf{0}

This is the same line as r=a+λb\mathbf{r} = \mathbf{a} + \lambda\mathbf{b}, and as the Cartesian form x−a1b1=y−a2b2=z−a3b3\frac{x - a_1}{b_1} = \frac{y - a_2}{b_2} = \frac{z - a_3}{b_3}. To convert, read off a\mathbf{a} and b\mathbf{b}. If a component of b\mathbf{b} is zero, that coordinate is constant: the line through (1,4,−2)(1, 4, -2) in direction 3i+2k3\mathbf{i} + 2\mathbf{k} has Cartesian equations x−13=z+22\frac{x - 1}{3} = \frac{z + 2}{2}, y=4y = 4.

To test whether a point lies on the line, compute (r−a)×b(\mathbf{r} - \mathbf{a}) \times \mathbf{b}: it is 0\mathbf{0} if and only if the point is on the line.

Normals to planes

A plane containing two non-parallel directions d1\mathbf{d}_1 and d2\mathbf{d}_2 has normal n=d1×d2\mathbf{n} = \mathbf{d}_1 \times \mathbf{d}_2. So:

  • the plane r=a+λd1+μd2\mathbf{r} = \mathbf{a} + \lambda\mathbf{d}_1 + \mu\mathbf{d}_2 has equation r⋅n=a⋅n\mathbf{r} \cdot \mathbf{n} = \mathbf{a} \cdot \mathbf{n};
  • the plane through AA, BB, CC has normal AB→×AC→\overrightarrow{AB} \times \overrightarrow{AC};
  • the line where two planes meet has direction n1×n2\mathbf{n}_1 \times \mathbf{n}_2, since it lies in both planes and so is perpendicular to both normals.

Worked example

A plane through three points

Find a Cartesian equation of the plane through A(1,2,0)A(1, 2, 0), B(3,1,1)B(3, 1, 1) and C(0,4,2)C(0, 4, 2).

Show solution
  1. AB→=2i−j+k\overrightarrow{AB} = 2\mathbf{i} - \mathbf{j} + \mathbf{k} and AC→=−i+2j+2k\overrightarrow{AC} = -\mathbf{i} + 2\mathbf{j} + 2\mathbf{k}.
  2. n=(−2−2)i+(−1−4)j+(4−1)k=−4i−5j+3k\mathbf{n} = (-2 - 2)\mathbf{i} + (-1 - 4)\mathbf{j} + (4 - 1)\mathbf{k} = -4\mathbf{i} - 5\mathbf{j} + 3\mathbf{k}.
  3. −4x−5y+3z=a⋅n=−4−10+0=−14-4x - 5y + 3z = \mathbf{a} \cdot \mathbf{n} = -4 - 10 + 0 = -14, so 4x+5y−3z=144x + 5y - 3z = 14.
  4. Check with BB: 12+5−3=1412 + 5 - 3 = 14. With CC: 0+20−6=140 + 20 - 6 = 14.

Distance from a point to a line

If PP is a point and the line passes through AA with direction b\mathbf{b}, the area of the parallelogram on AP→\overrightarrow{AP} and b\mathbf{b} is ∣AP→×b∣\left|\overrightarrow{AP} \times \mathbf{b}\right|; dividing by the base ∣b∣|\mathbf{b}| gives the height, which is the perpendicular distance:

d=∣AP→×b∣∣b∣d = \frac{\left|\overrightarrow{AP} \times \mathbf{b}\right|}{|\mathbf{b}|}

Distance between skew lines

For the lines r=a1+λb1\mathbf{r} = \mathbf{a}_1 + \lambda\mathbf{b}_1 and r=a2+μb2\mathbf{r} = \mathbf{a}_2 + \mu\mathbf{b}_2, the vector n=b1×b2\mathbf{n} = \mathbf{b}_1 \times \mathbf{b}_2 is perpendicular to both. The shortest distance is the component of the joining vector a2−a1\mathbf{a}_2 - \mathbf{a}_1 along n\mathbf{n}:

d=∣(a2−a1)⋅(b1×b2)∣∣b1×b2∣d = \frac{|(\mathbf{a}_2 - \mathbf{a}_1) \cdot (\mathbf{b}_1 \times \mathbf{b}_2)|}{|\mathbf{b}_1 \times \mathbf{b}_2|}

If d=0d = 0 (and the lines are not parallel) the lines intersect; otherwise they are skew. To find the closest points themselves, write the vector between general points on the two lines and make it perpendicular to both directions: two equations for λ\lambda and μ\mu.

Worked example

Skew lines

Find the shortest distance between r=(2i+k)+λ(i+j)\mathbf{r} = (2\mathbf{i} + \mathbf{k}) + \lambda(\mathbf{i} + \mathbf{j}) and r=(j+3k)+μ(j−k)\mathbf{r} = (\mathbf{j} + 3\mathbf{k}) + \mu(\mathbf{j} - \mathbf{k}).

Show solution
  1. n=(i+j)×(j−k)=(−1−0)i+(0+1)j+(1−0)k=−i+j+k\mathbf{n} = (\mathbf{i} + \mathbf{j}) \times (\mathbf{j} - \mathbf{k}) = (-1 - 0)\mathbf{i} + (0 + 1)\mathbf{j} + (1 - 0)\mathbf{k} = -\mathbf{i} + \mathbf{j} + \mathbf{k}.
  2. Joining vector: (j+3k)−(2i+k)=−2i+j+2k(\mathbf{j} + 3\mathbf{k}) - (2\mathbf{i} + \mathbf{k}) = -2\mathbf{i} + \mathbf{j} + 2\mathbf{k}.
  3. Scalar product with n\mathbf{n}: 2+1+2=52 + 1 + 2 = 5, and ∣n∣=3|\mathbf{n}| = \sqrt{3}.
  4. d=53=533d = \frac{5}{\sqrt{3}} = \frac{5\sqrt{3}}{3}, so the lines are skew.

Practise this topic

Both are part of Premium.