Sub topic 7
Where lines meet: intersection and concurrency
This chapter assumes you can write a line as ax + by + c = 0 and solve two linear equations in two unknowns. It also assumes you know slope and the parallel and perpendicular conditions from the earlier chapters. Here you will find where two lines cross, test whether three lines pass through one point, and use the "family of lines" shortcut that saves time in CAT.
Intersection as a system of equations
A point lies on a line when its coordinates satisfy the line's equation. A point on two lines satisfies both equations at once. So the intersection of two lines is the solution of a pair of simultaneous linear equations.
Take x + y - 5 = 0 and x - y - 1 = 0. Adding the two equations gives 2x - 6 = 0, so x = 3. Substituting into the first gives y = 2. The lines meet at (3, 2). Check it in both equations: 3 + 2 - 5 = 0 and 3 - 2 - 1 = 0.
For the general pair a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0, Cramer's rule gives a closed form. Let D = a1*b2 - a2*b1. Then:
x = (b1*c2 - b2*c1) / Dy = (a2*c1 - a1*c2) / D
The same D also decides how many intersection points exist.
The three cases
Two distinct lines in a plane can meet in one point, never, or everywhere. The table shows how to tell which.
| Case | Condition on coefficients | Slopes | Number of common points |
|---|---|---|---|
| Intersecting | `a1/a2 ≠ b1/b2` (that is, `D ≠ 0`) | Different | Exactly one |
| Parallel | `a1/a2 = b1/b2 ≠ c1/c2` | Equal | None |
| Coincident | `a1/a2 = b1/b2 = c1/c2` | Equal | Infinitely many |
In CAT, a question that asks "for what value of k do the lines have no solution" is asking for the parallel case. A question that asks for "infinitely many solutions" is asking for the coincident case. In both, set D = 0. Then use the c ratio to separate the two.
Computing it exactly
The program below uses Python's Fraction type so the arithmetic stays exact. A line is stored as a tuple (a, b, c).
from fractions import Fraction
def intersect(l1, l2):
# returns the single intersection point, or None if the lines are parallel or coincident
a1, b1, c1 = l1
a2, b2, c2 = l2
d = a1 * b2 - a2 * b1
if d == 0:
return None
x = Fraction(b1 * c2 - b2 * c1, d)
y = Fraction(a2 * c1 - a1 * c2, d)
return (x, y)
def on_line(line, p):
a, b, c = line
return a * p[0] + b * p[1] + c == 0
def concurrent(l1, l2, l3):
# True when the first two lines meet in a point that also lies on the third
p = intersect(l1, l2)
return p is not None and on_line(l3, p)
def show(p):
return None if p is None else tuple(float(v) for v in p)
print(show(intersect((1, 1, -5), (1, -1, -1))))
print(show(intersect((1, 1, -5), (2, 2, -7))))
print(concurrent((1, 1, -5), (1, -1, -1), (2, 3, -12)))
print(concurrent((1, 1, -5), (1, -1, -1), (2, 3, -11)))The output is (3.0, 2.0), then None, then True, then False. The second pair is parallel, so there is no intersection. The third line 2x + 3y - 12 = 0 passes through (3, 2), because 6 + 6 - 12 = 0. The fourth line gives 6 + 6 - 11 = 1, so it misses the point.
Concurrency of three lines
Three lines are concurrent when they all pass through one point. There are two reliable ways to test this.
- Substitution. Solve any two lines for their intersection, then plug the point into the third. This is what the
concurrentfunction does. It is usually fastest by hand, because you pick the two lines that are easiest to solve. - Determinant. The lines
a1x + b1y + c1 = 0,a2x + b2y + c2 = 0anda3x + b3y + c3 = 0satisfy
a1(b2c3 - b3c2) - b1(a2c3 - a3c2) + c1(a2b3 - a3b2) = 0
when they are concurrent. This form is useful when a parameter such as k sits in the third line, because the condition becomes one equation in k.
Suppose you must find k so that x + y - 5 = 0, x - y - 1 = 0 and 2x + 3y + k = 0 are concurrent. The first two meet at (3, 2). Substituting gives 6 + 6 + k = 0, so k = -12. This is much shorter than expanding the determinant.
Lines through an intersection point: the family method
Many questions ask for a line through the intersection of two lines that also meets one more condition. You can answer without finding the intersection point.
If L1 = 0 and L2 = 0 are two lines that meet, then
L1 + k*L2 = 0
is a line through that intersection point for every real k. The reason is simple. At the intersection point both L1 and L2 equal zero, so any combination of them equals zero too. The equation is linear in x and y, so it is a line. Adding the extra condition fixes k.
Worked example. Find the line through the intersection of x + y - 5 = 0 and x - y - 1 = 0 that also passes through the origin.
- Write the family:
(x + y - 5) + k(x - y - 1) = 0. - Substitute (0, 0):
-5 - k = 0, sok = -5. - Expand:
x + y - 5 - 5x + 5y + 5 = 0, which gives-4x + 6y = 0, or2x - 3y = 0.
The check: (3, 2) gives 6 - 6 = 0, so the new line does pass through the intersection.
The family method has two limits. First, no value of k produces L2 itself, so test L2 separately if it might be the answer. Second, if the condition would force k to infinity, the answer is L2.
The same idea explains lines that pass through a fixed point. Consider (1 + k)x + (2 - k)y - 3 = 0. Regroup it by powers of k: (x + 2y - 3) + k(x - y) = 0. Every line in the family passes through the solution of x + 2y - 3 = 0 and x - y = 0, which is (1, 1). Check: (1 + k) + (2 - k) - 3 = 0 for every k.
Choosing a method
Common errors
- Sign slips when rewriting. Move every term to one side as
ax + by + c = 0before comparing coefficients. A line written asy = 2x + 3is2x - y + 3 = 0, not2x + y + 3 = 0. - Forgetting vertical lines. A line
x = 4has no slope. Intersect it by substitutingx = 4into the other equation. - Mixing up parallel and coincident. Equal slopes alone do not decide the case. Compare the constants too.
- Using the determinant blindly. As the warning above says, a zero determinant can mean parallel lines.
- Skipping the check. Substitute your answer back into the original equations. It takes a few seconds and catches arithmetic mistakes.
Using intersections to build shapes
Intersections turn three lines into a triangle. Solve the three pairs of equations to get the three vertices, then use the distance formula or the shoelace formula from the earlier chapters. The medians of a triangle always meet at one point (the centroid), so the concurrency test can confirm a centroid you calculated. The next chapters on triangle centres use this idea repeatedly.
For a CAT question, estimate the shape first. If two of the three lines are perpendicular, the triangle is right-angled and the area is half the product of the legs. You may not need the third vertex's full coordinates at all.
Exercise
Find the value of k for which the lines 2x + 3y - 7 = 0, x - y + 1 = 0 and kx + 2y - 8 = 0 are concurrent.
Show answer
Solve the first two lines. From x - y + 1 = 0, y = x + 1. Then 2x + 3(x + 1) - 7 = 0, so 5x - 4 = 0 and x = 0.8, y = 1.8. Substitute into the third line: 0.8k + 3.6 - 8 = 0, so 0.8k = 4.4 and k = 5.5.
Exercise
Find the equation of the line through the intersection of x + 2y - 4 = 0 and 2x - y - 3 = 0 that is parallel to the line x + y = 10.
Show answer
Write the family (x + 2y - 4) + k(2x - y - 3) = 0, which is (1 + 2k)x + (2 - k)y - (4 + 3k) = 0. Parallel to x + y = 10 means the x and y coefficients are equal: 1 + 2k = 2 - k, so k = 1/3. Substituting gives (5/3)x + (5/3)y - 5 = 0, which simplifies to x + y - 3 = 0.
Exercise
For what value of p do the equations 3x + 4y = 7 and 6x + py = 20 have no solution?
Show answer
There is no solution when the lines are parallel and not coincident. Parallel requires 3p - 24 = 0, so p = 8. Then the equations are 3x + 4y = 7 and 6x + 8y = 20. The ratio of constants is 7/20, which differs from 3/6 = 1/2, so the lines are distinct. Hence p = 8.