Academy
Formulas/maths/Pair Of Straight Lines/Condition for Perpendicular Lines

Condition for Perpendicular Lines

The two lines of ax² + 2hxy + by² = 0 are perpendicular iff a + b = 0 (sum of coefficients of x² and y² is zero). Equivalently m₁m₂ = −1 gives a/b = −1.
Derivation

The two lines of ax2+2hxy+by2=0ax^2+2hxy+by^2=0 are perpendicular iff m1m2=1m_1m_2 = -1.

From Vieta's: m1m2=a/bm_1m_2 = a/b. Setting a/b=1a/b = -1:

a=b    a+b=0a = -b \implies a+b = 0

Alternative derivation from the angle formula:

tanθ=2h2aba+b\tan\theta = \frac{2\sqrt{h^2-ab}}{a+b}

For θ=90°\theta = 90°, tanθ\tan\theta \to \infty, which requires a+b=0a+b = 0 (denominator zero, numerator non-zero).

Geometric significance: For the pair (lx+my)(lx+my)=0(lx+my)(l'x+m'y) = 0, expanding gives:

llx2+(lm+ml)xy+mmy2=0ll'x^2 + (lm'+ml')xy + mm'y^2 = 0

Here a=lla = ll', b=mmb = mm'. The lines are perpendicular iff ll+mm=0ll' + mm' = 0 — the dot product of their direction vectors (l,m)(l, m) and (l,m)(l', m') is zero. The condition a+b=0a+b=0 is exactly this dot product condition.

For the general second-degree equation: The angle between the lines depends only on aa, hh, bb — not on gg, ff, cc. So the perpendicularity condition a+b=0a+b=0 applies to the general equation without modification.