Skip to content

Mathematics · Ch 6 — Two Dimensional Analytical Geometry

Angle Between a Pair of Straight Lines

6.5.2

Angle Between a Pair of Straight Lines

For the pair of lines through the origin ax2+2hxy+by2=0ax^2+2hxy+by^2=0, dividing by x2x^2 and substituting m=y/xm=y/x gives bm2+2hm+a=0bm^2+2hm+a=0, whose roots m1,m2m_1,m_2 (the two slopes) satisfy, by the sum/product-of-roots relations,

m1+m2=−2hb,m1m2=ab.m_1+m_2=-\frac{2h}{b}, \qquad m_1m_2=\frac{a}{b}.

The angle θ\theta between the two lines then follows from the general angle-between-two-lines formula (§6.4):

tan⁡θ=∣m2−m11+m1m2∣=∣(m1+m2)2−4m1m21+m1m2∣=∣2h2−aba+b∣.\tan\theta=\left|\frac{m_2-m_1}{1+m_1m_2}\right|=\left|\frac{\sqrt{(m_1+m_2)^2-4m_1m_2}}{1+m_1m_2}\right|=\left|\frac{2\sqrt{h^2-ab}}{a+b}\right|.

(Here (m2−m1)2=(m1+m2)2−4m1m2(m_2-m_1)^2=(m_1+m_2)^2-4m_1m_2 is used to express the difference of roots via their sum and product, without needing m1,m2m_1,m_2 individually.)

As a direct consequence, the pair of lines is:

  • real and distinct if m1,m2m_1,m_2 are real and unequal, i.e. h2−ab>0h^2-ab>0;
  • real and coincident (the 'two' lines are actually the same line) if m1,m2m_1,m_2 are real and equal, i.e. h2−ab=0h^2-ab=0;
  • not real (imaginary) if m1,m2m_1,m_2 are not real, i.e. h2−ab<0h^2-ab<0 (only the origin then satisfies the equation). …