Concept understanding — Distance Between Parallel Lines and Point of Intersection
Once the determinant test of the previous concept confirms that ax2+2hxy+by2+2gx+2fy+c=0 represents a genuine pair of straight lines, two natural follow-up questions arise depending on whether the lines are parallel or intersecting.
If the lines are parallel (h2=ab, so they share the same homogeneous part), we may write them as lx+my+c1=0 and lx+my+c2=0 for the same direction l,m but different constants. Multiplying these out and matching coefficients against the general equation gives a=l2, b=m2, 2g=l(c1+c2), c=c1c2. The distance between two parallel lines is the classical l2+m2∣c1−c2∣; expressing ∣c1−c2∣ via (c1−c2)2=(c1+c2)2−4c1c2 and substituting c1+c2=2g/l, c1c2=c, l2=a gives ∣c1−c2∣=2(g2−ac)/a, and since l2+m2=a+b, the distance becomes
d=2a(a+b)g2−ac.
If the lines intersect (h2=ab), their point of intersection is the point where both partial derivatives of the quadratic expression vanish simultaneously — a shortcut that works because differentiating a product of two linear factors with respect to x (or y) and setting it to zero isolates exactly the point common to both. This gives the pair of simultaneous linear equations
ax+hy+g=0,hx+by+f=0,
solved by Cramer's rule as x=ab−h2hf−bg, y=ab−h2gh−af.
As worked checks: 4x2+12xy+9y2−10x−15y+4=0 has a=4,h=6,b=9 (indeed h2=36=ab, confirming parallel lines), g=−5,c=4, giving distance d=2(25−16)/(4×13)=13313. Separately, x2−y2−x+5y−6=0 has a=1,h=0,b=−1,g=−21,f=25; solving x−21=0, −y+25=0 gives intersection point (21,25). …