3.6.12 · D53D Geometry

Question bank — Skew lines — shortest distance

1,656 words8 min readBack to topic

Quick vocabulary refresh so every symbol below is earned:

  • means "start at the fixed point , then walk any distance (a plain number, positive or negative) in the direction ." See Equation of a Line in 3D.
  • is the second line, read the same way: start at , walk distance in direction . Here and are just the two "sliders" that pick a point on each line.
  • is the cross product: a new vector that stands at a right angle to both and at once. We name this direction (the raw normal), and its unit-length version (the unit normal, length exactly ).
  • is the scalar triple product: one number whose size is the volume of the box built from the three vectors.

True or false — justify

Two lines that never meet must be skew.
False — parallel lines also never meet, yet they are not skew because skew additionally requires different directions. "Never meet" splits into two cases: parallel and skew.
If then the shortest-distance formula still applies, you just get a small number.
False — a zero cross product means the denominator is , so the fraction is undefined ( or divide-by-zero), not "small." You must switch to the parallel-line formula.
The shortest segment between two skew lines is perpendicular to both of them.
True — at the minimum, sliding either endpoint along its line gives no first-order shortening, and "no change while moving along " means the segment is perpendicular to .
Changing which point I pick on changes the computed distance.
False — moving adds a multiple of to the gap, and , so the projection onto the common perpendicular is untouched.
If the scalar triple product , the lines are definitely skew.
False — a zero triple product means the lines are coplanar, so (given they are not parallel) they intersect. Coplanar non-parallel is the opposite of skew.
The distance formula can output a negative number, so we take the absolute value.
True in spirit — the triple product (numerator before ) can be negative because it is a signed volume; distance must be , so the absolute value is essential, not decorative.
Two lines in the same plane are always intersecting.
False — coplanar lines are either intersecting or parallel. Being coplanar rules out skew, but does not force a meeting point.
If two lines have the same direction vector they cannot be skew.
True — equal (or proportional) directions make them parallel, and parallel is a separate category from skew by definition.
The cross product and give different shortest distances.
False — they differ only by a sign, and since the final formula takes an absolute value of the numerator and a magnitude in the denominator, the distance is identical.

Spot the error

"Distance ."
The denominator is wrong — it must be , the magnitude of the cross product, not the product of the two magnitudes. These agree only when , so the mistake hides in perpendicular cases.
"The lines don't share an obvious common point, so they are skew."
Missing a check — you must compute the triple product. If it is (and directions differ), they secretly intersect; "no obvious point" is not proof.
"For parallel lines I'll just use in the numerator."
For parallel lines , killing both numerator and denominator. Use the parallel formula instead — the point-to-line distance.
"I got a negative triple product, so I made an arithmetic mistake."
Not necessarily — the raw triple product is a signed volume, so negative is perfectly normal. Only the final distance must be non-negative, handled by the absolute value.
"The shortest stick connecting the lines is perpendicular to , so any such perpendicular works."
It must be perpendicular to both lines simultaneously. There are infinitely many perpendiculars to a single line; only the common perpendicular (direction ) gives the true shortest distance.
"Since , the lines coincide (are the same line)."
with different directions means they cross at one point, not that they coincide. Coinciding requires identical direction and a shared point.
"I'll compute directly."
Forgot to divide by . The dot product with the un-normalised overcounts by the length of ; you must project onto the unit vector , i.e. divide by .

Why questions

Why does the cross product, not the dot product, give the direction of the shortest segment?
The cross product is defined to be perpendicular to both inputs, which is exactly the "right-angle-to-both-lines" direction we need; the dot product only outputs a number, not a direction.
Why does the shortest distance not depend on the sliders or ?
Those parameters just slide points along the lines, adding multiples of to the gap; both are perpendicular to , so they vanish under the projection.
Why must skew lines live in different planes?
If a single plane contained both, they would be coplanar and hence either meet or be parallel — neither of which is skew. Skew is precisely "no common plane exists."
Why is the numerator a scalar triple product?
has exactly the form , whose absolute value is the volume of the parallelepiped built from the gap and the two directions — see Scalar Triple Product.
Why does a zero volume (triple product ) mean the lines meet?
Zero volume means the three vectors are flat in one plane, so both lines share that plane; coplanar non-parallel lines must cross. This is the Coplanarity of Two Lines test.
Why can the same formula be written in Cartesian determinant form?
The determinant with rows is the triple product expanded into components, and the square-root denominator is in components — identical maths, different notation.
Why do we divide by specifically?
To convert the projection onto the raw normal into a projection onto the unit normal ; dividing by turns "how far along " into a true length.

Edge cases

The two direction vectors are perpendicular (). Does the formula still work?
Yes — perpendicular directions are still non-parallel, so and the standard formula applies unchanged; nothing special about .
One line passes through the origin, so . Any trouble?
None — the gap simply becomes . The origin is just a convenient point on ; the formula never cared which point we chose.
The lines are parallel and the point of one lies on the other. What is ?
: the lines coincide (they are the same line). The point-to-line distance from a point already on the line is zero.
The gap vector is itself parallel to . What does that mean geometrically?
The chosen connecting points already lie along the common-perpendicular direction, so the whole gap projects onto — the distance equals and those points are the feet of the shortest segment.
Both lines pass through the same single point but point differently. Skew or not?
Intersecting, not skew — a shared point forces the triple product to (the gap can be taken as ), so .
The direction vectors are anti-parallel, e.g. . Standard formula or special case?
Special case — anti-parallel still means proportional, so ; treat them as parallel and use the point-to-line formula.

Recall One-line self-test

Given non-parallel lines with triple product exactly , name their relationship. ::: They intersect — coplanar plus non-parallel means they cross at one point.