NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Pair of Straight Lines: Homogeneous Equations | NIMCET

Learn the homogeneous equation ax² + 2hxy + by² = 0, the sum and product of slopes, the angle between the pair, and the condition for the general second-degree equation to represent two lines.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: The homogeneous equation ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 represents two lines through the origin, real and distinct when h2>abh^2 > ab. If their slopes are m1m_1 and m2m_2, then m1+m2=−2hbm_1 + m_2 = -\frac{2h}{b} and m1m2=abm_1 m_2 = \frac{a}{b}. The angle between them satisfies tan⁡θ=∣2h2−aba+b∣\tan\theta = \left\lvert\frac{2\sqrt{h^2 - ab}}{a + b}\right\rvert, so they are perpendicular when a+b=0a + b = 0 and coincident when h2=abh^2 = ab.

This builds on the angle between two lines.

Homogeneous second-degree equation

Each term in ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 has degree 2. Dividing by x2x^2 and putting m=yxm = \frac{y}{x} gives

bm2+2hm+a=0bm^2 + 2hm + a = 0

whose roots are the two slopes.

ConditionLines are
h2>abh^2 > abReal and distinct
h2=abh^2 = abCoincident
h2<abh^2 < abImaginary (only the origin is real)

Slopes, angle and special cases

QuantityResult
Sum of slopesm1+m2=−2hbm_1 + m_2 = -\frac{2h}{b}
Product of slopesm1m2=abm_1 m_2 = \frac{a}{b}
Angletan⁡θ=∣2h2−aba+b∣\tan\theta = \left\lvert\frac{2\sqrt{h^2 - ab}}{a + b}\right\rvert
Perpendiculara+b=0a + b = 0
Coincidenth2=abh^2 = ab
Angle bisectorsx2−y2a−b=xyh\frac{x^2 - y^2}{a - b} = \frac{xy}{h}

Forming the joint equation

If two lines through the origin are y=m1xy = m_1x and y=m2xy = m_2x, their joint equation is

(y−m1x)(y−m2x)=0(y - m_1x)(y - m_2x) = 0

More generally, the product of two linear equations L1L2=0L_1 L_2 = 0 represents both lines.

General second-degree equation

The equation

ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0

represents a pair of straight lines if

abc+2fgh−af2−bg2−ch2=0abc + 2fgh - af^2 - bg^2 - ch^2 = 0

This is the determinant condition

∣ahghbfgfc∣=0\begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix} = 0

The lines are parallel to the pair ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0, so the angle formula and the perpendicular condition a+b=0a + b = 0 still apply.

Point of intersection

Solve ax+hy+g=0ax + hy + g = 0 and hx+by+f=0hx + by + f = 0 (the partial derivatives with respect to x and y set to zero).

Worked examples

Example 1: slopes and angle

For x2−5xy+6y2=0x^2 - 5xy + 6y^2 = 0, find the slopes and the angle between the lines.

Step 1: a=1a = 1, 2h=−52h = -5, b=6b = 6. Factor: (x−2y)(x−3y)=0(x - 2y)(x - 3y) = 0.

Step 2: Slopes are 12\frac{1}{2} and 13\frac{1}{3}.

Step 3:

tan⁡θ=12−131+16=1676=17\tan\theta = \frac{\frac{1}{2} - \frac{1}{3}}{1 + \frac{1}{6}} = \frac{\frac{1}{6}}{\frac{7}{6}} = \frac{1}{7}

Check with the formula: 26.25−67=2⋅0.57=17\frac{2\sqrt{6.25 - 6}}{7} = \frac{2 \cdot 0.5}{7} = \frac{1}{7} ✓.

Example 2: perpendicular condition

For what k are the lines kx2+4xy−3y2=0kx^2 + 4xy - 3y^2 = 0 perpendicular?

a+b=0a + b = 0 gives k−3=0k - 3 = 0, so k=3k = 3.

Example 3: joint equation

Find the joint equation of y=xy = x and y=−2xy = -2x.

Expanding (y−x)(y+2x)=0(y - x)(y + 2x) = 0 gives y2+xy−2x2=0y^2 + xy - 2x^2 = 0, that is, 2x2−xy−y2=02x^2 - xy - y^2 = 0.

Check: m1m2=ab=2−1=−2m_1 m_2 = \frac{a}{b} = \frac{2}{-1} = -2, which equals 1⋅(−2)1 \cdot (-2) ✓.

Example 4: general equation test

Does x2−y2+2x+1=0x^2 - y^2 + 2x + 1 = 0 represent a pair of lines?

Step 1: a=1a = 1, b=−1b = -1, h=0h = 0, g=1g = 1, f=0f = 0, c=1c = 1.

Step 2: abc+2fgh−af2−bg2−ch2=−1+0−0+1−0=0abc + 2fgh - af^2 - bg^2 - ch^2 = -1 + 0 - 0 + 1 - 0 = 0 ✓.

Indeed (x+1)2−y2=0(x + 1)^2 - y^2 = 0 gives y=±(x+1)y = \pm(x + 1), two perpendicular lines since a+b=0a + b = 0.

Summary table

ResultFormula
Slope sum−2hb-\frac{2h}{b}
Slope productab\frac{a}{b}
Angletan⁡θ=∣2h2−aba+b∣\tan\theta = \left\lvert\frac{2\sqrt{h^2 - ab}}{a + b}\right\rvert
Perpendiculara+b=0a + b = 0
Pair conditionabc+2fgh−af2−bg2−ch2=0abc + 2fgh - af^2 - bg^2 - ch^2 = 0

Exam tips

  • Remember that the coefficient of xyxy is 2h2h, not hh.
  • a+b=0a + b = 0 (coefficients of x2x^2 and y2y^2 add to zero) is the fastest perpendicularity check.
  • If an equation factors easily, factor it; it is faster than the formulas.

Next, see equation of a circle, or browse the NIMCET Coordinate Geometry and Vectors chapter.

Common mistakes

  • Taking h as the full coefficient of xy.
  • Using m1+m2=2hbm_1 + m_2 = \frac{2h}{b} without the minus sign.
  • Forgetting that the general equation also needs h2≥abh^2 \ge ab for real lines.
  • Expanding a joint equation with sign errors.

Frequently Asked Questions

What does ax² + 2hxy + by² = 0 represent?

It represents a pair of straight lines through the origin, real and distinct when h² > ab.

What is the angle between the pair of lines ax² + 2hxy + by² = 0?

tan θ = |2√(h² − ab)/(a + b)|.

When are the lines of a pair perpendicular?

When a + b = 0, that is, when the coefficients of x² and y² add up to zero.

What is the condition for a general second-degree equation to represent two lines?

abc + 2fgh − af² − bg² − ch² = 0.

What are the sum and product of slopes for ax² + 2hxy + by² = 0?

The sum is −2h/b and the product is a/b.

Concept Check

HARD

For all AA and BB, (cos⁡A+cos⁡B)2+(sin⁡A+sin⁡B)2(\cos A + \cos B)^2 + (\sin A + \sin B)^2 equals:

Suggested for you