Intersection of two lines

The intersection of two lines is the point that lies on both of them. There, the yy computed from one equation and the yy computed from the other agree exactly. So to find it we set the two expressions for yy equal and collapse them into a single equation. That is precisely what solving a system of equations means1.

Solving the system

Find where the two lines y=2x1y = 2x - 1 and y=x+5y = -x + 5 meet. At the meeting point the two yy values are equal.

2x1=x+53x=6x=2\begin{align*} 2x - 1 &= -x + 5 \\ 3x &= 6 \\ x &= 2 \end{align*}

Substituting back, y=221=3y = 2 \cdot 2 - 1 = 3. So the intersection is (2,3)(2, 3).

Let us check (2,3)(2, 3) in the other equation as well: 2+5=3-2 + 5 = 3, so the point really does lie on both lines. Since an intersection is a point satisfying both equations at once, this substitution is all the verification the answer needs.

Number of intersections

The key idea is that the number of intersections equals the number of solutions of the equation. Looking for the intersection of y=a1x+b1y = a_1 x + b_1 and y=a2x+b2y = a_2 x + b_2 leads to the following.

(a1a2)x=b2b1(a_1 - a_2)x = b_2 - b_1

Whether this linear equation can be solved decides how the lines meet.

ConditionThe equationThe lines
a1a2a_1 \neq a_2one solutioncross at exactly one point
a1=a2a_1 = a_2, b1b2b_1 \neq b_2no solutionare parallel and never meet
a1=a2a_1 = a_2, b1=b2b_1 = b_2every xx workscoincide

In other words, as long as the slopes differ, two lines must cross at exactly one point. Two non-parallel lines failing to meet is impossible. Here the slopes are 22 and 1-1, so there is exactly one intersection.

Another form of the equations

The lines are not always handed to you as y=y = \cdots. They may arrive in the form ax+by=cax + by = c, and then it is easier to add or subtract the equations to eliminate a variable.

2xy=1x+y=5\begin{align*} 2x - y &= 1 \\ x + y &= 5 \end{align*}

Adding these two cancels the yy terms and leaves 3x=63x = 6, giving x=2x = 2 once again. Solving for yy and equating, or eliminating directly, lands on the same intersection.

Applications

  • The crossing of a demand line and a supply line is the market equilibrium
  • The crossing of two cost lines is the break-even point where the cheaper plan changes
  • Solving a system of two linear equations in two unknowns

The large dot on the graph is the intersection (2,3)(2, 3) of this example.

  1. System of linear equations, Wikipedia