Given a line y = mx + b, find the slopes of parallel and perpendicular
lines. Parallel lines have the same slope; perpendicular lines have slopes
whose product equals -1. The perpendicular slope is computed as -1/m.
Example
Use same slope for parallel lines and negative reciprocal for perpendicular lines. The negative-reciprocal rule assumes a nonzero slope; a horizontal line and a vertical line are also perpendicular, but a vertical line has undefined slope and cannot be written this way.
highlighted = computed this step
Step 1 — Set up
Set up the expression.
y=2x+1
Step 2 — Parallel slope
Parallel lines keep the same slope, 2.
m∥=2
Step 3 — Negative reciprocal
Use 1/2, with a negative sign.
m⊥=−21
Step 4 — Perpendicular slope
The negative reciprocal is -1/2.
m⊥=2−1
Step 5 — Check
Check perpendicular slopes: 2 x -1/2 = -1.
2×2−1=-1
parallel-perpendicularParallel slope = m (same direction). Perpendicular slope = -1/m (negative reciprocal). Verify: m · (-1/m) = -1. For m = 2, perpendicular slope is -1/2.