3.6.12 · D43D Geometry

Exercises — Skew lines — shortest distance

2,553 words12 min readBack to topic

Before we start, a one-line reminder of the moving parts, each of which you can revisit:

  • — a position vector: an arrow from the origin to a chosen point on each line (Equation of a Line in 3D).
  • — the direction vectors telling each line which way it points.
  • — the Vector Cross Product: an arrow at right angles to both directions.
  • — the Scalar Triple Product, the "signed box volume" of the three arrows.

Picture to keep in mind while you solve. The figure below is the mental model for every problem on this page. It is drawn to the exact numbers of Problem 5.1, so you can point at it as you work: two lines that never meet ( in cyan, in white), plotted against labelled axes, and the single amber stick that touches both at a right angle. The cyan point sits on ; the white point sits on ; the amber segment between them has length . In L1–L4 we only compute that length; in L5 (Problem 5.1) we go further and actually locate and — the very dots you see here. Whenever a solution says "perpendicular to both lines," come back and look at how the amber stick meets each line at a square corner.

Figure — Skew lines — shortest distance

L1 — Recognition

Here we only decide what kind of pair we have: parallel, intersecting, or skew. No distances yet.

Recall Solution 1.1

What we do: compare the two direction vectors and . Why: two lines are parallel exactly when one direction is a scalar multiple of the other. Here . Every component doubles. So the lines are parallel. But wait — parallel or the same line? Parallel lines can be genuinely apart, or they can be the identical line written two ways (coincident). To separate these, take the gap and ask: does it point along ? If , the first component gives , but then the second would be . Not a multiple ⇒ the gap sticks out sideways ⇒ the lines are distinct parallel lines, not coincident. Answer: distinct parallel lines (positive shortest distance, computed by the parallel formula in L4).

Recall Solution 1.2

What we do: test if is a multiple of . Why: if NOT parallel, the pair is either intersecting or skew — never parallel; we then need the triple-product test to separate those two. For now we just rule parallel in or out. Suppose . From the first component , but then the second would be . Contradiction. Answer: not parallel → the pair is intersecting or skew (decided in L3).


L2 — Application

Now we plug clean numbers straight into the formula.

Recall Solution 2.1

Step 1 — the gap. Why: this is the arrow between chosen points; we will keep only its along-perpendicular part. Step 2 — the common perpendicular. Why: the cross product is at right angles to both lines — the only direction the shortest stick can point. Step 3 — length of that direction. Why: this is the denominator of the distance formula — it turns the raw cross product into a unit direction , so the projection we compute next comes out as a true length, not a scaled one. Step 4 — project the gap. Why: this dot product is the numerator — it measures how much of the gap arrow lies along the common-perpendicular direction. Only that component is the shortest distance; the rest of the gap runs parallel to the lines and doesn't count. Answer:

Recall Solution 2.2

Gap: Cross: Length: Why this length: it is the denominator that rescales the cross product to a unit direction, so the projection below is a genuine distance. Numerator: Why this dot product: it extracts the part of the gap pointing along the common perpendicular — the only part that contributes to the shortest distance. Answer: Neat coincidence: here the gap happens to point exactly along the common perpendicular, so all of it counts.


L3 — Analysis

Here we must interpret the triple product: is it zero (coplanar → intersecting) or not (skew)?

Recall Solution 3.1

Gap: Cross: Triple product: Interpret (why this matters): the numerator is the Scalar Triple Product — the volume of the box built from the three arrows. Volume means the three arrows lie in one plane, i.e. the two lines are coplanar. Coplanar and not parallel ⇒ they must cross. Answer: the lines INTERSECT (), they are not skew.

Recall Solution 3.2

Gap: Cross: Length: Triple product: Non-zero → box has volume → not coplanar → skew. Answer:


L4 — Synthesis

Now we assemble the answer from several sub-results, or handle a degenerate case.

Recall Solution 4.1

Recognise first: parallel. The cross product , so the main formula gives and is useless here. Coincident check: gap ; is it a multiple of ? If then from the first component, but the second would be . Not a multiple ⇒ distinct parallel lines, so the distance is positive and worth computing. Switch tools: for parallel lines use the point-to-line distance with : Cross: Lengths: , Answer:

Recall Solution 4.2

What we want: intersection ⇔ the three arrows are coplanar ⇔ triple product . So set it up and solve for . Gap: Cross: Triple product : Answer: . (For any other the lines are skew, since the directions aren't parallel.)


L5 — Mastery

Multi-idea problems: the foot of the common perpendicular, and Cartesian form.

Recall Solution 5.1

Part A — distance. Gap: (Note the middle entry: — subtracting a negative adds.) Why: this is the arrow between the two given base points; we will keep only the part of it pointing perpendicular to both lines. Cross: Why: the cross product is, by definition, at right angles to both and — it is the direction the shortest stick must run along. Simplify direction: , so Numerator: Why: this dot product measures how much of the gap arrow lies along the common-perpendicular direction — precisely the length that survives after the along-line parts are discarded.

Part B — the touching points, step by step. Let (a moving point on ) and (a moving point on ). The stick must be perpendicular to both directions: Why these two equations: perpendicular to both lines is exactly the defining property of the shortest segment (see the page-top figure, where the amber stick meets each line at a square corner). Two conditions, two unknowns — a clean system. Write the stick using the gap : Equation 1 — dot with , term by term:

Add: Equation 2 — dot with , term by term:

Add: Solve (i) & (ii). Eliminate : multiply (i) by and (ii) by , since . Subtract the second from the first: Put into (ii): Feet (substitute back): Check the length: , and ✓ This matches Part A, so the feet are correct — and these are exactly the cyan point and white point marked in the page-top figure. Answer: , with on and on .

Recall Solution 5.2

Read off (see Equation of a Line in 3D): point , direction ; point , direction . Gap: Cross: Length: Numerator: Answer: This is the Cartesian determinant formula from the parent note, just done component-by-component.


Recall Self-test summary

Which quantity decides parallel vs not-parallel? ::: Whether is a scalar multiple of . Which quantity decides intersecting vs skew (given not parallel)? ::: The scalar triple product — zero ⇒ intersect, non-zero ⇒ skew. How do you tell distinct parallel lines from coincident ones? ::: Test if the gap is a multiple of ; if yes, coincident (); if no, distinct parallel. Distance formula for parallel lines? ::: . How do you find the actual feet of the common perpendicular? ::: Solve and for , then check equals the formula distance.