Part 4 · Chapter 17

Pair of Straight Lines

Two lines at once — a single second-degree equation that bundles a pair of straight lines, and the algebra that pulls them back apart

Fundamentals of Mathematics Prof. Mithun Mondal Reading time ≈ 35 min
i What you'll learn
  • How a product of two linear factors becomes a single second-degree combined equation.
  • That \(ax^2+2hxy+by^2=0\) always represents a pair of lines through the origin.
  • The sum and product of the slopes, \(m_1+m_2=-\tfrac{2h}{b}\) and \(m_1m_2=\tfrac{a}{b}\).
  • How \(h^2-ab\) decides whether the lines are real, coincident or imaginary, and when they are perpendicular.
  • The angle between the pair and the equation of its angle bisectors.
  • The condition for the general second-degree equation to be a pair, its point of intersection, and the homogenization trick.
Section 17-1

The Combined Equation of Two Lines

A point lies on either of two lines exactly when it satisfies at least one of their equations — that is, when the product of the two left-hand sides is zero. So if the lines are \(L_1\equiv a_1x+b_1y+c_1=0\) and \(L_2\equiv a_2x+b_2y+c_2=0\), the single equation \(L_1L_2=0\) represents both at once. Multiplying out always gives a second-degree equation.

✖️
The combined (joint) equation
\((a_1x+b_1y+c_1)(a_2x+b_2y+c_2)=0\)

Conversely, a second-degree equation represents a pair of straight lines precisely when its left side factorises into two linear factors. The whole chapter is about recognising when that happens and reading the lines back off.

The pattern

The pair \(x-2y=0\) and \(x-3y=0\) has combined equation \((x-2y)(x-3y)=x^2-5xy+6y^2=0\). Two lines, one tidy quadratic.

Section 17-2

The Homogeneous Equation \(ax^2+2hxy+by^2=0\)

When both lines pass through the origin their constant terms vanish, and the combined equation contains only second-degree terms — it is homogeneous. Every such equation, \(ax^2+2hxy+by^2=0\), is a pair of lines through the origin.

O y = m₁x y = m₂x y x
\(ax^2+2hxy+by^2=0\): two lines through the origin

To see why, divide by \(x^2\) and set \(m=\tfrac{y}{x}\) (the slope of a line \(y=mx\) through the origin). The equation becomes a quadratic in \(m\):

A quadratic in the slope
\[ b\,m^2+2h\,m+a=0 \]
Its two roots \(m_1,m_2\) are the slopes of the two lines, so \(ax^2+2hxy+by^2=b(y-m_1x)(y-m_2x)\).
Section 17-3

Sum & Product of the Slopes

Because \(m_1\) and \(m_2\) are the roots of \(bm^2+2hm+a=0\), Vieta's formulas hand us their sum and product immediately — without ever solving for the lines themselves.

Slopes from the coefficients
\(m_1+m_2=-\dfrac{2h}{b},\qquad m_1 m_2=\dfrac{a}{b}\)

Most quick facts about the pair follow from these two. The angle, the perpendicularity test, and conditions like "one line bisects the axes" all reduce to symmetric functions of \(m_1,m_2\).

Section 17-4

Nature of the Lines

Whether the two lines are genuinely distinct, identical, or not real at all is decided by the discriminant of the slope quadratic, \((2h)^2-4ab=4(h^2-ab)\). The single quantity \(h^2-ab\) tells the whole story.

Real & distinct

\(h^2>ab\): two different real lines through the origin.

Coincident

\(h^2=ab\): the lines merge into one (a repeated line).

Imaginary

\(h^2: no real lines — only the origin satisfies the equation.

! The perpendicular test

The lines are perpendicular exactly when \(m_1m_2=-1\), i.e. \(\tfrac{a}{b}=-1\), which rearranges to the memorable rule \(a+b=0\) — the coefficient of \(x^2\) plus the coefficient of \(y^2\) is zero.

Section 17-5

The Angle Between the Pair

Feeding \(m_1+m_2\) and \(m_1m_2\) into the angle formula from Chapter 16 collapses everything into the coefficients. The result is the central formula of this chapter.

θ O
The angle \(\theta\) between the two lines of the pair
📐
Angle between the lines
\(\tan\theta=\left|\dfrac{2\sqrt{h^2-ab}}{a+b}\right|\)

The lines are parallel or coincident when \(h^2=ab\) (then \(\tan\theta=0\)), and perpendicular when \(a+b=0\) (the denominator vanishes, so \(\theta=90^{\circ}\)) — consistent with Section 17-4.

Section 17-6

The Angle Bisectors

The two lines that bisect the angles between the pair are themselves a pair through the origin — and, like all angle bisectors, they are mutually perpendicular. Their combined equation is strikingly compact.

O pair bisectors
The bisectors (gold) split the angles and are perpendicular to each other
⚖️
Combined equation of the bisectors
\(\dfrac{x^2-y^2}{a-b}=\dfrac{xy}{h}\)

Cross-multiplying gives \(h(x^2-y^2)=(a-b)xy\). Notice the coefficients of \(x^2\) and \(y^2\) in this equation sum to zero — the algebraic signature that the bisectors are at right angles.

Section 17-7

The General Second-Degree Equation

When the lines do not pass through the origin, the general second-degree equation carries first-degree terms too:

The general conic
\[ ax^2+2hxy+by^2+2gx+2fy+c=0 \]
This is a pair of straight lines only for special coefficients; otherwise it is a genuine conic (circle, parabola, ellipse or hyperbola, treated in the chapters ahead).
🔍
Condition for a pair of lines
\(abc+2fgh-af^2-bg^2-ch^2=0\;\Longleftrightarrow\;\begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix}=0\)

When the determinant vanishes the left side factorises into two linear factors, and the equation is a pair of straight lines.

If it is a pair, the two lines cross at a single point. That intersection is the common solution of the two partial conditions \(ax+hy+g=0\) and \(hx+by+f=0\).

Point of intersection
\[ \left(\frac{hf-bg}{ab-h^2},\ \frac{gh-af}{ab-h^2}\right) \]
Valid whenever \(ab\neq h^2\); if \(ab=h^2\) the two lines are parallel and there is no finite intersection.
Section 17-8

Lines Joining the Origin to a Curve

A favourite technique: a line cuts a second-degree curve in two points, and we want the pair of lines joining the origin to those two points — without finding the points themselves. The trick is homogenization: make the curve's equation homogeneous of degree two using the line.

O P Q chord
\(OP\) and \(OQ\) join the origin to where the chord meets the curve
🧩
Homogenization
\(ax^2+2hxy+by^2+2(gx+fy)(lx+my)+c(lx+my)^2=0\)

For the curve \(ax^2+2hxy+by^2+2gx+2fy+c=0\) met by the line \(lx+my=1\), replace each \(1\) in the first- and zero-degree terms by \((lx+my)\). The result is homogeneous — a pair of lines through the origin — passing through both intersection points.

Why it works. On the line \(lx+my=1\), multiplying any term by \((lx+my)\) leaves its value unchanged, so the homogenized equation agrees with the curve at the two intersection points. Being homogeneous, it also passes through the origin — so it must be exactly the pair \(OP,\,OQ\).
Worked Examples

Putting It to Work

1 Separating the two lines

Problem. Find the separate lines represented by \(x^2-5xy+6y^2=0\).

Solution. Treat it as a quadratic in \(x\) and factorise the homogeneous form directly:

Working
\[ x^2-5xy+6y^2=(x-2y)(x-3y)=0\ \Longrightarrow\ x-2y=0,\quad x-3y=0 \]
2 Angle between the pair

Problem. Find the angle between the lines \(x^2+4xy+y^2=0\).

Solution. Here \(a=1,\ b=1,\ h=2\), so \(\tan\theta=\left|\dfrac{2\sqrt{h^2-ab}}{a+b}\right|\):

Working
\[ \tan\theta=\frac{2\sqrt{4-1}}{2}=\sqrt3\ \Longrightarrow\ \theta=60^{\circ} \]
3 A perpendicular pair

Problem. Show that \(3x^2-8xy-3y^2=0\) is a pair of perpendicular lines, and find them.

Solution. Since \(a+b=3+(-3)=0\), the lines are perpendicular. Factorising confirms it:

Working
\[ 3x^2-8xy-3y^2=(3x+y)(x-3y)=0\ \Longrightarrow\ \text{slopes }-3\text{ and }\tfrac13,\ \ (-3)\!\cdot\!\tfrac13=-1 \]
4 Equation of the bisectors

Problem. Find the bisectors of the angles between \(x^2-5xy+6y^2=0\).

Solution. With \(a=1,\ b=6,\ h=-\tfrac52\), use \(\dfrac{x^2-y^2}{a-b}=\dfrac{xy}{h}\):

Working
\[ \frac{x^2-y^2}{1-6}=\frac{xy}{-5/2}\ \Longrightarrow\ \frac{x^2-y^2}{-5}=\frac{-2xy}{5}\ \Longrightarrow\ x^2-2xy-y^2=0 \]
5 A general pair and its intersection

Problem. Show that \(2x^2+5xy+3y^2+6x+7y+4=0\) represents a pair of lines, and find them and their point of intersection.

Solution. Here \(a=2,\ h=\tfrac52,\ b=3,\ g=3,\ f=\tfrac72,\ c=4\). The determinant condition gives \(abc+2fgh-af^2-bg^2-ch^2=0\), so it is a pair. Factorising:

Working
\[ 2x^2+5xy+3y^2+6x+7y+4=(x+y+1)(2x+3y+4)=0 \]

Solving \(x+y+1=0\) and \(2x+3y+4=0\) simultaneously gives the intersection \((1,-2)\).

6 Lines joining the origin to a curve

Problem. Find the pair of lines joining the origin to the points where \(x+y=1\) meets \(x^2+y^2=1\).

Solution. Homogenize \(x^2+y^2=1\) by replacing the constant \(1\) with \((x+y)^2\):

Working
\[ x^2+y^2-(x+y)^2=0\ \Longrightarrow\ -2xy=0\ \Longrightarrow\ xy=0 \]

The required lines are \(x=0\) and \(y=0\) — the coordinate axes, since the chord meets the circle at \((1,0)\) and \((0,1)\).

Review

Chapter Summary

Combined

\(L_1L_2=0\) represents both lines; a pair exists when the quadratic factorises.

Through origin

\(ax^2+2hxy+by^2=0\); slopes solve \(bm^2+2hm+a=0\).

Slopes

\(m_1+m_2=-\tfrac{2h}{b}\), \(m_1m_2=\tfrac{a}{b}\).

Nature

\(h^2>ab\) distinct, \(=ab\) coincident, \( imaginary; perpendicular if \(a+b=0\).

Angle & bisectors

\(\tan\theta=\left|\tfrac{2\sqrt{h^2-ab}}{a+b}\right|\); bisectors \(\tfrac{x^2-y^2}{a-b}=\tfrac{xy}{h}\).

General & homogenize

Pair when the \(3\times3\) determinant is \(0\); homogenize a curve with a line for the lines through the origin.

Practice

Problems

Read off \(a,b,h\) first, then reach for the right tool — factor, slope relations, angle, or determinant. Difficulty rises down the list.

  1. Find the separate lines represented by \(x^2-9y^2=0\).
  2. Find the separate lines represented by \(6x^2+5xy-6y^2=0\).
  3. Find the combined equation of the two lines through the origin with slopes \(2\) and \(-3\).
  4. For what value of \(k\) does \(kx^2+4xy+y^2=0\) represent a perpendicular pair?
  5. For what value of \(h\) are the lines \(x^2+2hxy+9y^2=0\) coincident?
  6. Find the angle between the lines \(x^2+4xy+y^2=0\).
  7. Show that \(2x^2+7xy+3y^2=0\) represents two distinct real lines, and find them.
  8. Find the equation of the bisectors of the angles between \(6x^2+5xy-6y^2=0\).
  9. Show that \(6x^2+13xy+6y^2+7x+8y+2=0\) represents a pair of straight lines, and find them.
  10. Find the point of intersection of the pair in the previous problem.
  11. Find the condition that one of the lines of \(ax^2+2hxy+by^2=0\) is \(y=x\).
  12. Find the equation of the lines joining the origin to the points of intersection of \(x^2+y^2=10\) and \(x+y=4\).
Tip: for anything about a pair through the origin, the trio \(a,b,h\) is all you need — slopes, nature, angle and bisectors are read straight off them, and you rarely have to find the lines explicitly. Save the full \(3\times3\) determinant for the general equation, and reach for homogenization whenever a problem mentions "lines joining the origin" to a curve.