Skip to content

Mathematics · Ch 4 — Pair of Straight Lines

The necessary conditions for a general second degree equation

4.4.1

The necessary conditions for a general second degree equation

For the general second-degree equation ax2+2hxy+by2+2gx+2fy+c=0ax^2+2hxy+by^2+2gx+2fy+c=0 to represent a genuine pair of straight lines, two conditions must both hold:

  1. abc+2fgh−af2−bg2−ch2=0abc+2fgh-af^2-bg^2-ch^2=0 (the determinant condition), and
  2. h2−ab≥0h^2-ab \geq 0. Condition (i) is exactly the vanishing of the 3×33\times3 determinant ∣ahghbfgfc∣\begin{vmatrix}a&h&g\\h&b&f\\g&f&c\end{vmatrix}, whose expansion along the first row reproduces abc+2fgh−af2−bg2−ch2abc+2fgh-af^2-bg^2-ch^2. Condition (i) alone is not sufficient on its own to prove a pair of lines -- both conditions are needed together, and in practice the safest method for identifying the separate lines is to factor the quadratic part and then find the two linear constants by comparison, as in Example 1 below, rather than relying only on the determinant formula. Whenever an equation does represent a pair of lines, several useful facts follow automatically:
  1. The two lines are parallel to the lines represented by the homogeneous part ax2+2hxy+by2=0ax^2+2hxy+by^2=0 (dropping the general equation's linear and constant terms leaves the equation of the pair of lines through the origin parallel to the original pair).

  2. The acute angle between them is still given by tan⁡θ=2h2−aba+b\tan\theta = \dfrac{2\sqrt{h^2-ab}}{a+b}, exactly as for the homogeneous case, since translating a line does not change its slope.

  3. The lines are perpendicular exactly when a+b=0a+b=0.

  4. The lines are parallel to each other (coincident direction) exactly when h2−ab=0h^2-ab=0.

  5. When h2−ab>0h^2-ab>0 the two lines genuinely intersect, at the point (hf−bgab−h2, gh−afab−h2)\left(\dfrac{hf-bg}{ab-h^2},\ \dfrac{gh-af}{ab-h^2}\right).

  6. The joint equation of the two bisectors of the angle between the lines represented by ax2+2hxy+by2=0ax^2+2hxy+by^2=0 is hx2−(a−b)xy−hy2=0hx^2-(a-b)xy-hy^2=0; since the coefficient of x2x^2 plus the coefficient of y2y^2 in this bisector equation is h+(−h)=0h+(-h)=0, the two bisectors are always perpendicular to each other -- exactly as the two angle bisectors of any pair of lines should be.

Worked Examples

Example 1. Show that x2−6xy+5y2+10x−14y+9=0x^2-6xy+5y^2+10x-14y+9=0 represents a pair of lines; find the acute angle between them and their point of intersection.

The quadratic part factors as x2−6xy+5y2=(x−5y)(x−y)x^2-6xy+5y^2=(x-5y)(x-y). Try writing the full equation as (x−5y+c)(x−y+k)(x-5y+c)(x-y+k) for constants c,kc,k: expanding gives x2−6xy+5y2+(c+k)x−(c+5k)y+ckx^2-6xy+5y^2+(c+k)x-(c+5k)y+ck. Comparing with the given linear and constant terms: c+k=10c+k=10, c+5k=14c+5k=14, ck=9ck=9. Testing c=9,k=1c=9,k=1 satisfies all three (check: 9+1=109+1=10 ✓, 9+5=149+5=14 ✓, 9×1=99\times1=9 ✓), so the equation factors as (x−5y+9)(x−y+1)=0(x-5y+9)(x-y+1)=0, confirming it represents a pair of intersecting lines.

The acute angle: with a=1,h=−3,b=5a=1,h=-3,b=5, tan⁡θ=29−51+5=2(2)6=23\tan\theta=\dfrac{2\sqrt{9-5}}{1+5}=\dfrac{2(2)}{6}=\dfrac23, so θ=tan⁡−123\theta=\tan^{-1}\dfrac23.

The point of intersection is where both factors vanish: x−5y+9=0x-5y+9=0 and x−y+1=0x-y+1=0. Subtracting, −4y+8=0⇒y=2-4y+8=0 \Rightarrow y=2, then x=y−1=1x=y-1=1. So the lines meet at (1,2)(1,2) (matching the general point-of-intersection formula with g=5,f=−7,c=9,a=1,h=−3,b=5g=5,f=-7,c=9,a=1,h=-3,b=5).

Example 2. Find kk if 2x2+4xy−2y2+4x+8y+k=02x^2+4xy-2y^2+4x+8y+k=0 represents a pair of lines.

Here a=2,b=−2,c=k,f=4,g=2,h=2a=2,b=-2,c=k,f=4,g=2,h=2. The determinant condition gives abc+2fgh−af2−bg2−ch2=0abc+2fgh-af^2-bg^2-ch^2=0: (2)(−2)(k)+2(4)(2)(2)−2(16)−(−2)(4)−(k)(4)=0(2)(-2)(k)+2(4)(2)(2)-2(16)-(-2)(4)-(k)(4)=0, i.e. −4k+32−32+8−4k=0-4k+32-32+8-4k=0, i.e. −8k+8=0-8k+8=0, so k=1k=1.

Example 3. Find pp and qq if 2x2+4xy−py2+4x+qy+1=02x^2+4xy-py^2+4x+qy+1=0 represents a pair of perpendicular lines.

Here a=2,b=−p,c=1,f=q2,g=2,h=2a=2,b=-p,c=1,f=\dfrac{q}{2},g=2,h=2. Perpendicularity requires a+b=0a+b=0: 2−p=0⇒p=22-p=0 \Rightarrow p=2. The determinant condition abc+2fgh−af2−bg2−ch2=0abc+2fgh-af^2-bg^2-ch^2=0 becomes (2)(−p)(1)+2(q2)(2)(2)−2(q2)2−(−p)(4)−1(4)=0(2)(-p)(1)+2\left(\dfrac q2\right)(2)(2)-2\left(\dfrac q2\right)^2-(-p)(4)-1(4)=0, i.e. −2p+4q−q22+4p−4=0-2p+4q-\dfrac{q^2}2+4p-4=0, i.e. 2p+4q−q22−4=02p+4q-\dfrac{q^2}2-4=0. Substituting p=2p=2: 4+4q−q22−4=0⇒4q−q22=0⇒8q−q2=0⇒q(8−q)=04+4q-\dfrac{q^2}2-4=0 \Rightarrow 4q-\dfrac{q^2}2=0 \Rightarrow 8q-q^2=0 \Rightarrow q(8-q)=0, so q=0q=0 or q=8q=8. …

Table 4.4.13x3 determinant form of abc + 2fgh - af^2 - bg^2 - ch^2

| a h g |

| h b f | …