In short

A homogeneous second-degree equation ax^2 + 2hxy + by^2 = 0 represents a pair of straight lines through the origin whenever h^2 \geq ab. The angle between the pair has a clean formula, and the bisectors of the pair have their own equation. The general (non-homogeneous) second-degree equation ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 represents a pair of lines when a specific 3 \times 3 determinant vanishes.

Take the equation x^2 - 5xy + 6y^2 = 0. This is a second-degree equation in x and y — it has x^2, xy, and y^2 terms, and it looks like it should describe some kind of curve. Conics — ellipses, parabolas, hyperbolas — are second-degree curves. But this one is different.

Factor the left side. Treat the equation as a quadratic in x, with y as a constant:

x^2 - 5xy + 6y^2 = (x - 2y)(x - 3y) = 0

A product is zero when at least one factor is zero. So the equation is satisfied when x - 2y = 0 or x - 3y = 0. These are two straight lines through the origin — y = x/2 and y = x/3.

A single equation, of degree two, has quietly been describing two lines all along. Not a curve — two lines. The second-degree equation is a disguised pair of first-degree equations multiplied together.

This is not a coincidence. There is a systematic theory that tells you exactly when a second-degree equation represents a pair of lines, what the angle between the lines is, and what the bisectors are. Indian textbooks cover this as a separate chapter because it appears frequently in JEE and board exams — and because the underlying algebra is clean and beautiful.

Homogeneous equations: lines through the origin

Why homogeneous?

An equation is homogeneous of degree n if every term has total degree exactly n. The equation ax^2 + 2hxy + by^2 = 0 is homogeneous of degree 2: every term has degree 2 (counting both x and y together). There are no linear terms (x, y) and no constant term.

The key property of a homogeneous equation is: if the point (x_0, y_0) satisfies it, then so does (tx_0, ty_0) for any scalar t.

a(tx_0)^2 + 2h(tx_0)(ty_0) + b(ty_0)^2 = t^2(ax_0^2 + 2hx_0 y_0 + by_0^2) = t^2 \cdot 0 = 0

So if one point is on the curve, the entire line from the origin through that point is on the curve. The graph of a homogeneous equation is a union of lines through the origin.

For degree 2, there can be at most two such lines — and the conditions for exactly two, exactly one (a repeated line), or none are easy to derive.

Factoring the homogeneous equation

Take ax^2 + 2hxy + by^2 = 0. If b \neq 0, divide through by y^2 (allowed when y \neq 0) to get a quadratic in x/y:

a\left(\frac{x}{y}\right)^2 + 2h\left(\frac{x}{y}\right) + b = 0

Set m = x/y. This is a standard quadratic am^2 + 2hm + b = 0, and its solutions are

m = \frac{-2h \pm \sqrt{4h^2 - 4ab}}{2a} = \frac{-h \pm \sqrt{h^2 - ab}}{a}

Each solution m = m_i gives a line x = m_i y, or equivalently x - m_i y = 0. If m_1 and m_2 are the two roots, the original equation factors as

a(x - m_1 y)(x - m_2 y) = 0

and the two lines are x - m_1 y = 0 and x - m_2 y = 0.

The equation $x^2 - 5xy + 6y^2 = 0$ factors as $(x - 2y)(x - 3y) = 0$, giving two lines through the origin: $y = x/2$ and $y = x/3$. The entire "curve" is just these two lines.

The discriminant condition

The quadratic am^2 + 2hm + b = 0 has:

Condition for a pair of lines (homogeneous case)

The equation ax^2 + 2hxy + by^2 = 0 represents a pair of distinct straight lines through the origin if and only if

h^2 - ab > 0 \quad \text{i.e.} \quad h^2 > ab

Useful relations from the roots

By Vieta's formulas for the quadratic am^2 + 2hm + b = 0, the two slopes m_1, m_2 satisfy

m_1 + m_2 = -\frac{2h}{a}, \qquad m_1 m_2 = \frac{b}{a}

These are enormously useful. They let you compute the angle between the lines, the condition for perpendicularity, and the bisector equations — all without explicitly finding m_1 and m_2.

Angle between the pair of lines

The angle \theta between two lines with slopes m_1 and m_2 satisfies

\tan\theta = \left|\frac{m_1 - m_2}{1 + m_1 m_2}\right|

To express this in terms of a, h, b, notice that

(m_1 - m_2)^2 = (m_1 + m_2)^2 - 4m_1 m_2 = \frac{4h^2}{a^2} - \frac{4b}{a} = \frac{4(h^2 - ab)}{a^2}

So |m_1 - m_2| = \frac{2\sqrt{h^2 - ab}}{|a|}. Also, 1 + m_1 m_2 = 1 + b/a = (a + b)/a.

Therefore:

Angle between a pair of lines

If ax^2 + 2hxy + by^2 = 0 represents a pair of lines, the acute angle \theta between them satisfies

\tan\theta = \frac{2\sqrt{h^2 - ab}}{|a + b|}

provided a + b \neq 0.

Special case: perpendicular lines. The lines are perpendicular when \theta = 90°, i.e., \tan\theta is undefined. This happens when 1 + m_1 m_2 = 0, which means a + b = 0. So:

The pair ax^2 + 2hxy + by^2 = 0 consists of perpendicular lines if and only if a + b = 0 — the coefficients of x^2 and y^2 sum to zero.

This is a beautiful and easily remembered condition. For example, x^2 - y^2 = 0 gives a = 1, b = -1, and a + b = 0. The lines are x - y = 0 and x + y = 0, which are indeed perpendicular (slopes +1 and -1).

Bisectors of the pair

Given the pair ax^2 + 2hxy + by^2 = 0, the bisectors of the angles between the two lines have a surprisingly elegant equation.

Deriving the bisector equation

Let the two lines be y = m_1 x and y = m_2 x, i.e., m_1 x - y = 0 and m_2 x - y = 0. The angle bisectors satisfy the equal-distance condition:

\frac{m_1 x - y}{\sqrt{m_1^2 + 1}} = \pm \frac{m_2 x - y}{\sqrt{m_2^2 + 1}}

Squaring both sides (to eliminate the \pm and the square roots simultaneously):

\frac{(m_1 x - y)^2}{m_1^2 + 1} = \frac{(m_2 x - y)^2}{m_2^2 + 1}

Expand and rearrange. After careful algebra (expanding the squares, cross-multiplying, and using m_1 + m_2 = -2h/a and m_1 m_2 = b/a), the result simplifies to:

Bisectors of a pair of lines

The equation of the angle bisectors of the pair ax^2 + 2hxy + by^2 = 0 is

\frac{x^2 - y^2}{a - b} = \frac{xy}{h}

or equivalently,

h(x^2 - y^2) = (a - b)xy

Why this is elegant. The bisector equation is itself a homogeneous second-degree equation — a pair of lines through the origin. The two bisectors are perpendicular (check: in hx^2 - (a - b)xy - hy^2 = 0, the coefficient of x^2 is h and the coefficient of y^2 is -h, and h + (-h) = 0, confirming perpendicularity).

Important note. This formula requires a \neq b and h \neq 0. If a = b, the bisectors are xy = 0, i.e., the coordinate axes. If h = 0, the original lines are x^2 - (b/a)y^2 = 0, i.e., symmetric about the axes, and the bisectors are x^2 - y^2 = 0.

Worked examples

Example 1: Find the angle and bisectors of $x^2 - 5xy + 4y^2 = 0$

Step 1. Check that this represents a pair of lines.

Here a = 1, 2h = -5 so h = -5/2, and b = 4.

h^2 - ab = 25/4 - 4 = 25/4 - 16/4 = 9/4 > 0. Two distinct lines exist.

Why: the discriminant is positive, confirming a genuine pair of lines.

Step 2. Factor to find the individual lines.

x^2 - 5xy + 4y^2 = (x - y)(x - 4y) = 0.

Check: (x - y)(x - 4y) = x^2 - 4xy - xy + 4y^2 = x^2 - 5xy + 4y^2. Correct.

The two lines are y = x (slope 1) and y = x/4 (slope 1/4).

Why: factoring directly reveals the individual lines. In harder cases, use the quadratic formula on m^2 - 5m + 4 = 0, giving m = 1 or m = 4, corresponding to x - y = 0 and x - 4y = 0.

Step 3. Find the angle between the lines.

\tan\theta = \frac{2\sqrt{h^2 - ab}}{|a + b|} = \frac{2\sqrt{9/4}}{|1 + 4|} = \frac{2 \cdot 3/2}{5} = \frac{3}{5}

So \theta = \arctan(3/5) \approx 30.96°.

Why: you could also compute this from the slopes directly: \tan\theta = |m_1 - m_2|/|1 + m_1 m_2| = |1 - 1/4|/|1 + 1/4| = (3/4)/(5/4) = 3/5. Same answer.

Step 4. Find the bisectors.

\frac{x^2 - y^2}{a - b} = \frac{xy}{h} \implies \frac{x^2 - y^2}{1 - 4} = \frac{xy}{-5/2}
\frac{x^2 - y^2}{-3} = \frac{xy}{-5/2} = \frac{-2xy}{5}

Cross-multiply: 5(x^2 - y^2) = (-3)(-2xy) = 6xy.

5x^2 - 6xy - 5y^2 = 0

Why: check perpendicularity of the bisectors: coefficient of x^2 is 5, coefficient of y^2 is -5, and 5 + (-5) = 0. The bisectors are indeed perpendicular.

Result: The lines are y = x and y = x/4, the angle between them is \arctan(3/5) \approx 31°, and the bisectors satisfy 5x^2 - 6xy - 5y^2 = 0.

The pair of lines $y = x$ and $y = x/4$ (black) and their two angle bisectors (dashed red). The bisectors split the angles between the original lines into equal halves, and the bisectors themselves are perpendicular to each other.

The two dashed bisectors visibly halve the angles between the black lines. The narrower angle (about 31°) and the wider angle (about 149°) each get their own bisector.

Example 2: Does $6x^2 + 11xy - 10y^2 + x + 31y - 15 = 0$ represent a pair of lines?

This is a general (non-homogeneous) second-degree equation. To determine whether it represents a pair of lines, use the determinant condition developed in the next section.

Step 1. Identify the coefficients.

Comparing with ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0:

a = 6, 2h = 11 so h = 11/2, b = -10, 2g = 1 so g = 1/2, 2f = 31 so f = 31/2, c = -15.

Why: the standard form uses 2h, 2g, 2f so that the determinant condition comes out without stray factors of 2.

Step 2. Compute the determinant \Delta.

\Delta = \begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix} = \begin{vmatrix} 6 & 11/2 & 1/2 \\ 11/2 & -10 & 31/2 \\ 1/2 & 31/2 & -15 \end{vmatrix}

Expand along the first row:

\Delta = 6[(-10)(-15) - (31/2)(31/2)] - (11/2)[(11/2)(-15) - (31/2)(1/2)] + (1/2)[(11/2)(31/2) - (-10)(1/2)]

= 6[150 - 961/4] - (11/2)[-165/2 - 31/4] + (1/2)[341/4 + 5]

= 6[(600 - 961)/4] - (11/2)[(-330 - 31)/4] + (1/2)[(341 + 20)/4]

= 6(-361/4) - (11/2)(-361/4) + (1/2)(361/4)

= (-361/4)[6 - 11/2 + 1/2]

= (-361/4)[6 - 5]

= (-361/4)(1)

= -361/4

Why: we need \Delta = 0 for a pair of lines. Here \Delta = -361/4 \neq 0.

Step 3. Conclude.

Since \Delta \neq 0, the equation does not represent a pair of straight lines. It represents a proper conic — in this case, a hyperbola (since h^2 - ab = 121/4 + 60 = 361/4 > 0).

Step 4. Modify the problem: what if the constant were different?

Suppose the equation were 6x^2 + 11xy - 10y^2 + x + 31y + c = 0 and you want to find c so that it does represent a pair of lines. Set \Delta = 0 and solve for c. Since only the last entry of the determinant changes, recompute:

\Delta(c) = 6(-10c - 961/4) - (11/2)(11c/2 - 31/4) + (1/2)(341/4 + 10/2)

Setting this to zero and solving gives the value of c that makes the equation a pair of lines.

Result: The given equation does not represent a pair of lines (\Delta = -361/4 \neq 0). It is a hyperbola.

The curve $6x^2 + 11xy - 10y^2 + x + 31y - 15 = 0$. Since the determinant $\Delta \neq 0$, this is not a pair of lines — it is a hyperbola. If the constant term were adjusted to make $\Delta = 0$, the hyperbola would degenerate into two intersecting lines.

The hyperbola in the figure has two branches. A pair of lines is a "degenerate" hyperbola — the limiting case where the two branches flatten into straight lines.

The general second-degree equation

When does it represent a pair of lines?

The general second-degree equation in x and y is

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

This represents a pair of straight lines (not necessarily through the origin) if and only if the following determinant is zero:

Condition for a pair of lines (general case)

The equation ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 represents a pair of straight lines if and only if

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

That is, abc + 2fgh - af^2 - bg^2 - ch^2 = 0.

Why this condition? If the equation represents two lines (\ell_1 x + m_1 y + n_1)(\ell_2 x + m_2 y + n_2) = 0, expanding the product and matching coefficients with the general form gives six equations in six unknowns (\ell_1, m_1, n_1, \ell_2, m_2, n_2). Eliminating these unknowns systematically produces the determinant condition. The determinant is called the discriminant of the second-degree equation (not to be confused with the discriminant of a quadratic in one variable).

Extracting the individual lines

Once you know \Delta = 0 and the equation represents a pair of lines, you can find the individual lines. Two approaches:

Method 1: Factor directly. Treat the equation as a quadratic in x (grouping y-terms as constants):

ax^2 + (2hy + 2g)x + (by^2 + 2fy + c) = 0

Use the quadratic formula in x. The discriminant (in x) must be a perfect square in y — this is guaranteed by \Delta = 0.

Method 2: Find the intersection point first. Partially differentiate the equation with respect to x and y:

\frac{\partial}{\partial x}: 2ax + 2hy + 2g = 0 \qquad \frac{\partial}{\partial y}: 2hx + 2by + 2f = 0

Solve this 2 \times 2 system to find the point of intersection (\alpha, \beta) of the two lines. Then shift the origin to (\alpha, \beta) — the equation becomes homogeneous, and you can factor it using the methods above.

The homogeneous part determines the angle

An important observation: the angle between the two lines in ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 depends only on a, h, b — the homogeneous second-degree part. The linear and constant terms shift the lines but do not rotate them.

So the angle formula is exactly the same as for the homogeneous case:

\tan\theta = \frac{2\sqrt{h^2 - ab}}{|a + b|}

And the perpendicularity condition is still a + b = 0.

Common confusions

Going deeper

If you can factor a homogeneous equation, compute the angle, write down the bisectors, and check \Delta = 0 for the general case, you have the full toolkit for exams. What follows connects the pair-of-lines theory to the broader study of conics and to homogenisation — a technique that links a line and a curve.

The homogenisation technique

Here is a powerful application of the pair-of-lines theory. Suppose you have a second-degree curve S: ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 and a line L: \ell x + my + n = 0. The line meets the curve at two points. The pair of lines joining the origin to these two intersection points can be found by homogenising the curve equation using the line.

From the line equation, 1 = -(\ell x + my)/n (assuming n \neq 0). Now replace every occurrence of the "constant" in the curve equation using this expression. Specifically, replace 2gx with 2gx \cdot 1 = 2gx \cdot \frac{-(\ell x + my)}{n}, replace 2fy similarly, and replace c with c \cdot 1^2 = c \cdot \frac{(\ell x + my)^2}{n^2}. The result is a homogeneous second-degree equation in x and y — it represents the pair of lines OP and OQ, where P and Q are the intersection points.

This technique is especially useful in circle problems: "find the angle subtended at the origin by a chord of a given circle" reduces to homogenising the circle equation with the chord equation, then applying the pair-of-lines angle formula.

Connection to conics

A conic section is described by the general second-degree equation ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0. The nature of the conic is determined by the discriminant \Delta and the quantity h^2 - ab:

\Delta h^2 - ab Curve
\neq 0 < 0 Ellipse (or circle if a = b, h = 0)
\neq 0 = 0 Parabola
\neq 0 > 0 Hyperbola
= 0 > 0 Pair of intersecting lines
= 0 = 0 Pair of parallel (or coincident) lines
= 0 < 0 Single point (or empty set)

A pair of lines is therefore a degenerate conic — the conic that has collapsed. The determinant \Delta = 0 is the degeneracy condition. In the language of Bhaskara II's Bijaganita, which systematically classified second-degree equations, these degenerate cases were already recognised as special situations where the "curve" loses its curvature.

Why the determinant 3 \times 3?

The matrix

M = \begin{pmatrix} a & h & g \\ h & b & f \\ g & f & c \end{pmatrix}

is called the matrix of the conic. It encodes the entire second-degree equation: the equation can be written as \mathbf{x}^T M \mathbf{x} = 0 where \mathbf{x} = (x, y, 1)^T (using homogeneous coordinates). The condition \det M = 0 means the matrix is singular — it has a null vector. That null vector, when interpreted geometrically, is the intersection point of the two lines (in homogeneous coordinates). A singular conic matrix corresponds to a degenerate conic, which is precisely a pair of lines (or a repeated line, or a point).

This is a deep connection between linear algebra and geometry: the determinant of a 3 \times 3 symmetric matrix deciding whether a curve is really a pair of lines.

Where this leads next

The pair-of-lines theory is a gateway to several important topics: