Sub topic 9
Parallel and Perpendicular Lines
This chapter assumes you can find a slope from two points, write a line in slope-intercept form y = mx + b, and handle horizontal and vertical lines. Here you use slope to decide whether two lines are parallel, perpendicular, or neither. You also use it to build new lines from a given one.
The Two Rules
Two lines in the same plane have one of three relationships. They can be parallel, perpendicular, or neither.
- Parallel lines never meet. They have equal slopes: m1 = m2.
- Perpendicular lines meet at a right angle. Their slopes are negative reciprocals: m1 · m2 = -1.
A negative reciprocal is found in two steps. Flip the fraction, then change the sign. The negative reciprocal of 2 is -1/2. The negative reciprocal of -3/4 is 4/3.
| Slope of line 1 | Parallel slope | Perpendicular slope |
|---|---|---|
| 2 | 2 | -1/2 |
| -3/4 | -3/4 | 4/3 |
| 5 | 5 | -1/5 |
| 0 (horizontal) | 0 | undefined (vertical) |
| undefined (vertical) | undefined | 0 |
Check any pair by multiplying. If the product of two slopes is -1, the lines are perpendicular. For example, (-3/4)(4/3) = -1.
Getting the Slope First
The rules need slopes, but the GRE rarely gives you a line already in slope-intercept form. You often have to rearrange.
Take the line 4x + 2y = 10. Solve for y:
- Subtract 4x from both sides: 2y = -4x + 10.
- Divide by 2: y = -2x + 5.
The slope is -2. A line parallel to it has slope -2. A line perpendicular to it has slope 1/2.
For a line in standard form Ax + By = C, the slope is -A/B. For 4x + 2y = 10, that gives -4/2 = -2, which matches. This shortcut saves time under the clock.
def slope_from_standard(A, B):
if B == 0:
return None # vertical line, slope undefined
return -A / B
print(slope_from_standard(4, 2)) # -2.0
print(slope_from_standard(3, -6)) # 0.5
print(slope_from_standard(5, 0)) # NoneWhy Negative Reciprocals Work
Suppose a line has slope 2. Its direction is "right 1, up 2". Rotate that direction by 90 degrees counterclockwise. "Right 1, up 2" becomes "left 2, up 1", which is the same as "right 2, down 1". That direction has slope -1/2.
In general, rotating the step (run, rise) by 90 degrees gives (-rise, run). The new slope is run / (-rise), which is the negative reciprocal of rise / run. You do not need this proof on test day, but it explains why the rule always holds.
Classifying a Pair of Lines
Classify these two lines:
- Line 1: y = 3x - 4
- Line 2: 6x - 2y = 7
Line 1 has slope 3. For line 2, the slope is -A/B = -6/(-2) = 3. The slopes are equal, so the lines are parallel or identical. To tell which, compare intercepts. Line 1 crosses the y-axis at -4. Line 2, solved for y, is y = 3x - 7/2, so it crosses at -3.5. The intercepts differ, so the lines are parallel and distinct.
from fractions import Fraction
def classify(m1, b1, m2, b2):
if m1 == m2:
return "same line" if b1 == b2 else "parallel"
if m1 * m2 == -1:
return "perpendicular"
return "neither"
print(classify(Fraction(3), Fraction(-4), Fraction(3), Fraction(-7, 2))) # parallel
print(classify(Fraction(2), Fraction(1), Fraction(-1, 2), Fraction(0))) # perpendicular
print(classify(Fraction(2), Fraction(1), Fraction(3), Fraction(0))) # neitherUsing Fraction avoids rounding errors that could make a product like 3 · (-1/3) miss -1 exactly.
Building a Parallel Line Through a Point
A common task is to find the line through a given point that is parallel to a given line.
Find the line through (2, 3) that is parallel to y = 2x + 1.
- The slope is 2, because parallel lines share a slope.
- Substitute the point into y = 2x + b: 3 = 2(2) + b, so b = -1.
- The line is y = 2x - 1.
Building a Perpendicular Line Through a Point
Find the line through (2, 3) that is perpendicular to y = 2x + 1.
- The slope is the negative reciprocal of 2, which is -1/2.
- Substitute the point into y = -(1/2)x + b: 3 = -(1/2)(2) + b, so b = 4.
- The line is y = -0.5x + 4.
m = 2 # line y = 2x + 1
perp_m = -1 / m # -0.5
x0, y0 = 2, 3 # point the new line must pass through
b = y0 - perp_m * x0 # 4.0
print(f"y = {perp_m}x + {b}")The code reads y = -0.5x + 4.0, which matches the hand calculation.
Horizontal and Vertical Lines
The reciprocal rule breaks down for horizontal and vertical lines, because a vertical line has no slope. Handle them by sight.
- A horizontal line y = c is perpendicular to every vertical line x = d.
- Two horizontal lines are parallel. Two vertical lines are parallel.
- The line perpendicular to y = 5 through (3, 7) is x = 3.
- The line parallel to x = -2 through (6, 1) is x = 6.
Writing "slope = -1/0" is a mistake. The perpendicular to a horizontal line is vertical, and it is written as x = constant.
Perpendicular Bisectors
A perpendicular bisector of a segment is the line that cuts the segment in half at a right angle. To build one, combine this chapter with the midpoint formula.
Find the perpendicular bisector of the segment from (1, 2) to (5, 6).
- Midpoint: ((1 + 5)/2, (2 + 6)/2) = (3, 4).
- Slope of the segment: (6 - 2)/(5 - 1) = 1.
- Perpendicular slope: -1.
- Line through (3, 4) with slope -1: 4 = -1(3) + b, so b = 7, giving y = -x + 7.
Every point on this line is equally far from (1, 2) and (5, 6). The GRE sometimes uses this fact to ask which points are equidistant from two given points.
p, q = (1, 2), (5, 6)
mid = ((p[0] + q[0]) / 2, (p[1] + q[1]) / 2)
seg_m = (q[1] - p[1]) / (q[0] - p[0])
perp_m = -1 / seg_m
b = mid[1] - perp_m * mid[0]
print(mid, perp_m, b) # (3.0, 4.0) -1.0 7.0Proving a Right Angle
To show that a triangle drawn on the plane has a right angle, find the slopes of its sides. If two sides have slopes whose product is -1, those sides are perpendicular, and the angle between them is 90 degrees.
Triangle with vertices A(0, 0), B(4, 2), C(2, -4):
- Slope of AB: 2/4 = 1/2.
- Slope of AC: -4/2 = -2.
- Product: (1/2)(-2) = -1.
The angle at A is a right angle. As a cross-check, the Pythagorean theorem agrees: AB² = 20, AC² = 20, BC² = 4 + 36 = 40, and 20 + 20 = 40.
Common Errors
- Forgetting the sign change. The negative reciprocal of 2 is -1/2, not 1/2. Flipping alone gives the wrong sign.
- Forgetting the flip. The slope -2 is not perpendicular to 2. Their product is -4.
- Reading the slope off a non-isolated equation. In 3x + y = 6, the slope is -3. In 3x + 2y = 6, the slope is -3/2, not -3. Divide by the coefficient of y.
- Calling equal slopes "parallel" without checking intercepts. Equal slopes with equal intercepts describe the same line, and the GRE may build a quantitative comparison around that distinction.
- Treating "not parallel" as "perpendicular". Most pairs of lines are neither.
A Quantitative Comparison Example
Quantity A is the slope of a line perpendicular to the line through (0, 1) and (3, 7). Quantity B is -1/3.
The slope of the given line is (7 - 1)/(3 - 0) = 2. The perpendicular slope is -1/2. Compare -1/2 with -1/3. On the number line, -1/2 is to the left of -1/3, so -1/2 is smaller. Quantity B is greater.
A common trap is comparing magnitudes and ignoring the signs. Both values are negative here, so the one with the larger absolute value is the smaller number.
Summary Table
| Task | Method |
|---|---|
| Test parallel | Slopes equal, intercepts different |
| Test perpendicular | Slopes multiply to -1 |
| Slope from Ax + By = C | -A/B |
| Parallel line through a point | Same slope, solve for b |
| Perpendicular line through a point | Negative reciprocal slope, solve for b |
| Perpendicular to a horizontal line | Vertical line x = c |
| Perpendicular bisector | Midpoint plus negative reciprocal slope |
Exercise
Line L has equation 3x - 4y = 8. Find the equation, in slope-intercept form, of the line through (6, 1) that is perpendicular to L.
Show answer
Solve L for y: -4y = -3x + 8, so y = (3/4)x - 2. The slope is 3/4. The perpendicular slope is -4/3. Substitute (6, 1): 1 = (-4/3)(6) + b = -8 + b, so b = 9. The line is y = -(4/3)x + 9.
Exercise
For what value of k are the lines y = kx + 3 and 2x + 6y = 5 parallel? For what value of k are they perpendicular?
Show answer
The second line is y = -(1/3)x + 5/6, so its slope is -1/3. Parallel requires k = -1/3. Perpendicular requires k times (-1/3) = -1, so k = 3.
Exercise
Points A(1, 1), B(5, 3), and C(3, 7) form a triangle. Is angle B a right angle? Explain using slopes.
Show answer
The slope of BA is (1 - 3)/(1 - 5) = 1/2. The slope of BC is (7 - 3)/(3 - 5) = -2. The product is (1/2)(-2) = -1, so BA and BC are perpendicular and angle B is a right angle.