PYQ Vault

HSC Maths · Pair of Straight Lines

General Second Degree Equation of Two Lines

When ax² + 2hxy + by² + 2gx + 2fy + c = 0 is a pair of lines: the test for it, its separate equations, the angle between the lines, where they meet, and the median of the triangle a pair makes with a third line.

Why this matters

29 questions, three of them from board papers: the condition on hxy + gx + fy + c = 0 for a pair of lines (an MCQ in 2015), p and q when px² − 8xy + 3y² + 14x + 2y + q = 0 is a pair of perpendicular lines (2019), and the point where the lines x² − y² − 2x + 1 = 0 meet (2025). The textbook rows are Exercise 4.3, its solved examples and the Miscellaneous questions on the general equation.

Concept 1 of 4: When a general second degree equation is a pair of lines

Multiply two lines that do not pass through the origin and you get every kind of term: x², xy, y², x, y and a constant. That is a general second degree equation. But the converse fails: x² + y² = 25 has the same kinds of terms and is a circle. So there is a test, a determinant built from the six coefficients, and you use it mainly to find an unknown coefficient.

Definition

  • ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0, with at least one of a,h,ba, h, b not zero, is a general second degree equation in xx and yy.
  • Theorem 4.5: the combined equation of two lines is a general second degree equation: expanding (a1x+b1y+c1)(a2x+b2y+c2)=0(a_1x + b_1y + c_1)(a_2x + b_2y + c_2) = 0 gives a=a1a2a = a_1a_2, b=b1b2b = b_1b_2, 2h=a1b2+a2b12h = a_1b_2 + a_2b_1, 2g=a1c2+a2c12g = a_1c_2 + a_2c_1, 2f=b1c2+b2c12f = b_1c_2 + b_2c_1, c=c1c2c = c_1c_2.
  • The converse is not true: x2+y2=25x^2 + y^2 = 25 is a circle, not a pair of lines.
  • Necessary conditions for a pair of lines: abc+2fgh−af2−bg2−ch2=0abc + 2fgh - af^2 - bg^2 - ch^2 = 0 and h2−ab≥0h^2 - ab \geq 0. The first expression is the determinant with rows a,h,ga, h, g; h,b,fh, b, f; g,f,cg, f, c.
  • The determinant condition alone is not enough to show that an equation is a pair of lines. To show that an equation is a pair, factorise it (next concepts); use the condition to find an unknown.
  • If h2−ab<0h^2 - ab < 0, the equation is not a pair of lines.

Condition for a pair of lines

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

Worked example

Find the value of kk if the equation 2x2+3xy+y2+5x+2y+k=02x^2 + 3xy + y^2 + 5x + 2y + k = 0 represents a pair of lines.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2015 · Q. 1. (A) iii.Moderate

Example 1 · Pair of Straight Lines · General Second Degree Equation of Two Lines

If an equation hxy+gx+fy+c=0hxy + gx + fy + c = 0 represents a pair of lines, then

Taking g and f as the whole coefficients

The coefficient of xx is 2g2g and of yy is 2f2f. In 3x2+10xy+3y2+16y+k=03x^2 + 10xy + 3y^2 + 16y + k = 0, f=8f = 8 and g=0g = 0, not f=16f = 16.

Showing a pair by the determinant alone

The textbook warns that the determinant condition is not sufficient. When a question says 'show that the equation represents a pair of lines', factorise it into two linear factors.

Forgetting the second condition

Both conditions are needed: the determinant zero and h2−ab≥0h^2 - ab \geq 0. An equation with h2−ab<0h^2 - ab < 0 is not a pair of lines, whatever its determinant.

Concept 2 of 4: Angle, perpendicular and parallel lines, and the point of intersection

Moving a pair of lines away from the origin does not turn them, so the second degree part ax² + 2hxy + by² still decides their directions. The angle, the perpendicular test and the parallel test are the same as for the pair through the origin. Only the meeting point needs the other coefficients.

Definition

  • If ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 is a pair of lines, the lines are parallel to the lines ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0.
  • Acute angle: tan⁡θ=∣2h2−aba+b∣\tan\theta = \left|\dfrac{2\sqrt{h^2 - ab}}{a + b}\right|.
  • Perpendicular: a+b=0a + b = 0. Parallel: h2−ab=0h^2 - ab = 0.
  • Intersecting: h2−ab>0h^2 - ab > 0, and the point of intersection is (hf−bgab−h2,gh−afab−h2)\left(\dfrac{hf - bg}{ab - h^2}, \dfrac{gh - af}{ab - h^2}\right).
  • For 'find p and q' questions: the perpendicular (or parallel) condition gives one unknown; the determinant condition then gives the other.

Point of intersection of the pair

(hf−bgab−h2, gh−afab−h2)\left(\frac{hf - bg}{ab - h^2},\ \frac{gh - af}{ab - h^2}\right)

Worked example

The equation x2−5xy+4y2+x+2y−2=0x^2 - 5xy + 4y^2 + x + 2y - 2 = 0 represents a pair of lines. Find the acute angle between them and their point of intersection.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2019 · Q. 24Hard

Example 2 · Pair of Straight Lines · General Second Degree Equation of Two Lines

Find 'p' and 'q' if the equation px2−8xy+3y2+14x+2y+q=0px^{2} - 8xy + 3y^{2} + 14x + 2y + q = 0 represents a pair of perpendicular lines.

Turning the denominator round

The denominator in the point of intersection is ab−h2ab - h^2, not h2−abh^2 - ab. Using the wrong one gives the point reflected through the origin.

Stopping after the perpendicular condition

a+b=0a + b = 0 fixes only the coefficient of x2x^2 or y2y^2. The constant term still has to come from abc+2fgh−af2−bg2−ch2=0abc + 2fgh - af^2 - bg^2 - ch^2 = 0.

Concept 3 of 4: Separate equations of a general pair, and where the lines meet

Factorise the second degree part first; it tells you the two directions. Each line is then one of those factors plus an unknown constant. Comparing the x, y and constant terms finds the constants, and the third comparison checks that the equation really is a pair. An equation written in (x − α) and (y − β) is just a pair through the origin moved to the point (α, β).

Definition

  • Factorise ax2+2hxy+by2=(l1x+m1y)(l2x+m2y)ax^2 + 2hxy + by^2 = (l_1x + m_1y)(l_2x + m_2y).
  • Write the equation as (l1x+m1y+p)(l2x+m2y+q)=0(l_1x + m_1y + p)(l_2x + m_2y + q) = 0 and compare the coefficients of xx, of yy and the constant. Two comparisons find pp and qq; the third is the check.
  • An equation in X=x−αX = x - \alpha and Y=y−βY = y - \beta: factorise it as a homogeneous equation in XX and YY, then put back x−αx - \alpha and y−βy - \beta. Both lines pass through (α,β)(\alpha, \beta).
  • Lines through (α,β)(\alpha, \beta) parallel to the lines ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0: a(x−α)2+2h(x−α)(y−β)+b(y−β)2=0a(x - \alpha)^2 + 2h(x - \alpha)(y - \beta) + b(y - \beta)^2 = 0.
  • The point where the lines meet: solve the two separate equations together (or use the formula on the previous concept).

Pair through (α, β) parallel to a pair through the origin

a(x−α)2+2h(x−α)(y−β)+b(y−β)2=0a(x - \alpha)^2 + 2h(x - \alpha)(y - \beta) + b(y - \beta)^2 = 0

Worked example

Find the separate equations of the lines represented by (x+1)2−4(x+1)(y−3)+3(y−3)2=0(x + 1)^2 - 4(x + 1)(y - 3) + 3(y - 3)^2 = 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 6Easy

Example 3 · Pair of Straight Lines · General Second Degree Equation of Two Lines

Find the co-ordinates of the points of intersection of the lines represented by x2−y2−2x+1=0x^{2} - y^{2} - 2x + 1 = 0.

Comparing only two coefficients

Two comparisons are enough to find pp and qq, but the third (usually the constant term) must also be checked. If it fails, the equation is not a pair of lines.

The wrong sign when putting x back

X=x+1X = x + 1 means α=−1\alpha = -1. After factorising in XX and YY, substitute x+1x + 1 and y−3y - 3 exactly as written; a sign slip moves the lines off the point (−1,3)(-1, 3).

Concept 4 of 4: Median of the triangle a pair makes with a third line

A pair of lines through the origin and a third line form a triangle OAB. The median from O needs only the midpoint of AB. When you substitute the third line into the pair, the x-coordinates of A and B are the two roots of one quadratic, so their sum, and so the midpoint, comes without solving it.

Definition

  • Let the pair through the origin meet the third line at A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2). The midpoint of AB is P(x1+x22,y1+y22)P\left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right).
  • Substitute the third line into the pair to get a quadratic in xx (or yy). Its roots are x1x_1 and x2x_2, so x1+x2=−coefficient of xcoefficient of x2x_1 + x_2 = -\dfrac{\text{coefficient of } x}{\text{coefficient of } x^2}.
  • Halve it for the midpoint, find the other co-ordinate from the third line, and write the line through OO and PP.

Sum of the roots

Ax2+Bx+C=0  ⇒  x1+x2=−BAAx^2 + Bx + C = 0 \;\Rightarrow\; x_1 + x_2 = -\frac{B}{A}

Worked example

Triangle OAB is formed by the lines x2+6xy+5y2=0x^2 + 6xy + 5y^2 = 0 and the line 5x+7y−9=05x + 7y - 9 = 0. Find the equation of the median of the triangle drawn from O.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · 4.3 Q10Hard

Example 4 · Pair of Straight Lines · General Second Degree Equation of Two Lines

△OAB\triangle OAB is formed by lines x2−4xy+y2=0x^2 - 4xy + y^2 = 0 and the line 2x+3y−1=02x + 3y - 1 = 0. Find the equation of the median of the triangle drawn from O.

Forgetting to halve the sum

The sum of the roots is x1+x2x_1 + x_2; the midpoint needs x1+x22\dfrac{x_1 + x_2}{2}. Using the sum itself gives a point that is not on AB.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

Watch out for (8)

Test yourself on Pair of Straight Lines

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.