Mathematics Knowledge · 9 min lesson

What you will learn
Decide whether two lines are parallel, perpendicular or neither, and find the slope of a parallel or perpendicular line.
The lesson
Parallel lines never meet. Perpendicular lines meet at a right angle (90°). On a graph, you can tell which is which from the slope, the number that tells you how steep a line is: rise over run. In y = mx + b, the slope is m.
The two slope rules
∥ Parallel
Same slope, different y-intercept. y = 3x + 1 and y = 3x − 4 never meet.
⟂ Perpendicular
Slopes are negative reciprocals: flip the fraction and change the sign. Their product is −1.
| Given slope | Parallel slope | Perpendicular slope |
|---|---|---|
| 4 | 4 | −1/4 |
| −1/3 | −1/3 | 3 |
| 1 | 1 | −1 |
| 5/2 | 5/2 | −2/5 |
To find a negative reciprocal, write the slope as a fraction (4 is 4/1), flip it, then change the sign. Check by multiplying: 4 × (−1/4) = −1.
Horizontal and vertical lines are special
A horizontal line, like y = 3, has slope 0. A vertical line, like x = −2, has an undefined slope because its run is zero. You cannot flip 0 to get a slope, so the product rule does not apply here. Instead, remember the picture:
- Every horizontal line is perpendicular to every vertical line.
- All horizontal lines are parallel to each other, like y = 1 and y = −4.
- All vertical lines are parallel to each other, like x = 2 and x = 7.
A line perpendicular to y = 5 is not "slope −1/0." It is a vertical line, written x = (a number).
Getting the slope from other forms
If a line is written as Ax + By = C, solve for y first. For example, 6x − 2y = 8 becomes −2y = −6x + 8, so y = 3x − 4. Its slope is 3, so it is parallel to y = 3x + 1. If you only have two points, use slope = (change in y) ÷ (change in x).
Two geometry facts also help: in a flat plane, two lines that are both perpendicular to the same line are parallel to each other. And a line perpendicular to one of two parallel lines is perpendicular to the other too.
Parallel: equal slopes. Perpendicular: slopes multiply to −1. Horizontal and vertical lines are always perpendicular to each other.
Worked example
Problem: A line is perpendicular to 2x − 5y = 10 and passes through the point (2, 1). What is its equation in y = mx + b form?
- Find the given slopeSolve for y: −5y = −2x + 10, so y = (2/5)x − 2. The slope is 2/5.
- Take the negative reciprocalFlip 2/5 to 5/2 and change the sign: −5/2.
- Use the pointy = (−5/2)x + b. Put in x = 2 and y = 1: 1 = −5 + b.
- Solve for bb = 6, so the line is y = (−5/2)x + 6.
Answer: y = −(5/2)x + 6
Multiply the slopes: (2/5) × (−5/2) = −1. Then test the point: −(5/2)(2) + 6 = 1. Both checks pass.
Practice with a hint
Hint: Reread the section on horizontal and vertical lines. What relationship do those two kinds of lines always have, and what angle does that relationship make?
Try it on your own
Work in the same order as the example: slope, negative reciprocal, then use the point to find b.
Common mistakes
- Flipping without changing the sign. Perpendicular to slope 4 is −1/4, not 1/4. Check: 4 × 1/4 = 1, not −1.
- Changing the sign without flipping. Perpendicular to slope 4 is not −4. Check: 4 × (−4) = −16.
- Reading the slope from Ax + By = C directly. In 6x − 2y = 8, the slope is 3, not 6. Solve for y first.
- Using the reciprocal rule on horizontal or vertical lines. A line perpendicular to y = 2 is vertical, like x = 1. It has no numeric slope.
- Calling lines with the same slope and same intercept parallel. y = 3x + 1 and 6x − 2y = −2 are the same line, not two parallel lines.
Next step
- Parallel lines have equal slopes and different intercepts.
- Perpendicular slopes are negative reciprocals and multiply to −1.
- Horizontal (slope 0) and vertical (undefined slope) lines are perpendicular.
- Solve Ax + By = C for y before reading the slope.
Practice this with the free Mathematics Knowledge practice test, then review key ideas with the Mathematics Knowledge flashcards.