Skip to content

Mathematics · Ch 6 — Two Dimensional Analytical Geometry

General Form of a Pair of Straight Lines

6.5.4

General Form of a Pair of Straight Lines

Multiplying out two arbitrary (not necessarily through the origin) lines l1x+m1y+n1=0l_1x+m_1y+n_1=0 and l2x+m2y+n2=0l_2x+m_2y+n_2=0 gives the general second-degree equation

ax^2+2hxy+by^2+2gx+2fy+c=0, \qquad($\ast$)

with a=l1l2, b=m1m2, c=n1n2, 2h=l1m2+l2m1, 2g=l1n2+l2n1, 2f=m1n2+m2n1a=l_1l_2,\ b=m_1m_2,\ c=n_1n_2,\ 2h=l_1m_2+l_2m_1,\ 2g=l_1n_2+l_2n_1,\ 2f=m_1n_2+m_2n_1 — a non-homogeneous equation of degree two (unlike §6.5.1's homogeneous case, since the lines need not pass through the origin now).

Condition for (∗)(\ast) to represent a pair of straight lines. Not every second-degree equation factors into two linear equations — treating (∗)(\ast) as a quadratic in xx: ax2+2(hy+g)x+(by2+2fy+c)=0ax^2+2(hy+g)x+(by^2+2fy+c)=0, so x=−(hy+g)±(hy+g)2−a(by2+2fy+c)ax=\dfrac{-(hy+g)\pm\sqrt{(hy+g)^2-a(by^2+2fy+c)}}{a}, i.e. ax+hy+g=±(h2−ab)y2+2(gh−af)y+(g2−ac)ax+hy+g=\pm\sqrt{(h^2-ab)y^2+2(gh-af)y+(g^2-ac)}. For this to be a genuine straight line (linear in x,yx,y), the expression under the square root must itself be a perfect square in yy — a discriminant-zero condition that, after simplifying and dividing by aa, reduces to

abc+2fgh−af2−bg2−ch2=0,equivalently∣ahghbfgfc∣=0abc+2fgh-af^2-bg^2-ch^2=0, \qquad\text{equivalently}\qquad \begin{vmatrix}a & h & g\\ h & b & f\\ g & f & c\end{vmatrix}=0

(the determinant expansion — covered fully in the next chapter — reproduces exactly this same expression).

Results without proof, quoted for use:

  1. If (∗)(\ast) represents a pair of straight lines, they are parallel iff ah=hb=gf\dfrac{a}{h}=\dfrac{h}{b}=\dfrac{g}{f} (equivalently bg2=af2bg^2=af^2), and the distance between the two parallel lines is then 2g2−aca(a+b)2\sqrt{\dfrac{g^2-ac}{a(a+b)}} or, equivalently, 2f2−bcb(a+b)2\sqrt{\dfrac{f^2-bc}{b(a+b)}}.
  2. The homogeneous pair ax2+2hxy+by2=0ax^2+2hxy+by^2=0 (through the origin) is parallel to (∗)(\ast)'s pair (same two slopes) — (∗)(\ast)'s slopes depend only on the coefficients of x2,xy,y2x^2,xy,y^2, unaffected by g,f,cg,f,c; the origin pair meets at (0,0)(0,0), while (∗)(\ast)'s pair meets at P(hf−bgab−h2, gh−afab−h2)P\left(\dfrac{hf-bg}{ab-h^2},\ \dfrac{gh-af}{ab-h^2}\right).
  3. The angle between (∗)(\ast)'s two lines equals the angle between the origin pair's two lines: θ=tan⁡−1 ⁣∣2h2−aba+b∣\theta=\tan^{-1}\!\left|\dfrac{2\sqrt{h^2-ab}}{a+b}\right| — again unaffected by g,f,cg,f,c.
  4. (∗)(\ast)'s two lines are perpendicular iff a+b=0a+b=0 — exactly the same condition as for the homogeneous pair, for the same reason (only a,h,ba,h,b govern slope; g,f,cg,f,c only govern position).

Separating a general pair into its two lines. First factor the second-degree terms ax2+2hxy+by2ax^2+2hxy+by^2 alone into two linear factors (as in §6.5.1); then find the two constant terms by writing ax2+2hxy+by2+2gx+2fy+c≡(l1x+m1y+c1)(l2x+m2y+c2)ax^2+2hxy+by^2+2gx+2fy+c\equiv(l_1x+m_1y+c_1)(l_2x+m_2y+c_2) and comparing the coefficients of xx and yy (using c1c2=cc_1c_2=c as a consistency check). …

Figure 6.49General pair vs. the origin pair

What this figure shows. The general pair of lines ax2+2hxy+by2+2gx+2fy+c=0ax^2+2hxy+by^2+2gx+2fy+c=0 drawn together with the parallel pair ax2+2hxy+by2=0ax^2+2hxy+by^2=0 through the origin, showing the two pairs have the same pair of slopes/direction but different points of intersection. …