←
Mathematics — Grade 12, Part II
THREE DIMENSIONAL GEOMETRY · 5 / 7
⌕
Chapter 5 of 7

THREE DIMENSIONAL GEOMETRY

16 sections · 6,625 words

Chapter 11: Three Dimensional Geometry

38 words · 1 min read

Chapter 11

Three Dimensional Geometry

Big idea: to describe a straight line in space you only need two things, a point on it and a direction. Angles and distances between lines then come from calculations with those directions.

11.1 Introduction

290 words · 1 min read

A drone flies in a straight line from one point to another. A laser beam crosses a room. Two pipes run past each other in a building, one above the other. All of these are straight lines in space. In a flat drawing, a line needs only two coordinates. In space, every point needs three: (x,y,z)(x, y, z).

In Class XI you learned the distance formula in space. The distance between A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2) is

AB=(x2−x1)2+(y2−y1)2+(z2−z1)2.AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}.

For example, take A=(1,1,1)A = (1, 1, 1) and B=(3,3,2)B = (3, 3, 2). The steps are 22, 22 and 11 along the three axes, so AB=4+4+1=9=3AB = \sqrt{4 + 4 + 1} = \sqrt{9} = 3.

The segment AB has steps 2, 2 and 1 along the axes, so its length is √(4 + 4 + 1) = 3. Drag to rotate.

In Chapter 10 you met vectors. Here we use vectors to study straight lines. In this chapter you will learn:

  • direction cosines and direction ratios: numbers that describe which way a line points;
  • the equation of a line in space, in vector form and in Cartesian form;
  • the angle between two lines;
  • the shortest distance between two lines, whether they are skew or parallel.
In simple words: a point tells you where a line is. A direction tells you which way it goes. Together they fix the line completely.

11.2 Direction Cosines and Direction Ratios of a Line

762 words · 3 min read

Draw a line through the origin and pick a direction along it. This directed line makes three angles with the positive xx-, yy- and zz-axes. Call them α\alpha, β\beta and γ\gamma. The three numbers

l=cos⁡α,m=cos⁡β,n=cos⁡γl = \cos\alpha, \qquad m = \cos\beta, \qquad n = \cos\gamma

are the direction cosines of the line. They say how much the line leans towards each axis. If a unit vector points along the line, then (l,m,n)(l, m, n) are exactly its three components.

A unit vector has length 11, so its components satisfy

l2+m2+n2=1.l^2 + m^2 + n^2 = 1.

Every set of direction cosines passes this test. If three numbers do not, they cannot be direction cosines.

Direction cosines are awkward because of the square roots. So we also use any three numbers a,b,ca, b, c proportional to l,m,nl, m, n. They are called direction ratios. If v⃗=ai^+bj^+ck^\vec{v} = a\hat{i} + b\hat{j} + c\hat{k} points along the line, then a,b,ca, b, c are direction ratios, and

l=aa2+b2+c2l = \frac{a}{\sqrt{a^2 + b^2 + c^2}}

and in the same way m=ba2+b2+c2m = \dfrac{b}{\sqrt{a^2 + b^2 + c^2}} and n=ca2+b2+c2n = \dfrac{c}{\sqrt{a^2 + b^2 + c^2}}.

  • Direction cosines are unique for a directed line. Direction ratios are not: if (a,b,c)(a, b, c) works, so does (2a,2b,2c)(2a, 2b, 2c) or (−a,−b,−c)(-a, -b, -c).
  • A directed line has a direction. Reversing the direction changes the sign of every direction cosine.

Find the direction cosines of the line along 2i^−j^+2k^2\hat{i} - \hat{j} + 2\hat{k}. Here a2+b2+c2=9a^2 + b^2 + c^2 = 9, so the length is 9=3\sqrt{9} = 3. The direction cosines are (23,  −13,  23)(\frac{2}{3},\; -\frac{1}{3},\; \frac{2}{3}).

Check: l2+m2+n2=4+1+49=1l^2 + m^2 + n^2 = \frac{4 + 1 + 4}{9} = 1. The angles with the axes are α=cos⁡−123≈48.19°\alpha = \cos^{-1}\frac{2}{3} \approx 48.19°, β=cos⁡−1(−13)≈109.47°\beta = \cos^{-1}\left(-\frac{1}{3}\right) \approx 109.47° and γ≈48.19°\gamma \approx 48.19°.

The vector (2, −1, 2) and its shadows on the floor and the axes. Its length is 3, so its direction cosines are 2/3, −1/3 and 2/3.

A line makes equal angles with the three axes. Then l=m=nl = m = n, and l2+m2+n2=1l^2 + m^2 + n^2 = 1 gives 3l2=13l^2 = 1, so l=±13l = \pm\dfrac{1}{\sqrt{3}}. Each angle is cos⁡−113≈54.74°\cos^{-1}\dfrac{1}{\sqrt{3}} \approx 54.74° (or 125.26°125.26° for the opposite direction). A direction ratio set is (1,1,1)(1, 1, 1).

Direction ratiosa2+b2+c2a^2 + b^2 + c^2Direction cosines
(1,2,2)(1, 2, 2)9913,  23,  23\frac{1}{3},\; \frac{2}{3},\; \frac{2}{3}
(3,−4,0)(3, -4, 0)252535,  −45,  0\frac{3}{5},\; -\frac{4}{5},\; 0
(2,−3,6)(2, -3, 6)494927,  −37,  67\frac{2}{7},\; -\frac{3}{7},\; \frac{6}{7}
(1,2,3)(1, 2, 3)1414114,  214,  314\frac{1}{\sqrt{14}},\; \frac{2}{\sqrt{14}},\; \frac{3}{\sqrt{14}}
(1,1,1)(1, 1, 1)3313,  13,  13\frac{1}{\sqrt{3}},\; \frac{1}{\sqrt{3}},\; \frac{1}{\sqrt{3}}

Each row was computed exactly. In the last two rows the square root does not simplify, so the cosines keep it.

Reverse the vector in Example 1 to −2i^+j^−2k^-2\hat{i} + \hat{j} - 2\hat{k}. The cosines become (−23,  13,  −23)(-\frac{2}{3},\; \frac{1}{3},\; -\frac{2}{3}), and the angles become 131.81°131.81°, 70.53°70.53° and 131.81°131.81°. Each new angle is 180°180° minus the old one, because cos⁡(180°−α)=−cos⁡α\cos(180° - \alpha) = -\cos\alpha.

Common mistake: treating direction ratios as direction cosines. The ratios (2,−1,2)(2, -1, 2) do not satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1 (they give 99). You must divide by the length a2+b2+c2\sqrt{a^2 + b^2 + c^2}.

  1. Find the direction cosines of the line with direction ratios (1,2,2)(1, 2, 2).
  2. Find the direction cosines of the line with direction ratios (3,−4,0)(3, -4, 0). What angle does it make with the zz-axis?

Answers

  1. Length 9=3\sqrt{9} = 3. Direction cosines (13,  23,  23)(\frac{1}{3},\; \frac{2}{3},\; \frac{2}{3}).
  2. Length 25=5\sqrt{25} = 5. Direction cosines (35,  −45,  0)(\frac{3}{5},\; -\frac{4}{5},\; 0). The zz-cosine is 00, so the angle with the zz-axis is 90°90°.

11.2.1 Direction cosines of a line passing through two points

456 words · 2 min read

Often a line is given by two points on it, P(x1,y1,z1)P(x_1, y_1, z_1) and Q(x2,y2,z2)Q(x_2, y_2, z_2). The vector PQ→\overrightarrow{PQ} lies along the line, and its components are the steps from PP to QQ. So the direction ratios are

x2−x1,y2−y1,z2−z1.x_2 - x_1, \qquad y_2 - y_1, \qquad z_2 - z_1.

Divide each by the length (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} to get the direction cosines (for the direction from PP to QQ).

Find the direction cosines of the line through P=(2,1,−1)P = (2, 1, -1) and Q=(4,−1,0)Q = (4, -1, 0). The steps are (2,−2,1)(2, -2, 1) and the length is 9=3\sqrt{9} = 3. So the direction cosines are (23,  −23,  13)(\frac{2}{3},\; -\frac{2}{3},\; \frac{1}{3}).

For P=(0,1,2)P = (0, 1, 2) and Q=(1,3,5)Q = (1, 3, 5) the steps are (1,2,3)(1, 2, 3) and a2+b2+c2=14a^2 + b^2 + c^2 = 14. The direction cosines are (114,  214,  314)(\frac{1}{\sqrt{14}},\; \frac{2}{\sqrt{14}},\; \frac{3}{\sqrt{14}}). It is fine to leave 14\sqrt{14} in the answer.

The arrow from P to Q has steps 1, 2, 3 along the axes. These are its direction ratios.

Three points AA, BB, CC are collinear (on one line) exactly when AB→\overrightarrow{AB} and AC→\overrightarrow{AC} are in the same direction or opposite directions. That means their direction ratios are proportional.

Test A=(1,1,1)A = (1, 1, 1), B=(3,2,0)B = (3, 2, 0), C=(7,4,−2)C = (7, 4, -2). Here AB→=(2,1,−1)\overrightarrow{AB} = (2, 1, -1) and AC→=(6,3,−3)\overrightarrow{AC} = (6, 3, -3). The second is exactly 33 times the first, so the three points lie on one line.

Now test D=(1,1,1)D = (1, 1, 1), E=(2,3,4)E = (2, 3, 4), F=(4,6,9)F = (4, 6, 9). Here DE→=(1,2,3)\overrightarrow{DE} = (1, 2, 3) and DF→=(3,5,8)\overrightarrow{DF} = (3, 5, 8). They are not proportional, because the ratios 31\frac{3}{1}, 52\frac{5}{2}, 83\frac{8}{3} are different. (Their cross product is (1,1,−1)≠0⃗(1, 1, -1) \ne \vec{0}, which confirms it.) So DD, EE, FF are not on one line.

Reading the steps: to get direction ratios from two points, always subtract in the same order: second minus first for each coordinate. If you swap the order for one coordinate only, you will get the wrong direction.

EXERCISE 11.1

474 words · 2 min read
  1. Write the direction cosines of the xx-axis, the yy-axis and the zz-axis.
  2. Can (12,12,12)\left(\frac{1}{2}, \frac{1}{2}, \frac{1}{\sqrt{2}}\right) be the direction cosines of a line? What about (12,12,12)\left(\frac{1}{2}, \frac{1}{2}, \frac{1}{2}\right)? If the first can, find the three angles.
  3. Find the direction cosines of the line along the vector 4i^−3j^+12k^4\hat{i} - 3\hat{j} + 12\hat{k}.
  4. Find the direction cosines of the line through (−2,4,−5)(-2, 4, -5) and (1,2,3)(1, 2, 3).
  5. A line makes an angle of 60°60° with the xx-axis and 45°45° with the yy-axis. Find the possible angles with the zz-axis and the direction cosines.
  6. A line has direction ratios 2,−3,62, -3, 6. Find its direction cosines and the angle it makes with each axis.
  7. Show that the points A(2,3,−4)A(2, 3, -4), B(1,−2,3)B(1, -2, 3) and C(3,8,−11)C(3, 8, -11) are collinear.
  8. Lines have direction ratios (1,2,3)(1, 2, 3) and (−2,−4,−6)(-2, -4, -6). Are they parallel? Are their direction cosines equal?

Answers

  1. For the xx-axis, direction ratios (1,0,0)(1, 0, 0) give (1,  0,  0)(1,\; 0,\; 0). For the yy-axis, (0,  1,  0)(0,\; 1,\; 0). For the zz-axis, (0,  0,  1)(0,\; 0,\; 1). (Each makes an angle 0°0° with itself and 90°90° with the other two axes.)
  2. The first: 14+14+12=1\frac{1}{4} + \frac{1}{4} + \frac{1}{2} = 1, so yes. The angles are cos⁡−112=60°\cos^{-1}\frac{1}{2} = 60°, 60°60° and cos⁡−112=45°\cos^{-1}\frac{1}{\sqrt{2}} = 45°. The second: 14+14+14=0.75\frac{1}{4} + \frac{1}{4} + \frac{1}{4} = 0.75, which is not 11, so no.
  3. a2+b2+c2=169a^2 + b^2 + c^2 = 169 and the length is 1313. The direction cosines are (413,  −313,  1213)(\frac{4}{13},\; -\frac{3}{13},\; \frac{12}{13}).
  4. The steps are (3,−2,8)(3, -2, 8), and a2+b2+c2=77a^2 + b^2 + c^2 = 77. The direction cosines are (377,  −277,  877)(\frac{3}{\sqrt{77}},\; -\frac{2}{\sqrt{77}},\; \frac{8}{\sqrt{77}}).
  5. l=12l = \frac{1}{2} and m=12m = \frac{1}{\sqrt{2}}, so n2=1−14−12=0.25n^2 = 1 - \frac{1}{4} - \frac{1}{2} = 0.25 and n=±12n = \pm\frac{1}{2}. The angle with the zz-axis is 60°60° (for n=12n = \frac{1}{2}) or 120°120° (for n=−12n = -\frac{1}{2}).
  6. a2+b2+c2=49a^2 + b^2 + c^2 = 49, so the length is 77. The direction cosines are (27,  −37,  67)(\frac{2}{7},\; -\frac{3}{7},\; \frac{6}{7}). The angles are about 73.4°73.4°, 115.38°115.38° and 31°31°.
  7. AB→=(−1,−5,7)\overrightarrow{AB} = (-1, -5, 7) and AC→=(1,5,−7)\overrightarrow{AC} = (1, 5, -7). Since AC→=−AB→\overrightarrow{AC} = -\overrightarrow{AB}, they are along the same line, so AA, BB, CC are collinear. (CC is on the other side of AA from BB.)
  8. The second is −2-2 times the first, so the lines are parallel. The direction cosines are (114,  214,  314)(\frac{1}{\sqrt{14}},\; \frac{2}{\sqrt{14}},\; \frac{3}{\sqrt{14}}) and (−114,  −214,  −314)(-\frac{1}{\sqrt{14}},\; -\frac{2}{\sqrt{14}},\; -\frac{3}{\sqrt{14}}), which are opposite in sign. The lines have the same direction line but opposite directions.

11.3 Equation of a Line in Space

263 words · 1 min read

On a flat page, a line has the equation y=mx+cy = mx + c. In space this does not work: one equation in xx, yy, zz describes a surface, not a line. We need another idea.

The idea is to imagine a moving point. Start at a known point AA and walk in a fixed direction b⃗\vec{b}. After "time" λ\lambda, you are at A+λb⃗A + \lambda\vec{b}. As λ\lambda takes every real value, forwards and backwards, you trace out the whole line. The letter λ\lambda is called the parameter.

The picture shows the line through A=(1,−1,2)A = (1, -1, 2) with direction b⃗=(2,1,1)\vec{b} = (2, 1, 1). The marked points are λ=−1,0,1,2\lambda = -1, 0, 1, 2.

The line through (1, −1, 2) with direction (2, 1, 1). Moving λ by 1 moves the point by one copy of the direction vector.

There are two common ways to fix a line in space:

  • a point on the line and a direction it is parallel to (Section 11.3.1);
  • two points on the line (also in Section 11.3.1: the direction is the vector joining them).
In simple words: a line in space is like a path. The point says where you start. The direction says where you are heading. The parameter says how far you have gone.

11.3.1 Equation of a line through a given point and parallel to a given vector

428 words · 2 min read

Let a line pass through the point AA with position vector a⃗\vec{a}, and be parallel to the vector b⃗\vec{b}. A general point PP on the line has position vector r⃗\vec{r}. The vector AP→\overrightarrow{AP} lies along the line, so it is a multiple of b⃗\vec{b}: AP→=λb⃗\overrightarrow{AP} = \lambda\vec{b}. Since r⃗=a⃗+AP→\vec{r} = \vec{a} + \overrightarrow{AP},

r⃗=a⃗+λb⃗,λ∈R.\vec{r} = \vec{a} + \lambda\vec{b}, \qquad \lambda \in \mathbb{R}.

This is the vector equation of the line. Different values of λ\lambda give different points. λ=0\lambda = 0 gives AA itself.

Write the vector equation of the line through A=(2,−1,3)A = (2, -1, 3) parallel to b⃗=i^+2j^−2k^\vec{b} = \hat{i} + 2\hat{j} - 2\hat{k}.

r⃗=(2i^−j^+3k^)+λ(i^+2j^−2k^)\vec{r} = (2\hat{i} - \hat{j} + 3\hat{k}) + \lambda(\hat{i} + 2\hat{j} - 2\hat{k})

For λ=2\lambda = 2 the point is (4,3,−1)(4, 3, -1). Does (5,5,−3)(5, 5, -3) lie on the line? We need a single λ\lambda that gives all three coordinates. The computer found λ=3\lambda = 3 works for (5,5,−3)(5, 5, -3), so yes. For (5,5,−2)(5, 5, -2) no single λ\lambda works, so it is not on the line.

To test a point: find λ\lambda from one coordinate, then check that the same λ\lambda fits the other two.

If the line passes through AA (position vector a⃗\vec{a}) and BB (position vector b⃗\vec{b}), its direction is AB→=b⃗−a⃗\overrightarrow{AB} = \vec{b} - \vec{a}. So

r⃗=a⃗+λ(b⃗−a⃗).\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}).

Here λ=0\lambda = 0 gives AA and λ=1\lambda = 1 gives BB. Values between 00 and 11 give points between AA and BB. For example λ=12\lambda = \frac{1}{2} gives the midpoint.

Find the vector equation of the line through T1=(1,0,2)T_1 = (1, 0, 2) and T2=(3,4,−2)T_2 = (3, 4, -2). The direction is T2−T1=(2,4,−4)T_2 - T_1 = (2, 4, -4). So r⃗=(i^+2k^)+λ(2i^+4j^−4k^)\vec{r} = (\hat{i} + 2\hat{k}) + \lambda(2\hat{i} + 4\hat{j} - 4\hat{k}). At λ=1\lambda = 1 we get T2T_2, and at λ=12\lambda = \frac{1}{2} we get the midpoint (2,2,0)(2, 2, 0) (the computer confirmed both).

Any multiple of a direction is also a direction. The vector (2,4,−4)(2, 4, -4) is 22 times (1,2,−2)(1, 2, -2). So the same line is also r⃗=(i^+2k^)+μ(i^+2j^−2k^)\vec{r} = (\hat{i} + 2\hat{k}) + \mu(\hat{i} + 2\hat{j} - 2\hat{k}). The parameter μ\mu is half as large: T2T_2 is now at μ=2\mu = 2.

Common mistake: writing r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b} with a⃗\vec{a} and b⃗\vec{b} the wrong way round, or forgetting that a⃗\vec{a} is a position (a point) and b⃗\vec{b} is a direction. The point goes first and does not get multiplied by λ\lambda.

Derivation of cartesian form from vector form

589 words · 3 min read

Let the line pass through A(x1,y1,z1)A(x_1, y_1, z_1) and have direction ratios a,b,ca, b, c. Write the general point as P(x,y,z)P(x, y, z). The vector equation r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b} says, component by component:

x=x1+λa,y=y1+λb,z=z1+λc.x = x_1 + \lambda a, \qquad y = y_1 + \lambda b, \qquad z = z_1 + \lambda c.

Solve each for λ\lambda: λ=x−x1a\lambda = \frac{x - x_1}{a}, λ=y−y1b\lambda = \frac{y - y_1}{b}, λ=z−z1c\lambda = \frac{z - z_1}{c}. All three are equal to the same λ\lambda, so

x−x1a=y−y1b=z−z1c.\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}.

This is the Cartesian form (or symmetric form). It describes the same line with no parameter. If you write direction cosines l,m,nl, m, n in the denominators, the line is the same, because (l,m,n)(l, m, n) is proportional to (a,b,c)(a, b, c).

Write the line r⃗=(3i^−j^+2k^)+λ(2i^+5j^−k^)\vec{r} = (3\hat{i} - \hat{j} + 2\hat{k}) + \lambda(2\hat{i} + 5\hat{j} - \hat{k}) in Cartesian form. The point is (3,−1,2)(3, -1, 2) and the direction ratios are (2,5,−1)(2, 5, -1). So

x−32=y+15=z−2−1.\dfrac{x - 3}{2} = \dfrac{y + 1}{5} = \dfrac{z - 2}{-1}.

Write x+13=y−2−2=z4\dfrac{x + 1}{3} = \dfrac{y - 2}{-2} = \dfrac{z}{4} as a vector equation. Read the point from the numerators (watch the signs): x−(−1)x - (-1) gives −1-1, y−2y - 2 gives 22, and zz gives 00. The direction ratios are the denominators (3,−2,4)(3, -2, 4). So r⃗=(−i^+2j^)+λ(3i^−2j^+4k^)\vec{r} = (-\hat{i} + 2\hat{j}) + \lambda(3\hat{i} - 2\hat{j} + 4\hat{k}). Check: for λ=1\lambda = 1 the point is (2,0,4)(2, 0, 4), and the computer confirmed it is on the line.

For the line through (1,0,2)(1, 0, 2) and (3,4,−2)(3, 4, -2) the direction ratios are (2,4,−4)(2, 4, -4), or after dividing by 22, (1,2,−2)(1, 2, -2). The Cartesian form is

x−11=y2=z−2−2.\dfrac{x - 1}{1} = \dfrac{y}{2} = \dfrac{z - 2}{-2}.

In general, the line through (x1,y1,z1)(x_1, y_1, z_1) and (x2,y2,z2)(x_2, y_2, z_2) is x−x1x2−x1=y−y1y2−y1=z−z1z2−z1\dfrac{x - x_1}{x_2 - x_1} = \dfrac{y - y_1}{y_2 - y_1} = \dfrac{z - z_1}{z_2 - z_1}.

Division by 00 is not allowed, so a zero in the denominator needs care. Take the line through (1,2,3)(1, 2, 3) with direction ratios (0,2,1)(0, 2, 1). The xx-component never changes: x=1x = 1 for every point. We still write the form in a compact way:

x−10=y−22=z−31.\frac{x - 1}{0} = \frac{y - 2}{2} = \frac{z - 3}{1}.

This is a notation that means: x−1=0x - 1 = 0, and y−22=z−31\frac{y - 2}{2} = \frac{z - 3}{1}. For example, (1,4,4)(1, 4, 4) is on this line (it is the point with λ=1\lambda = 1).

Common mistake: a sign error in the numerators. For a point such as (−1,2,0)(-1, 2, 0), the first fraction is x+1⋯\frac{x + 1}{\cdots}, not x−1⋯\frac{x - 1}{\cdots}. The numerator is xx minus the coordinate, so a negative coordinate becomes a plus.

  1. Write r⃗=(i^−2k^)+λ(3i^−j^+4k^)\vec{r} = (\hat{i} - 2\hat{k}) + \lambda(3\hat{i} - \hat{j} + 4\hat{k}) in Cartesian form.
  2. Write x−21=y+34=z−1−2\dfrac{x - 2}{1} = \dfrac{y + 3}{4} = \dfrac{z - 1}{-2} in vector form.

Answers

  1. x−13=y−1=z+24\dfrac{x - 1}{3} = \dfrac{y}{-1} = \dfrac{z + 2}{4}
  2. r⃗=(2i^−3j^+k^)+λ(i^+4j^−2k^)\vec{r} = (2\hat{i} - 3\hat{j} + \hat{k}) + \lambda(\hat{i} + 4\hat{j} - 2\hat{k})

11.4 Angle between Two Lines

581 words · 3 min read

Two lines in space may meet, or may pass each other without meeting (we call these skew lines). In both cases we can still speak of the angle between them. It is the angle between their directions. For skew lines, imagine sliding one line, without turning it, until it meets the other.

Suppose the lines are parallel to b⃗1\vec{b}_1 and b⃗2\vec{b}_2. From the dot product, b⃗1⋅b⃗2=∣b⃗1∣∣b⃗2∣cos⁡θ\vec{b}_1 \cdot \vec{b}_2 = |\vec{b}_1||\vec{b}_2|\cos\theta. Two lines always make two angles, θ\theta and 180°−θ180° - \theta. We take the acute one (at most 90°90°), so we use the absolute value:

cos⁡θ=∣b⃗1⋅b⃗2∣∣b⃗1∣ ∣b⃗2∣.\cos\theta = \frac{|\vec{b}_1 \cdot \vec{b}_2|}{|\vec{b}_1|\,|\vec{b}_2|}.

In terms of direction ratios (a1,b1,c1)(a_1, b_1, c_1) and (a2,b2,c2)(a_2, b_2, c_2):

cos⁡θ=∣a1a2+b1b2+c1c2∣a12+b12+c12 a22+b22+c22.\cos\theta = \frac{|a_1 a_2 + b_1 b_2 + c_1 c_2|}{\sqrt{a_1^2 + b_1^2 + c_1^2}\,\sqrt{a_2^2 + b_2^2 + c_2^2}}.

With direction cosines (l1,m1,n1)(l_1, m_1, n_1) and (l2,m2,n2)(l_2, m_2, n_2) the denominator is 11, so cos⁡θ=∣l1l2+m1m2+n1n2∣\cos\theta = |l_1 l_2 + m_1 m_2 + n_1 n_2|.

  • Perpendicular lines: a1a2+b1b2+c1c2=0a_1 a_2 + b_1 b_2 + c_1 c_2 = 0 (the dot product is zero).
  • Parallel lines: the direction ratios are proportional: a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}.

Find the angle between the lines with directions (1,2,2)(1, 2, 2) and (2,1,−2)(2, 1, -2). The dot product is 1⋅2+2⋅1+2⋅(−2)=01\cdot 2 + 2\cdot 1 + 2\cdot(-2) = 0. So the lines are perpendicular: θ=90°\theta = 90°.

Directions (1,1,0)(1, 1, 0) and (0,1,1)(0, 1, 1). The dot product is 11, and both lengths are 2\sqrt{2}. So cos⁡θ=122=12\cos\theta = \dfrac{1}{\sqrt{2}\sqrt{2}} = \dfrac{1}{2} and θ=60°\theta = 60°.

Two lines through the origin with directions (1, 1, 0) and (0, 1, 1). The angle between them is 60°.

Find the angle between the lines x−12=y+3−1=z−42\dfrac{x - 1}{2} = \dfrac{y + 3}{-1} = \dfrac{z - 4}{2} and x1=y−12=z+22\dfrac{x}{1} = \dfrac{y - 1}{2} = \dfrac{z + 2}{2}. Read the direction ratios from the denominators: (2,−1,2)(2, -1, 2) and (1,2,2)(1, 2, 2). Then b⃗1⋅b⃗2=4\vec{b}_1\cdot\vec{b}_2 = 4 and both lengths are 9=3\sqrt{9} = 3. So cos⁡θ=43⋅3=49\cos\theta = \dfrac{4}{3 \cdot 3} = \dfrac{4}{9} and θ≈63.61°\theta \approx 63.61°.

Take b⃗1=(1,0,0)\vec{b}_1 = (1, 0, 0) and b⃗2=(−1,1,0)\vec{b}_2 = (-1, 1, 0). The dot product is −1-1, which is negative. Without the absolute value, cos⁡θ=−12\cos\theta = -\dfrac{1}{\sqrt{2}} would give 135°135°. That is the angle between the vectors, but the angle between the lines is the acute one: cos⁡θ=221\cos\theta = \dfrac{\frac{\sqrt{2}}{2}}{1}, so θ=45°\theta = 45°.

Parallel lines have angle 0°0°: for directions (2,−4,6)(2, -4, 6) and (−1,2,−3)(-1, 2, -3) the angle is 0°0°, and the first is −2-2 times the second.

Common mistake: forgetting the absolute value and reporting an obtuse angle. The angle between two lines is always between 0°0° and 90°90°.
Skew lines too: the angle formula only uses the directions, so it works for lines that never meet. Two skew lines can even be perpendicular, for example a vertical pole and a horizontal wire that passes beside it.

11.5 Shortest Distance between Two Lines

227 words · 1 min read

Two pipes run past each other in a building. You want to join them with the shortest possible rod. Where should the rod go, and how long is it?

Take any point on the first line and any point on the second line. The distance between them depends on which points you choose. Among all such pairs there is a smallest distance. That is the shortest distance between the lines. It is measured along the segment that is perpendicular to both lines (the common perpendicular).

There are three situations. The method depends on which one you have.

The lines are ...Shortest distanceHow to tell
intersecting (they meet at a point)00the same point satisfies both equations
parallelthe length of a perpendicular from a point of one line to the otherdirection ratios are proportional
skew (not parallel, never meet)the length of the common perpendiculardirections not proportional, and the lines do not meet

In Section 11.5.1 you will find the distance between skew lines. In Section 11.5.2 you will find the distance between parallel lines.

Memory aid: "skew" means neither parallel nor meeting. In a flat plane, that cannot happen (two lines in a plane either meet or are parallel). It is a special feature of three dimensions.

11.5.1 Distance between two skew lines

488 words · 2 min read

Let the skew lines be r⃗=a⃗1+λb⃗1\vec{r} = \vec{a}_1 + \lambda\vec{b}_1 and r⃗=a⃗2+μb⃗2\vec{r} = \vec{a}_2 + \mu\vec{b}_2. We look for the common perpendicular. A direction that is perpendicular to both b⃗1\vec{b}_1 and b⃗2\vec{b}_2 is their cross product n⃗=b⃗1×b⃗2\vec{n} = \vec{b}_1 \times \vec{b}_2. (It is not zero, because skew lines are not parallel.)

Join a point A1A_1 on the first line to a point A2A_2 on the second line. The vector is A1A2→=a⃗2−a⃗1\overrightarrow{A_1A_2} = \vec{a}_2 - \vec{a}_1. The shortest distance is how much of this vector points along n⃗\vec{n}, because the common perpendicular is parallel to n⃗\vec{n}. That is the length of the projection of a⃗2−a⃗1\vec{a}_2 - \vec{a}_1 on n⃗\vec{n}:

d=∣(a⃗2−a⃗1)⋅(b⃗1×b⃗2)∣∣b⃗1×b⃗2∣.d = \frac{\left|(\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2)\right|}{\left|\vec{b}_1 \times \vec{b}_2\right|}.

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

  1. The directions are not proportional, so the lines are not parallel.
  2. b⃗1×b⃗2=(1,1,−2)\vec{b}_1 \times \vec{b}_2 = (1, 1, -2), and ∣b⃗1×b⃗2∣2=6|\vec{b}_1 \times \vec{b}_2|^2 = 6.
  3. a⃗2−a⃗1=(1,3,−1)\vec{a}_2 - \vec{a}_1 = (1, 3, -1), so (a⃗2−a⃗1)⋅(b⃗1×b⃗2)=6(\vec{a}_2 - \vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2) = 6.
  4. d=66=6≈2.4495d = \dfrac{6}{\sqrt{6}} = \sqrt{6} \approx 2.4495.

The computer also found the two feet of the common perpendicular, by solving for the closest points: they are P=(2,1,3)P = (2, 1, 3) on the first line (λ=1\lambda = 1) and Q=(3,2,1)Q = (3, 2, 1) on the second line (μ=1\mu = 1). The segment PQ=(1,1,−2)PQ = (1, 1, -2) is perpendicular to both directions (both dot products are 00), and its length is 6\sqrt{6}, the same as the formula gave.

Two skew lines and their common perpendicular PQ (dashed). Its length is √6 ≈ 2.45. Drag to rotate and look along the lines.

When (a⃗2−a⃗1)⋅(b⃗1×b⃗2)=0(\vec{a}_2 - \vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2) = 0, the shortest distance is 00. The two lines and the connecting vector lie in one plane (they are coplanar), so the lines intersect (or are parallel). Example: r⃗=λ(i^+j^)\vec{r} = \lambda(\hat{i} + \hat{j}) and r⃗=(2i^)+μ(j^)\vec{r} = (2\hat{i}) + \mu(\hat{j}). The triple product is 00, so d=0d = 0. They meet at (2,2,0)(2, 2, 0) (found for λ=2\lambda = 2, μ=2\mu = 2).

In simple words: the cross product b⃗1×b⃗2\vec{b}_1 \times \vec{b}_2 points in the direction of the shortest rod. The distance is how far apart the lines are measured along that direction.

Cartesian form

361 words · 2 min read

Suppose the lines are given as x−x1a1=y−y1b1=z−z1c1\dfrac{x - x_1}{a_1} = \dfrac{y - y_1}{b_1} = \dfrac{z - z_1}{c_1} and x−x2a2=y−y2b2=z−z2c2\dfrac{x - x_2}{a_2} = \dfrac{y - y_2}{b_2} = \dfrac{z - z_2}{c_2}. Then a⃗2−a⃗1=(x2−x1,y2−y1,z2−z1)\vec{a}_2 - \vec{a}_1 = (x_2 - x_1, y_2 - y_1, z_2 - z_1), and the cross product is b⃗1×b⃗2=(b1c2−b2c1,  c1a2−c2a1,  a1b2−a2b1)\vec{b}_1 \times \vec{b}_2 = (b_1 c_2 - b_2 c_1,\; c_1 a_2 - c_2 a_1,\; a_1 b_2 - a_2 b_1). The top of the fraction is a determinant:

d=∣∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣∣(b1c2−b2c1)2+(c1a2−c2a1)2+(a1b2−a2b1)2d = \frac{\left|\begin{vmatrix} x_2 - x_1 & y_2 - y_1 & z_2 - z_1 \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix}\right|}{\sqrt{(b_1 c_2 - b_2 c_1)^2 + (c_1 a_2 - c_2 a_1)^2 + (a_1 b_2 - a_2 b_1)^2}}

Find the shortest distance between x+13=y−11=z−22\dfrac{x + 1}{3} = \dfrac{y - 1}{1} = \dfrac{z - 2}{2} and x−21=y+12=z1\dfrac{x - 2}{1} = \dfrac{y + 1}{2} = \dfrac{z}{1}.

  1. Points: (−1,1,2)(-1, 1, 2) and (2,−1,0)(2, -1, 0), so (x2−x1,y2−y1,z2−z1)=(3,−2,−2)(x_2 - x_1, y_2 - y_1, z_2 - z_1) = (3, -2, -2). Directions: (3,1,2)(3, 1, 2) and (1,2,1)(1, 2, 1).
  2. The determinant is ∣3−2−2312121∣=−17\begin{vmatrix} 3 & -2 & -2 \\ 3 & 1 & 2 \\ 1 & 2 & 1 \end{vmatrix} = -17.
  3. The cross product is (−3,−1,5)(-3, -1, 5), and the sum of squares of its components is 3535.
  4. d=∣−17∣35=1735≈2.8735d = \dfrac{|-17|}{\sqrt{35}} = \dfrac{17}{\sqrt{35}} \approx 2.8735.

The determinant is not zero, and the directions are not proportional, so the lines are skew and this distance is correct.

Common mistake: a sign slip in a determinant. Only the absolute value matters for the distance, but an error in one term changes the size. Compute the cross product separately as a check: the determinant should equal (a⃗2−a⃗1)⋅(b⃗1×b⃗2)(\vec{a}_2 - \vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2), which here is −17-17.

11.5.2 Distance between parallel lines

451 words · 2 min read

Let the lines be r⃗=a⃗1+λb⃗\vec{r} = \vec{a}_1 + \lambda\vec{b} and r⃗=a⃗2+μb⃗\vec{r} = \vec{a}_2 + \mu\vec{b}. They have the same direction b⃗\vec{b}. The distance between two parallel lines is the same everywhere. It is the length of the perpendicular from any point of one line to the other line.

Take A1A_1 on the first line and A2A_2 on the second, and let w⃗=a⃗2−a⃗1\vec{w} = \vec{a}_2 - \vec{a}_1. The vectors b⃗\vec{b} and w⃗\vec{w} make a parallelogram. Its area is ∣b⃗×w⃗∣|\vec{b} \times \vec{w}| (base times height). The base is ∣b⃗∣|\vec{b}|, and the height is exactly the distance dd between the lines. So ∣b⃗∣⋅d=∣b⃗×w⃗∣|\vec{b}|\cdot d = |\vec{b} \times \vec{w}|, that is

d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣.d = \frac{\left|\vec{b} \times (\vec{a}_2 - \vec{a}_1)\right|}{\left|\vec{b}\right|}.

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

  1. a⃗2−a⃗1=(2,−2,2)\vec{a}_2 - \vec{a}_1 = (2, -2, 2).
  2. b⃗×(a⃗2−a⃗1)=(6,0,−6)\vec{b} \times (\vec{a}_2 - \vec{a}_1) = (6, 0, -6), with squared length 7272. Also ∣b⃗∣2=9|\vec{b}|^2 = 9.
  3. d=729=8=22≈2.8284d = \sqrt{\dfrac{72}{9}} = \sqrt{8} = 2\sqrt{2} \approx 2.8284.

The foot of the perpendicular from A2=(3,0,1)A_2 = (3, 0, 1) to the first line is at λ=2/3\lambda = 2/3, that is (73,83,13)(\frac{7}{3}, \frac{8}{3}, \frac{1}{3}). Its distance from A2A_2 is 8\sqrt{8}, as found.

Two parallel lines. The dashed segment is the perpendicular between them; it has length √8 ≈ 2.83 wherever you draw it.

A point is a "line of zero length", so the same idea gives the distance from a point to a line. Find the distance from P=(3,1,−2)P = (3, 1, -2) to the line through A=(0,1,1)A = (0, 1, 1) with direction (2,2,1)(2, 2, 1). Here AP→=(3,0,−3)\overrightarrow{AP} = (3, 0, -3) and AP→×d⃗=(6,−9,6)\overrightarrow{AP} \times \vec{d} = (6, -9, 6). The distance is 1539=17≈4.1231\sqrt{\dfrac{153}{9}} = \sqrt{17} \approx 4.1231. The foot of the perpendicular is at t=1/3t = 1/3, that is (23,53,43)(\frac{2}{3}, \frac{5}{3}, \frac{4}{3}).

Common mistake: using the skew-lines formula for parallel lines. For parallel lines b⃗1×b⃗2=0⃗\vec{b}_1 \times \vec{b}_2 = \vec{0}, so you would divide by zero. Always check first whether the direction ratios are proportional.

EXERCISE 11.2

632 words · 3 min read
  1. Find the angle between the lines with direction ratios (1,−1,2)(1, -1, 2) and (2,1,−1)(2, 1, -1).
  2. Show that the lines x−32=y+12=z1\dfrac{x - 3}{2} = \dfrac{y + 1}{2} = \dfrac{z}{1} and x1=y−2−2=z+12\dfrac{x}{1} = \dfrac{y - 2}{-2} = \dfrac{z + 1}{2} are perpendicular.
  3. Find kk so that the lines with direction ratios (k,3,2)(k, 3, 2) and (3,k,−3)(3, k, -3) are perpendicular.
  4. Write r⃗=(−3i^+5k^)+λ(2i^−j^+3k^)\vec{r} = (-3\hat{i} + 5\hat{k}) + \lambda(2\hat{i} - \hat{j} + 3\hat{k}) in Cartesian form. Then write x−43=y+25=z−1−2\dfrac{x - 4}{3} = \dfrac{y + 2}{5} = \dfrac{z - 1}{-2} in vector form.
  5. Find the shortest distance between r⃗=(k^)+λ(i^+j^)\vec{r} = (\hat{k}) + \lambda(\hat{i} + \hat{j}) and r⃗=(i^)+μ(j^+k^)\vec{r} = (\hat{i}) + \mu(\hat{j} + \hat{k}). Do the lines meet?
  6. Find the shortest distance between r⃗=(j^)+λ(i^+k^)\vec{r} = (\hat{j}) + \lambda(\hat{i} + \hat{k}) and r⃗=(2i^+k^)+μ(j^−k^)\vec{r} = (2\hat{i} + \hat{k}) + \mu(\hat{j} - \hat{k}).
  7. Find the distance between the parallel lines r⃗=(i^)+λ(i^+j^+k^)\vec{r} = (\hat{i}) + \lambda(\hat{i} + \hat{j} + \hat{k}) and r⃗=(2j^)+μ(i^+j^+k^)\vec{r} = (2\hat{j}) + \mu(\hat{i} + \hat{j} + \hat{k}).
  8. Find the distance of the point (1,1,1)(1, 1, 1) from the line through the origin along the zz-axis.
  9. Are the lines with direction ratios (2,−4,6)(2, -4, 6) and (−1,2,−3)(-1, 2, -3) parallel? What are their direction cosines?
  10. Show that the lines r⃗=(i^+2j^+3k^)+λ(i^+j^+k^)\vec{r} = (\hat{i} + 2\hat{j} + 3\hat{k}) + \lambda(\hat{i} + \hat{j} + \hat{k}) and r⃗=(2i^+3j^+4k^)+μ(i^+2j^+3k^)\vec{r} = (2\hat{i} + 3\hat{j} + 4\hat{k}) + \mu(\hat{i} + 2\hat{j} + 3\hat{k}) meet, and find the point.

Answers

  1. The dot product is −1-1, and both lengths are 6\sqrt{6}. Using the absolute value, cos⁡θ=16\cos\theta = \dfrac{1}{6}, so θ≈80.41°\theta \approx 80.41°.
  2. The directions are (2,2,1)(2, 2, 1) and (1,−2,2)(1, -2, 2). The dot product is 2−4+2=02 - 4 + 2 = 0, so the lines are perpendicular.
  3. The dot product is 3k+3k−6=6k−63k + 3k - 6 = 6k - 6. It is zero when k=1k = 1. Check: (1,3,2)⋅(3,1,−3)=0(1, 3, 2)\cdot(3, 1, -3) = 0. (For example, k=2k = 2 would give 66.)
  4. First: x+32=y−1=z−53\dfrac{x + 3}{2} = \dfrac{y}{-1} = \dfrac{z - 5}{3}. (For λ=1\lambda = 1 the point (−1,−1,8)(-1, -1, 8) is on the line.) Second: the point is (4,−2,1)(4, -2, 1) and the direction is (3,5,−2)(3, 5, -2), so r⃗=(4i^−2j^+k^)+μ(3i^+5j^−2k^)\vec{r} = (4\hat{i} - 2\hat{j} + \hat{k}) + \mu(3\hat{i} + 5\hat{j} - 2\hat{k}).
  5. b⃗1×b⃗2=(1,−1,1)\vec{b}_1 \times \vec{b}_2 = (1, -1, 1) and a⃗2−a⃗1=(1,0,−1)\vec{a}_2 - \vec{a}_1 = (1, 0, -1). The dot product is 00, so the distance is 00. The lines meet, at (1,1,1)(1, 1, 1) (λ=1\lambda = 1, μ=1\mu = 1).
  6. b⃗1×b⃗2=(−1,1,1)\vec{b}_1 \times \vec{b}_2 = (-1, 1, 1), with squared length 33. a⃗2−a⃗1=(2,−1,1)\vec{a}_2 - \vec{a}_1 = (2, -1, 1), and the dot product is −2-2. So d=23=233≈1.1547d = \dfrac{2}{\sqrt{3}} = \frac{2\sqrt{3}}{3} \approx 1.1547.
  7. a⃗2−a⃗1=(−1,2,0)\vec{a}_2 - \vec{a}_1 = (-1, 2, 0). The cross product b⃗×(a⃗2−a⃗1)=(−2,−1,3)\vec{b} \times (\vec{a}_2 - \vec{a}_1) = (-2, -1, 3) has squared length 1414, and ∣b⃗∣2=3|\vec{b}|^2 = 3. So d=14/31=423≈2.1602d = \sqrt{\dfrac{14/3}{1}} = \frac{\sqrt{42}}{3} \approx 2.1602.
  8. The direction is (0,0,1)(0, 0, 1). OP→×d⃗=(1,−1,0)\overrightarrow{OP} \times \vec{d} = (1, -1, 0), with squared length 22, and ∣d⃗∣2=1|\vec{d}|^2 = 1. So d=2≈1.4142d = \sqrt{2} \approx 1.4142. (The zz-coordinate does not matter: only the sideways distance 12+12\sqrt{1^2 + 1^2} counts.)
  9. The first is −2-2 times the second, so they are parallel. Direction cosines: (114,  −214,  314)(\frac{1}{\sqrt{14}},\; -\frac{2}{\sqrt{14}},\; \frac{3}{\sqrt{14}}) and (−114,  214,  −314)(-\frac{1}{\sqrt{14}},\; \frac{2}{\sqrt{14}},\; -\frac{3}{\sqrt{14}}), which are opposite in sign.
  10. Comparing coordinates gives λ−μ=1\lambda - \mu = 1 and λ−2μ=1\lambda - 2\mu = 1 (the xx and yy equations), so μ=0\mu = 0 and λ=1\lambda = 1. The zz equation 3+λ=4+3μ3 + \lambda = 4 + 3\mu holds (4=44 = 4). The lines meet at (2,3,4)(2, 3, 4).

Miscellaneous Exercise on Chapter 11

339 words · 2 min read
  1. Show that the lines with direction ratios (2,3,6)(2, 3, 6) and (3,−6,2)(3, -6, 2) are perpendicular.
  2. Find the angle between the xx-axis and the line through the origin and (1,1,1)(1, 1, 1).
  3. A unit cube has corners at (0,0,0)(0, 0, 0) and (1,1,1)(1, 1, 1). Two of its long (body) diagonals go from (0,0,0)(0, 0, 0) to (1,1,1)(1, 1, 1) and from (0,0,1)(0, 0, 1) to (1,1,0)(1, 1, 0). Find the angle between them.
  4. In the same unit cube, find the shortest distance between the body diagonal through (0,0,0)(0, 0, 0) and (1,1,1)(1, 1, 1) and the edge from (1,0,0)(1, 0, 0) to (1,1,0)(1, 1, 0).
  5. Show that the points A(1,1,1)A(1, 1, 1), B(2,3,1)B(2, 3, 1), C(4,2,1)C(4, 2, 1) form a right-angled triangle, and say where the right angle is.
  6. Two straight pipes both run in the direction of the zz-axis. One passes through the point (0,0,0)(0, 0, 0) and the other through (4,3,0)(4, 3, 0). How far apart are they?

Answers

  1. 2⋅3+3⋅(−6)+6⋅2=6−18+12=02\cdot 3 + 3\cdot(-6) + 6\cdot 2 = 6 - 18 + 12 = 0, so they are perpendicular.
  2. The xx-axis has direction (1,0,0)(1, 0, 0). cos⁡θ=113=13\cos\theta = \dfrac{1}{\sqrt{1}\sqrt{3}} = \dfrac{1}{\sqrt{3}}, so θ≈54.74°\theta \approx 54.74°. This is the same 54.74°54.74° as for equal angles in Section 11.2.
  3. The directions are (1,1,1)(1, 1, 1) and (1,1,−1)(1, 1, -1). The dot product is 11, and both lengths are 3\sqrt{3}. So cos⁡θ=13\cos\theta = \dfrac{1}{3} and θ≈70.53°\theta \approx 70.53°.
  4. The diagonal has direction (1,1,1)(1, 1, 1) through the origin. The edge has direction (0,1,0)(0, 1, 0) through (1,0,0)(1, 0, 0). The cross product is (−1,0,1)(-1, 0, 1), with squared length 22. The dot product with (1,0,0)(1, 0, 0) is −1-1. So d=12=22≈0.7071d = \dfrac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2} \approx 0.7071.
  5. BA→=(−1,−2,0)\overrightarrow{BA} = (-1, -2, 0) and BC→=(2,−1,0)\overrightarrow{BC} = (2, -1, 0). Their dot product is 00, so the angle at BB is 90°90°. (Both sides have length 5\sqrt{5}, so it is also isosceles.)
  6. For parallel lines, d=25=5d = \sqrt{25} = 5. This is the distance 42+32=5\sqrt{4^2 + 3^2} = 5 between the two points in the floor plane.

Summary

246 words · 1 min read
  • Direction cosines of a directed line: l=cos⁡αl = \cos\alpha, m=cos⁡βm = \cos\beta, n=cos⁡γn = \cos\gamma, with l2+m2+n2=1l^2 + m^2 + n^2 = 1. Reversing the direction changes all three signs.
  • Direction ratios a,b,ca, b, c are any numbers proportional to l,m,nl, m, n. Then l=aa2+b2+c2l = \dfrac{a}{\sqrt{a^2 + b^2 + c^2}}, and similarly for mm and nn.
  • Through two points: the direction ratios are x2−x1,  y2−y1,  z2−z1x_2 - x_1,\; y_2 - y_1,\; z_2 - z_1. Three points are collinear when two such vectors are proportional.
  • Vector equation: r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b} (point a⃗\vec{a}, direction b⃗\vec{b}). Through two points: r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}).
  • Cartesian form: x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}. Through two points: use x2−x1x_2 - x_1, y2−y1y_2 - y_1, z2−z1z_2 - z_1 as the denominators.
  • Angle between lines: cos⁡θ=∣b⃗1⋅b⃗2∣∣b⃗1∣∣b⃗2∣\cos\theta = \dfrac{|\vec{b}_1\cdot\vec{b}_2|}{|\vec{b}_1||\vec{b}_2|} (always acute). Perpendicular: a1a2+b1b2+c1c2=0a_1a_2 + b_1b_2 + c_1c_2 = 0. Parallel: ratios proportional.
  • Skew lines: d=∣(a⃗2−a⃗1)⋅(b⃗1×b⃗2)∣∣b⃗1×b⃗2∣d = \dfrac{|(\vec{a}_2 - \vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2)|}{|\vec{b}_1 \times \vec{b}_2|}. If the top is 00, the lines meet. In Cartesian form the top is a 3×33 \times 3 determinant.
  • Parallel lines: d=∣b⃗×(a⃗2−a⃗1)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a}_2 - \vec{a}_1)|}{|\vec{b}|}. The same formula gives the distance from a point to a line.
Up next
Continue to the next chapter