←
Class 12 Mathematics
11. Three-Dimensional Geometry · 11 / 13
⌕
Chapter 11 of 13

11. Three-Dimensional Geometry

9 sections · 13,980 words

11.1 Chapter Opener: Introduction and Spatial Coordinates

1,108 words · 5 min read

Chapter 11

Three Dimensional Geometry

Big idea: a point tells you where you are, a direction tells you where you are heading, and together they fix every straight line in space.

Stand in the corner of a room. Three edges meet there: one runs left to right, one runs front to back, and one runs straight up. Every object in the room can be located with three numbers, one along each edge.

Now watch a flight path on a screen. The plane moves forward, drifts sideways in wind, and climbs all at the same time. Its path is a straight line in space. To describe it, you need a starting point and the direction of travel. Nothing else is needed.

A room corner works like a 3D grid. The point P (2, 3, 4) is 2 steps along x, 3 along y and 4 up along z. Drag to rotate.

Read the figure like this. Start at the corner O. Walk 2 steps along the x edge and 3 along the y edge to reach the floor point (2, 3, 0). Then rise 4 steps straight up to P. Every point in space is found the same way: two steps on the floor, one step up.

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, even when they never meet;
  • the shortest distance between two lines, whether they are skew or parallel.

A line needs only a point and a direction. Everything else in this chapter follows from that.

How to use this chapter: read each worked example with paper and pencil. Cover the solution, try one step, then compare. Small steps done by hand beat fast reading.

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 point needs only two coordinates. In space, every point needs three: (x,y,z)(x, y, z).

Think of the room corner again. The first two numbers walk you across the floor. The third number lifts you up. A drone pilot reads the same three numbers: how far east, how far north, and how high.

In Class 11 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}.

Why does this work? The three brackets are the steps along the three axes. They form a box with AB as its long diagonal. The formula is just Pythagoras applied twice: once on the floor, once upward.

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.

Notice the order. First subtract matching coordinates. Then square each step. Then add. Then take the square root. Never take the root before adding.

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

Read the figure slowly. Find A near the corner and B further out. The segment between them is the drone path. Its shadow on the floor runs 2 steps in x and 2 in y. Then it rises 1 step in z. The three numbers 4, 4 and 1 under the root are the squares of these steps.

Join the corner O=(0,0,0)O = (0, 0, 0) to D=(1,2,2)D = (1, 2, 2). The steps are (1,2,2)(1, 2, 2). So OD=1+4+4=9=3OD = \sqrt{1 + 4 + 4} = \sqrt{9} = 3. A point can sit exactly 3 units from the corner in many directions. Distance cares only about the steps, not about where the segment sits.

Take E=(2,0,1)E = (2, 0, 1) and F=(5,4,1)F = (5, 4, 1). The steps are (3,4,0)(3, 4, 0). So EF=9+16+0=25=5EF = \sqrt{9 + 16 + 0} = \sqrt{25} = 5. The zz-step is 00, so both ends are at the same height. The segment is flat, and the familiar 3-4-5 triangle appears.

From 2D (flat page)To 3D (space)
a point needs (x,y)(x, y)a point needs (x,y,z)(x, y, z)
distance uses two squaresdistance uses three squares
one equation can fix a lineone equation fixes a surface, not a line

The last row matters most. On paper, y=2x+1y = 2x + 1 draws a line. In space, y=2x+1y = 2x + 1 allows any zz, so it draws a whole flat sheet. Lines in space need a new idea, and Section 11.3 gives it: a point plus a direction.

Distance in space is Pythagoras with three steps instead of two.

Common mistake: adding the steps before squaring. The wrong way gives (2+2+1)2=5\sqrt{(2 + 2 + 1)^2} = 5. The right way squares first: 4+4+1=3\sqrt{4 + 4 + 1} = 3. Square each step on its own.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the distance between the origin and (1,2,2)(1, 2, 2).
Try answering before revealing!
Question 2
[Board Standard] Find the distance between (2,0,1)(2, 0, 1) and (5,4,1)(5, 4, 1).
Try answering before revealing!
Question 3
[HOTS] A student says the distance between (1,1,1)(1, 1, 1) and (2,2,2)(2, 2, 2) is 1+1+1=31 + 1 + 1 = 3. What is wrong?
Try answering before revealing!
Keep this picture of steps along axes in mind. Direction cosines in the next section are built from exactly these steps.

11.2 Direction Cosines and Direction Ratios of a Line

3,521 words · 16 min read

A tent pole leans against a wall. It leans a little away from the floor in one direction, a little in another, and rises mostly upward. Three small angles describe the lean completely. Direction cosines are just the cosines of those three angles.

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 directed line means a line with a chosen forward direction, like a one-way street. The same street driven the other way has different direction cosines. An undirected line has two sets, one the negative of the other.

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. Use this test before trusting any triple.

Why is it true? Place a unit arrow along the line. Its tip is at some point (l,m,n)(l, m, n), because each coordinate is the shadow of a unit arrow on that axis. The distance from the origin to the tip is 11. By the distance formula, l2+m2+n2=12=1l^2 + m^2 + n^2 = 1^2 = 1.

==Direction cosines always satisfy l² + m² + n² = 1.==

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}}.

To go from ratios to cosines, divide by the length. To go from cosines to ratios, clear the denominators. Either direction is one step.

Direction cosines (l,m,n)(l, m, n)Direction ratios (a,b,c)(a, b, c)
unique for a directed linemany sets fit one line: scale freely
always satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1satisfy it only after dividing by length
may carry square rootsoften plain integers
read angles directly: α=cos⁡−1l\alpha = \cos^{-1} lgive direction at a glance
  • [Board Standard] 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).
  • [HOTS] 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}. First compute the squared length: a2+b2+c2=4+1+4=9a^2 + b^2 + c^2 = 4 + 1 + 4 = 9. So the length is 9=3\sqrt{9} = 3. Divide each ratio by this length.

The direction cosines are (23,  −13,  23)(\frac{2}{3},\; -\frac{1}{3},\; \frac{2}{3}). Check the sum of squares: 4+1+49=1\frac{4 + 1 + 4}{9} = 1. The check passes.

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 negative middle cosine gives an obtuse angle, past 90°90°.

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.

Read the figure in layers. The orange arrow is the vector. The dashed drop to the floor separates the upward part (z = 2) from the flat part. The two short dashes split the flat part into an x-step of 2 and a y-step of −1. Squaring these three steps gives 4, 1 and 4, the same numbers under the root.

Floor plan of the vector (2, −1, 2): hide z and the shadow runs from (0, 0) to (2, −1). Direction ratios project the same way.

The flat graph hides height on purpose. It shows only the floor shadow, 2 along x and −1 along y. The full vector adds the rise of 2. Shadows like this return in Section 11.5, where distances are measured along perpendiculars.

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).

Picture a stick poking out of a room corner so it leans equally from all three edges. That is the (1, 1, 1) direction. Flipping the stick end over end gives (−1, −1, −1) and the wider angle.

Find the direction cosines for ratios (1,2,2)(1, 2, 2). The squared length is 1+4+4=91 + 4 + 4 = 9, so the length is 33. The cosines are (13,  23,  23)(\frac{1}{3},\; \frac{2}{3},\; \frac{2}{3}). The angles are about 70.53°70.53°, 48.19°48.19° and 48.19°48.19°. Check: 19+49+49=1\frac{1}{9} + \frac{4}{9} + \frac{4}{9} = 1, so the triple is valid.

A second set: ratios (6,2,3)(6, 2, 3). Here a2+b2+c2=36+4+9=49a^2 + b^2 + c^2 = 36 + 4 + 9 = 49, so the length is 77. The cosines are (67,  27,  37)(\frac{6}{7},\; \frac{2}{7},\; \frac{3}{7}), and the triple is valid since the squares sum to 11. The angles are about 31°31°, 73.4°73.4° and 64.62°64.62°. Larger first ratio means a smaller angle with the xx-axis, and indeed 31°31° is the smallest of the three.

Direction ratiosa2+b2+c2a^2 + b^2 + c^2Direction cosines
(1,2,2)(1, 2, 2)99(13,  23,  23)(\frac{1}{3},\; \frac{2}{3},\; \frac{2}{3})
(3,−4,0)(3, -4, 0)2525(35,  −45,  0)(\frac{3}{5},\; -\frac{4}{5},\; 0)
(2,−3,6)(2, -3, 6)4949(27,  −37,  67)(\frac{2}{7},\; -\frac{3}{7},\; \frac{6}{7})
(1,2,3)(1, 2, 3)1414(114,  214,  314)(\frac{1}{\sqrt{14}},\; \frac{2}{\sqrt{14}},\; \frac{3}{\sqrt{14}})
(1,1,1)(1, 1, 1)33(13,  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.

Reversing a line flips every direction cosine sign and sends each angle α to 180° − α.

Common mistake: treating direction ratios as direction cosines. The ratios (2,−1,2)(2, -1, 2) give 4+1+4=94 + 1 + 4 = 9, not 11. You must divide by the length a2+b2+c2\sqrt{a^2 + b^2 + c^2} first.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the direction cosines of the line with direction ratios (1,2,2)(1, 2, 2).
Try answering before revealing!
Question 2
[Board Standard] 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?
Try answering before revealing!
Question 3
[HOTS] Find the direction cosines for ratios (6,2,3)(6, 2, 3), and name the angle with the xx-axis.
Try answering before revealing!

Two waypoints fix a flight path. The plane flies from the first to the second, so the direction is simply second minus first. That subtraction is the whole method of this section.

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).

Two points give direction ratios by subtraction: second minus first, coordinate by coordinate.

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). The squared length is 4+4+1=94 + 4 + 1 = 9, so the length is 9=3\sqrt{9} = 3. 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. An exact root beats a rounded decimal.

For P=(0,0,0)P = (0, 0, 0) and Q=(2,1,2)Q = (2, 1, 2) the steps are just the coordinates of QQ: (2,1,2)(2, 1, 2). The length is 9=3\sqrt{9} = 3. So the cosines are (23,  13,  23)(\frac{2}{3},\; \frac{1}{3},\; \frac{2}{3}), with angles about 48.19°48.19°, 70.53°70.53° and 48.19°48.19°. When a line passes through the origin, its points already are its direction.

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

Walk the dashed staircase. First 1 step in x, then 2 in y, then 3 up in z. You land exactly on Q. Each stair length is one direction ratio. Dividing each by the total length √14 turns the three stairs into the three direction cosines.

Floor plan of Example 2: hide z and the path runs from (0, 1) to (1, 3). The z-step of 3 is the height gained above this plan.

The floor plan is drawn with two line pieces to match the staircase: the x-step first, then the y-step. Pilots call this the ground track. The z-step is flown on top of it.

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.

Question to askWhat to computeDecision
are A,B,CA, B, C collinear?vectors AB→\overrightarrow{AB} and AC→\overrightarrow{AC}proportional means yes
which side is CC on?sign of the multiplierpositive means same side, negative means opposite
how far is CC?size of the multiplier33 means three times as far as BB

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.

Common mistake: subtracting in mixed order, like x2−x1x_2 - x_1 but y1−y2y_1 - y_2. Always use second minus first for all three coordinates. Mixed order points the arrow the wrong way.
Your turn: pick any two points with small whole-number coordinates and find their direction cosines. Then swap the points and watch every cosine change sign.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the direction ratios of the line through (0,0,0)(0, 0, 0) and (2,1,2)(2, 1, 2).
Try answering before revealing!
Question 2
[Board Standard] Find the direction cosines of the line through (1,0,2)(1, 0, 2) and (3,2,3)(3, 2, 3).
Try answering before revealing!
Question 3
[HOTS] Are (0,0,0)(0, 0, 0), (1,1,1)(1, 1, 1) and (2,2,3)(2, 2, 3) collinear? Explain.
Try answering before revealing!

This set covers Sections 11.1 and 11.2. Keep the two tests beside you: length =a2+b2+c2= \sqrt{a^2 + b^2 + c^2}, and cosines must satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1.

If the question gives ...First compute ...Then ...
a vector or ratios (a,b,c)(a, b, c)N=a2+b2+c2N = a^2 + b^2 + c^2divide by N\sqrt{N}
two points P,QP, Qsteps Q−PQ - Pdivide by the step length
angles with two axesn2=1−l2−m2n^2 = 1 - l^2 - m^2n=±n2n = \pm\sqrt{n^2}
three pointsAB→,AC→\overrightarrow{AB}, \overrightarrow{AC}check proportion

⚡ Quick Check Flashcards19 questions
Question 1
[Concept] Write the direction cosines of the xx-axis, the yy-axis and the zz-axis.
Try answering before revealing!
Question 2
[Concept] 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.
Try answering before revealing!
Question 3
[Concept] Find the direction cosines of the line along 4i^−3j^+12k^4\hat{i} - 3\hat{j} + 12\hat{k}.
Try answering before revealing!
Question 4
[Concept] Find the direction cosines of the line through (−2,4,−5)(-2, 4, -5) and (1,2,3)(1, 2, 3).
Try answering before revealing!
Question 5
[Concept] 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.
Try answering before revealing!
Question 6
[Concept] A line has direction ratios 2,−3,62, -3, 6. Find its direction cosines and the angle it makes with each axis.
Try answering before revealing!
Question 7
[Board Standard] 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.
Try answering before revealing!
Question 8
[Board Standard] 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?
Try answering before revealing!
Question 9
[Board Standard] A line has direction ratios (0,3,4)(0, 3, 4). Find its direction cosines. Which axis is it perpendicular to?
Try answering before revealing!
Question 10
[Board Standard] Find the direction cosines for ratios (6,2,3)(6, 2, 3). Which axis does the line lean towards most?
Try answering before revealing!
Question 11
[Board Standard] Find the direction cosines of the line joining the origin to (2,1,2)(2, 1, 2).
Try answering before revealing!
Question 12
[Board Standard] Find the direction cosines of the line through (1,0,0)(1, 0, 0) and (0,1,0)(0, 1, 0).
Try answering before revealing!
Question 13
[Board Standard] A line is perpendicular to the xx-axis and makes 60°60° with the yy-axis. Find its possible direction cosines and angles with the zz-axis.
Try answering before revealing!
Question 14
[Board Standard] Show that (0,0,0)(0, 0, 0), (1,1,1)(1, 1, 1) and (2,2,2)(2, 2, 2) are collinear. What is the multiplier?
Try answering before revealing!
Question 15
[HOTS] Show that (1,0,2)(1, 0, 2), (3,1,5)(3, 1, 5) and (5,2,8)(5, 2, 8) are collinear.
Try answering before revealing!
Question 16
[HOTS] Are (0,0,0)(0, 0, 0), (1,0,0)(1, 0, 0) and (0,1,1)(0, 1, 1) collinear? Give a reason with ratios.
Try answering before revealing!
Question 17
[HOTS] Find the direction cosines for ratios (3,0,4)(3, 0, 4). What is the angle with the yy-axis?
Try answering before revealing!
Question 18
[HOTS] Which triple can be direction cosines: (23,23,13)\left(\frac{2}{3}, \frac{2}{3}, \frac{1}{3}\right) or (1,1,1)(1, 1, 1)? For the valid one, find the three angles.
Try answering before revealing!
Question 19
[HOTS] A line makes equal angles with the xx- and yy-axes, and its zz direction cosine is 12\frac{1}{\sqrt{2}}. Find all possible direction cosine triples.
Try answering before revealing!

11.3 Vector and Cartesian Equations of a Line in Space

2,475 words · 11 min read

A flight screen shows a plane at one point, flying one fixed heading. The controller knows where it started and which way it points. From those two facts alone, the whole future path is fixed. A line in space works the same way.

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. For example, z=2z = 2 allows every xx and every yy, so it is a whole flat sheet at height 22. 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, namely (−1,−2,1)(-1, -2, 1), (1,−1,2)(1, -1, 2), (3,0,3)(3, 0, 3), (5,1,4)(5, 1, 4).

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

Read the figure as a journey. The orange dot at λ = 0 is the start A. Each step of λ by 1 adds one full copy of (2, 1, 1): x grows by 2, y by 1, z by 1. Negative λ walks backwards past the start. The whole infinite line is all the λ values together.

Side view of the same line: z against x. Each λ-step adds 2 in x and 1 in z, so the slope here is 1/2.

The side view hides y on purpose. It keeps only x and z, and the four dots line up exactly. Any single 2D view of a space line is straight, because fixing the parameter fixes every coordinate at once.

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

  • [Board Standard] a point on the line and a direction it is parallel to (Section 11.3.1);
  • [HOTS] two points on the line (also in Section 11.3.1: the direction is the vector joining them).
IngredientWhat it isExample on this line
point AAwhere the walk starts (λ=0\lambda = 0)A=(1,−1,2)A = (1, -1, 2)
direction b⃗\vec{b}one step of the walk(2,1,1)(2, 1, 1)
parameter λ\lambdahow many steps takenλ=2\lambda = 2 gives (5,1,4)(5, 1, 4)

A point says where the line is. A direction says where it goes. The parameter says how far you have walked.

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.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] On the line through (1,−1,2)(1, -1, 2) with direction (2,1,1)(2, 1, 1), which point is reached at λ=−1\lambda = -1?
Try answering before revealing!
Question 2
[Board Standard] A student says the point and the direction play the same role in A+λb⃗A + \lambda\vec{b}. Explain why not.
Try answering before revealing!
Question 3
[HOTS] What does λ=0\lambda = 0 always give, on any line?
Try answering before revealing!

A tent rope is tied at one fixed peg and pulled tight in one fixed direction. The peg is the point. The pull is the direction. Every point of the rope is peg plus some amount of pull. This section writes that picture as an equation.

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.

The vector equation says: reach any point by starting at A and walking some multiple of b.

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). Each coordinate is AA plus 22 times the matching direction entry: 2+2=42 + 2 = 4, −1+4=3-1 + 4 = 3, 3−4=−13 - 4 = -1.

Does (5,5,−3)(5, 5, -3) lie on the line? We need a single λ\lambda that gives all three coordinates. From xx: 2+λ=52 + \lambda = 5, so λ=3\lambda = 3. Check yy: −1+2(3)=5-1 + 2(3) = 5. Check zz: 3+(−2)(3)=−33 + (-2)(3) = -3. All three agree, and the computer confirmed λ=3\lambda = 3. So yes.

For (5,5,−2)(5, 5, -2) the xx and yy still suggest λ=3\lambda = 3, but zz would need 3−2λ=−23 - 2\lambda = -2, that is λ=52\lambda = \frac{5}{2}. No single λ\lambda fits all three, 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. Shorter direction numbers mean each parameter step is smaller.

Write the equation of the line through S0=(0,2,1)S_0 = (0, 2, 1) along d⃗=(1,1,1)\vec{d} = (1, 1, 1). It is r⃗=(2j^+k^)+μ(i^+j^+k^)\vec{r} = (2\hat{j} + \hat{k}) + \mu(\hat{i} + \hat{j} + \hat{k}). At μ=2\mu = 2 we reach (2,4,3)(2, 4, 3); at μ=−1\mu = -1 we step back to (−1,1,0)(-1, 1, 0). The point (1,3,2)(1, 3, 2) is the μ=1\mu = 1 point. Unit steps make the arithmetic easy to follow by hand.

The line through (0, 2, 1) along (1, 1, 1). Equal direction entries give evenly spaced unit steps. Drag to rotate.

Read the figure as evenly spaced beads. Because the direction is (1, 1, 1), each μ-step adds exactly 1 to every coordinate. The beads sit at (−1, 1, 0), (0, 2, 1), (1, 3, 2) and (2, 4, 3). Compare with the uneven (2, 1, 1) spacing in Section 11.3 to feel what direction numbers control.

FormEquationParameter values to remember
point ++ directionr⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}λ=0\lambda = 0 at AA
through A,BA, Br⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a})λ=0\lambda = 0 at AA, 11 at BB
reduced directionsame line, e.g. μ\mu with (1,2,−2)(1, 2, -2)T2T_2 moves to μ=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.

The vector equation carries a spare letter λ. Sometimes we want the line without it: a direct relation between x, y and z. Removing λ gives the Cartesian form, three fractions in a row. This section derives it once, then uses it as a tool.

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).

Cartesian form is three recipes for λ set equal: one from x, one from y, one from z.

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}.

At λ=1\lambda = 1 the point is (5,4,1)(5, 4, 1), and at λ=−1\lambda = -1 it is (1,−6,3)(1, -6, 3) (both confirmed by the computer). Either point satisfies the fractions: for (5,4,1)(5, 4, 1), each fraction equals 11.

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.

The sign rule is worth repeating. The numerator is always x minus the coordinate. So x + 1 means the coordinate is −1, and y − 2 means the coordinate is 2. Read plus as minus.

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}.

Floor plan of Example 1: the xy-projection is y = (5x − 17)/2. Cartesian fractions project to ordinary straight-line graphs.

Check the plotted points against the 3D line. At λ = −1 the point is (1, −6, 3): its floor position (1, −6) is the leftmost dot. At λ = 0 the floor point is (3, −1). At λ = 1 it is (5, 4). The z-coordinate is hidden, but the dots satisfy the first two fractions exactly.

To convert ...Read off ...Write ...
vector to Cartesianpoint AA and ratios from b⃗\vec{b}x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}
Cartesian to vectorpoint from numerators, ratios from denominatorsr⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}
two points to Cartesianratios B−AB - A (reduce if handy)fractions with reduced denominators

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). Read a zero denominator as "this coordinate stays fixed".

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.
A zero denominator is never used for real division. It is shorthand, and every textbook using the symmetric form agrees on this reading.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] 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.
Try answering before revealing!
Question 2
[Board Standard] Write x−21=y+34=z−1−2\dfrac{x - 2}{1} = \dfrac{y + 3}{4} = \dfrac{z - 1}{-2} in vector form.
Try answering before revealing!
Question 3
[HOTS] A line through (1,2,3)(1, 2, 3) has direction (0,2,1)(0, 2, 1). Write its Cartesian form and explain the zero.
Try answering before revealing!

11.4 Angle Between Two Lines

981 words · 4 min read

Two flight paths cross at different heights. Controllers still ask for the angle between them. They slide one path sideways, without turning it, until the two meet. The angle they then measure is the angle between the lines. Sliding without turning never changes direction, so the answer is honest.

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|. This is the shortest form, and it is worth memorising.

The angle between lines is the angle between their directions, always taken acute.

  • [Board Standard] Perpendicular lines: a1a2+b1b2+c1c2=0a_1 a_2 + b_1 b_2 + c_1 c_2 = 0 (the dot product is zero).
  • [HOTS] 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}.
QuestionComputeConclude
perpendicular?dot product b⃗1⋅b⃗2\vec{b}_1\cdot\vec{b}_200 means 90°90°
parallel?ratios a1:a2a_1:a_2, b1:b2b_1:b_2, c1:c2c_1:c_2all equal means 0°0°
otherwise?cos⁡θ\cos\theta formula aboveacute angle via cos⁡−1\cos^{-1}

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°. A zero dot product ends the problem at once.

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°. Recognising cos⁡θ=12\cos\theta = \frac{1}{2} saves reaching for a calculator.

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

Study the two colours. The teal line climbs equally in x and y but never rises. The orange line climbs equally in y and z but never advances in x. They share only the y-motion, half of each. That shared half is why the cosine is 1/2 and the angle is 60°.

Tail-to-tail view: the angle lives in the plane spanned by the two directions. Sliding a skew line to the origin changes nothing.

The second figure shows the sliding idea directly. Both arrows start at O, tail to tail. The angle between the arrows is the angle between the lines, wherever the original lines sat. For skew lines, imagine this slide first, then measure.

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°. With Cartesian lines, always harvest the denominators first.

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. Opposite directions still mean the same line direction.

Common mistake: forgetting the absolute value and reporting an obtuse angle. The angle between two lines is always between 0°0° and 90°90°. Obtuse answers belong to vectors, not lines.
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.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the angle between directions (3,1,2)(3, 1, 2) and (1,4,2)(1, 4, 2).
Try answering before revealing!
Question 2
[Board Standard] Are the lines with directions (1,1,1)(1, 1, 1) and (2,2,2)(2, 2, 2) parallel or perpendicular? What is the angle?
Try answering before revealing!
Question 3
[HOTS] A student reports the angle between two lines as 120°120°. What should the correct answer be, and why?
Try answering before revealing!

11.5 Shortest Distance Between Two Skew Lines

2,359 words · 11 min read

Two pipes run past each other in a building. You must join them with the shortest possible rod. Where should the rod go, and how long is it? The rod must meet both pipes squarely. Any tilt wastes length. That square meeting is the whole chapter idea of shortest distance.

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).

Why perpendicular? Imagine the rod tilted against one pipe. Straightening it to square shortens it, like a ladder sliding down to the ground. The shortest connector has no tilt left against either line. So it is perpendicular to both.

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
Skew lines that never meet: the dashed rod is square to both. Its length is the shortest distance. Drag to rotate.

Look along the dashed rod. From this viewpoint the two lines look like they cross, but they are at different depths: one at floor level, one unit up. The rod joins (0, 0, 0) to (0, 0, 1) squarely. Rotate the figure to see the gap open up. Distance 0 would mean the lines touch; here they clearly do not.

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. The first step in both is always the same: check whether the directions are proportional.

Shortest means square to both lines. Check parallel first, then choose the formula.

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.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Lines L1L_1 through (0,0,0)(0, 0, 0) along (1,0,0)(1, 0, 0) and L2L_2 through (0,1,0)(0, 1, 0) along (0,1,0)(0, 1, 0): do they meet? What is the shortest distance?
Try answering before revealing!
Question 2
[Board Standard] Lines through (0,0,0)(0, 0, 0) and (1,0,0)(1, 0, 0), both along (1,1,0)(1, 1, 0): parallel or skew? Which section gives the distance?
Try answering before revealing!
Question 3
[HOTS] The line through (0,0,1)(0, 0, 1) along (0,1,0)(0, 1, 0) and the xx-axis: parallel, intersecting or skew?
Try answering before revealing!

Two cables cross a hall at different heights. The shortest strap between them cannot lean: it must leave each cable squarely. This section finds that strap. Its direction comes from the cross product, and its length comes from a projection.

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.)

The cross product is the right tool because it is built to be square to both inputs. No other combination of the two directions has this property. So the shortest rod must run parallel to it.

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|}.

Read the fraction in words. The top measures how far apart the lines are along the square direction. The bottom is the length of that direction. Dividing turns the raw overlap into a true length.

Skew distance is a projection: overlap of the joining vector with the cross product, divided by the cross product length.

StepComputeIn the worked example
directions parallel?check b⃗1,b⃗2\vec{b}_1, \vec{b}_2 proportionalnot proportional: skew possible
square directionn⃗=b⃗1×b⃗2\vec{n} = \vec{b}_1 \times \vec{b}_2(1,1,−2)(1, 1, -2)
join the linesw⃗=a⃗2−a⃗1\vec{w} = \vec{a}_2 - \vec{a}_1(1,3,−1)(1, 3, -1)
project and divided=∣w⃗⋅n⃗∣/∣n⃗∣d = |\vec{w}\cdot\vec{n}| / |\vec{n}|6/6=66/\sqrt{6} = \sqrt{6}

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. [Concept] The directions are not proportional, so the lines are not parallel.
  2. [Board Standard] 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. (Square each entry: 1+1+4=61 + 1 + 4 = 6.)
  3. [Board Standard] 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. (Term by term: 1+3+2=61 + 3 + 2 = 6.)
  4. [HOTS] 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 routes, one answer. The formula gives √6 directly. Solving for the feet gives P and Q, and measuring PQ gives √6 again. When both agree, the answer is safe.

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

Rotate until the dashed rod points straight at you. The two lines then look like a cross: that end-on view proves the rod is square to both. Rotate again so the rod lies sideways, and you see the true gap √6 ≈ 2.45 between the lines. A tilted connector would look longer from every angle.

Find the shortest distance between r⃗=(0⃗)+λ(i^)\vec{r} = (\vec{0}) + \lambda(\hat{i}) (the xx-axis) and r⃗=(k^)+μ(j^)\vec{r} = (\hat{k}) + \mu(\hat{j}). The cross product is (0,0,1)(0, 0, 1), with squared length 11. The join is (0,0,1)(0, 0, 1), and its dot with the cross product is 11. So d=11=1d = \dfrac{1}{1} = 1.

The feet are P=(0,0,0)P = (0, 0, 0) (λ=0\lambda = 0) and Q=(0,0,1)Q = (0, 0, 1) (μ=0\mu = 0): the segment is one unit straight up. When lines run along two different axes past each other, the gap is just the separation along the third axis.

End-on view of Example 2: sight along the x-axis and the gap is plainly 1 unit. Choosing the viewpoint is half of 3D thinking.

The end-on trick turns 3D into 2D. Sight along one line so it shrinks to a dot. The other line and the gap are then drawn truly, with no foreshortening. Use this viewpoint whenever a 3D picture confuses you.

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⃗=(i^+j^)+μ(i^−j^)\vec{r} = (\hat{i} + \hat{j}) + \mu(\hat{i} - \hat{j}). The triple product is 00, so d=0d = 0. They meet at (1,1,0)(1, 1, 0) (found for λ=1\lambda = 1, μ=0\mu = 0).

A zero triple product means the lines touch (or are parallel). Always test parallel first, or you will divide by zero.

In simple words: the cross product points in the direction of the shortest rod. The distance is how far apart the lines are measured along that direction.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the shortest distance between the xx-axis and the line through (0,1,0)(0, 1, 0) along (0,0,1)(0, 0, 1).
Try answering before revealing!
Question 2
[Board Standard] Lines L1L_1 through (0,0,0)(0, 0, 0) along (1,1,0)(1, 1, 0) and L2L_2 through (1,1,0)(1, 1, 0) along (1,−1,0)(1, -1, 0): do they meet? What is the distance?
Try answering before revealing!
Question 3
[HOTS] Why must you check "parallel?" before using the skew formula?
Try answering before revealing!

Newspapers print lines in Cartesian form: three fractions, no λ in sight. The distance formula must therefore read points and directions straight out of the fractions. This section shows how, and the top of the fraction turns out to be a determinant.

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}}

The determinant packs the triple product into a box. First row: the join of the two points. Next two rows: the two directions. Expanding it gives exactly the same number as the dot-with-cross in Section 11.5.1.

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. [Concept] 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. [Board Standard] The determinant is ∣3−2−2312121∣=−17\begin{vmatrix} 3 & -2 & -2 \\ 3 & 1 & 2 \\ 1 & 2 & 1 \end{vmatrix} = -17. Expand along the first row, keeping every sign.
  3. [Board Standard] The cross product is (−3,−1,5)(-3, -1, 5), and the sum of squares of its components is 3535 (that is 9+1+259 + 1 + 25).
  4. [HOTS] 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. As a check, the determinant equals (a⃗2−a⃗1)⋅(b⃗1×b⃗2)=−17(\vec{a}_2 - \vec{a}_1)\cdot(\vec{b}_1 \times \vec{b}_2) = -17, computed a second way.

From Cartesian fractions, read ...Row of the determinantCheck
the two points (x1,y1,z1)(x_1, y_1, z_1), (x2,y2,z2)(x_2, y_2, z_2)first row: differencessigns: x−(−1)x - (-1) means x1=−1x_1 = -1
direction 11 from denominatorssecond rownot proportional to row three
direction 22 from denominatorsthird rowcross product matches Section 11.5.1
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.

⚡ Quick Check Flashcards2 questions
Question 1
[Board Standard] The lines x1=y1=z1\dfrac{x}{1} = \dfrac{y}{1} = \dfrac{z}{1} and x−11=y−1=z0\dfrac{x - 1}{1} = \dfrac{y}{-1} = \dfrac{z}{0} are skew. Find their shortest distance.
Try answering before revealing!
Question 2
[HOTS] Two lines have direction ratios (1,2,3)(1, 2, 3) and (2,4,6)(2, 4, 6). Can the determinant formula be used? What should be used instead?
Try answering before revealing!

11.6 Distance Between Parallel Lines

926 words · 4 min read

Two rails of a track never meet and never separate. The gap is the same everywhere. So one perpendicular measurement anywhere gives the answer for the whole line. That is why parallel lines are easier than skew ones.

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|}.

The area idea is worth holding onto. Base times height equals the cross product size. We know the base and the area, so the height drops out. One formula, one perpendicular, done.

Parallel distance is a parallelogram height: cross product size divided by base length.

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. [Concept] a⃗2−a⃗1=(2,−2,2)\vec{a}_2 - \vec{a}_1 = (2, -2, 2). Subtract matching coordinates: 3−1=23 - 1 = 2, 0−2=−20 - 2 = -2, 1−(−1)=21 - (-1) = 2.
  2. [Board Standard] 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. [HOTS] 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. Any other point of the second line would drop a foot the same distance away.

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

Slide your eye along the teal line. Wherever you drop the square to the orange line, the dashed length is the same √8. That constancy is the signature of parallel lines. Skew lines have exactly one shortest spot instead.

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}).

Notice the cross product squared is 153 and the direction squared is 9. Dividing first (17) and then rooting keeps the arithmetic small. Rooting early gives messy decimals.

Find the distance between the lines through (0,0,0)(0, 0, 0) and (1,0,0)(1, 0, 0), both with direction (0,1,0)(0, 1, 0). Here w⃗=(1,0,0)\vec{w} = (1, 0, 0) and b⃗×w⃗=(0,0,−1)\vec{b} \times \vec{w} = (0, 0, -1). So d=1=1d = \sqrt{1} = 1, exactly one unit. The foot from (1,0,0)(1, 0, 0) is the origin itself (t=0t = 0): the gap runs straight along the xx-axis.

Top view of Example 3: sight straight down and the gap is plainly 1 unit. Parallel lines keep one fixed separation.

Sight straight down the z-axis and height disappears. The two lines become two parallel rails on paper, 1 unit apart. Every distance between parallel lines has such a viewpoint where the answer is obvious.

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.

⚡ Quick Check Flashcards3 questions
Question 1
[Concept] Find the distance between the lines through (2,1,0)(2, 1, 0) and (5,1,0)(5, 1, 0), both with direction (0,0,1)(0, 0, 1).
Try answering before revealing!
Question 2
[Board Standard] Find the distance of (0,0,5)(0, 0, 5) from the line through the origin with direction (1,1,1)(1, 1, 1).
Try answering before revealing!
Question 3
[HOTS] A student uses the skew formula on two parallel lines and gets 0/00/0. What went wrong, and what is the fix?
Try answering before revealing!

11.7 Exercise 11.2: Lines in Space and Shortest Distances

1,173 words · 5 min read

This set covers Sections 11.3 to 11.5. First read the form (vector or Cartesian?), harvest the point and the direction, then choose: angle, test-a-point, meet, or distance.

If the question asks for ...Use ...Watch out for ...
an equationpoint ++ direction (vector or Cartesian)signs in numerators
an anglecos⁡θ\cos\theta with absolute valueobtuse vector angle vs acute line angle
meet or distanceproportional check firstparallel uses its own formula

⚡ Quick Check Flashcards19 questions
Question 1
[Concept] Find the angle between the lines with direction ratios (1,−1,2)(1, -1, 2) and (2,1,−1)(2, 1, -1).
Try answering before revealing!
Question 2
[Concept] 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.
Try answering before revealing!
Question 3
[Concept] Find kk so that the lines with direction ratios (k,3,2)(k, 3, 2) and (3,k,−3)(3, k, -3) are perpendicular.
Try answering before revealing!
Question 4
[Concept] 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.
Try answering before revealing!
Question 5
[Concept] 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?
Try answering before revealing!
Question 6
[Concept] 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}).
Try answering before revealing!
Question 7
[Board Standard] 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}).
Try answering before revealing!
Question 8
[Board Standard] Find the distance of the point (1,1,1)(1, 1, 1) from the line through the origin along the zz-axis.
Try answering before revealing!
Question 9
[Board Standard] 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?
Try answering before revealing!
Question 10
[Board Standard] 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.
Try answering before revealing!
Question 11
[Board Standard] Write the vector equation of the line through (1,2,0)(1, 2, 0) with direction (0,1,2)(0, 1, 2). Which point is reached at λ=2\lambda = 2?
Try answering before revealing!
Question 12
[Board Standard] Write x−21=y−11=z+11\dfrac{x - 2}{1} = \dfrac{y - 1}{1} = \dfrac{z + 1}{1} in words: name its point and its direction.
Try answering before revealing!
Question 13
[Board Standard] Does (2,3,1)(2, 3, 1) lie on r⃗=(j^+k^)+λ(i^+j^)\vec{r} = (\hat{j} + \hat{k}) + \lambda(\hat{i} + \hat{j})? Does (2,3,2)(2, 3, 2)?
Try answering before revealing!
Question 14
[Board Standard] Find the angle between the xx-axis and the line through the origin along (1,1,0)(1, 1, 0).
Try answering before revealing!
Question 15
[HOTS] Find the shortest distance between r⃗=(i^+j^)+λ(i^)\vec{r} = (\hat{i} + \hat{j}) + \lambda(\hat{i}) and r⃗=(i^+j^+k^)+μ(j^)\vec{r} = (\hat{i} + \hat{j} + \hat{k}) + \mu(\hat{j}).
Try answering before revealing!
Question 16
[HOTS] Are the lines with directions (2,−1,1)(2, -1, 1) and (−4,2,−2)(-4, 2, -2) parallel? What is the angle between them?
Try answering before revealing!
Question 17
[HOTS] Find the distance of (2,0,0)(2, 0, 0) from the line through the origin along the zz-axis.
Try answering before revealing!
Question 18
[HOTS] Write the Cartesian form of the line through (1,1,1)(1, 1, 1) with direction (2,0,−1)(2, 0, -1). What does the zero denominator mean?
Try answering before revealing!
Question 19
[HOTS] Show that r⃗=(0⃗)+λ(i^+k^)\vec{r} = (\vec{0}) + \lambda(\hat{i} + \hat{k}) and r⃗=(i^+k^)+μ(j^)\vec{r} = (\hat{i} + \hat{k}) + \mu(\hat{j}) meet, and find the point.
Try answering before revealing!

11.8 Miscellaneous Exercise and Board Assessment

988 words · 4 min read

A final mixed set across the whole chapter: cosines one moment, Cartesian form the next, then a distance. If a question feels hard, name its section first; the method follows.

Quick mapSectionCore formula
cosines and ratios11.2l2+m2+n2=1l^2 + m^2 + n^2 = 1
line equations11.3r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}
angles11.4cos⁡θ=∣b⃗1⋅b⃗2∣/(∣b⃗1∣∣b⃗2∣)\cos\theta = |\vec{b}_1\cdot\vec{b}_2| / (|\vec{b}_1||\vec{b}_2|)
distances11.5projection (skew) or parallelogram height (parallel)

⚡ Quick Check Flashcards18 questions
Question 1
[Concept] Show that the lines with direction ratios (2,3,6)(2, 3, 6) and (3,−6,2)(3, -6, 2) are perpendicular.
Try answering before revealing!
Question 2
[Concept] Find the angle between the xx-axis and the line through the origin and (1,1,1)(1, 1, 1).
Try answering before revealing!
Question 3
[Concept] 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.
Try answering before revealing!
Question 4
[Concept] 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).
Try answering before revealing!
Question 5
[Concept] 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.
Try answering before revealing!
Question 6
[Concept] 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?
Try answering before revealing!
Question 7
[Board Standard] Show that the lines with directions (1,0,1)(1, 0, 1) and (1,0,−1)(1, 0, -1) are perpendicular, without using a calculator.
Try answering before revealing!
Question 8
[Board Standard] Find the direction cosines of the line with direction ratios (3,4,0)(3, 4, 0). What is its angle with the zz-axis?
Try answering before revealing!
Question 9
[Board Standard] Write the vector and Cartesian equations of the line through (1,1,0)(1, 1, 0) with direction (0,0,1)(0, 0, 1). Is (1,1,5)(1, 1, 5) on it?
Try answering before revealing!
Question 10
[Board Standard] Find the shortest distance between r⃗=(0⃗)+λ(i^+j^)\vec{r} = (\vec{0}) + \lambda(\hat{i} + \hat{j}) and r⃗=(i^+k^)+μ(j^+k^)\vec{r} = (\hat{i} + \hat{k}) + \mu(\hat{j} + \hat{k}).
Try answering before revealing!
Question 11
[Board Standard] Two rails run along the xx-direction, one through the origin and one through (0,2,0)(0, 2, 0). How far apart are they?
Try answering before revealing!
Question 12
[Board Standard] Find the distance of (0,3,4)(0, 3, 4) from the xx-axis.
Try answering before revealing!
Question 13
[Board Standard] Show that (1,2,1)(1, 2, 1), (3,4,3)(3, 4, 3) and (5,6,5)(5, 6, 5) are collinear.
Try answering before revealing!
Question 14
[HOTS] Find the angle between the lines with directions (1,1,0)(1, 1, 0) and (1,0,1)(1, 0, 1).
Try answering before revealing!
Question 15
[HOTS] Show that the line through (0,1,0)(0, 1, 0) along (1,0,0)(1, 0, 0) and the line through (1,0,0)(1, 0, 0) along (0,1,0)(0, 1, 0) meet, and find the point.
Try answering before revealing!
Question 16
[HOTS] Find the direction cosines of the line through (2,3,1)(2, 3, 1) and (5,1,−1)(5, 1, -1).
Try answering before revealing!
Question 17
[HOTS] A line makes equal angles with all three axes. Write down a set of direction ratios and the two possible direction cosine triples.
Try answering before revealing!
Question 18
[HOTS] Write the Cartesian equation of the line through (2,1,0)(2, 1, 0) with direction (0,0,3)(0, 0, 3). Explain both zero denominators.
Try answering before revealing!

11.9 Chapter Summary and 3D Vector-Cartesian Formula Matrix

449 words · 2 min read

The chapter asked one question in many forms: given a point and a direction, what can you find? Angles, crossings and gaps all came from those two ingredients. This page collects every tool.

Line formEquationRead it as ...
vector, point ++ directionr⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}λ=0\lambda = 0 at AA
vector, two pointsr⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a})λ=1\lambda = 1 at BB, 12\frac{1}{2} midway
Cartesianx−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}λ\lambda removed; denominators are ratios
Cartesian, two pointsdifferences as denominatorsreduce ratios when handy
  • 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.
Ask ...Answer with ...Memory hook
angle?directions only (slide lines together)acute always
do they meet?triple product 00 + not parallelzero top means touch
parallel gap?parallelogram heightsame everywhere
skew gap?projection on cross productsquare to both

A point and a direction fix a line. Directions give angles. The cross product gives distances.

Keep the three tests in order: proportional directions means parallel; triple product zero means meeting; otherwise skew. Choosing the right formula starts with these two checks.
Up next
Continue to the next chapter