Skip to content

Mathematics · Ch 6 — Applications of Vector Algebra

Angle Between Two Straight Lines

6.7.4

Angle Between Two Straight Lines

  1. Vector form. For two lines r⃗=a⃗+sb⃗\vec r=\vec a+s\vec b and r⃗=c⃗+td⃗\vec r=\vec c+t\vec d, the acute angle θ\theta between them equals the acute angle between their direction vectors b⃗,d⃗\vec b,\vec d:

    cos⁡θ=∣b⃗⋅d⃗∣b⃗∣∣d⃗∣∣,i.e.θ=cos⁡−1(∣b⃗⋅d⃗∣b⃗∣∣d⃗∣∣).\cos\theta=\left|\frac{\vec b\cdot\vec d}{|\vec b||\vec d|}\right|,\qquad\text{i.e.}\qquad \theta=\cos^{-1}\left(\left|\frac{\vec b\cdot\vec d}{|\vec b||\vec d|}\right|\right).

    (The absolute value keeps θ\theta the acute one, since a line has no preferred sense of direction.) Remark.
    1. The two lines are parallel   ⟺  θ=0  ⟺  ∣b⃗⋅d⃗∣=∣b⃗∣∣d⃗∣\iff\theta=0\iff|\vec b\cdot\vec d|=|\vec b||\vec d|.
    2. Equivalently, the lines are parallel   ⟺  b⃗=λd⃗\iff \vec b=\lambda\vec d for some scalar λ\lambda.
    3. The lines are perpendicular   ⟺  b⃗⋅d⃗=0\iff\vec b\cdot\vec d=0.
  2. Cartesian form. For lines x−x1b1=y−y1b2=z−z1b3\frac{x-x_1}{b_1}=\frac{y-y_1}{b_2}=\frac{z-z_1}{b_3} and x−x2d1=y−y2d2=z−z2d3\frac{x-x_2}{d_1}=\frac{y-y_2}{d_2}=\frac{z-z_2}{d_3}, the acute angle is

    θ=cos⁡−1(∣b1d1+b2d2+b3d3∣b12+b22+b32 d12+d22+d32).\theta=\cos^{-1}\left(\frac{|b_1d_1+b_2d_2+b_3d_3|}{\sqrt{b_1^2+b_2^2+b_3^2}\,\sqrt{d_1^2+d_2^2+d_3^2}}\right).

    Remark. …