Perpendicular Lines and Why the Shortest Distance Meets at a Right Angle
Prove that the shortest route from a point to a line is the perpendicular, with two arguments, worked numbers and the cases where it changes.
Key takeaways
- If two intersecting lines make one right angle, all four angles at the crossing are right angles.
- In the flat plane, exactly one perpendicular can be drawn from a point to a given line.
- Every slanted segment from the point to the line is longer than the perpendicular segment.
- The distance from a point to a line is defined as the length of that perpendicular segment.
- For a segment instead of a whole line, the nearest point may be an endpoint.
Two lines are perpendicular when they meet at a right angle. Given a point off a line, there is exactly one line through the point perpendicular to it, and the segment along that line is the shortest route from the point to the line. Its endpoint on the line is called the foot of the perpendicular.
The reason is that any other route forms the long side of a right triangle whose shorter side is the perpendicular segment.
What a right angle between lines means
When lines cross, opposite angles are equal and neighboring angles total 180°. So if one angle is 90°, its neighbors are 180° − 90° = 90°, and the fourth is 90° as well.
Perpendicularity is therefore a property of the pair of lines, not of one corner. We write m ⊥ n. In a diagram, a small square at the intersection records it. Without that mark or a stated fact, lines that look square may not be.
Segments and rays are called perpendicular when the lines containing them are, and context usually makes clear that they meet.
The main theorem with a right triangle
Let P be a point not on line m, and let F be the foot of a perpendicular from P. Choose any other point Q on m.
P
|\
| \
| \
m ----------F---Q---------- Triangle PFQ has a right angle at F. By the Pythagorean theorem,
PQ² = PF² + FQ²
FQ > 0 (Q is not F)
PQ² > PF²
PQ > PF (lengths are positive) This holds for every choice of Q, on either side of F. So PF is strictly the shortest, and F is the only nearest point.
If PF = 6 and FQ = 8, then PQ = 10. If FQ shrinks to 1, PQ = √37 ≈ 6.08, still longer than 6.
An argument by reflection
Here is a second proof that uses no squares of lengths. Reflect P across line m to get P′. The segment PP′ crosses m at F at a right angle, and PF = FP′.
For any point Q on m, reflection preserves distance, so QP = QP′. The broken path P to Q to P′ therefore has length 2 · PQ. The straight path from P to P′ has length 2 · PF. When Q is not on that straight segment, the broken path is longer, by the triangle inequality. Hence 2 · PQ > 2 · PF.
The same mirror trick solves a related puzzle: the shortest path from one point to another that must touch a line, treated in shortest path by reflection.
Why there is only one perpendicular
Suppose two different segments PF and PG both met m at right angles. Then triangle PFG would have two 90° angles. In the flat plane the three angles total 180°, which leaves 0° for the angle at P. That is no triangle at all, so F and G must be the same point.
Existence comes from a construction. Draw a circle centered at P large enough to cut m at two points M and N. Then find a second point equally far from M and N, on the other side of m, and join it to P. The line obtained is perpendicular to m, because points equally distant from M and N lie on the perpendicular bisector of MN.
For a point on the line itself, there is also exactly one perpendicular in a given plane. In three-dimensional space there are infinitely many, filling a whole plane.
How slanted segments compare
The formula PQ² = PF² + FQ² tells you more than the minimum.
- Points Q and R on opposite sides of F with FQ = FR give equal slanted lengths PQ = PR.
- A point farther from the foot gives a longer segment.
- Any length greater than PF is achieved exactly twice, once on each side.
That last fact explains why a circle centered at P can miss line m, touch it once or cross it twice. With radius less than PF it misses. With radius equal to PF it touches at F only, and the line is a tangent. With a larger radius it cuts two points symmetric about F. So a tangent is perpendicular to the radius at the point of contact, as shown in why tangents meet radii at right angles.
A coordinate check
Take the line y = x and the point P(4, 0). The line through P perpendicular to y = x has slope −1, giving y = 4 − x. The two meet where x = 4 − x, so the foot is F(2, 2).
PF = √((4 − 2)² + (0 − 2)²) = √8 ≈ 2.83 Compare other points on y = x. From P to (3, 3) the length is √10 ≈ 3.16, and from P to (1, 1) it is also √10. Both are longer, and they match because (1, 1) and (3, 3) sit equally far from the foot.
The slope rule used here is derived in perpendicular slopes.
Finding a distance through area
You often need the perpendicular distance without knowing where the foot is. Area gives it directly, since a triangle's area is half of a base times the perpendicular height to that base.
Take a right triangle with legs 3 and 4 and hypotenuse 5. How far is the right-angle corner from the hypotenuse?
area using the legs: (1/2)(3)(4) = 6
area using the hypotenuse: (1/2)(5)(h) = 6
h = 12/5 = 2.4 The distance is 2.4, shorter than either leg, as the theorem demands: each leg is a slanted segment from that corner to the hypotenuse.
You can also locate the foot. The segment of the hypotenuse next to the leg of length 3 satisfies x² + 2.4² = 3², so x² = 9 − 5.76 = 3.24 and x = 1.8. The other segment is 3.2, and indeed 3.2² + 2.4² = 10.24 + 5.76 = 16 = 4². Both right triangles check, and 1.8 + 3.2 = 5.
The same method works for any triangle once you know its area and the length of the side in question.
Segments, planes and parallel lines
Distance to a segment. If the foot of the perpendicular lands on the segment, that is the nearest point. If it lands on the extension beyond an end, the nearest point of the segment is that endpoint. Imagine the segment from (0, 0) to (3, 0) and the point (7, 3). The foot (7, 0) is off the segment, so the distance is from (7, 3) to (3, 0), which is 5.
Distance to a plane. The same Pythagorean argument works in space. The shortest segment from a point to a flat plane is perpendicular to every line of the plane through its foot. Both cases are compared in distance to a line, segment and plane.
Distance between parallel lines. A segment perpendicular to one parallel line is perpendicular to the other. All such segments have the same length, because two of them together with the parallels form a rectangle. That common length is the distance between the lines, and it justifies saying that parallel lines stay equally far apart in Euclidean geometry.
Where the theorem shows up
The height of a triangle is a perpendicular distance from a vertex to the line of the opposite side. Using a slanted side instead overstates the area.
A person walking to a straight road across an open flat field covers the least distance by heading square to it. The quickest route may differ if the ground is rough or if the destination is a particular place along the road. Distance and time are separate questions.
Carpenters and tile setters check that a measurement to a wall is square before recording it, since a tilted tape always reads long. Anyone marking property boundaries or structural work should rely on qualified surveyors and local rules.
On curved surfaces
The uniqueness claim belongs to the flat plane. On a sphere, measure from the North Pole to the equator. Every meridian meets the equator at a right angle, and all the routes have the same length. So there are infinitely many perpendiculars from that one point. From a typical point, the shortest route to a great circle still meets it at a right angle, along one of the arcs of a perpendicular great circle.
Mistakes that lengthen the answer
Measuring from a point to some convenient marked spot on a line gives a slanted length unless that spot happens to be the foot. Before accepting a number as "the distance", find the right angle mark or prove one.
Another slip is to assume the foot is the midpoint of a nearby segment. It is only when the point is equally far from the two ends.
Common questions
Is "perpendicular" the same as "vertical"?
No. Vertical means aligned with gravity. Perpendicular describes the relation between two lines, which may be tilted any way. A vertical line is perpendicular to every horizontal line it meets.
Can I prove the theorem without Pythagoras?
Yes. In triangle PFQ the right angle is the largest angle, and the side opposite the largest angle is the longest side. That side is PQ.