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⁡θ=∣m1−m21+m1m2∣\tan\theta = \left|\frac{m_1-m_2}{1+m_1m_2}\right|

Now:

(m1−m2)2=(m1+m2)2−4m1m2=4h2b2−4ab=4(h2−ab)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} m1−m2=2h2−abb(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⁡θ=∣2h2−ab/b(a+b)/b∣=2h2−ab∣a+b∣\tan\theta = \left|\frac{2\sqrt{h^2-ab}/b}{(a+b)/b}\right| = \frac{2\sqrt{h^2-ab}}{|a+b|} tan⁡θ=2h2−aba+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.