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

Condition for Parallel Lines

The general equation represents two parallel lines iff h² = ab (same slope condition) and af² = bg² (consistency condition). When these hold, ab − h² = 0 so the point of intersection formula breaks down — the lines do not meet.
Derivation

For the general equation ax2+2hxy+by2+2gx+2fy+c=0ax^2+2hxy+by^2+2gx+2fy+c=0 to represent two parallel lines:

Condition 1 — Equal slopes: Both lines have the same slope. The slope of the pair depends on aa, hh, bb. Two lines are parallel (non-intersecting) iff abh2=0ab-h^2 = 0, i.e. h2=abh^2 = ab.

When h2=abh^2 = ab: h=abh = \sqrt{ab} (taking positive root), and the equation factors as:

(ax+by)2+2gx+2fy+c=0(\sqrt{a}x+\sqrt{b}y)^2 + 2gx+2fy+c = 0

For this to factor into two distinct linear factors (not a perfect square), we need additional conditions.

Condition 2 — Consistency: If h2=abh^2 = ab, the equation becomes:

(ax+by+p)(ax+by+q)=0(\sqrt{a}x+\sqrt{b}y+p)(\sqrt{a}x+\sqrt{b}y+q) = 0

for some p,qp, q. Expanding: a+ba+b term is (ax+by)2(\sqrt{a}x+\sqrt{b}y)^2, 2g=a(p+q)2g = \sqrt{a}(p+q), 2f=b(p+q)2f = \sqrt{b}(p+q), c=pqc = pq.

From 2g/2f=a/b2g/2f = \sqrt{a}/\sqrt{b}: gb=fag\sqrt{b} = f\sqrt{a}, i.e. g2b=f2ag^2b = f^2a, or:

af2=bg2af^2 = bg^2

Summary: Two parallel lines iff h2=abh^2 = ab AND af2=bg2af^2 = bg^2 (equivalently, bg2=af2bg^2 = af^2).

Distinct parallel lines: Δ=0\Delta = 0 and h2=abh^2 = ab and pqp \neq q. Coincident lines: additionally p=qp = q, so c=p2c = p^2 and g2=acg^2 = ac, f2=bcf^2 = bc.