What this lesson covers

Once we have a pair of lines through the origin, we can ask how far apart they open, write pairs parallel or perpendicular to them, and decide when two pairs share a line. This lesson collects those results.

Angle between the pair

If θ\theta is the acute angle between the lines ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0, then

cos⁡θ=∣a+b∣(a−b)2+4h2,sin⁡θ=2h2−ab(a−b)2+4h2,tan⁡θ=2h2−ab∣a+b∣,\displaystyle \cos\theta = \frac{|a + b|}{\sqrt{(a - b)^2 + 4h^2}}, \qquad \sin\theta = \frac{2\sqrt{h^2 - ab}}{\sqrt{(a - b)^2 + 4h^2}}, \qquad \tan\theta = \frac{2\sqrt{h^2 - ab}}{|a + b|},

the last one for a+b≠0a + b \neq 0. The tangent formula comes straight from tan⁡θ=∣m1−m21+m1m2∣\displaystyle \tan\theta = \left|\dfrac{m_1 - m_2}{1 + m_1 m_2}\right| and the sum and product of the slopes.

The lines are perpendicular if a+b=0a + b = 0, that is, when the coefficient of x2x^2 plus the coefficient of y2y^2 is zero. This is the case where the tangent formula has a zero denominator.

Pairs parallel and perpendicular to a given pair

The pair of lines through the point (x1,y1)(x_1, y_1) parallel to ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 is

a(x−x1)2+2h(x−x1)(y−y1)+b(y−y1)2=0.a(x - x_1)^2 + 2h(x - x_1)(y - y_1) + b(y - y_1)^2 = 0.

This is just the given pair moved so that its vertex is at (x1,y1)(x_1, y_1).

The pair of lines through the origin perpendicular to ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 is

bx2−2hxy+ay2=0.bx^2 - 2hxy + ay^2 = 0.

Swap aa and bb and change the sign of hh. The pair through (x1,y1)(x_1, y_1) perpendicular to the given pair is

b(x−x1)2−2h(x−x1)(y−y1)+a(y−y1)2=0.b(x - x_1)^2 - 2h(x - x_1)(y - y_1) + a(y - y_1)^2 = 0.

A line common to two pairs

If the pairs a1x2+2h1xy+b1y2=0a_1x^2 + 2h_1xy + b_1y^2 = 0 and a2x2+2h2xy+b2y2=0a_2x^2 + 2h_2xy + b_2y^2 = 0 have one line in common, then

∣a12h1a22h2∣⋅∣2h1b12h2b2∣=∣a1b1a2b2∣2,\begin{vmatrix} a_1 & 2h_1 \\ a_2 & 2h_2 \end{vmatrix} \cdot \begin{vmatrix} 2h_1 & b_1 \\ 2h_2 & b_2 \end{vmatrix} = \begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix}^2,

which is the same as

(a1b2−a2b1)2+4(h1a2−h2a1)(h1b2−h2b1)=0.(a_1b_2 - a_2b_1)^2 + 4(h_1a_2 - h_2a_1)(h_1b_2 - h_2b_1) = 0.

If one of the lines of the first pair is perpendicular to one of the lines of the second pair, then

∣a12h1b2−2h2∣⋅∣2h1b1−2h2a2∣=∣a1b1b2a2∣2,\begin{vmatrix} a_1 & 2h_1 \\ b_2 & -2h_2 \end{vmatrix} \cdot \begin{vmatrix} 2h_1 & b_1 \\ -2h_2 & a_2 \end{vmatrix} = \begin{vmatrix} a_1 & b_1 \\ b_2 & a_2 \end{vmatrix}^2,

or equivalently

(a1a2−b1b2)2+4(h1a2+h2b1)(h1b2+h2a1)=0.(a_1a_2 - b_1b_2)^2 + 4(h_1a_2 + h_2b_1)(h_1b_2 + h_2a_1) = 0.

This is the common line condition applied to the first pair and the pair perpendicular to the second.

If the two pairs have one line in common and their remaining lines are perpendicular, then

h1(1a1−1b1)=h2(1a2−1b2).\displaystyle h_1\left(\frac{1}{a_1} - \frac{1}{b_1}\right) = h_2\left(\frac{1}{a_2} - \frac{1}{b_2}\right).

Example 1

Find the acute angle between the lines 2x2−5xy+2y2=02x^2 - 5xy + 2y^2 = 0.

Here a=b=2a = b = 2 and h=−52\displaystyle h = -\tfrac{5}{2}, so (a−b)2+4h2=25(a - b)^2 + 4h^2 = 25 and

cos⁡θ=45,tan⁡θ=225/4−44=34.\displaystyle \cos\theta = \frac{4}{5}, \qquad \tan\theta = \frac{2\sqrt{25/4 - 4}}{4} = \frac{3}{4}.

The slopes are 2 and 12\displaystyle \tfrac{1}{2}, and 2−1/21+1=34\displaystyle \dfrac{2 - 1/2}{1 + 1} = \dfrac{3}{4} confirms it.

Example 2

Find the pair of lines through (1,2)(1, 2) parallel to x2−3xy+2y2=0x^2 - 3xy + 2y^2 = 0, and the pair through the origin perpendicular to it.

Parallel pair: (x−1)2−3(x−1)(y−2)+2(y−2)2=0(x - 1)^2 - 3(x - 1)(y - 2) + 2(y - 2)^2 = 0.

Perpendicular pair: 2x2+3xy+y2=02x^2 + 3xy + y^2 = 0. Check: the given lines are x=yx = y and x=2yx = 2y, with slopes 1 and 12\displaystyle \tfrac{1}{2}; the new pair is (y+x)(y+2x)=0(y + x)(y + 2x) = 0, with slopes −1-1 and −2-2.

Example 3

Verify the common line condition for x2−3xy+2y2=0x^2 - 3xy + 2y^2 = 0 and x2+xy−2y2=0x^2 + xy - 2y^2 = 0.

The pairs factor as (x−y)(x−2y)(x - y)(x - 2y) and (x−y)(x+2y)(x - y)(x + 2y), so x=yx = y is common. With a1=1a_1 = 1, h1=−32\displaystyle h_1 = -\tfrac{3}{2}, b1=2b_1 = 2, a2=1a_2 = 1, h2=12\displaystyle h_2 = \tfrac{1}{2}, b2=−2b_2 = -2:

(a1b2−a2b1)2=(−2−2)2=16,4(h1a2−h2a1)(h1b2−h2b1)=4(−2)(3−1)=−16,\begin{aligned} (a_1b_2 - a_2b_1)^2 &= (-2 - 2)^2 = 16, \\ 4(h_1a_2 - h_2a_1)(h_1b_2 - h_2b_1) &= 4(-2)(3 - 1) = -16, \end{aligned}

and 16+(−16)=016 + (-16) = 0.

Practice

  1. Find the acute angle between the lines x2−4xy+y2=0x^2 - 4xy + y^2 = 0.
  2. Show that the lines 3x2+5xy−3y2=03x^2 + 5xy - 3y^2 = 0 are perpendicular.
  3. Find the pair of lines through (2,−1)(2, -1) parallel to 6x2−5xy−6y2=06x^2 - 5xy - 6y^2 = 0.
  4. Find the pair of lines through the origin perpendicular to x2−7xy+12y2=0x^2 - 7xy + 12y^2 = 0.
  5. Find tan⁡θ\tan\theta for the acute angle between x2+6xy+y2=0x^2 + 6xy + y^2 = 0.
  6. Find the values of kk for which x2−3xy+2y2=0x^2 - 3xy + 2y^2 = 0 and x2+kxy−3y2=0x^2 + kxy - 3y^2 = 0 have a common line.

Answers

Show answers
  1. a+b=2a + b = 2 and (a−b)2+4h2=16(a - b)^2 + 4h^2 = 16, so cos⁡θ=24=12\displaystyle \cos\theta = \tfrac{2}{4} = \tfrac{1}{2} and θ=60∘\theta = 60^\circ.
  2. a+b=3+(−3)=0a + b = 3 + (-3) = 0.
  3. 6(x−2)2−5(x−2)(y+1)−6(y+1)2=06(x - 2)^2 - 5(x - 2)(y + 1) - 6(y + 1)^2 = 0.
  4. 12x2+7xy+y2=012x^2 + 7xy + y^2 = 0.
  5. tan⁡θ=29−12=22\displaystyle \tan\theta = \tfrac{2\sqrt{9 - 1}}{2} = 2\sqrt{2}.
  6. The first pair is x=yx = y and x=2yx = 2y. Putting x=yx = y in the second gives 1+k−3=01 + k - 3 = 0, so k=2k = 2; putting x=2yx = 2y gives 4+2k−3=04 + 2k - 3 = 0, so k=−12\displaystyle k = -\tfrac{1}{2}.