Sub topic 2
What makes lines perpendicular
This chapter assumes you can plot points on the coordinate plane, use the words right angle, supplementary, and congruent, solve one-variable linear equations, and do fraction arithmetic. The slope test for perpendicularity comes in a later chapter. Here you will pin down what "perpendicular" means as a geometric fact, so that the algebra later has something solid to rest on.
The definition
Two lines are perpendicular if they intersect and form a right angle. A right angle measures exactly 90 degrees. The symbol for perpendicular is ⊥, so you write $\ell \perp m$ and read it as "line ell is perpendicular to line m".
The definition needs only one right angle. Two crossing lines make four angles at the intersection. Opposite angles are always congruent (vertical angles), and neighbouring angles are supplementary, so they add to 180 degrees. If one of the four angles is 90 degrees, a neighbour must be 180 − 90 = 90 degrees, and the opposite angle is also 90 degrees. All four angles are therefore right angles.
| Angle at the crossing | Measure when lines are perpendicular |
|---|---|
| Angle 1 | 90° |
| Angle 2 (neighbour of 1) | 180° − 90° = 90° |
| Angle 3 (opposite 1) | 90° |
| Angle 4 (opposite 2) | 90° |
A diagram usually marks this with a small square in one corner. The square means "all four angles here are right angles". You do not need to mark each corner.
What the definition rules out
The definition is short, and each part of it does work.
- The lines must intersect. In a plane, two lines either cross at exactly one point, never meet (parallel), or are the same line. Perpendicular lines are in the first group. Two distinct lines that never meet cannot be perpendicular.
- The angle must be exactly 90°. Lines that cross at 89° or 91° are not perpendicular, however close they look in a sketch. Never decide from a picture. Decide from measurements, given facts, or a calculation.
- A line is not perpendicular to itself. Two copies of the same line meet everywhere and form no angle at all.
Perpendicular segments and rays
Segments and rays are pieces of lines. We say two segments or rays are perpendicular if the lines that contain them are perpendicular. The pieces do not have to touch each other.
Take segment $AB$ lying along the x-axis from $(1, 0)$ to $(4, 0)$ and segment $CD$ lying along the y-axis from $(0, 2)$ to $(0, 6)$. The segments never meet. The lines through them cross at the origin at 90°, so $AB \perp CD$ in the line sense. Many textbooks only call segments perpendicular when they actually meet, so check which convention your course uses. This tutorial uses the line-based reading and says so whenever it matters.
Perpendicular to a line at a point
You often meet the phrase "the line perpendicular to line $\ell$ through point $P$". It describes a construction with a guaranteed answer.
In a plane, for any line $\ell$ and any point $P$, there is exactly one line through $P$ perpendicular to $\ell$. This holds whether $P$ is on $\ell$ or not.
- If $P$ is on $\ell$, the perpendicular crosses $\ell$ at $P$.
- If $P$ is not on $\ell$, the perpendicular crosses $\ell$ at some other point. That crossing point is called the foot of the perpendicular.
The foot matters later. The segment from $P$ to its foot is the shortest path from $P$ to $\ell$, and its length is the distance from a point to a line. The chapter on that distance builds on this idea.
Perpendicular and parallel together
Perpendicularity links to parallel lines through two facts you can use right away. Both hold in a plane.
- Two lines perpendicular to the same line are parallel to each other. Think of the rungs of a ladder. Each rung is perpendicular to a side rail, so the rungs are parallel.
- If a line is perpendicular to one of two parallel lines, it is perpendicular to the other. A line that crosses a pair of railway tracks at right angles to one rail also crosses the second rail at a right angle.
These facts look like pure geometry, but they carry over into algebra. Fact 1 says that if $m1 \perp m3$ and $m2 \perp m3$, then $m1 \parallel m2$. Once you have the slope rule, you will see why two lines whose slopes are both the negative reciprocal of the same number must have equal slopes.
A first look at the algebra
Pictures do not give exact answers, so you need a numerical test for a right angle. Chapter 6 develops the slope test: two non-vertical lines are perpendicular when their slopes multiply to −1. Here is why that is plausible.
Describe a line by a direction vector, an arrow that goes along the line. A line through $(0, 0)$ and $(3, 1)$ goes 3 right and 1 up each time. Its direction is $(3, 1)$.
Turn that arrow a quarter turn counterclockwise, which is a 90° rotation. The arrow $(a, b)$ becomes $(-b, a)$. So $(3, 1)$ becomes $(-1, 3)$. The rotated arrow is a line direction that meets the original at a right angle. Its slope is $3 / (-1) = -3$, and the original slope is $1/3$. The product is $\tfrac{1}{3} \cdot (-3) = -1$, which is the slope rule appearing.
The rotation view also handles vertical lines without special pleading. A vertical line has direction $(0, 1)$. Rotating it gives $(-1, 0)$, a horizontal line. Slope has trouble with vertical lines because dividing by 0 is undefined. Direction vectors do not.
Checking a right angle with code
A direct computational test uses the dot product of two direction vectors. For vectors $(ux, uy)$ and $(vx, vy)$ it is $ux vx + uy vy$. The dot product is 0 exactly when the two directions meet at a right angle (neither vector may be zero length).
The function below takes three points: a vertex and one point on each of two lines through it. It reports whether the angle at the vertex is a right angle. It uses integers only, so the test is exact. Floating-point numbers could give 1e-17 where the exact answer is 0.
def direction(start, end):
return (end[0] - start[0], end[1] - start[1])
def is_right_angle(p, vertex, q):
"""True if the angle p-vertex-q is exactly 90 degrees."""
u = direction(vertex, p)
v = direction(vertex, q)
if u == (0, 0) or v == (0, 0):
raise ValueError("a point coincides with the vertex, so no direction exists")
return u[0] * v[0] + u[1] * v[1] == 0
# The x-axis and y-axis meet at the origin at 90 degrees
print(is_right_angle((3, 0), (0, 0), (0, 5))) # True
# Directions (1, 2) and (-2, 1): 1*(-2) + 2*1 = 0
print(is_right_angle((1, 2), (0, 0), (-2, 1))) # True
# Directions (1, 1) and (1, 0): 1*1 + 1*0 = 1, not 0
print(is_right_angle((1, 1), (0, 0), (1, 0))) # False (45 degrees)The function works for vertical and horizontal lines with no special cases, which is a sign that direction vectors are a good model of the geometry. The first call above is exactly the horizontal-and-vertical case.
Common errors
- Trusting a sketch. A figure that looks square is not evidence. Only a stated right-angle mark, a computed value, or a proof counts.
- Calling any two crossing lines perpendicular. Crossing is necessary and not sufficient. The angle has to be 90°.
- Calling non-intersecting lines perpendicular. In a plane they are parallel. Segments can lie on perpendicular lines without touching, but the lines themselves must cross.
- Confusing "perpendicular" with "congruent angles". Vertical angles are congruent for every pair of crossing lines. Perpendicular lines are the special case where those congruent angles are each 90°.
- Assuming the plane facts hold in space. Skew lines and the failure of Fact 1 in three dimensions are the standard traps.
Where this goes next
You now have the geometric meaning: a crossing of lines with one, and therefore four, right angles. The next chapters review slope and the forms of a line equation. After that, the algebraic test for perpendicular slopes gives you a way to prove a right angle from coordinates.
Exercise
Two lines cross, and one of the four angles they form measures 90°. A student says the other three angles still need to be measured. Is the student right? Explain using angle relationships.
Show answer
No. Opposite (vertical) angles are congruent, so the angle opposite the 90° angle is 90°. Each of the other two angles is a neighbour of the 90° angle, so it is supplementary to it: 180° − 90° = 90°. All four angles are 90°, and the lines are perpendicular.
Exercise
Segment PQ runs from (2, 1) to (2, 7), and segment RS runs from (5, 3) to (9, 3). The segments do not touch. Are they perpendicular in the line-based sense used in this chapter? Then use isrightangle with the vertex (2, 3) and the points (2, 7) and (9, 3) to confirm your answer.
Show answer
Yes. PQ has x = 2 for every point, so its line is vertical. RS has y = 3 for every point, so its line is horizontal. A vertical line and a horizontal line cross at 90°, at the point (2, 3). In the code check, the directions are (0, 4) and (7, 0), and the dot product is 07 + 40 = 0, so isrightangle((2, 7), (2, 3), (9, 3)) returns True.