Skip to content

← Grade 11 Mathematics

Pair of Straight Lines

Unit 12 · Analytic Geometry

Hide the stories, facts, photos, activities and interactives, for revising before an exam
What this builds on from class
In this unit 5 sections
  1. 12.1 General equation of second degree
  2. 12.2 Homogeneous equation of second degree
  3. 12.3 Angle between a pair of lines
  4. 12.4 Bisectors of the angles between a pair of lines
  5. Exercise

A drum beats somewhere to your right. Sound travels about 343 m/s, and your ears are about 21.5 cm apart, so a sound from straight to one side reaches the far ear some 0.63 ms after the near one, and your brain uses that delay to tell where the sound came from. Suppose the beat reaches your right ear 0.376 ms before your left: in that time sound goes 12.9 cm, so the left ear’s path was 12.9 cm longer.

So here is this unit’s question: from that one delay, which way is the drum? The answer is not one line but a pair of lines, and one equation of the second degree holds both. The answer comes at the end of 12.4.
The ears’ spacing and delay: Wikipedia, “Sound localization”. The drum’s delay is ours.

12.1 General equation of second degree

Two lines, one equation

The point (x, y) is on the line 2x − y + 1 = 0 or on x + 2y − 3 = 0 exactly when one of the two left sides is 0, that is, when their product is 0:
(2x−y+1)(x+2y−3)=0,that is2x2+3xy−2y2−5x+5y−3=0 (2x - y + 1)(x + 2y - 3) = 0, \quad\text{that is}\quad 2x^2 + 3xy - 2y^2 - 5x + 5y - 3 = 0
One equation, both lines. Multiplying two first-degree expressions always gives terms in x2,xy,y2,x,y x^2, xy, y^2, x, y and a number, so a pair of lines has an equation of the general second-degree form
ax2+2hxy+by2+2gx+2fy+c=0 ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0
The 2s are there so that the formulas below come out without fractions. But the converse fails: x2+y2−4=0 x^2 + y^2 - 4 = 0 has the same form and is a circle. So when is a second-degree equation two lines?

The condition for a pair of lines

Derivation. Take a ≠ 0 and write the equation as a quadratic in x:

  1. ax2+2(hy+g)x+(by2+2fy+c)=0 ax^2 + 2(hy + g)x + (by^2 + 2fy + c) = 0 , so by the quadratic formula Grade 11: Unit 7 x=−(hy+g)±(hy+g)2−a(by2+2fy+c)a x = \dfrac{-(hy + g) \pm \sqrt{(hy + g)^2 - a(by^2 + 2fy + c)}}{a} .
  2. This is two lines only if each sign gives x as a first-degree expression in y, so the quantity under the root must be the square of a first-degree expression: (h2−ab)y2+2(gh−af)y+(g2−ac) (h^2 - ab)y^2 + 2(gh - af)y + (g^2 - ac) must be a perfect square.
  3. A quadratic Py2+2Qy+R Py^2 + 2Qy + R is a perfect square when its discriminant is 0, Q2=PR Q^2 = PR : (gh−af)2=(h2−ab)(g2−ac) (gh - af)^2 = (h^2 - ab)(g^2 - ac) .
  4. Expand: g2h2−2afgh+a2f2=g2h2−ach2−abg2+a2bc g^2h^2 - 2afgh + a^2f^2 = g^2h^2 - ach^2 - abg^2 + a^2bc . Cancel g2h2 g^2h^2 and divide by −a:

abc+2fgh−af2−bg2−ch2=0 abc + 2fgh - af^2 - bg^2 - ch^2 = 0
This is the determinant ∣ahghbfgfc∣=0 \begin{vmatrix} a & h & g \\ h & b & f \\ g & f & c \end{vmatrix} = 0 Grade 11: Unit 6, easier to remember. (When a = 0, do the same with y if b ≠ 0; when a = b = 0, 2hxy+2gx+2fy+c=2h(x+fh)(y+gh) 2hxy + 2gx + 2fy + c = 2h\left(x + \frac{f}{h}\right)\left(y + \frac{g}{h}\right) exactly when c=2fgh c = \frac{2fg}{h} . Either way the condition comes out the same.)
The lines are real only if h2≥ab h^2 \ge ab : h2−ab h^2 - ab is the y2 y^2 coefficient under the root, and a negative one makes the square root imaginary. x2+y2=0 x^2 + y^2 = 0 passes the determinant test (a = b = 1, the rest 0), yet h2−ab=−1 h^2 - ab = -1 : it is the imaginary pair y = ±ix, and only (0, 0) is a real point of it. Nor is h2=ab h^2 = ab enough: x2+1=0 x^2 + 1 = 0 passes both tests, yet it is the imaginary parallel pair x = ±i, with no real point at all.

x2−y2+2x+k=0 x^2 - y^2 + 2x + k = 0 represents a pair of lines when k is:

Pick an answer to see why.

12.2 Homogeneous equation of second degree

Lines through the origin

An equation is homogeneous when all its terms have the same degree: ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 , the general equation with g = f = c = 0. It passes the condition at once (every term of it has c, g or f), and it has a shape you can see: if (x, y) fits it, so does (tx, ty) for every t, since each term is multiplied by t2 t^2 . So with any point it holds the whole line through that point and O: a homogeneous second-degree equation is a pair of lines through the origin.

Derivation. Let b ≠ 0. A line y = mx through the origin belongs to the pair when its points fit: ax2+2hmx2+bm2x2=0 ax^2 + 2hmx^2 + bm^2x^2 = 0 for all x, that is
bm2+2hm+a=0 bm^2 + 2hm + a = 0

  1. Its two roots m₁, m₂ are the slopes of the two lines, and ax2+2hxy+by2=b(y−m1x)(y−m2x) ax^2 + 2hxy + by^2 = b(y - m_1x)(y - m_2x) .
  2. Real and different when the discriminant 4h2−4ab>0 4h^2 - 4ab > 0 , that is h2>ab h^2 > ab ; one line counted twice (coincident) when h2=ab h^2 = ab ; no real line, only the point O, when h2<ab h^2 < ab .
  3. From roots and coefficients Grade 11: Unit 7: m1+m2=−2hb m_1 + m_2 = -\dfrac{2h}{b} and m1m2=ab m_1m_2 = \dfrac{a}{b} .

(When b = 0, the equation is x(ax + 2hy) = 0: one line is the Y-axis, x = 0, with no slope.)

Try it

Turning a pair of lines

Slide h down to 0: where do the lines become one? Then try −4y2 -4y^2 .

−4−224−22XYO

h2 − ab = 6.25 − 4 = 2.25 > 0: y = −x and y = −0.25x, at θ = 31°.

What you should see

9x2−12xy+4y2=0 9x^2 - 12xy + 4y^2 = 0 represents:

Pick an answer to see why.

12.3 Angle between a pair of lines

Derivation. Let the lines of ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 have slopes m₁, m₂. The angle between two lines Grade 10: Grade 10 Optional Math, 8.2:

  1. tan⁡θ=∣m1−m21+m1m2∣ \tan\theta = \left|\dfrac{m_1 - m_2}{1 + m_1m_2}\right| .
  2. (m1−m2)2=(m1+m2)2−4m1m2=4h2b2−4ab=4(h2−ab)b2 (m_1 - m_2)^2 = (m_1 + m_2)^2 - 4m_1m_2 = \dfrac{4h^2}{b^2} - \dfrac{4a}{b} = \dfrac{4(h^2 - ab)}{b^2} , so ∣m1−m2∣=2h2−ab∣b∣ |m_1 - m_2| = \dfrac{2\sqrt{h^2 - ab}}{|b|} .
  3. 1+m1m2=1+ab=a+bb 1 + m_1m_2 = 1 + \dfrac{a}{b} = \dfrac{a + b}{b} . Divide:

tan⁡θ=2h2−ab∣a+b∣ \tan\theta = \frac{2\sqrt{h^2 - ab}}{|a + b|}
the acute angle between the lines (the other is 180°−θ 180° - \theta ). (If b = 0, one line is x = 0; swapping x and y swaps a and b, and the formula doesn’t change.) Two special cases follow at once: perpendicular when a + b = 0 (the bottom is 0, θ=90° \theta = 90° ), the coefficients of x2 x^2 and y2 y^2 adding to 0; coincident when h2=ab h^2 = ab (θ = 0).

For the general equation, the angle depends only on a, h, b. Its lines are l₁x + m₁y + n₁ = 0 and l₂x + m₂y + n₂ = 0, and in their product the second-degree terms are (l₁x + m₁y)(l₂x + m₂y): the pair (l₁x + m₁y)(l₂x + m₂y) = 0 through the origin, parallel to them. So ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 is the pair through O parallel to the lines of the general equation, and has the same angle.

The lines of 2x2+7xy+ky2=0 2x^2 + 7xy + ky^2 = 0 are perpendicular when k is:

Pick an answer to see why.

12.4 Bisectors of the angles between a pair of lines

Derivation. Write the lines of ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 as y − m₁x = 0 and y − m₂x = 0 (m₁ ≠ m₂).

  1. By Unit 11’s bisectors, a point is on a bisector when y−m1x1+m12=±y−m2x1+m22 \dfrac{y - m_1x}{\sqrt{1 + m_1^2}} = \pm\dfrac{y - m_2x}{\sqrt{1 + m_2^2}} .
  2. Both signs at once: square, (y−m1x)2(1+m22)−(y−m2x)2(1+m12)=0 (y - m_1x)^2(1 + m_2^2) - (y - m_2x)^2(1 + m_1^2) = 0 .
  3. Expand and collect: (m12−m22)(x2−y2)+2(m2−m1)(1−m1m2)xy=0 (m_1^2 - m_2^2)(x^2 - y^2) + 2(m_2 - m_1)(1 - m_1m_2)xy = 0 . Divide by m₁ − m₂ ≠ 0: (m1+m2)(x2−y2)=2(1−m1m2)xy (m_1 + m_2)(x^2 - y^2) = 2(1 - m_1m_2)xy .
  4. Put in m1+m2=−2hb m_1 + m_2 = -\frac{2h}{b} , m1m2=ab m_1m_2 = \frac{a}{b} , and multiply by −b2 -\frac{b}{2} :

h(x2−y2)=(a−b)xy,often writtenx2−y2a−b=xyh h(x^2 - y^2) = (a - b)xy, \quad\text{often written}\quad \frac{x^2 - y^2}{a - b} = \frac{xy}{h}
The first form also covers a = b (the bisectors are x2−y2=0 x^2 - y^2 = 0 , y = ±x) and h = 0 (they are xy = 0, the axes), where the fraction form divides by 0. The coefficients of x2 x^2 and y2 y^2 are h and −h, adding to 0: the bisectors are perpendicular, as Unit 11 showed they must be. In the widget of 12.2, press Bisectors and slide h from 4 down to 2: the dashed pair turns with the lines, always at right angles, and at h = 2 the single line lies along one of them.

The bisectors of the angles between the lines of 3x2−2xy−y2=0 3x^2 - 2xy - y^2 = 0 are:

Pick an answer to see why.

Back to the drum

Put your ears on the X-axis with the origin midway, the right ear on the positive side. The drum is far off compared with 21.5 cm, so its sound reaches both ears along almost parallel paths, and the left ear’s path is longer by 21.5cos⁡φ 21.5\cos\varphi cm, where φ \varphi is the angle between the sound’s direction and the X-axis. So 21.5cos⁡φ=12.9 21.5\cos\varphi = 12.9 , cos⁡φ=35 \cos\varphi = \frac{3}{5} .
A point (x, y) in such a direction has xx2+y2=35 \dfrac{x}{\sqrt{x^2 + y^2}} = \dfrac{3}{5} . Square: 25x2=9x2+9y2 25x^2 = 9x^2 + 9y^2 , that is
16x2−9y2=0,or(4x−3y)(4x+3y)=0 16x^2 - 9y^2 = 0, \quad\text{or}\quad (4x - 3y)(4x + 3y) = 0
a homogeneous pair: the drum is along y=43x y = \frac{4}{3}x or y=−43x y = -\frac{4}{3}x , on the right ear’s side (x > 0), 53.1° from the line through your ears, in front or behind. (Squaring also let in cos⁡φ=−35 \cos\varphi = -\frac{3}{5} , the other half of each line, but there the left ear would have heard first.)
The angle between the lines: tan⁡θ=20+144∣16−9∣=247 \tan\theta = \frac{2\sqrt{0 + 144}}{|16 - 9|} = \frac{24}{7} , θ≈73.7° \theta \approx 73.7° , so the front and back directions are 180°−73.7°=106.3° 180° - 73.7° = 106.3° apart, twice 53.1°. The bisectors: h = 0, so (16 + 9)xy = 0, xy = 0: the line through your ears is one of them. The two possible directions are mirror images in the line through your ears, so one delay can never tell front from back. Your brain does it with other clues, chiefly how the folds of your outer ear change a sound from in front and from behind.

For the engineering entrance

Beyond NEB’s Grade 11 exam: IOE’s syllabus names only “pair of lines”; three tools its questions on them can use.

Exercise

Choose the correct option

The lines of ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 are perpendicular when:

Pick an answer to see why.

ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 represents two coincident lines when:

Pick an answer to see why.

The lines represented by x2−7xy+12y2=0 x^2 - 7xy + 12y^2 = 0 are:

Pick an answer to see why.

The acute angle between the lines of x2+4xy+y2=0 x^2 + 4xy + y^2 = 0 is:

Pick an answer to see why.

x2+2xy+5y2=0 x^2 + 2xy + 5y^2 = 0 represents:

Pick an answer to see why.

The product of the slopes of the lines 2x2−5xy+3y2=0 2x^2 - 5xy + 3y^2 = 0 is:

Pick an answer to see why.

The bisectors of the angles between the lines 2x2+5xy+2y2=0 2x^2 + 5xy + 2y^2 = 0 are:

Pick an answer to see why.

2x2+7xy+3y2+8x+14y+k=0 2x^2 + 7xy + 3y^2 + 8x + 14y + k = 0 represents a pair of lines when k is:

Pick an answer to see why.

The acute angle between the lines of 3x2+7xy+2y2+5x+5y+2=0 3x^2 + 7xy + 2y^2 + 5x + 5y + 2 = 0 is:

Pick an answer to see why.

The slope of one line of ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 is twice the other’s. Then:

Pick an answer to see why.

Each of the pairs x2−2pxy−y2=0 x^2 - 2pxy - y^2 = 0 and x2−2qxy−y2=0 x^2 - 2qxy - y^2 = 0 bisects the angles between the other when:

Pick an answer to see why.

Short questions

1.
  • a.Find k so that 6x2+11xy−10y2+x+31y+k=0 6x^2 + 11xy - 10y^2 + x + 31y + k = 0 represents a pair of lines. (3 marks)
  • b.Find the acute angle between them. (2 marks)
Hint
Answer
2.

The equations of two lines are 3x − 2y = 5 and 6x + 2y + 15 = 0.

  • a.Find the single second-degree equation of the two lines. (2 marks)
  • b.Find the homogeneous equation of the pair of lines through the origin parallel to them, and the bisectors of the angles between that pair. (3 marks)
Hint
Answer
3.

Prove that the pair of lines through the origin perpendicular to the lines of ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 is bx2−2hxy+ay2=0 bx^2 - 2hxy + ay^2 = 0 . (5 marks)

Hint
Answer
4.
  • a.Show that x2−5xy+4y2+x+2y−2=0 x^2 - 5xy + 4y^2 + x + 2y - 2 = 0 represents a pair of lines. (2 marks)
  • b.Find the two lines and the acute angle between them. (3 marks)
Answer

Long questions

5.
  • a.Prove that the bisectors of the angles between the lines ax2+2hxy+by2=0 ax^2 + 2hxy + by^2 = 0 are h(x2−y2)=(a−b)xy h(x^2 - y^2) = (a - b)xy , and that they are perpendicular. (4 marks)
  • b.Find the bisectors of the angles between the lines 7x2−8xy+y2=0 7x^2 - 8xy + y^2 = 0 and show that each makes equal angles with the two lines. (2 marks)
  • c.Find the same bisectors from Unit 11’s formula for the bisectors of two lines. (2 marks)
Hint
Answer

Project work

For the engineering entrance

Practice for the engineering entrance, on 12.4’s entrance section.

Where these facts come from
  • The ears about 21.5 cm apart, the delay of about 626 μs for a sound from one side, and that sounds in front and behind give equal time differences, other cues telling them apart (the opening and 12.4): Wikipedia, “Sound localization”, read November 2026. The drum’s delay and the far-off, parallel-path model are ours; the speed of sound, 343 m/s, is for dry air at 20 °C.
  • The unit’s items and project work: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, 3.2 and sample project 8; the marks and the model paper’s question: CDC, Specification Grid 2078, Mathematics, Grade 11; IOE, BE/BArch Entrance Syllabus 2083, Mathematics 4.1.

Found a mistake? Please tell us.