Sub topic 2
What Makes Lines Perpendicular
Assume you know how to plot points, calculate slopes, solve linear equations, and use fractions. In this chapter, you will connect the geometric meaning of perpendicular lines to an algebraic slope test.
Right angles define perpendicular lines
Two lines are perpendicular if they intersect to form a right angle. A right angle measures 90°.
The intersection point is called the vertex of the angles. When two straight lines cross, they form four angles. If one angle is 90°, all four angles are 90°. The lines are therefore perpendicular.
A square corner, such as the corner of a sheet of paper, is a familiar example of perpendicular lines.
The slope test
Slope measures a line's vertical change compared with its horizontal change. For two nonvertical lines, the slopes are perpendicular when their product is -1:
m1 × m2 = -1
This means the slopes are negative reciprocals. To find the negative reciprocal of a fraction:
- Change its sign.
- Reverse the numerator and denominator.
For example, the negative reciprocal of 2/3 is -3/2. Their product is:
(2/3)(-3/2) = -1
The negative reciprocal rule works because a line with slope m rises or falls at a certain rate. A perpendicular line changes direction and uses the reciprocal rate needed to create a 90° turn.
Example: testing two lines
Consider these slopes:
- Line A has slope 4/5.
- Line B has slope -5/4.
Multiply them:
(4/5)(-5/4) = -1
Therefore, Line A and Line B are perpendicular.
If the product is not -1, the lines are not perpendicular. They may be parallel or neither, depending on their slopes.
| Slope relationship | Line relationship |
|---|---|
| m1 = m2 | Parallel or the same line |
| m1 × m2 = -1 | Perpendicular |
| Neither condition | Neither parallel nor perpendicular |
Horizontal and vertical lines
Horizontal and vertical lines are a special perpendicular pair.
- A horizontal line has slope 0.
- A vertical line has undefined slope.
- Every horizontal line is perpendicular to every vertical line.
The product rule cannot be used directly because 0 multiplied by an undefined value is not defined. Use the geometric description instead: a horizontal line and a vertical line meet at a right angle.
For example, the lines y = 3 and x = -2 are perpendicular. The first line is horizontal, and the second is vertical.
Finding a perpendicular slope
Suppose a line has slope -7/2. A perpendicular line must have the negative reciprocal:
- Change -7/2 to 7/2.
- Reverse the fraction to get 2/7.
Check the result:
(-7/2)(2/7) = -1
Suppose instead that a line has slope 6. Write 6 as 6/1. Its negative reciprocal is -1/6.
The sign matters. A line with slope 6 is not perpendicular to a line with slope 1/6 because their product is 1, not -1.
from fractions import Fraction
def are_perpendicular(m1, m2):
# None represents an undefined slope, which belongs to a vertical line.
if m1 is None and m2 == 0:
return True
if m2 is None and m1 == 0:
return True
if m1 is None or m2 is None:
return False
return m1 * m2 == -1
print(are_perpendicular(Fraction(4, 5), Fraction(-5, 4)))
print(are_perpendicular(None, Fraction(0, 1)))The program prints True for both tests. It treats vertical lines separately rather than assigning them a numeric slope.
Common errors
- Using the reciprocal without changing the sign. The reciprocal of 3/4 is 4/3, but the perpendicular slope is -4/3.
- Confusing equal slopes with perpendicular slopes. Equal slopes indicate parallel lines.
- Applying the product rule to a vertical line. Use the horizontal-vertical special case.
- Checking only whether the slopes have opposite signs. Opposite signs are necessary for ordinary perpendicular slopes, but their product must be exactly -1.
Exercise
A line has slope 3/8. What is the slope of a perpendicular line, and how can you verify it?
Show answer
The perpendicular slope is -8/3. Verify it by multiplying: (3/8)(-8/3) = -1.