Mathematics · Ch 9 — Three-Dimensional Geometry
Angle Between Two Lines
Angle Between Two Lines
Definition. The angle between two lines in space, with direction vectors and , is defined as the acute (or right) angle between their directions -- taking whichever of the two supplementary angles formed is , since a direction vector for a line could equally well be taken in either of its two opposite senses ( or ); reporting an obtuse angle would make the answer depend on an arbitrary sign choice, so the convention is fixed by always taking the non-negative acute value.
Formula via the dot product -- derivation. For any two vectors, the dot product satisfies , where is the actual angle between them as directed vectors (which could be obtuse). Solving for and taking the absolute value to enforce the acute-angle convention gives the angle between two lines:
Written out for direction ratios and (expanding the dot product and magnitudes into coordinates), this is
If the two lines are instead given by their direction cosines and directly, the magnitudes in the denominator are each exactly (Section 4), so the formula simplifies to
Special cases. Two important conditions follow immediately, and are used constantly without re-deriving the angle each time:
- Parallel lines (, so ): this happens exactly when and are scalar multiples of each other, i.e. .
- Perpendicular lines (, so ): this happens exactly when the dot product vanishes, (equivalently ) -- a simple linear condition, used to find an unknown constant in one line's direction ratios that makes it perpendicular to another given line. …