Visual walkthrough — Skew lines — shortest distance
Step 1 — Two wires that never meet
WHAT. Picture two perfectly straight wires floating in a room. Wire 1 passes through a point we call and runs in the direction of an arrow . Wire 2 passes through and runs along .
Every point on wire 1 is : start at , then walk steps along . Here is just a dial — turn it and you slide along the wire. Same story for wire 2 with its own dial .
WHY. We need names for "where a wire is" () and "which way it runs" () before we can measure anything. The dials let us talk about any point on each wire at once.
PICTURE. The blue wire and the orange wire pass at different heights — like two overpasses. They never touch, and they don't point the same way. That is exactly what skew means.

Step 2 — The joining stick, and why we want it short
WHAT. Pick any point on wire 1 and any point on wire 2. Draw the arrow from to . Its length is a distance between the wires — but not usually the shortest one.
WHY. "Shortest distance" is a minimum. To find a minimum we first need a quantity to minimise, and that quantity is the length of this joining stick as we slide and around.
PICTURE. Watch three different joining sticks. The gray ones are long and lie at a slant. There is one special green stick that is shortest — our whole job is to pin it down.

Step 3 — Why the shortest stick pokes both wires at a right angle
WHAT. Claim: at the shortest stick, is perpendicular to wire 1 and to wire 2.
WHY. Suppose the stick met wire 1 at a slant (not a right angle). Then is the hypotenuse of a little right triangle: one leg lies along the wire, the other drops straight across. A hypotenuse is always longer than a leg — so by sliding a hair along the wire we could shorten the stick. If we can still shorten it, it wasn't the shortest. So at the true minimum, no slide helps, which forces the right angle on both wires.
PICTURE. The red slanted stick is a hypotenuse; the green perpendicular stick is its shorter leg. Sliding toward the foot of the perpendicular shrinks the stick until it stands square.

Step 4 — One direction is perpendicular to both: the cross product
WHAT. We need a single arrow that is at right angles to and simultaneously. That arrow is the cross product
WHY this tool and not another? We asked a very specific question: "give me a direction square to two given arrows." The cross product is defined to answer exactly that — its output is, by construction, perpendicular to both inputs. No other single operation on two vectors hands you a perpendicular direction for free. (A dot product answers a different question — "how aligned are two arrows?" — and returns a number, not a direction, so it can't do this job.)
Term by term: is the new perpendicular arrow; the says "build the vector square to both"; its length measures the area of the parallelogram the two 's span (bigger when they point more differently).
PICTURE. The green shoots straight out of the flat sheet spanned by and , like a flagpole out of a tabletop.

Step 5 — Shrink to a unit arrow
WHAT. We only want 's direction, not its length. So divide it by its own length to get a pointer of length exactly :
WHY. In the next step we measure "how far the gap reaches in the direction." A measuring pointer must have length , otherwise its own length would contaminate the reading. The little hat always means "same direction, length trimmed to ."
Term by term: top = the raw perpendicular arrow; bottom = its length; the quotient = pure direction, size .
PICTURE. The long green becomes a short unit arrow pointing the same way — a clean ruler aimed along the common perpendicular.

Step 6 — The gap arrow, and reading its shadow with the dot product
WHAT. Connect the two anchors: the gap arrow is (from wire 1's anchor to wire 2's anchor). The shortest distance is how much of this gap points along :
WHY the dot product? New question: "how much of arrow A points along direction B?" The dot product answers exactly this — returns the length of the gap's shadow cast onto the line. That shadow is the shortest distance, because moving along either wire only adds -arrows, which are perpendicular to and cast zero shadow.
Term by term:
- = the gap arrow between anchors;
- = "take the shadow along the perpendicular";
- = a distance can't be negative, so we keep the size only.
PICTURE. The gap arrow slants across; its shadow onto the ruler is the green segment — and that green length is .

Step 7 — Assemble the finished formula
WHAT. Substitute into :
WHY. The unit-hat's denominator floats up to become the formula's denominator. The top is a scalar triple product — geometrically the volume of the box built on those three arrows; the bottom is the area of its base. Volume ÷ base area = height, and the height of that box is exactly the perpendicular gap between the wires.
Term by term: numerator = box volume (gap along perpendicular, un-normalised); denominator = base parallelogram area; ratio = height = .
PICTURE. The three arrows frame a slanted box (a parallelepiped). Volume over base equals height — the green vertical stick.

Step 8 — The degenerate case: parallel wires
WHAT. If (call the shared direction ), then and the boxed formula becomes — undefined. Switch to:
WHY. Parallel wires are like two rails: the shortest distance is just the perpendicular drop from any point of one rail to the other — a point-to-line distance. The cross product has length = (area of the parallelogram on and the gap); dividing by (the base) again gives the height — the perpendicular rail-to-rail gap.
PICTURE. Two parallel rails; the perpendicular drop is the same everywhere, so pick any convenient point.

The one-picture summary
Every step compressed into a single frame: two wires, the cross product raising a flagpole square to both, the gap arrow casting its shadow along , and the slanted box whose volume ÷ base = height is the answer.

Recall Feynman retelling of the whole walkthrough
Two straight wires float in a room. They never touch and don't point the same way. I want the length of the shortest stick joining them. First I notice the shortest stick must hit both wires dead square — because if it hit at a slant, it'd be a hypotenuse and I could always find a shorter leg by sliding along the wire. So I need the one direction that's square to both wires: the cross product hands me that for free (that's literally what it's built to do), and I shrink it to a length-1 pointer . Now I connect any point of wire 1 to any point of wire 2 — that's my gap arrow — and I ask "how much of it points along ?" The dot product reads off that shadow, and the shadow is the distance, because sliding along either wire only adds sideways pieces that cast no shadow. Written as one boxed formula it's just the volume of the slanted box on the three arrows, divided by the box's base area — volume over base is height, and the height is my stick. If the wires happen to be parallel, the cross product collapses to zero, so instead I just drop a perpendicular from one rail to the other.
Recall Quick self-check
Why perpendicular to both wires? ::: A slanted stick is a hypotenuse; you can always slide to a shorter leg, so the true minimum has no slack — a right angle on both. Why the cross product and not the dot product to get ? ::: The cross product outputs a direction square to two arrows; the dot product outputs a number measuring alignment — wrong kind of answer. What does the numerator mean geometrically? ::: The volume of the parallelepiped (box) built on . What does dividing by do? ::: Divides box volume by base area, leaving the height = shortest distance. Why may I use any anchor points? ::: Sliding along a wire adds -pieces which are and cast no shadow, so the projection is unchanged. What if the triple product is (non-parallel lines)? ::: The box is flat, the four points are coplanar, so the lines intersect.
See also: Equation of a Line in 3D · Plane containing a line · parent topic.