How to tell if two lines in 3D are parallel, intersecting, perpendicular, or skew
Two lines in space can miss each other even when they point in different directions. We’ll compare their directions first, then check whether they share a point.
Compare the direction vectors
Write the lines as and , where and are nonzero direction vectors. The directions are parallel when one vector is a scalar multiple of the other. Equivalently, their cross product is the zero vector. This check works when a component is zero too.
If the directions are parallel, check whether is a scalar multiple of . If so, the lines coincide. Otherwise, they are distinct parallel lines.
Check whether the lines meet
If the directions aren’t parallel, set the matching x-, y-, and z-coordinates equal and solve for and . An intersection requires the same pair of parameter values to satisfy all three equations. If there’s no such pair, the lines are skew.
If the lines meet, compute . A zero dot product means the intersecting lines are perpendicular. The dot product uses their direction vectors. Two nonintersecting lines can have orthogonal directions and still be skew.
Example: Test the two lines
The direction vectors and are not scalar multiples. The x-components would require a factor of , while the y-components would require .
To test for an intersection, first set the x- and y-coordinates equal. The x-equation gives . Substitute into the y-equation.
These are the only values that make both the x- and y-coordinates agree. The first line gives a height of units. The second gives a height of units. So the lines don’t meet. Since they’re also not parallel, they’re skew.
Example: Check the angle after the lines meet
The lines and meet at the origin. Their direction vectors are and . Their dot product is , so the lines are perpendicular.