Slope turns parallel and perpendicular into a number check. Find slope with m=x2−x1y2−y1, or read it from y=mx+b. For standard form Ax+By=C with B=0, solve for y to get m=−BA. If B=0, the line is vertical and its slope is undefined.
Nonvertical parallel lines have equal slopes. When both slopes are defined, perpendicular lines have negative reciprocal slopes, so their product is −1. To get the negative reciprocal, flip the fraction and change the sign. A slope of 52 becomes −25, and a slope of −4 becomes 41. Horizontal and vertical lines are the exception. A horizontal line (m=0) is perpendicular to a vertical line (undefined slope), even though you can't multiply those slopes.
Worked example. Write the line perpendicular to 2x+3y=6 through (4,1). Solving for y gives y=−32x+2, so the slope is −32. The perpendicular slope is 23. Point-slope form gives y−1=23(x−4), so y=23x−6+1=23x−5. Plugging in x=4 gives 6−5=1, so the point checks out.
For a parallel line, keep the original slope and follow the same steps. These checks also prove shapes on the coordinate plane. A quadrilateral with both pairs of opposite sides parallel is a parallelogram. If that parallelogram also has a right angle, it is a rectangle. Slopes can establish these relationships, but vertical sides need separate checks because their slopes are undefined.
- Slope: The ratio of vertical change to horizontal change between two points on a line, m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}m=x2−x1y2−y1.
- Negative reciprocal: The number you get by flipping a nonzero fraction and changing its sign. For nonzero aaa and bbb, the negative reciprocal of ab\frac{a}{b}ba is −ba-\frac{b}{a}−ab.
- Point-slope form: The equation y−y1=m(x−x1)y - y_1 = m(x - x_1)y−y1=m(x−x1), which writes a line from its slope and one point on it.
Check yourself. Are y=−3x+2 and x−3y=9 parallel, perpendicular, or neither? (Answer: The second line is y=31x−3, and −3⋅31=−1, so they're perpendicular.)