Skip to content

Mathematics · Ch 4 — Pair of Straight Lines

Angle between lines represented by $ax^2 + 2hxy + by^2 = 0$

4.3

Angle between lines represented by $ax^2 + 2hxy + by^2 = 0$

This section asks: given the homogeneous pair ax2+2hxy+by2=0ax^2+2hxy+by^2=0, what is the angle between its two lines?

Figure 4.4Fig. 4.4 — The acute angle θ between the two lines y = m₁x and y = m₂x of the pair ax² + 2hxy + by² = 0
Fig. 4.4 — Fig. 4.4 — The acute angle θ between the two lines y = m₁x and y = m₂x of the pair ax² + 2hxy + by² = 0

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. A coordinate-axis sketch (X'X horizontal, Y'Y vertical, origin O at the centre) showing two straight lines drawn through the origin and labelled by their slope-intercept forms y=m1xy = m_1x and y=m2xy = m_2x. It is the picture that accompanies Theorem 4.4's derivation of the acute-angle formula, illustrating the two lines whose slopes m1m_1 and m2m_2 come from the sum-and-product formulas, without itself showing the angle value that the proof goes on to …

If we know the slope of a line we can always find the angle it makes with the coordinate axes, so the natural approach is to work through the slopes m1,m2m_1, m_2 of the pair (assuming b≠0b \neq 0, so both slopes are defined; if b=0b=0 one line is the YY-axis and the angle can be found directly from the other line's slope).

Since m1m2=abm_1m_2 = \dfrac{a}{b}, and two lines with slopes m1,m2m_1,m_2 are perpendicular exactly when m1m2=−1m_1m_2=-1, substituting gives ab=−1\dfrac{a}{b}=-1, i.e. a=−ba=-b, i.e. a+b=0a+b=0. So: the lines represented by ax2+2hxy+by2=0ax^2+2hxy+by^2=0 are perpendicular to each other if and only if a+b=0a+b=0.

When the lines are not perpendicular, the acute angle between them is given by the following theorem.

Theorem 4.4. The acute angle θ\theta between the lines represented by ax2+2hxy+by2=0ax^2+2hxy+by^2=0 is given by tan⁡θ=2h2−aba+b\tan\theta = \dfrac{2\sqrt{h^2-ab}}{a+b}.

Proof. Let m1,m2m_1,m_2 be the slopes of the two lines, so m1+m2=−2hbm_1+m_2=\dfrac{-2h}{b} and m1m2=abm_1m_2=\dfrac{a}{b}. Using the algebraic identity (m1−m2)2=(m1+m2)2−4m1m2(m_1-m_2)^2=(m_1+m_2)^2-4m_1m_2, substitute: (m1−m2)2=4h2b2−4ab=4h2−4abb2=4(h2−ab)b2(m_1-m_2)^2 = \dfrac{4h^2}{b^2} - \dfrac{4a}{b} = \dfrac{4h^2-4ab}{b^2} = \dfrac{4(h^2-ab)}{b^2}. Taking the square root, m1−m2=±2h2−abbm_1-m_2 = \pm\dfrac{2\sqrt{h^2-ab}}{b}.

Since θ\theta is the acute angle between the two lines, tan⁡θ=∣m1−m21+m1m2∣=∣±2h2−abb∣∣1+ab∣=2h2−aba+b\tan\theta = \left|\dfrac{m_1-m_2}{1+m_1m_2}\right| = \dfrac{\left|\pm\dfrac{2\sqrt{h^2-ab}}{b}\right|}{\left|1+\dfrac{a}{b}\right|} = \dfrac{2\sqrt{h^2-ab}}{a+b} (taking the sign of a+ba+b so the value comes out as the acute-angle tangent, i.e. non-negative). ■\blacksquare

Remark (coincidence). The lines represented by ax2+2hxy+by2=0ax^2+2hxy+by^2=0 are coincident exactly when m1=m2m_1=m_2, i.e. m1−m2=0m_1-m_2=0, i.e. 2h2−abb=0\dfrac{2\sqrt{h^2-ab}}{b}=0, i.e. h2−ab=0h^2-ab=0, i.e. h2=abh^2=ab. This matches the coincidence remark already noted in section 4.2.

Worked Examples

Example 1. Show that lines represented by 3x2−4xy−3y2=03x^2-4xy-3y^2=0 are perpendicular.

Here a=3,h=−2,b=−3a=3,h=-2,b=-3, so a+b=3+(−3)=0a+b=3+(-3)=0, and by the perpendicularity condition the lines are perpendicular.

Example 2. Show that lines represented by x2+4xy+4y2=0x^2+4xy+4y^2=0 are coincident.

Here a=1,h=2,b=4a=1,h=2,b=4, so h2−ab=4−4=0h^2-ab=4-4=0; the lines are coincident.

Example 3. Find the acute angle between the lines represented by (i) x2+xy=0x^2+xy=0, (ii) x2−4xy+y2=0x^2-4xy+y^2=0, (iii) 3x2+2xy−y2=03x^2+2xy-y^2=0, (iv) 2x2−6xy+y2=02x^2-6xy+y^2=0, (v) xy+y2=0xy+y^2=0.

  1. a=1,h=12,b=0a=1,h=\dfrac12,b=0: tan⁡θ=21/4−01+0=2(1/2)1=1\tan\theta=\dfrac{2\sqrt{1/4-0}}{1+0}=\dfrac{2(1/2)}{1}=1, so θ=45∘=π4\theta=45^\circ=\dfrac{\pi}{4}.
  2. a=1,h=−2,b=1a=1,h=-2,b=1: tan⁡θ=24−11+1=232=3\tan\theta=\dfrac{2\sqrt{4-1}}{1+1}=\dfrac{2\sqrt3}{2}=\sqrt3, so θ=60∘=π3\theta=60^\circ=\dfrac{\pi}{3}.
  3. a=3,h=1,b=−1a=3,h=1,b=-1: tan⁡θ=21+33−1=2(2)2=2\tan\theta=\dfrac{2\sqrt{1+3}}{3-1}=\dfrac{2(2)}{2}=2, so θ=tan⁡−1(2)\theta=\tan^{-1}(2).
  4. a=2,h=−3,b=1a=2,h=-3,b=1: tan⁡θ=29−22+1=273\tan\theta=\dfrac{2\sqrt{9-2}}{2+1}=\dfrac{2\sqrt7}{3}, so θ=tan⁡−1(273)\theta=\tan^{-1}\left(\dfrac{2\sqrt7}{3}\right).
  5. a=0,h=12,b=1a=0,h=\dfrac12,b=1: tan⁡θ=21/4−00+1=1\tan\theta=\dfrac{2\sqrt{1/4-0}}{0+1}=1, so θ=45∘=π4\theta=45^\circ=\dfrac{\pi}{4}. Example 4. Find the combined equation of lines through the origin making angle π6\dfrac{\pi}{6} with the line 3x+y−6=03x+y-6=0. …