Example

The line passes through the points and . Find an equation of a line parallel to . Find an equation of a line perpendicular to .

Solution

The line is a horizontal line---the -coordinates of the points on the line are the same. Furthermore, it's slope is 0:

An equation for line is .


Any line parallel to must be another horizontal line, for example, or or .

A line perpendicular to must be a vertical line. The -coordinates of all points on a vertical line are the same. Every vertical line has an equation that can be written in the form , for some fixed number . For example, equations of vertical lines are , , , etc.