MatheramaMatherama
← Pair of Straight Lines
Pair of Straight Lines·Section 11·8 min read

Point of intersection of a General Pair of Straight Lines

Shifting a Homogenous Pair of Straight Lines§

Given a homogeneous pair of straight lines ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0, which intersect at the origin, consider shifting this pair of straight lines parallelly (without rotation, only upward or downward translation) to a new location such that the intersection point is (x1,y1)(x_1, y_1). The new equation of this pair of straight lines is found by substituting x−x1x - x_1 for xx and y−y1y - y_1 for yy in the original equation.

Thus, the new equation becomes:

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

Invariance of Quadratic terms because of Shifting§

Expanding this equation:

a(x−x1)2+2h(x−x1)(y−y1)+b(y−y1)2=0a(x - x_1)^2 + 2h(x - x_1)(y - y_1) + b(y - y_1)^2 = 0 a(x2−2x1x+x12)+2h(xy−x1y−y1x+x1y1)+b(y2−2y1y+y12)=0a(x^2 - 2x_1x + x_1^2) + 2h(xy - x_1y - y_1x + x_1y_1) + b(y^2 - 2y_1y + y_1^2) = 0

Combining like terms, we get:

ax2−2ax1x+ax12+2hxy−2hx1y−2hy1x+2hx1y1+by2−2by1y+by12=0ax^2 - 2ax_1x + ax_1^2 + 2hxy - 2hx_1y - 2hy_1x + 2hx_1y_1 + by^2 - 2by_1y + by_1^2 = 0

Grouping terms, we have:

ax2+2hxy+by2−2(ax1+hy1)x−2(hx1+by1)y+(ax12+2hx1y1+by12)=0ax^2 + 2hxy + by^2 - 2(ax_1 + hy_1)x - 2(hx_1 + by_1)y + (ax_1^2 + 2hx_1y_1 + by_1^2) = 0

From this expanded form, we can observe that:

  1. Quadratic terms: The first three terms ax2+2hxy+by2ax^2 + 2hxy + by^2 remain unchanged, preserving the original quadratic nature of the pair of lines.

  2. Linear terms: There is an addition of two new linear terms:

    −2(ax1+hy1)x-2(ax_1 + hy_1)x −2(hx1+by1)y-2(hx_1 + by_1)y
  3. Constant term: There is an additional constant term:

    ax12+2hx1y1+by12ax_1^2 + 2hx_1y_1 + by_1^2

Pair of Straight Lines perpendicular to a given pair§

A pair of straight lines intersecting at (x1,y1)(x_1, y_1) and perpendicular to the pair of lines given by ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0 is represented by:

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

Proof

  1. Pair of Perpendicular Lines through the Origin:

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

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

    This follows because, for two lines to be perpendicular, the product of their slopes must be −1-1. Therefore, swapping the coefficients of x2x^2 and y2y^2 and changing the sign of the mixed term 2hxy2hxy gives us the equation of the perpendicular lines.

  2. Translation to Intersect at (x1,y1)(x_1, y_1):

    To find the required pair of lines intersecting at (x1,y1)(x_1, y_1) and perpendicular to the original lines, we translate the perpendicular lines through the origin to intersect at the new point (x1,y1)(x_1, y_1).

    Substituting x−x1x - x_1 for xx and y−y1y - y_1 for yy in the perpendicular equation, we get:

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

    Therefore, the equation of the pair of straight lines intersecting at (x1,y1)(x_1, y_1) and perpendicular to the given pair of lines is:

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

This completes the proof.

Point of Intersection of a Pair of Straight Lines§

Given a general pair of straight lines represented by the equation:

ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0

We wish to find the point of intersection of the lines that this equation represents. To achieve this, we use the concept of shifting the origin.

Let the intersection point be (x1,y1)(x_1, y_1). If we shift the origin to (x1,y1)(x_1, y_1), then the equation of the pair of straight lines should transform to ax2+2hxy+by2=0ax^2 + 2hxy + by^2 = 0, with no linear terms and the constant term eliminated.

To do this, replace xx with (x+x1)(x + x_1) and yy with (y+y1)(y + y_1) in the original equation. Expanding this transformation, we get:

a(x+x1)2+2h(x+x1)(y+y1)+b(y+y1)2+2g(x+x1)+2f(y+y1)+c=0a(x + x_1)^2 + 2h(x + x_1)(y + y_1) + b(y + y_1)^2 + 2g(x + x_1) + 2f(y + y_1) + c = 0

Expanding and collecting like terms, we have:

a(x+x1)2+2h(x+x1)(y+y1)+b(y+y1)2+2g(x+x1)+2f(y+y1)+c=0a(x + x_1)^2 + 2h(x + x_1)(y + y_1) + b(y + y_1)^2 + 2g(x + x_1) + 2f(y + y_1) + c = 0 a(x2+2x1x+x12)+2h(xy+x1y+y1x+x1y1)+b(y2+2y1y+y12)+2g(x+x1)+2f(y+y1)+c=0a(x^2 + 2x_1x + x_1^2) + 2h(xy + x_1y + y_1x + x_1y_1) + b(y^2 + 2y_1y + y_1^2) + 2g(x + x_1) + 2f(y + y_1) + c = 0 ax2+2ax1x+ax12+2hxy+2hx1y+2hy1x+2hx1y1+by2+2by1y+by12+2gx+2gx1+2fy+2fy1+c=0ax^2 + 2ax_1x + ax_1^2 + 2hxy + 2hx_1y + 2hy_1x + 2hx_1y_1 + by^2 + 2by_1y + by_1^2 + 2gx + 2gx_1 + 2fy + 2fy_1 + c = 0

Combining like terms:

ax2+2hxy+by2+(2ax1+2hy1+2g)x+(2hx1+2by1+2f)y+(ax12+2hx1y1+by12+2gx1+2fy1+c)=0ax^2 + 2hxy + by^2 + (2ax_1 + 2hy_1 + 2g)x + (2hx_1 + 2by_1 + 2f)y + (ax_1^2 + 2hx_1y_1 + by_1^2 + 2gx_1 + 2fy_1 + c) = 0

For the equation to be free of linear terms and the constant term, the coefficients of the linear terms must be zero. Thus, we set the coefficients of xx and yy to zero:

2ax1+2hy1+2g=02ax_1 + 2hy_1 + 2g = 0 2hx1+2by1+2f=02hx_1 + 2by_1 + 2f = 0

Dividing by 2, we get the system of linear equations:

ax1+hy1+g=0ax_1 + hy_1 + g = 0 hx1+by1+f=0hx_1 + by_1 + f = 0

The solution of these two linear equations gives us the point of intersection (x1,y1)(x_1, y_1).

Thus, the point of intersection of the pair of straight lines is:

x1=hf−bgab−h2x_1 = \frac{hf - bg}{ab - h^2} y1=hg−afab−h2y_1 = \frac{hg - af}{ab - h^2}

Now, you must be wondering what happened to the constant term ax12+2hx1y1+by12+2gx1+2fy1+cax_1^2 + 2hx_1y_1 + by_1^2 + 2gx_1 + 2fy_1 + c in the expansion. It turns out that it is equal to zero automatically as we set the coefficients of the linear terms to zero.

Let's write the constant term as follows:

ax12+2hx1y1+by12+2gx1+2fy1+cax_1^2 + 2hx_1y_1 + by_1^2 + 2gx_1 + 2fy_1 + c

We can factor and group the terms involving x1x_1 and y1y_1:

x1(ax1+hy1+g)+y1(by1+hx1+f)+gx1+fy1+cx_1(ax_1 + hy_1 + g) + y_1(by_1 + hx_1 + f) + gx_1 + fy_1 + c

Using the linear equations ax1+hy1+g=0ax_1 + hy_1 + g = 0 and hx1+by1+f=0hx_1 + by_1 + f = 0, the first two terms become zero:

x1(0)+y1(0)+gx1+fy1+cx_1(0) + y_1(0) + gx_1 + fy_1 + c

Now, substituting x1=hf−bgab−h2x_1 = \frac{hf - bg}{ab - h^2} and y1=hg−afab−h2y_1 = \frac{hg - af}{ab - h^2} into the remaining terms, we get:

g(hf−bgab−h2)+f(hg−afab−h2)+cg \left( \frac{hf - bg}{ab - h^2} \right) + f \left( \frac{hg - af}{ab - h^2} \right) + c

Combining these terms, we have:

g(hf−bg)+f(hg−af)+c(ab−h2)ab−h2\frac{g(hf - bg) + f(hg - af) + c(ab - h^2)}{ab - h^2}

Simplifying the numerator:

g(hf−bg)+f(hg−af)+c(ab−h2)=2fgh−g2b−f2a−ch2+abcg(hf - bg) + f(hg - af) + c(ab - h^2) = 2fgh - g^2b - f^2a - ch^2 + abc

Since ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 represents a pair of straight lines, the condition abc+2fgh−af2−bg2−ch2=0abc + 2fgh - af^2 - bg^2 - ch^2 = 0 holds, making the numerator zero:

2fgh−g2b+fhg−f2a+abc−ch2=02fgh - g^2b + fhg - f^2a + abc - ch^2 = 0

Thus, the constant term becomes:

0ab−h2=0\frac{0}{ab - h^2} = 0

Therefore, the constant term is zero, confirming that the equation transforms correctly with no constant term after shifting the origin.

Here is an interesting thing though. For the intersection point (x1,y1)(x_1, y_1), the following equations hold:

ax1+hy1+g=0ax_1 + hy_1 + g = 0 hx1+by1+f=0hx_1 + by_1 + f = 0 gx1+fy1+c=0gx_1 + fy_1 + c = 0

So, we can use any two of these equations to find x1x_1 and y1y_1.

Alternative Method to Calculate Intersection Point§

Consider a pair of straight lines represented by the equation:

ax2+2hxy+by2+2gx+2fy+c=0(1)ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0 \tag{1}

Let y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2 be the lines represented by (1).

The joint equation of y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2 is:

(m1x−y+c1)(m2x−y+c2)=0(m_1x - y + c_1)(m_2x - y + c_2) = 0

Expanding this, we get:

m1m2x2−(m1+m2)xy+y2+(m1c2+m2c1)x−(c1+c2)y+c1c2=0(2)m_1m_2x^2 - (m_1 + m_2)xy + y^2 + (m_1c_2 + m_2c_1)x - (c_1 + c_2)y + c_1c_2 = 0 \tag{2}

Equation (1) and Equation (2) represent the same pair of lines, so their coefficients must be proportional:

m1m2a=−(m1+m2)2h=1b=m1c2+m2c12g=−(c1+c2)2f=c1c2c\frac{m_1m_2}{a} = \frac{-(m_1 + m_2)}{2h} = \frac{1}{b} = \frac{m_1c_2 + m_2c_1}{2g} = \frac{-(c_1 + c_2)}{2f} = \frac{c_1c_2}{c}

From these proportions, we get:

m1+m2=−2hbm_1 + m_2 = -\frac{2h}{b} m1m2=abm_1m_2 = \frac{a}{b} m1c2+m2c1=2gbm_1c_2 + m_2c_1 = \frac{2g}{b} c1+c2=−2fbc_1 + c_2 = -\frac{2f}{b} c1c2=cbc_1c_2 = \frac{c}{b}

To find the intersection point (x1,y1)(x_1, y_1), we solve the system of equations given by the lines y=m1x+c1y = m_1x + c_1 and y=m2x+c2y = m_2x + c_2:

Setting y=m1x+c1y = m_1x + c_1 equal to y=m2x+c2y = m_2x + c_2:

m1x+c1=m2x+c2m_1x + c_1 = m_2x + c_2

Solving for xx:

x=c2−c1m1−m2x = \frac{c_2 - c_1}{m_1 - m_2}

Next, find yy

y−c1m1=y−c2m2\frac{y - c_1}{m_1} = \frac{y - c_2}{m_2} m2y−c1m2=m1y−m1c2m_2y - c_1m_2 = m_1y - m_1c_2 y=m1c2−c1m2m1−m2y = \frac{m_1c_2 - c_1m_2}{m_1 - m_2}

Thus, the intersection point (x1,y1)(x_1, y_1) is:

x1=c2−c1m1−m2x_1 = \frac{c_2 - c_1}{m_1 - m_2} y1=m1c2−c1m2m1−m2y_1 = \frac{m_1c_2 - c_1m_2}{m_1 - m_2}

Consider:

(c2−c1)2=(c1+c2)2−4c1c2(c_2 - c_1)^2 = (c_1 + c_2)^2 - 4c_1c_2 =(4f2b2)−(4cb)= \left( \frac{4f^2}{b^2} \right) - \left( \frac{4c}{b} \right) =4(f2−bcb2)= 4 \left( \frac{f^2 - bc}{b^2} \right)

Similarly:

(m1−m2)2=(m1+m2)2−4m1m2(m_1 - m_2)^2 = (m_1 + m_2)^2 - 4m_1m_2 =(4h2b2)−(4ab)= \left( \frac{4h^2}{b^2} \right) - \left( \frac{4a}{b} \right) =4(h2−abb2)= 4 \left( \frac{h^2 - ab}{b^2} \right)

For the expression involving y1y_1:

(m1c2−m2c1)2=(m1c2+m2c1)2−4m1m2c1c2(m_1c_2 - m_2c_1)^2 = (m_1c_2 + m_2c_1)^2 - 4m_1m_2c_1c_2 =(4g2b2)−(4acb2)= \left( \frac{4g^2}{b^2} \right) - \left( \frac{4ac}{b^2} \right) =4(g2−acb2)= 4 \left( \frac{g^2 - ac}{b^2} \right)

Therefore:

x12=(c2−c1m1−m2)2=f2−bch2−abx_1^2 = \left( \frac{c_2 - c_1}{m_1 - m_2} \right)^2 = \frac{f^2 - bc}{h^2 - ab} y12=(m1c2−m2c1m1−m2)2=g2−ach2−aby_1^2 = \left( \frac{m_1c_2 - m_2c_1}{m_1 - m_2} \right)^2 = \frac{g^2 - ac}{h^2 - ab}

Thus, the intersection point (x1,y1)(x_1, y_1) is:

(±f2−bch2−ab,±g2−ach2−ab)\boxed{\left( \pm \sqrt{\frac{f^2 - bc}{h^2 - ab}}, \pm \sqrt{\frac{g^2 - ac}{h^2 - ab}} \right)}

This formula contains some ambiguity regarding signs but can be a useful formula when we are interested in x12x_1^2 and y12y_1^2.

Section 11 of 12 · Pair of Straight Lines

Mark this section complete when you have worked through its proofs.