PYQ Vault

MHT-CET Maths · Pair of Straight Lines

General Second-Degree Equation — Condition for a Pair, Parallel Lines and Distances

ax² + 2hxy + by² + 2gx + 2fy + c = 0 is a pair of lines iff abc + 2fgh − af² − bg² − ch² = 0 (with h² ≥ ab); when h² = ab the pair is parallel and the gap is 2√((g² − ac)/(a(a + b))).

Why this matters

10 PYQs at 40% HARD. The determinant condition appears with a parameter to find (k in kxy + 10x + 8y + 16 = 0; the fg = ch identity; a count of integer p), and the parallel-lines case appears as a distance to compute or a p² + q² − pq to evaluate; two stems are the product of perpendicular distances from a point to a homogeneous pair. Read 2g, 2f, 2h off the equation as HALVES — every wrong answer here is a factor of 2 in g, f or h.

Concept 1 of 3

Condition for a Pair: abc + 2fgh − af² − bg² − ch² = 0

Intuition

A second-degree equation factorises into two linear ones only when its 3×33 \times 3 coefficient determinant vanishes. Identify a,h,b,g,f,ca, h, b, g, f, c with the halves, substitute, and solve for the unknown.

Definition

  • kxy+10x+8y+16=0kxy + 10x + 8y + 16 = 0: a=b=0a = b = 0, h=k2h = \tfrac{k}{2}, g=5g = 5, f=4f = 4, c=16c = 16: 2⋅4⋅5⋅k2−16⋅k24=20k−4k2=0⇒k=02 \cdot 4 \cdot 5 \cdot \tfrac{k}{2} - 16 \cdot \tfrac{k^2}{4} = 20k - 4k^2 = 0 \Rightarrow k = 0 or 55. k=0k = 0 leaves a single line, so k=5k = 5 only.
  • hxy+gx+fy+c=0hxy + gx + fy + c = 0: the condition reduces to fgh4−ch24=0\dfrac{fgh}{4} - \dfrac{ch^2}{4} = 0, i.e. fg=chfg = ch.
  • 2x2+4xy−py2+4x+qy+1=02x^2 + 4xy - py^2 + 4x + qy + 1 = 0: the condition gives p=(q−4)24−2≥−2p = \dfrac{(q - 4)^2}{4} - 2 \ge -2, every p≥−2p \ge -2 attained; integers in [−5,5][-5, 5]: −2,…,5-2, \dots, 5, eight.
  • Also required: h2≥abh^2 \ge ab for the lines to be real. Check it when the answer is a count.

Pair condition

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

Worked example

Find λ\lambda if x2+3xy+2y2+x+λy−2=0x^2 + 3xy + 2y^2 + x + \lambda y - 2 = 0 represents a pair of lines.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Pair of Straight LinesMODERATE
If the equation kxy+10x+8y+16=0kxy+ 10x+ 8y+ 16 = 0 represents a pair of lines, then

[Q114 · 20 April Shift II · 2025]

Counting k = 0 as a pair

k=0k = 0 satisfies Δ=0\Delta = 0 but reduces the equation to 10x+8y+16=010x + 8y + 16 = 0, a single line. 'k = 0 or 5' is option (C) and wrong.

Concept 2 of 3

Parallel Pair (h² = ab): Factor as a Perfect Square, or Use 2√((g² − ac)/(a(a + b)))

Intuition

When h2=abh^2 = ab the quadratic part is a perfect square (ax+by)2(\sqrt a x + \sqrt b y)^2, and the whole equation is (ax+by+α)(ax+by+β)(\sqrt a x + \sqrt b y + \alpha)(\sqrt a x + \sqrt b y + \beta): two parallel lines whose gap is the parallel-lines distance.

Definition

  • 4x2+4xy+y2−6x−3y−4=(2x+y)2−3(2x+y)−4=(2x+y−4)(2x+y+1)4x^2 + 4xy + y^2 - 6x - 3y - 4 = (2x + y)^2 - 3(2x + y) - 4 = (2x + y - 4)(2x + y + 1): gap 55=5\dfrac{5}{\sqrt5} = \sqrt5.
  • (x−2y+1)2+k(x−2y+1)=0(x - 2y + 1)^2 + k(x - 2y + 1) = 0: lines x−2y+1=0x - 2y + 1 = 0 and x−2y+1+k=0x - 2y + 1 + k = 0, gap ∣k∣5=5⇒k=5\dfrac{|k|}{\sqrt5} = \sqrt5 \Rightarrow k = 5.
  • 16x2−24xy+9y2+48x−36y+35=016x^2 - 24xy + 9y^2 + 48x - 36y + 35 = 0: a=16a = 16, g=24g = 24, c=35c = 35, b=9b = 9: 2576−56016⋅25=2⋅420=252\sqrt{\dfrac{576 - 560}{16 \cdot 25}} = 2 \cdot \dfrac{4}{20} = \dfrac25.
  • x2+4xy+py2+3x+qy−4=0x^2 + 4xy + py^2 + 3x + qy - 4 = 0 parallel: p=4p = 4; (x+2y)2+3(x+2y)−4=(x+2y+4)(x+2y−1)(x + 2y)^2 + 3(x + 2y) - 4 = (x + 2y + 4)(x + 2y - 1) needs q=6q = 6; gap 55=5\dfrac{5}{\sqrt5} = \sqrt5, λ2=5\lambda^2 = 5.
  • 7x2−14xy+py2−12x+qy−4=07x^2 - 14xy + py^2 - 12x + qy - 4 = 0 parallel: p=7p = 7; 7(x−y)2−12(x−y)−4=07(x - y)^2 - 12(x - y) - 4 = 0 forces the yy coefficient q=12q = 12; p2+q2−pq=49+144−84=109p^2 + q^2 - pq = 49 + 144 - 84 = 109.

Parallel pair

h2=ab:d=2g2−aca(a+b)=2f2−bcb(a+b)h^2 = ab:\quad d = 2\sqrt{\frac{g^2 - ac}{a(a + b)}} = 2\sqrt{\frac{f^2 - bc}{b(a + b)}}

Worked example

Find the distance between the lines x2+2xy+y2−5x−5y+6=0x^2 + 2xy + y^2 - 5x - 5y + 6 = 0.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Pair of Straight LinesMODERATE
The distance between the lines represented by the equation 4x2+4xy+y2−6x−3y−4=04x^{2}+ 4xy+y^{2}- 6x- 3y- 4 = 0 is

[Q137 · 20 April Shift I · 2025]

Reporting the gap squared, or halving it

The formula already carries the factor 22: 216/400=252\sqrt{16/400} = \dfrac25. 15\dfrac15 (no 22) and 55 (squared reciprocal) are the neighbours on the list.

Concept 3 of 3

Product of the Perpendicular Distances From a Point to the Two Lines

Intuition

Factorise the pair and multiply the two point-to-line distances; the ⋅\sqrt{\cdot} denominators often cancel. For a homogeneous pair there is a closed form: ∣ax12+2hx1y1+by12∣(a−b)2+4h2\dfrac{|ax_1^2 + 2hx_1y_1 + by_1^2|}{\sqrt{(a - b)^2 + 4h^2}}.

Definition

  • 2x2−5xy+2y2=(2x−y)(x−2y)2x^2 - 5xy + 2y^2 = (2x - y)(x - 2y); from (2,−1)(2, -1): P1=∣4+1∣5=5P_1 = \dfrac{|4 + 1|}{\sqrt5} = \sqrt5, P2=∣2+2∣5=45P_2 = \dfrac{|2 + 2|}{\sqrt5} = \dfrac{4}{\sqrt5}; product 44.
  • Closed form check: ∣8+10+2∣0+25=205=4\dfrac{|8 + 10 + 2|}{\sqrt{0 + 25}} = \dfrac{20}{5} = 4.
  • The closed form's denominator is (a−b)2+4h2\sqrt{(a - b)^2 + 4h^2}, the same square root that appears in the angle formula's numerator squared plus (a+b)2(a + b)^2.

Product of distances

P1P2=∣ax12+2hx1y1+by12∣(a−b)2+4h2P_1 P_2 = \frac{|ax_1^2 + 2hx_1y_1 + by_1^2|}{\sqrt{(a - b)^2 + 4h^2}}

Worked example

Find the product of the perpendicular distances from (1,2)(1, 2) to the lines x2−y2=0x^2 - y^2 = 0.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Pair of Straight LinesMODERATE
If P1P_1 and P2P_2 are perpendicular distances (in units) from point (2,−1)(2,-1) to the pair of lines 2x2−5xy+2y2=02x^2-5xy+2y^2=0, then the value of P1P2P_1 P_2 is

[Q145 · 16th May Shift 2 · 2023]

Adding the distances

The stem asks for the PRODUCT P1P2P_1 P_2. The sum 5+45=95\sqrt5 + \dfrac{4}{\sqrt5} = \dfrac{9}{\sqrt5} is not offered, but the squared product 1616-style and 55, 1010 are.

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

Watch out for (3)

Drill every past-year question on this subtopic

10 questions from the bank — paginated, with cart and Word-export support.

Related notes