Academy
Formulas/maths/Pair Of Straight Lines/Angle Between the Pair of Lines

Angle Between the Pair of Lines

Acute angle θ between the two lines of ax² + 2hxy + by² = 0 (or the general pair). Uses the identity tan θ = (m₁−m₂)/(1+m₁m₂) with m₁−m₂ expressed via the discriminant.
Derivation

The angle θ\theta between lines with slopes m1m_1 and m2m_2:

tanθ=m1m21+m1m2\tan\theta = \left|\frac{m_1-m_2}{1+m_1m_2}\right|

Now:

(m1m2)2=(m1+m2)24m1m2=4h2b24ab=4(h2ab)b2(m_1-m_2)^2 = (m_1+m_2)^2 - 4m_1m_2 = \frac{4h^2}{b^2} - \frac{4a}{b} = \frac{4(h^2-ab)}{b^2} m1m2=2h2abb(h2>ab)m_1-m_2 = \frac{2\sqrt{h^2-ab}}{b} \quad (h^2 > ab) 1+m1m2=1+ab=a+bb1+m_1m_2 = 1 + \frac{a}{b} = \frac{a+b}{b}

Therefore:

tanθ=2h2ab/b(a+b)/b=2h2aba+b\tan\theta = \left|\frac{2\sqrt{h^2-ab}/b}{(a+b)/b}\right| = \frac{2\sqrt{h^2-ab}}{|a+b|} tanθ=2h2aba+b\tan\theta = \frac{2\sqrt{h^2-ab}}{a+b}

(taking the acute angle, so a+b|a+b| in the denominator — sign of a+ba+b does not matter for tanθ>0\tan\theta > 0).

Special cases:

  • a+b=0a+b = 0: tanθθ=90°\tan\theta \to \infty \Rightarrow \theta = 90° — perpendicular lines
  • h2=abh^2 = ab: tanθ=0θ=0°\tan\theta = 0 \Rightarrow \theta = 0° — coincident lines
  • This formula applies equally to the general pair ax2+2hxy+by2+2gx+2fy+c=0ax^2+2hxy+by^2+2gx+2fy+c=0 — the angle between the lines depends only on aa, hh, bb.