Two distinct coplanar lines are parallel when they never meet. They are perpendicular when they meet at a right angle. Coordinates turn these geometric relationships into tests involving slopes or equation coefficients.
The familiar slope rules work for non-vertical lines. Vertical and horizontal lines are not exceptions to the geometry, but they need a description that does not divide by zero.
On this page
Parallel lines have the same direction
For non-vertical lines and , equal slopes mean the same direction. If and , the lines are distinct and parallel. If the intercepts are also equal, the equations describe the same line.
Construct a parallel line
Find a line through parallel to . Its slope must also be 2. Use point-slope form:
The intercept differs from 1, so the lines are distinct. Substituting gives , confirming the required point.
Parallel lines with slope 2 and different intercepts
Diagram explanation and exact data
The solid line is y = 2x + 1. The dashed line is y = 2x − 10. They have no common point.
| Line | Slope | y-intercept |
|---|---|---|
Using an equal slope without checking whether the equations coincide can confuse “parallel distinct lines” with “two names for the same line.” This page uses the distinct-line convention for parallelism.
Perpendicular slopes are negative reciprocals
For two non-vertical lines that are perpendicular, neither line is horizontal and their slopes satisfy
Equivalently, . Both the sign change and reciprocal matter: the perpendicular slope to 2 is , not .
One way to see the relationship is through direction vectors. A line of slope has a direction vector . Two direction vectors are perpendicular when their dot product is zero. Thus
Here the dot product of and means . The slope relationship is also developed in the OpenStax linear-functions reference.
Construct a perpendicular line
Find the line through perpendicular to . Its slope is , so
The product of slopes is . Substitution checks the point: at , .
Negative reciprocal directions
Diagram explanation and exact data
The dashed line passes through P and intersects the solid line at (−7/5, −9/5). The right-angle marker is computed from their perpendicular directions, not estimated from the screen.
| Line | Slope |
|---|---|
| Intersection |
Horizontal and vertical lines
All vertical lines have equations . Two distinct vertical lines are parallel, even though neither has a numerical slope. All horizontal lines have equations ; distinct horizontal lines are parallel with slope zero.
A vertical line and a horizontal line are perpendicular. For example, and meet at at a right angle. Do not put an undefined slope into the equation .
Equal unit scales are required when assessing geometric right angles from a plotted image. A stretched image can make perpendicular lines look oblique; the coordinates and equations remain the reliable evidence.
Tests using standard-form coefficients
Write the lines as
where neither pair is . Their directions are parallel when
This test includes vertical lines. It identifies either parallel or coincident lines; substitute a point or compare the full scaled equations to distinguish those cases.
The lines are perpendicular when
This works because is a normal vector, perpendicular to its line. For example, and have coefficient dot product , so they are perpendicular.
Constructing a perpendicular bisector
Let a segment have endpoints and . Its midpoint is and its slope is
The perpendicular-bisector slope is . The required line through the midpoint is
This is not just any perpendicular line: passing through the midpoint is essential. Every point on it is equally far from and , making perpendicular bisectors useful when locating a circle’s centre from points on its boundary.
Practice questions
- Find a line through parallel to .
- Find a line through the same point perpendicular to .
- Are and perpendicular? Give an algebraic check.
Check your answers
- Use slope 2: , so .
- Use slope : , so .
- Yes. The coefficient test gives . Their slopes, and 2, also have product .
Related topics
Distance from a Point to a Line uses a perpendicular segment to measure the shortest distance. Equations of Circles uses perpendicular bisectors to reconstruct a circle.
