PYQ Vault

HSC Maths · Pair of Straight Lines

Combined Equation of a Pair of Lines

The product of two line equations is their combined equation. For lines through the origin it is ax² + 2hxy + by² = 0, a pair of lines when h² − ab ≥ 0, with slopes whose sum is −2h/b and product a/b.

Why this matters

109 questions, the largest page of the chapter. Nineteen came from board papers: the proof that ax² + 2hxy + by² = 0 is a pair of lines through the origin when h² − ab ≥ 0 (2016, 2018, 2020, 2025 and twice in 2026), k when the sum of the slopes is twice their product (2015, 2024, 2026) or when 2x + y = 0 is one of the lines (2022, 2026), the pair through the origin perpendicular to a given pair (2017, 2018), the ratio of the slopes when h² = ab (2023), the difference of the slopes (2024), and short questions on writing a combined equation or the separate equations (2022 to 2025). The textbook rows are Exercise 4.1, its solved examples and most of the Miscellaneous Exercise.

Concept 1 of 4: Writing the combined equation of two lines

A point lies on one of two lines exactly when it makes one of their equations zero, and that happens exactly when the product of the two equations is zero. So two lines are written as one equation by multiplying their equations. Going the other way, factorise a combined equation to get the two lines back. When a question describes the lines in words, find each line first, then multiply.

Definition

  • Theorem 4.1: if u≡a1x+b1y+c1u \equiv a_1x + b_1y + c_1 and v≡a2x+b2y+c2v \equiv a_2x + b_2y + c_2, then uv=0uv = 0 is the combined (joint) equation of the lines u=0u = 0 and v=0v = 0.
  • Proof outline: a point P(x1,y1)P(x_1, y_1) on u=0u = 0 makes the first factor zero, so it satisfies uv=0uv = 0; the same holds for every point of v=0v = 0.
  • Conversely, if R(x′,y′)R(x', y') satisfies uv=0uv = 0, one of the two factors is zero, so RR lies on u=0u = 0 or on v=0v = 0.
  • u=0u = 0 and v=0v = 0 are called the separate equations of the lines.
  • Lines through (p,q)(p, q) parallel to the co-ordinate axes: (x−p)(y−q)=0(x - p)(y - q) = 0. The co-ordinate axes themselves: xy=0xy = 0.
  • For a line through a point, use the slope point form y−y1=m(x−x1)y - y_1 = m(x - x_1). A parallel line has the same slope; a perpendicular line has slope −1m-\dfrac{1}{m}.
  • To split a combined equation that is not homogeneous, group the terms: x2−y2+x+y=(x+y)(x−y)+(x+y)=(x+y)(x−y+1)x^2 - y^2 + x + y = (x + y)(x - y) + (x + y) = (x + y)(x - y + 1).

Combined equation of two lines

(a1x+b1y+c1)(a2x+b2y+c2)=0(a_1x + b_1y + c_1)(a_2x + b_2y + c_2) = 0

Worked example

Find the combined equation of the pair of lines passing through (1,−2)(1, -2), one of which is parallel to 2x−y+3=02x - y + 3 = 0 and the other perpendicular to x+3y−4=0x + 3y - 4 = 0.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 16Moderate

Example 1 · Pair of Straight Lines · Combined Equation of a Pair of Lines

Find the combined equation of pair of lines passing through (2, 3) and perpendicular to the lines 3x+2y−1=03x + 2y - 1 = 0 and x−3y+2=0x - 3y + 2 = 0.

Adding the equations instead of multiplying

u+v=0u + v = 0 is a single line through the point where u=0u = 0 and v=0v = 0 meet. The combined equation of the two lines is the product uv=0uv = 0.

The wrong perpendicular slope

A line perpendicular to a line of slope mm has slope −1m-\dfrac{1}{m}, not −m-m and not 1m\dfrac{1}{m}. One sign slip changes both the line and every term of the expanded answer.

Concept 2 of 4: Homogeneous equation of degree two and when it is a pair of lines

Two lines through the origin have no constant terms, so their product has only x², xy and y² terms: every term has degree two. Such an equation is called homogeneous. But not every homogeneous equation is a pair of lines: x² + y² = 0 is satisfied only by the origin. The test is the sign of h² − ab, and the board asks you to prove it.

Definition

  • The degree of a term is the sum of the indices of its variables. An equation in which every term has the same degree is homogeneous. A homogeneous equation of degree two in xx and yy has the form ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0.
  • Theorem 4.2: the combined equation of two lines through the origin is homogeneous of degree two: (a1x+b1y)(a2x+b2y)=0(a_1x + b_1y)(a_2x + b_2y) = 0 gives a=a1a2a = a_1a_2, 2h=a1b2+a2b12h = a_1b_2 + a_2b_1, b=b1b2b = b_1b_2.
  • Theorem: ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 represents a pair of lines through the origin if h2−ab≥0h^2 - ab \geq 0. Proof outline:
  • Case 1, b=0b = 0: the equation is ax2+2hxy=0ax^2 + 2hxy = 0, that is x(ax+2hy)=0x(ax + 2hy) = 0, the lines x=0x = 0 and ax+2hy=0ax + 2hy = 0, both through the origin.
  • Case 2, b≠0b \neq 0: multiply by bb: abx2+2hbxy+b2y2=0abx^2 + 2hbxy + b^2y^2 = 0, so b2y2+2hbxy=−abx2b^2y^2 + 2hbxy = -abx^2.
  • Add h2x2h^2x^2 to both sides: (by+hx)2=(h2−ab)x2(by + hx)^2 = (h^2 - ab)x^2.
  • As h2−ab≥0h^2 - ab \geq 0: (by+hx)2−(h2−ab x)2=0(by + hx)^2 - \left(\sqrt{h^2 - ab}\,x\right)^2 = 0.
  • ∴[(h+h2−ab)x+by][(h−h2−ab)x+by]=0\therefore \left[(h + \sqrt{h^2 - ab})x + by\right]\left[(h - \sqrt{h^2 - ab})x + by\right] = 0: two lines with no constant term, so both pass through the origin.
  • If h2−ab>0h^2 - ab > 0 the lines are distinct; if h2−ab=0h^2 - ab = 0 they are coincident; if h2−ab<0h^2 - ab < 0 the equation is not a pair of lines.
  • Separate equations: factorise by splitting the middle term. When it does not split, use the slopes from the auxiliary equation (next concept).

Pair of lines through the origin

ax2+2hxy+by2=0 is a pair of lines through the origin if h2−ab≥0ax^2 + 2hxy + by^2 = 0 \text{ is a pair of lines through the origin if } h^2 - ab \geq 0

Worked example

Show that 2x2−7xy+3y2=02x^2 - 7xy + 3y^2 = 0 represents a pair of distinct lines through the origin, and find their separate equations.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2016 · Q. 3. (B) iii.Moderate

Example 2 · Pair of Straight Lines · Combined Equation of a Pair of Lines

Show that every homogeneous equation of degree two in xx and yy, i.e., ax2+2hxy+by2=0ax^{2} + 2hxy + by^{2} = 0 represents a pair of lines passing through origin if h2−ab≥0h^{2} - ab \geq 0.

Proving only the case b ≠ 0

The proof has two cases. Write the case b=0b = 0 as well, where the equation becomes x(ax+2hy)=0x(ax + 2hy) = 0. Leaving it out makes the proof incomplete.

Taking h as the whole coefficient of xy

The middle term is 2hxy2hxy. In 2x2−7xy+3y22x^2 - 7xy + 3y^2, h=−72h = -\dfrac{7}{2}, not −7-7. Using −7-7 makes h2−abh^2 - ab four times too big.

Homogeneous does not mean a pair

x2+y2=0x^2 + y^2 = 0 is homogeneous of degree two, but only the origin satisfies it, since h2−ab=−1<0h^2 - ab = -1 < 0. Check h2−abh^2 - ab before calling an equation a pair of lines.

Concept 3 of 4: Sum and product of the slopes, and the auxiliary equation

Put y = mx in ax² + 2hxy + by² = 0 and divide by x²: you get a quadratic in m whose two roots are the slopes of the two lines. So the sum and product of the slopes can be read straight off the coefficients, without finding the lines. Most 'find k' questions are this quadratic in disguise.

Definition

  • When b≠0b \neq 0, the slopes m1,m2m_1, m_2 are the roots of the auxiliary equation bm2+2hm+a=0bm^2 + 2hm + a = 0.
  • m1+m2=−2hbm_1 + m_2 = -\dfrac{2h}{b} and m1m2=abm_1m_2 = \dfrac{a}{b}. The slopes are −h±h2−abb\dfrac{-h \pm \sqrt{h^2 - ab}}{b}.
  • If b=0b = 0, one line is the Y-axis (no slope) and the other has slope −a2h-\dfrac{a}{2h}, provided h≠0h \neq 0.
  • A given line through the origin is one of the pair exactly when its slope is a root of the auxiliary equation: substitute the slope.
  • Slopes in a given relation (one is kk times the other, they differ by dd): write the slopes as mm and kmkm, use the sum and the product, and eliminate mm.
  • Difference of the slopes: (m1−m2)2=(m1+m2)2−4m1m2=4(h2−ab)b2(m_1 - m_2)^2 = (m_1 + m_2)^2 - 4m_1m_2 = \dfrac{4(h^2 - ab)}{b^2}.

Auxiliary equation, sum and product of slopes

bm2+2hm+a=0,m1+m2=−2hb,m1m2=abbm^2 + 2hm + a = 0, \qquad m_1 + m_2 = -\frac{2h}{b}, \qquad m_1m_2 = \frac{a}{b}

Worked example

Find the value of kk if the slope of one of the lines represented by 2x2+kxy+y2=02x^2 + kxy + y^2 = 0 is twice the slope of the other.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2015 · Q. 1. (B) ii.Easy

Example 3 · Pair of Straight Lines · Combined Equation of a Pair of Lines

Find 'k', if the sum of slopes of lines represented by equation x2+kxy−3y2=0x^{2} + kxy - 3y^{2} = 0 is twice their product.

Writing the auxiliary equation the wrong way round

The auxiliary equation is bm2+2hm+a=0bm^2 + 2hm + a = 0: the coefficient of y2y^2 goes with m2m^2. So the sum of the slopes is −2hb-\dfrac{2h}{b} and the product ab\dfrac{a}{b}, not ba\dfrac{b}{a}.

Keeping only one value of k

Elimination often ends in k2=k^2 = a number. Give both signs, k=±3k = \pm 3, unless the question rules one out.

Dividing by b when there is no y² term

If b=0b = 0 the formulas −2hb-\dfrac{2h}{b} and ab\dfrac{a}{b} do not exist. Factorise instead: one line is x=0x = 0.

Concept 4 of 4: Pair through the origin perpendicular to a given pair

Each new line must be perpendicular to one of the given lines, so its slope is minus the reciprocal of that line's slope. Write the two new lines with these slopes, multiply them, and replace the sum and product of the old slopes by −2h/b and a/b. The result is easy to remember: swap a and b, and change the sign of the middle term.

Definition

  • Let m1,m2m_1, m_2 be the slopes of the lines ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0, so m1+m2=−2hbm_1 + m_2 = -\dfrac{2h}{b} and m1m2=abm_1m_2 = \dfrac{a}{b}.
  • The required lines have slopes −1m1-\dfrac{1}{m_1} and −1m2-\dfrac{1}{m_2} and pass through the origin: y=−xm1y = -\dfrac{x}{m_1} and y=−xm2y = -\dfrac{x}{m_2}, that is x+m1y=0x + m_1y = 0 and x+m2y=0x + m_2y = 0.
  • Combined equation: (x+m1y)(x+m2y)=0(x + m_1y)(x + m_2y) = 0, so x2+(m1+m2)xy+m1m2y2=0x^2 + (m_1 + m_2)xy + m_1m_2y^2 = 0.
  • ∴x2−2hbxy+aby2=0\therefore x^2 - \dfrac{2h}{b}xy + \dfrac{a}{b}y^2 = 0. Multiply by bb: bx2−2hxy+ay2=0bx^2 - 2hxy + ay^2 = 0.
  • In a board answer, show these steps with the numbers of the question; quote the result as a check.

Perpendicular pair through the origin

ax2+2hxy+by2=0  ⟶  bx2−2hxy+ay2=0ax^2 + 2hxy + by^2 = 0 \;\longrightarrow\; bx^2 - 2hxy + ay^2 = 0

Worked example

Find the joint equation of the pair of lines through the origin which are perpendicular to the lines represented by 6x2−xy−2y2=06x^2 - xy - 2y^2 = 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2017 · Q. 3. (A) ii.Moderate

Example 4 · Pair of Straight Lines · Combined Equation of a Pair of Lines

Find the joint equation of the pair of lines passing through the origin which are perpendicular respectively to the lines represented by 5x2+2xy−3y2=05x^{2} + 2xy - 3y^{2} = 0.

Doing only half of the rule

Two things change: aa and bb swap places, and the middle term changes sign. For 2x2+9xy+4y2=02x^2 + 9xy + 4y^2 = 0 the answer is 4x2−9xy+2y2=04x^2 - 9xy + 2y^2 = 0. Writing 4x2+9xy+2y2=04x^2 + 9xy + 2y^2 = 0 (sign not changed) or 2x2−9xy+4y2=02x^2 - 9xy + 4y^2 = 0 (not swapped) gives the wrong pair.

Taking reciprocal slopes without the minus sign

A line perpendicular to slope mm has slope −1m-\dfrac{1}{m}. Using 1m\dfrac{1}{m} gives lines through the origin that are not perpendicular to the given ones.

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 (10)

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.