- Practice
- About 22 min
- 5 practice questions
Pair of straight lines
Write and separate the combined equation of two lines, find the angle between the lines of ax² + 2hxy + by² = 0, its bisectors and conditions, and test whether a general second-degree equation represents a pair of lines.
If something looks wrong, please tell us.
By the end of this lesson you can
- Form the combined equation of two lines and separate a combined equation into its lines.
- Use m₁ + m₂ = −2h/b and m₁m₂ = a/b for ax² + 2hxy + by² = 0.
- Find the angle between the lines, and use the conditions for real, coincident and perpendicular lines.
- Write the pair perpendicular to a given pair and the pair of angle bisectors.
- Test abc + 2fgh − af² − bg² − ch² = 0, separate a general pair, and find its point of intersection.
If L₁ = 0 and L₂ = 0 are two lines, a point lies on one of them exactly when the product L₁L₂ is zero. So L₁L₂ = 0, a single equation of the second degree, represents both lines together. This lesson works backwards from such equations to the lines they contain.
Pairs through the origin
The lines y = m₁x and y = m₂x together are (y − m₁x)(y − m₂x) = 0, that is y² − (m₁ + m₂)xy + m₁m₂x² = 0. Every term has degree 2, so the equation is homogeneous of degree two. Conversely, ax² + 2hxy + by² = 0 represents two lines through the origin. Dividing by x² and putting y/x = m gives bm² + 2hm + a = 0, whose roots are the two slopes: m₁ + m₂ = −2h/b and m₁m₂ = a/b.
Worked example 1: combining and separating
(i) The combined equation of x − 2y = 0 and 3x + y = 0 is (x − 2y)(3x + y) = 3x² + xy − 6xy − 2y² = 0, that is 3x² − 5xy − 2y² = 0. (ii) Separate 2x² − 7xy + 3y² = 0. Splitting the middle term, 2x² − 6xy − xy + 3y² = 2x(x − 3y) − y(x − 3y) = (2x − y)(x − 3y). The lines are 2x − y = 0 and x − 3y = 0. By slopes: 3m² − 7m + 2 = 0 gives m = 2 or m = 1/3, the same lines. (iii) x² + 2xy + 3y² = 0 gives 3m² + 2m + 1 = 0, whose discriminant 4 − 12 is negative, so there are no real lines; only (0, 0) satisfies it.
Angle between the pair
tan θ = |(m₁ − m₂)/(1 + m₁m₂)|, and (m₁ − m₂)² = (m₁ + m₂)² − 4m₁m₂ = 4h²/b² − 4a/b = 4(h² − ab)/b². Since 1 + m₁m₂ = (a + b)/b, this gives the formula below. The lines are real and distinct if h² − ab > 0, coincident if h² − ab = 0 and not real if h² − ab < 0; they are perpendicular if a + b = 0, since then cot θ = 0.
For ax² + 2hxy + by² = 0: tan θ = |2√(h² − ab)/(a + b)|. Coincident: h² = ab. Perpendicular: a + b = 0. Bisectors: (x² − y²)/(a − b) = xy/h.
Worked example 2: angle, perpendicular pair and bisectors
For 2x² − 7xy + 3y² = 0: a = 2, h = −7/2, b = 3. Angle: h² − ab = 49/4 − 6 = 25/4, so tan θ = |2 × (5/2)/(2 + 3)| = 1 and θ = 45°; check with the slopes 2 and 1/3: |(2 − 1/3)/(1 + 2/3)| = (5/3)/(5/3) = 1. Perpendicular pair through O: the textbook shows that the lines through the origin perpendicular to ax² + 2hxy + by² = 0 are bx² − 2hxy + ay² = 0; here 3x² + 7xy + 2y² = 0 = (3x + y)(x + 2y), slopes −3 and −1/2, which are perpendicular to 1/3 and 2. Bisectors: (x² − y²)/(2 − 3) = xy/(−7/2) gives 7(x² − y²) = 2xy, that is 7x² − 2xy − 7y² = 0; here a + b = 0, so the bisectors are perpendicular, as they must be.
The general second-degree equation
Multiplying (l₁x + m₁y + n₁)(l₂x + m₂y + n₂) gives an equation ax² + 2hxy + by² + 2gx + 2fy + c = 0. Not every such equation splits into two linear factors. Treating it as a quadratic in x and asking that the square root in the solution be a perfect square leads to the condition
ax² + 2hxy + by² + 2gx + 2fy + c = 0 represents a pair of straight lines if abc + 2fgh − af² − bg² − ch² = 0.
Results stated in the textbook without proof: the second-degree terms ax² + 2hxy + by² = 0 alone give the pair through the origin parallel to the given pair, so the angle formula and the condition a + b = 0 for perpendicular lines are unchanged; the lines meet at ((hf − bg)/(ab − h²), (gh − af)/(ab − h²)); and if the lines are parallel (h² = ab), the distance between them is 2√((g² − ac)/(a(a + b))).
Separating a general pair
- Check the condition abc + 2fgh − af² − bg² − ch² = 0 (find an unknown constant from it).
- Factorise the second-degree part ax² + 2hxy + by² = (l₁x + m₁y)(l₂x + m₂y).
- Add unknown constants Write (l₁x + m₁y + p)(l₂x + m₂y + q).
- Compare x, y and constant terms Solve two equations for p and q; the third checks them.
Worked example 3: finding k, the lines, their meeting point and angle
Find k so that x² − 5xy + 6y² + x − 4y + k = 0 is a pair of lines. Here a = 1, h = −5/2, b = 6, g = 1/2, f = −2, c = k. The condition: abc = 6k; 2fgh = 2(−2)(1/2)(−5/2) = 5; af² = 4; bg² = 6/4 = 3/2; ch² = 25k/4. So 6k + 5 − 4 − 3/2 − 25k/4 = 0, that is −k/4 − 1/2 = 0, and k = −2. Lines: x² − 5xy + 6y² = (x − 2y)(x − 3y), so write (x − 2y + p)(x − 3y + q). Comparing: x-terms p + q = 1; y-terms −3p − 2q = −4; constants pq = −2. The first two give p = 2, q = −1, and pq = −2 checks. The lines are x − 2y + 2 = 0 and x − 3y − 1 = 0. Meeting point: ab − h² = 6 − 25/4 = −1/4, hf − bg = 5 − 3 = 2 and gh − af = −5/4 + 2 = 3/4, so the point is (2 ÷ (−1/4), (3/4) ÷ (−1/4)) = (−8, −3); both lines pass through it. Angle: h² − ab = 1/4, so tan θ = 2 × (1/2)/7 = 1/7.
Worked example 4: parallel lines, and lines joining the origin to two points
(i) x² + 4xy + 4y² + 3x + 6y − 4 = 0 can be written as (x + 2y)² + 3(x + 2y) − 4 = (x + 2y + 4)(x + 2y − 1), a pair of parallel lines (h² − ab = 4 − 4 = 0). The distance between them is |4 − (−1)|/√5 = √5; the formula agrees: 2√((9/4 + 4)/(1 × 5)) = 2√(5/4) = √5. (ii) The lines joining the origin to the points where x + y = 2 meets x² + y² = 4 are found by homogenising: since (x + y)/2 = 1, write x² + y² = 4[(x + y)/2]² = (x + y)², which gives 2xy = 0, the two axes. They are perpendicular (a + b = 0 + 0 = 0), and indeed the points are (2, 0) and (0, 2).
Key takeaways: a homogeneous second-degree equation is a pair of lines through the origin with m₁ + m₂ = −2h/b and m₁m₂ = a/b; tan θ = |2√(h² − ab)/(a + b)|, with a + b = 0 for perpendicular lines and h² = ab for coincident ones; the bisectors are (x² − y²)/(a − b) = xy/h; and a general second-degree equation is a pair of lines only when abc + 2fgh − af² − bg² − ch² = 0.
Check your understanding
-
1. Which lines does x² − 5xy + 6y² = 0 represent?
- y = 2x and y = 3x
- x = 2y and x = 3y
- x = −2y and x = −3y
- y = 5x and y = 6x
Show answer
Answer: B. x² − 5xy + 6y² = (x − 2y)(x − 3y), so the lines are x = 2y and x = 3y. Check: (x − 2y)(x − 3y) = x² − 5xy + 6y².
-
2. Which equation represents a pair of perpendicular lines through the origin?
- 4x² + 3xy + 4y² = 0
- x² − 4xy + 4y² = 0
- 4x² + 3xy − 4y² = 0
- x² + y² = 0
Show answer
Answer: C. The lines of ax² + 2hxy + by² = 0 are perpendicular when a + b = 0. For 4x² + 3xy − 4y², a + b = 4 − 4 = 0. The equation x² − 4xy + 4y² = (x − 2y)² gives coincident lines.
-
3. What is the angle between the lines 3x² − 10xy + 3y² = 0?
- tan⁻¹(4/3)
- tan⁻¹(3/4)
- 45°
- 90°
Show answer
Answer: A. a = 3, h = −5, b = 3, so h² − ab = 25 − 9 = 16 and tan θ = |2 × 4/(3 + 3)| = 8/6 = 4/3. (The lines are y = 3x and y = x/3.)
-
4. When does ax² + 2hxy + by² = 0 represent two coincident lines?
- When a + b = 0
- When h² > ab
- When h² = ab
- When h = 0
Show answer
Answer: C. The slopes are the roots of bm² + 2hm + a = 0. They are equal when the discriminant 4h² − 4ab is zero, that is h² = ab; then tan θ = 0.
-
5. Which lines does 2x² + 3xy + y² = 0 represent?
- y = 2x and y = x
- y = −2x and y = −x
- y = −2x and y = x
- y = 2x and y = −x
Show answer
Answer: B. 2x² + 3xy + y² = (2x + y)(x + y), so the lines are 2x + y = 0 and x + y = 0, that is y = −2x and y = −x. By slopes: m² + 3m + 2 = 0 gives m = −1 or −2.
Sign in to keep track of the lessons you finish.