In a plane, two straight lines have only two possibilities: they meet, or they are parallel. In three dimensions a third possibility appears — lines that neither meet nor run parallel. These are skew lines.
What Makes Lines Skew
Two lines in space are skew if they are not parallel and do not intersect. The deeper reason is that skew lines do not lie in the same plane — they are non-coplanar. Parallel lines and intersecting lines always share a plane; skew lines never do.
Note
A classic picture: one edge along the top of a room and a different edge along the floor, running in a different direction. Extend them forever and they still never touch, yet they are clearly not parallel.
The Three Cases in Space
Lines
Directions
Do they meet?
Coplanar?
Intersecting
different
yes, at one point
yes
Parallel
same (proportional)
no
yes
Skew
different
no
no
How to Test for Skew Lines
Take two lines r=a1+λb1 and r=a2+μb2.
Not parallel:b1 and b2 are not proportional (so b1×b2=0).
Do not intersect: no values of λ,μ make the points coincide.
Both conditions are captured by one scalar triple product. The lines are skew exactly when
(a2−a1)⋅(b1×b2)=0.
If this value is zero, the lines are coplanar (they intersect or are parallel); if it is non-zero, they are skew.
Shortest Distance Between Skew Lines
Because skew lines miss each other, there is a well-defined shortest distance between them, measured along their common perpendicular:
Two lines are coplanar exactly when the vector joining a point on each line lies in the plane spanned by their two direction vectors — i.e. when the scalar triple product of these three vectors vanishes. …
Two lines r1=a1+λa2 and r2=b1+μb2 are coplanar exactly when the scalar triple product (b1−a1)⋅(a2×b2)=0.
The first line passes through the point with position vector a1 with direction a2; the second passes through b1 with direction b2. The two lines lie in one plane exactly when the vector joining a point on each line, (b1−a1), lies in the plane spanned by the two direction vectors a2 and b2 — i.e. …