Sub topic 10
Where Two Lines Meet
This chapter assumes you can write a line in slope-intercept form (y = mx + b) and in standard form (Ax + By = C). It also assumes you can solve a one-variable linear equation and compare slopes to spot parallel lines. The goal is to find the point where two lines cross, to recognize when they never cross or are the same line, and to use that point in GRE-style questions.
What an intersection is
The intersection of two lines is the point (x, y) that makes both equations true at once. Every point on a line satisfies that line's equation. A point on both lines satisfies both equations. Finding it means solving a system of two linear equations in two unknowns.
Two distinct lines in a plane can relate in only three ways, and slope tells you which one applies.
| Slopes | Intercepts | Result |
|---|---|---|
| Different | Any | Exactly one intersection point |
| Same | Different | No intersection (parallel lines) |
| Same | Same | Infinitely many points (the same line) |
Method 1: Set the y-values equal
Use this when both lines are already written as y = mx + b. At the intersection both lines have the same y, so their right-hand sides must be equal.
Find where y = 2x + 1 meets y = -x + 7.
- Set the right sides equal: 2x + 1 = -x + 7.
- Collect x terms: 3x = 6, so x = 2.
- Put x back into either equation: y = 2(2) + 1 = 5.
The intersection is (2, 5). Check it in the other equation: -2 + 7 = 5, which matches.
In general, m1·x + b1 = m2·x + b2 gives x = (b2 − b1) / (m1 − m2). The denominator is zero exactly when the slopes are equal, which is the parallel or same-line case.
m1, b1 = 2, 1 # y = 2x + 1
m2, b2 = -1, 7 # y = -x + 7
x = (b2 - b1) / (m1 - m2)
y = m1 * x + b1
print(x, y) # 2.0 5.0Method 2: Substitution
Use substitution when one equation is already solved for a variable and the other is in standard form.
Find where y = 3x − 4 meets 2x + y = 11.
- Replace y in the second equation with 3x − 4: 2x + (3x − 4) = 11.
- Simplify: 5x − 4 = 11, so 5x = 15 and x = 3.
- Then y = 3(3) − 4 = 5.
The intersection is (3, 5). Check in the second equation: 2(3) + 5 = 11.
Substitution also handles vertical lines, which have no slope-intercept form. The line x = 3 meets y = 2x − 1 where x = 3, so y = 5 and the point is (3, 5). Likewise, a horizontal line y = 4 meets y = 2x − 1 where 2x − 1 = 4, so x = 2.5.
Method 3: Elimination
Use elimination when both lines are in standard form. Add or subtract the equations so that one variable cancels.
Find where 3x + 2y = 12 meets x − 2y = 4.
The y terms are +2y and −2y, so adding the equations cancels y.
- Add: 4x = 16, so x = 4.
- Substitute into x − 2y = 4: 4 − 2y = 4, so y = 0.
The intersection is (4, 0). It lies on the x-axis. Check in the first equation: 3(4) + 0 = 12.
Sometimes no variable cancels right away. Find where 2x + 3y = 7 meets 4x − y = 7.
- Multiply the second equation by 3: 12x − 3y = 21.
- Add it to the first equation: 14x = 28, so x = 2.
- Substitute into 4x − y = 7: 8 − y = 7, so y = 1.
The intersection is (2, 1). Check in the first equation: 4 + 3 = 7.
Choosing a method
| Form of the equations | Fastest method |
|---|---|
| Both y = mx + b | Set the right sides equal |
| One solved for y or x | Substitution |
| Both Ax + By = C | Elimination |
| One line vertical or horizontal | Plug the fixed value into the other equation |
Detecting parallel and same lines
When you solve and every variable cancels, you have hit a special case. Suppose you add x + 2y = 4 and −2x − 4y = −7 after scaling, and the result is 0 = −1 or 0 = 0. A false statement such as 0 = 1 means the lines are parallel. A true statement such as 0 = 0 means the lines are identical.
Take x + 2y = 4 and 2x + 4y = 8. The second equation is exactly twice the first, so they describe the same line. Now take x + 2y = 4 and 2x + 4y = 7. The left sides are proportional but the right sides are not, so the lines are parallel.
The following function solves any system in standard form. It uses Cramer's rule, where the determinant a1·b2 − a2·b1 is zero exactly when the slopes match. It uses Fraction so answers stay exact.
from fractions import Fraction
def intersect(l1, l2):
a1, b1, c1 = l1 # a1*x + b1*y = c1
a2, b2, c2 = l2
det = a1 * b2 - a2 * b1
if det == 0:
if a1 * c2 - a2 * c1 == 0 and b1 * c2 - b2 * c1 == 0:
return "same line"
return "parallel"
x = Fraction(c1 * b2 - c2 * b1, det)
y = Fraction(a1 * c2 - a2 * c1, det)
return x, y
systems = [
((3, 2, 12), (1, -2, 4)), # 3x + 2y = 12 and x - 2y = 4
((2, 3, 7), (4, -1, 7)), # 2x + 3y = 7 and 4x - y = 7
((1, 2, 4), (2, 4, 8)), # same line
((1, 2, 4), (2, 4, 7)), # parallel
((1, 0, 3), (2, -1, 1)), # x = 3 and 2x - y = 1
]
for l1, l2 in systems:
result = intersect(l1, l2)
if isinstance(result, tuple):
print(f"({result[0]}, {result[1]})")
else:
print(result)This prints (4, 0), (2, 1), same line, parallel, and (3, 5). Notice that the vertical line x = 3 is just (1, 0, 3) in standard form, so no special handling is needed.
Using intersections in GRE problems
Intersections with the axes
The y-intercept is where a line meets the line x = 0. The x-intercept is where it meets y = 0. These are intersection problems with a very easy second equation.
Triangles formed by two lines
Lines often form a triangle with an axis. Find the intersection of the lines for one vertex, and find where each line meets the axis for the other two.
The lines y = x and y = −x + 6 meet where x = −x + 6, so x = 3 and y = 3. The line y = −x + 6 meets the x-axis at (6, 0), and y = x meets it at (0, 0). The triangle has vertices (0, 0), (6, 0), and (3, 3). Its base is 6 and its height is 3 (the y-coordinate of the intersection), so its area is ½ · 6 · 3 = 9.
Quantitative comparison
Quantity A is the x-coordinate of the intersection of y = x + 2 and y = −2x + 8. Quantity B is 2.
Solve x + 2 = −2x + 8, which gives 3x = 6 and x = 2. The quantities are equal, so the answer is choice C. Notice that the question needed an exact value, not an estimate, so solving fully was the right move.
Common errors
- Sign slips when subtracting equations. Subtracting 2x − 3y = 5 from x + 3y = 1 changes the sign of every term in the second equation. Adding or subtracting the wrong way is the most frequent source of wrong answers.
- Stopping after x. Remember to find y unless the question asks only for x.
- Substituting into an equation you have already used. After you substitute y = 3x − 4 into the second equation, find y from either equation, but verify the answer in the one you did not use to solve.
- Treating nearly equal slopes as equal. Slopes 2 and 2.1 give a point of intersection, perhaps far away.
- Forgetting vertical lines. A line x = c has no slope. Do not try to use the slope formula for it. Substitute x = c into the other equation.
Exercise
Find the intersection of y = 4x − 3 and 2x + y = 9.
Show answer
Substitute y = 4x − 3 into the second equation: 2x + 4x − 3 = 9, so 6x = 12 and x = 2. Then y = 4(2) − 3 = 5. The intersection is (2, 5). Check: 2(2) + 5 = 9.
Exercise
Do the lines 3x − 6y = 9 and y = ½x + 2 intersect? If so, where?
Show answer
Rewrite the first line as y = ½x − 3/2. Both lines have slope ½ but different y-intercepts (−3/2 and 2), so they are parallel and do not intersect.
Exercise
The lines y = 2x, y = −x + 9, and the x-axis form a triangle. What is its area?
Show answer
The lines y = 2x and y = −x + 9 meet where 2x = −x + 9, so x = 3 and y = 6. The line y = 2x meets the x-axis at (0, 0), and y = −x + 9 meets it at (9, 0). The base is 9 and the height is 6, so the area is ½ · 9 · 6 = 27.