Finding an Equation of a Line Perpendicular to a Given Line

Now, let’s consider perpendicular lines. Suppose we need to find a line passing through a specific point and which is perpendicular to a given line. We can use the fact that perpendicular lines have slopes that are negative reciprocals. We will again use the point–slope equation, like we did with parallel lines.

The graph shows the graph of \(y=2x-3\). Now, we want to graph a line perpendicular to this line and passing through \(\left(-2,1\right)\).

We know that perpendicular lines have slopes that are negative reciprocals. We’ll use the notation \({m}_{\text{⊥}}\) to represent the slope of a line perpendicular to a line with slope \(m\). (Notice that the subscript ⊥ looks like the right angles made by two perpendicular lines.)

\(\begin{array}{ccc}\hfill y=2x-3\hfill & & \text{perpendicular line}\hfill \\ \hfill m=2\hfill & & {m}_{\text{⊥}}=-\frac{1}{2}\hfill \end{array}\)

We now know the perpendicular line will pass through \(\left(-2,1\right)\) with \({m}_{\text{⊥}}=-\frac{1}{2}\).

To graph the line, we will start at \(\left(-2,1\right)\) and count out the rise \(-1\) and the run 2. Then we draw the line.

Do the lines appear perpendicular? Does the second line pass through \(\left(-2,1\right)\)?

Now, let’s see how to do this algebraically. We can use either the slope–intercept form or the point–slope form to find an equation of a line. In this example we know one point, and can find the slope, so we will use the point–slope form.

Example: How to Find an Equation of a Line Perpendicular to a Given Line

Find an equation of a line perpendicular to \(y=2x-3\) that contains the point \(\left(-2,1\right)\). Write the equation in slope–intercept form.

### Solution

Find an equation of a line perpendicular to a given line.

- Find the slope of the given line.
- Find the slope of the perpendicular line.
- Identify the point.
- Substitute the values into the point–slope form, \(y-{y}_{1}=m\left(x-{x}_{1}\right)\).
- Write the equation in slope–intercept form.

## Example

Find an equation of a line perpendicular to \(x=5\) that contains the point \(\left(3,-2\right)\). Write the equation in slope–intercept form.

### Solution

Again, since we know one point, the point–slope option seems more promising than the slope–intercept option. We need the slope to use this form, and we know the new line will be perpendicular to \(x=5\). This line is vertical, so its perpendicular will be horizontal. This tells us the \({m}_{\text{⊥}}=0\).

\(\begin{array}{cccc}\text{Identify the point.}\hfill & & & \hfill \phantom{\rule{4em}{0ex}}\left(3,-2\right)\hfill \\ \text{Identify the slope of the perpendicular line.}\hfill & & & \hfill \phantom{\rule{4em}{0ex}}{m}_{\text{⊥}}=0\hfill \\ \text{Substitute the values into}\phantom{\rule{0.2em}{0ex}}y-{y}_{1}=m\left(x-{x}_{1}\right).\hfill & & & \hfill \phantom{\rule{6.2em}{0ex}}y-{y}_{1}=m\left(x-{x}_{1}\right)\hfill \\ & & & \hfill \phantom{\rule{4.7em}{0ex}}y-\left(-2\right)=0\left(x-3\right)\hfill \\ \text{Simplify.}\hfill & & & \hfill \phantom{\rule{3.6em}{0ex}}y+2=0\hfill \\ & & & \hfill \phantom{\rule{5.6em}{0ex}}y=-2\hfill \end{array}\)

Sketch the graph of both lines. Do they appear to be perpendicular?

In the example above, we used the point–slope form to find the equation. We could have looked at this in a different way.

We want to find a line that is perpendicular to \(x=5\) that contains the point \(\left(3,-2\right)\). The graph shows us the line\(x=5\) and the point \(\left(3,-2\right)\).

We know every line perpendicular to a vetical line is horizontal, so we will sketch the horizontal line through \(\left(3,-2\right)\).

Do the lines appear perpendicular?

If we look at a few points on this horizontal line, we notice they all have y-coordinates of \(-2\). So, the equation of the line perpendicular to the vertical line \(x=5\) is \(y=-2\).

## Example

Find an equation of a line that is perpendicular to \(y=-4\) that contains the point \(\left(-4,2\right)\). Write the equation in slope–intercept form.

### Solution

The line \(y=-4\) is a horizontal line. Any line perpendicular to it must be vertical, in the form \(x=a\). Since the perpendicular line is vertical and passes through \(\left(-4,2\right)\), every point on it has an x-coordinate of \(-4\). The equation of the perpendicular line is \(x=-4\). You may want to sketch the lines. Do they appear perpendicular?

Access this online resource for additional instruction and practice with finding the equation of a line.