3.11 Find the Equation of a Line

Learning Objectives

By the end of this section, you will be able to:

  • Find an equation of the line given the slope and [latex]y[/latex]-intercept
  • Find an equation of the line given the slope and a point
  • Find an equation of the line given two points
  • Find an equation of a line parallel to a given line
  • Find an equation of a line perpendicular to a given line

Try It

Before you get started, take this readiness quiz:

1) Solve: [latex]\frac{2}{3}=\frac{x}{5}[/latex]
2) Simplify: [latex]-\frac{2}{5}(x-15)[/latex]

How do online retailers know that ‘you may also like’ a particular item based on something you just ordered? How can economists know how a rise in the minimum wage will affect the unemployment rate? How do medical researchers create drugs to target cancer cells? How can traffic engineers predict the effect on your commuting time of an increase or decrease in gas prices? It’s all mathematics.

You are at an exciting point in your mathematical journey as the mathematics you are studying has interesting applications in the real world.

The physical sciences, social sciences, and the business world are full of situations that can be modelled with linear equations relating two variables. Data is collected and graphed. If the data points appear to form a straight line, an equation of that line can be used to predict the value of one variable based on the value of the other variable.

To create a mathematical model of a linear relation between two variables, we must be able to find the equation of the line. In this section we will look at several ways to write the equation of a line. The specific method we use will be determined by what information we are given.

Find an Equation of the Line Given the Slope and [latex]y[/latex]-Intercept

We can easily determine the slope and intercept of a line if the equation was written in slope–intercept form, [latex]y=mx+b[/latex]. Now, we will do the reverse—we will start with the slope and [latex]y[/latex]-intercept and use them to find the equation of the line.

Example 3.11.1

Find an equation of a line with slope [latex]-7[/latex] and [latex]y[/latex]-intercept [latex](0,-1)[/latex].

Solution

Since we are given the slope and [latex]y[/latex]-intercept of the line, we can substitute the needed values into the slope–intercept form, [latex]y=mx+b[/latex].

Step 1: Name the slope.

[latex]m=7[/latex]

Step 2: Name the [latex]y[/latex]-intercept.

[latex]y[/latex]-intercept = [latex]{(0,\;}{\color{blue}{-}}{}{\color{blue}{1}}{)}[/latex]

Step 3: Substitute the values into [latex]y=mx+b[/latex].

[latex]\begin{align*}y&={\color{red}{m}}x+{\color{blue}{b}}\\y&={\color{red}{-}}{\color{red}{7}}x+({\color{blue}{-}}{\color{blue}{1}})\\y&=-7x-1\end{align*}[/latex]

Try It

3) Find an equation of a line with slope [latex]\frac{2}{5}[/latex] and [latex]y[/latex]-intercept [latex](0,4)[/latex].

Solution

[latex]y=\frac{2}{5}x+4[/latex]

4) Find an equation of a line with slope [latex]-1[/latex] and [latex]y[/latex]-intercept [latex](0,-3)[/latex].

Solution

[latex]y=-x-3[/latex]

Sometimes, the slope and intercept need to be determined from the graph.

Example 3.11.2

Find the equation of the line shown.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. A line intercepts the y-axis at (0, negative 4), passes through the plotted point (3, negative 2), and intercepts the x-axis at (4, 0).
Figure 3.11.1
Solution

We need to find the slope and [latex]y[/latex]-intercept of the line from the graph so we can substitute the needed values into the slope–intercept form, [latex]y=mx+b[/latex].

To find the slope, we choose two points on the graph.

The [latex]y[/latex]-intercept is [latex](0,-4)[/latex] and the graph passes through [latex](3,-2)[/latex].

Step 1: Find the slope by counting the rise and run.

[latex]\begin{align*}m&=\frac{rise}{run}\\m&={\color{red}{\frac23}}\end{align*}[/latex]

Step 2: Find the [latex]y[/latex]-intercept.

[latex]\text{y-intercept}=(0,{\color{red}{-}}{\color{red}{4}})[/latex]

Step 3: Substitute the values into [latex]y=mx+b[/latex].

[latex]\begin{align*}y&={\color{red}{m}}x+{\color{blue}{b}}\\y&={\color{red}{\frac23}}x{\color{blue}{-}}{\color{blue}{\;}}{\color{blue}{4}}\end{align*}[/latex]

Try It

5) Find the equation of the line shown in the graph.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. A line intercepts the x-axis at (negative 2, 0), intercepts the y-axis at (0, 1) and passes through the plotted point (5, 4).
Figure 3.11.2
Solution

[latex]y=\frac{3}{5}x+1[/latex]

6) Find the equation of the line shown in the graph.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. A line intercepts the y-axis at (0, negative 5), passes through the plotted point (3, negative 1), and intercepts the x-axis at (15 fourths, 0).
Figure 3.11.3
Solution

[latex]y=\frac{4}{3}x-5[/latex]

Find an Equation of the Line Given the Slope and a Point

Finding an equation of a line using the slope–intercept form of the equation works well when you are given the slope and [latex]y[/latex]-intercept or when you read them off a graph. But what happens when you have another point instead of the [latex]y[/latex]-intercept?

We are going to use the slope formula to derive another form of an equation of the line. Suppose we have a line that has slope [latex]m[/latex] and that contains some specific point [latex](x_1,y_1)[/latex] and some other point, which we will just call [latex](x,y)[/latex]. We can write the slope of this line and then change it to a different form.

[latex]m=\frac{y-y_1}{x-x_1}[/latex]

[latex]{\small\begin{align*} &\text{Step 1: Multiply both sides of the equation by}(x-x_1).\;&m(x-x_1)&=(\frac{y-y_1}{x-x_1})(x-x_1)\\ &\text{Step 2: Simplify.}\;&m(x-x_1)&={y-y_1}\\ &\text{Step 3: Rewrite the equation with the y terms on the left.}&(y-y_1)&=m(x-x_1) \end{align*}}[/latex]

This format is called the point–slope form of an equation of a line.

Point–slope Form of an Equation of a Line

The point–slope form of an equation of a line with slope [latex]m[/latex] and containing the point [latex](x_1,y_1)[/latex] is

[latex]{y\;-\;}{\color{blue}{y}}_{\color{blue}{1}}={\color{red}{m}}(x-{\color{blue}{x}}_{\color{blue}{1}}{)}[/latex].

We can use the point–slope form of an equation to find an equation of a line when we are given the slope and one point. Then we will rewrite the equation in slope–intercept form. Most applications of linear equations use the the slope–intercept form.

Example 3.11.3

Find an equation of a line with slope [latex]m=\frac{2}{5}[/latex] that contains the point [latex](10,3)[/latex]. Write the equation in slope–intercept form.

Solution

Step 1: Identify the slope.
The slope is given.

[latex]{\color{blue}{m}}{=\frac25}[/latex]

Step 2: Identify the point.
The point is given.

[latex]\begin{pmatrix}{\color{red}{x_1}}&{\color{red}{y_1}}\\10,&3\end{pmatrix}[/latex]

 Step 3: Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].

[latex]\begin{align*} &\;&y-{\color{red}{y}}_{\color{red}{1}}&={\color{blue}{m}}(x-{\color{red}{x}}_{\color{red}{1}})\\ &\;&y-{\color{red}{3}}&={\color{blue}{\frac25}}(x-{\color{red}{10}})\\ &\text{Simplify.}&y-3&=\frac25x-4 \end{align*}[/latex]

Step 4: Write the equation in slope-intercept form.

[latex]y=\frac25x-1[/latex]

Try It

7) Find an equation of a line with slope [latex]m=\frac{5}{6}[/latex] and containing the point left [latex](6,3)[/latex].

Solution

[latex]y=\frac{5}{6}x-2[/latex]

8) Find an equation of a line with slope [latex]m=\frac{2}{3}[/latex] and containing the point [latex](9,2)[/latex].

Solution

[latex]y=\frac{2}{3}x-4[/latex]

HOW TO

Find an equation of a line given the slope and a point.

  1. Identify the slope.
  2. Identify the point.
  3. Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
  4. Write the equation in slope–intercept form.

Example 3.11.4

Find an equation of a line with slope [latex]m=-\frac{1}{3}[/latex] that contains the point [latex](6,-4)[/latex]. Write the equation in slope–intercept form.

Solution

Since we are given a point and the slope of the line, we can substitute the needed values into the point–slope form, [latex]y-y_1[/latex]

Step 1: Identify the slope.

[latex]{m\;=\;}{\color{red}{-}}{}{\color{red}{\frac13}}{}[/latex]

Step 2: Identify the point.

[latex]\left(\overset{{\color{blue}{x}}_{\color{blue}{1}}}6,\;\overset{{\color{blue}{y}}_{\color{blue}{1}}}-4\right)[/latex]

Step 3: Substitute the values into [latex]y-y_1=m(x-x_1)[/latex]

[latex]\begin{align*}y-{\color{blue}{y}}_{\color{blue}{1}}&={\color{red}{m}}(x-{\color{blue}{x}}_{\color{blue}{1}})\\y-({\color{blue}{-}}{\color{blue}{4}})&={\color{red}{-}}{\color{red}{\frac13}}(x-{\color{blue}{6}})\end{align*}[/latex]

Step 4: Simplify.

[latex]{y\;-\;4\;=\;}{\color{black}{-}}{\color{black}{\frac13}}{x\;-\;6}[/latex]

Step 5: Write in slope–intercept form.

[latex]{y\;=\;}{\color{black}{-}}{\color{black}{\frac13}}{x\;-\;2}[/latex]

Try It

9) Find an equation of a line with slope [latex]m=-\frac{2}{5}[/latex] and containing the point [latex](10,-5)[/latex].

Solution

[latex]y=-\frac{2}{5}x-1[/latex]

10) Find an equation of a line with slope [latex]m=-\frac{3}{4}[/latex], and containing the point [latex](4,-7)[/latex].

Solution

[latex]y=-\frac{3}{4}x-4[/latex]

Example 3.11.5

Find an equation of a horizontal line that contains the point [latex](-1,2)[/latex]. Write the equation in slope–intercept form.

Solution

Every horizontal line has slope [latex]0[/latex]. We can substitute the slope and points into the point–slope form, [latex]y-y_1=m(x-x_1)[/latex].

Step 1: Identify the slope.

[latex]{m\;=\;}{\color{red}{0}}[/latex]

Step 2: Identify the point.

[latex]\left(\overset{{\color{blue}{x}}_{\color{blue}{1}}}{-1},\;\overset{{\color{blue}{y}}_{\color{blue}{1}}}2\right)[/latex]

Step 3: Substitute the values into [latex]y-y_1=m(x-x_1)[/latex].

[latex]\begin{align*} &\;&y-{\color{blue}{y}}_{\color{blue}{1}}&={\color{red}{m}}(x-{\color{blue}{x}}_{\color{blue}{1}})\\ &\;&y-{\color{blue}{2}}&={\color{red}{0}}(x-({\color{blue}{-}}{\color{blue}{1}}))\\ &\text{Simplify.}&y-2&=(x+1)\\ &\;&y-2&=0\\ &\;&y&=2 \end{align*}[/latex]

Step 4: Write in slope–intercept form.

It is in [latex]y[/latex]-form, but could be written [latex]y=0x+2[/latex].

Did we end up with the form of a horizontal line, [latex]y=a[/latex]?

Try It

11) Find an equation of a horizontal line containing the point [latex](-3,8)[/latex].

Solution

[latex]y=8[/latex]

12) Find an equation of a horizontal line containing the point [latex](-1,4)[/latex].

Solution

[latex]y=4[/latex]

Find an Equation of the Line Given Two Points

When real-world data is collected, a linear model can be created from two data points. In the next example we’ll see how to find an equation of a line when just two points are given.

We have two options so far for finding an equation of a line: slope–intercept or point–slope. Since we will know two points, it will make more sense to use the point–slope form.

But then we need the slope. Can we find the slope with just two points? Yes. Then, once we have the slope, we can use it and one of the given points to find the equation.

Example 3.11.6

Find an equation of a line that contains the points [latex](5,4)[/latex] and [latex](3,6)[/latex]. Write the equation in slope–intercept form.

Solution

Step 1: Find the slope using the given points.
Find the slope of the line through (5,4) and (3,6)

[latex]\begin{align*} m&=\frac{y_2-y_1}{x_2-x_1}\\ m&=\frac{6-4}{3-5}\\ m&=\frac{2}{-2}\\ m&=-1 \end{align*}[/latex]

Step 2: Choose one point.
Chose either point.

[latex]\begin{pmatrix}{\color{red}{x_1}}&{\color{red}{y_1}}\\5,&4\end{pmatrix}[/latex]

Step 3: Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].

[latex]\begin{align*} y-y_1&=m(x-x_1)\\ y-4&=-1(x-5)\\ y-4&=-1x+5\\ y&=-1x+9 \end{align*}[/latex]

Step 4: Write the equation in slope-intercept form.

[latex]y=-1x+9[/latex]

 Use the point [latex](3,6)[/latex] and see that you get the same equation.

Try It

13) Find an equation of a line containing the points [latex](3,1)[/latex] and [latex](5,6)[/latex].

Solution

[latex]y=\frac{5}{2}x-\frac{13}{2}[/latex]

14) Find an equation of a line containing the points [latex](1,4)[/latex] and [latex](6,2)[/latex].

Solution

[latex]y=-\frac{2}{5}x+\frac{22}{5}[/latex]

HOW TO

Find an equation of a line given two points.

  1. Find the slope using the given points.
  2. Choose one point.
  3. Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
  4. Write the equation in slope–intercept form.

Example 3.11.7

Find an equation of a line that contains the points [latex](-3,-1)[/latex] and [latex](2,-2)[/latex]. Write the equation in slope–intercept form.

Solution

Since we have two points, we will find an equation of the line using the point–slope form. The first step will be to find the slope.

Step 1: Find the slope of the line through [latex](−3, −1)[/latex] and [latex](2, −2)[/latex].

[latex]\begin{align*} m&=\frac{y_2-y_1}{x_2-x_1}\\ m&=\frac{-2-(-1)}{2-(-3)}\\ m&=\frac{-1}5\\ {\color{red}{m}}&={\color{blue}{\frac{-1}5}} \end{align*}[/latex]

Step 2: Choose either point.

[latex]\left(\overset{{\color{blue}{x}}_{\color{blue}{1}}}2,\;-\overset{{\color{blue}{y}}_{\color{blue}{1}}}2\right)[/latex]

Step 3: Substitute the values into [latex]y-y_1=m(x-x_1)[/latex].

[latex]\begin{align*}y-{\color{blue}{y}}_{\color{blue}{1}}&={\color{red}{m}}(x-{\color{blue}{x}}_{\color{blue}{1}})\\y-{\color{blue}{(}}{\color{blue}{-}}{\color{blue}{2}}{\color{blue}{)}}&={\color{red}{-}}{\color{red}{\frac15}}(x-{\color{blue}{2}})\\y+2&=-\frac15x+\frac25\end{align*}[/latex]

Step 4: Write in slope–intercept form.

[latex]y\;=\;-\frac15x\;-\;\frac85[/latex]

Try It

15) Find an equation of a line containing the points [latex](-2,-4)[/latex] and [latex](1,-3)[/latex].

Solution

[latex]y=\frac{1}{3}x-\frac{10}{3}[/latex]

16) Find an equation of a line containing the points [latex](-4,-3)[/latex] and [latex](1,-5)[/latex].

Solution

[latex]y=-\frac{2}{5}x-\frac{23}{5}[/latex]

Example 3.11.8

Find an equation of a line that contains the points [latex](-2,4)[/latex] and [latex](-2,-3)[/latex]. Write the equation in slope–intercept form.

Solution

Again, the first step will be to find the slope.

Find the slope of the line through [latex](-2,4)[/latex] and [latex](-2,-3)[/latex]

[latex]\begin{align*} m&=\frac{y_2-y_1}{x_2-x_1}\\ m&=\frac{-3-4}{-2-(-2)}\\ m&=\frac{-7}{0} \end{align*}[/latex]

The slope is undefined.

This tells us it is a vertical line. Both of our points have an [latex]x[/latex]-coordinate of [latex]-2[/latex]. So our equation of the line is [latex]x=-2[/latex]. Since there is no [latex]y[/latex], we cannot write it in slope–intercept form.

You may want to sketch a graph using the two given points. Does the graph agree with our conclusion that this is a vertical line?

Try It

17) Find an equation of a line containing the points [latex](5,1)[/latex] and [latex](5,-4)[/latex].

Solution

[latex]x=5[/latex]

18) Find an equation of a line containing the points [latex](-4,4)[/latex] and [latex](-4,3)[/latex].

Solution

[latex]x=-4[/latex]

We have seen that we can use either the slope–intercept form or the point–slope form to find an equation of a line. Which form we use will depend on the information we are given. This is summarized in the table below.

To Write an Equation of a Line
If given: Use: Form:
Slope and [latex]y[/latex]-intercept slope–intercept [latex]y = mx + b[/latex]
Slope and a point point–slope [latex]y-y_1=m(x-x_1)[/latex]
Two points point–slope [latex]y-y_1=m(x-x_1)[/latex]

Find an Equation of a Line Parallel to a Given Line

Suppose we need to find an equation of a line that passes through a specific point and is parallel to a given line. We can use the fact that parallel lines have the same slope. So we will have a point and the slope—just what we need to use the point–slope equation.

First let’s look at this graphically.

The graph shows the graph of [latex]y=2x-3[/latex]. We want to graph a line parallel to this line and passing through the point [latex](-2,1)[/latex].

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is y equals 2x minus 3 intercepts the y-axis at (0, negative 3) and intercepts the x-axis at (1.5, 0). Elsewhere on the graph, the point (negative 2, 1) is plotted.
Figure 3.11.4

We know that parallel lines have the same slope. So the second line will have the same slope as [latex]y=2x-3[/latex]. That slope is [latex]m_\parallel=2[/latex]. We’ll use the notation [latex]m[/latex] to represent the slope of a line parallel to a line with slope [latex]m[/latex]. (Notice that the subscript || looks like two parallel lines.)

The second line will pass through [latex](-2,1)[/latex] and have [latex]m=2[/latex]. To graph the line, we start at [latex](-2,1)[/latex] and count out the rise and run. With [latex]m=2[/latex] (or [latex]m=\frac{2}{1}[/latex]), we count out the rise [latex]2[/latex] and the run [latex]1[/latex]. We draw the line.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is y equals 2x minus 3 intercepts the y-axis at (0, negative 3) and intercepts the x-axis at (1.5, 0). The points (negative 2, 1) and (negative 1, 3) are plotted. A second line, parallel to the first, intercepts the x-axis at (-2.5, 0), passes through the points (negative 2, 1) and (negative 1, 3), and intercepts the y-axis at (0, 5).
Figure 3.11.5

Do the lines appear parallel? Does the second line pass through [latex](-2,1)[/latex]?

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. Here we know one point and can find the slope. So we will use the point–slope form.

Example 3.11.9

Find an equation of a line parallel to [latex]y=2x-3[/latex] that contains the point [latex](-2,1)[/latex]. Write the equation in slope–intercept form.

Solution

Step 1: Find the slope of the given line.
The line is in slope-intercept form, [latex]y=2x-3[/latex].

[latex]m=2[/latex]

Step 2: Find the slope of the parallel line.
Parallel lines have the same slope.

[latex]m_2=2[/latex]

Step 3: Identify the point.
The given point is, (-2,1).

[latex]\begin{pmatrix}x_1&y_1\\-2,&1\end{pmatrix}[/latex]

Step 4: Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
Simplify.

[latex]\begin{align*} y-y_1&=m(x-x_1)\\ y-1&=2(x-(-2))\\ y-1&=2(x+2)\\ y-1&=2x+4 \end{align*}[/latex]

Step 5: Write the equation in slope-intercept form.

[latex]y=2x+5[/latex]

 Does this equation make sense? What is the [latex]y[/latex]-intercept of the line? What is the slope?

Try It

19) Find an equation of a line parallel to the line [latex]y=3x+1[/latex] that contains the point [latex](4,2)[/latex]. Write the equation in slope–intercept form.

Solution

[latex]y=3x-10[/latex]

20) Find an equation of a line parallel to the line [latex]y=\frac{1}{2}x-3[/latex] that contains the point [latex](6,4)[/latex].

Solution

[latex]y=\frac{1}{2}x+1[/latex]

HOW TO

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

  1. Find the slope of the given line.
  2. Find the slope of the parallel line.
  3. Identify the point.
  4. Substitute the values into the point–slope form, [latex]y-y_1=m(x-x_1)[/latex].
  5. Write the equation in slope–intercept form.

Find 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 [latex]y=2x-3[/latex]. Now, we want to graph a line perpendicular to this line and passing through [latex](-2,1)[/latex].

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is y equals 2x minus 3 intercepts the y-axis at (0, negative 3) and intercepts the x-axis at (3 halves, 0). Elsewhere on the graph, the point (negative 2, 1) is plotted.
Figure 3.11.6

We know that perpendicular lines have slopes that are negative reciprocals. We’ll use the notation [latex]m_\perp[/latex] to represent the slope of a line perpendicular to a line with slope m. (Notice that the subscript [latex]\perp[/latex] looks like the right angles made by two perpendicular lines.)

[latex]y=2x-3[/latex]         perpendicular line

[latex]m=2[/latex]                  [latex]m-\perp=\frac{1}{2}[/latex]

We now know the perpendicular line will pass through [latex](-2,1)[/latex] with [latex]m_\perp=-\frac{1}{2}[/latex]

To graph the line, we will start at [latex](-2,1)[/latex] and count out the rise [latex]-1[/latex] and the run [latex]2[/latex]. Then we draw the line.

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is y equals 2x minus 3 intercepts the y-axis at (0, negative 3) and intercepts the x-axis at (3 halves, 0). Elsewhere, the point (negative 2, 1) is plotted. Another line perpendicular to the first line passes through the point (negative 2, 1) and intercepts the x and y-axes at (0, 0). A red line with an arrow extends left from (0, 0) to (negative 2, 0), then extends up and terminates at (negative 2, 1), forming a right triangle with the second line as a hypotenuse.
Figure 3.11.7

Do the lines appear perpendicular? Does the second line pass through [latex](-2,1)[/latex]?

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 3.11.10

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

Solution

Step 1: Find the slope of the given line.
The line is in slope-intercept form, [latex]y=2x-3[/latex].

[latex]m=2[/latex]

Step 2: Find the slope of the perpendicular line.
The slopes of perpendicular lines are negative reciprocals.

[latex]m_\perp=-\frac12[/latex]

Step 3: Identify the point.
The given point is, (-2,1)

[latex]\begin{pmatrix}x_1&y_1\\-2,&1\end{pmatrix}[/latex]

Step 4: Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
Simplify.

[latex]\begin{align*} y-y_1&=m(x-x_1)\\ y-1&=-\frac12(x-(-2))\\ y-1&=-\frac12(x+2)\\ y-1&=-\frac12x-1 \end{align*}[/latex]

Step 5: Write in slope-intercept form.

[latex]y=-\frac12x[/latex]

Try It

21) Find an equation of a line perpendicular to the line [latex]y=3x+1[/latex] that contains the point [latex](4,2)[/latex]. Write the equation in slope–intercept form.

Solution

[latex]y=-\frac{1}{3}x+\frac{10}{3}[/latex]

22) Find an equation of a line perpendicular to the line [latex]y=\frac{1}{2}x-3[/latex] that contains the point [latex](6,4)[/latex].

Solution

[latex]y=-2x+16[/latex]

HOW TO

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

  1. Find the slope of the given line.
  2. Find the slope of the perpendicular line.
  3. Identify the point.
  4. Substitute the values into the point–slope form, [latex]y-y_1=m(x-x_1)[/latex].
  5. Write the equation in slope–intercept form.

Example 3.11.11

Find an equation of a line perpendicular to [latex]x=5[/latex] that contains the point [latex](3,-2)[/latex]. 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 [latex]x=5[/latex]. This line is vertical, so its perpendicular will be horizontal. This tells us the [latex]m_\perp=0[/latex].

Step 1: Identify the point.

[latex](3,-2)[/latex]

Step 2: Identify the slope of the perpendicular line.

[latex]m_\perp=0[/latex]

Step 3: Substitute the values into [latex]y-y_1=m(x-x_1)[/latex].

[latex]\begin{align*} y-y_1&=m(x-x_1)\\ y-(-2)&=0(x-3)\\ y+2&=0\\ y&=-2 \end{align*}[/latex]

Step 4: Simplify.

[latex]y=-2[/latex]

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

Try It

23) Find an equation of a line that is perpendicular to the line [latex]x=4[/latex] that contains the point [latex](4,-5)[/latex]. Write the equation in slope–intercept form.

Solution

[latex]y=-5[/latex]

24) Find an equation of a line that is perpendicular to the line [latex]x=2[/latex] that contains the point [latex](2,-1)[/latex]. Write the equation in slope–intercept form.

Solution

[latex]y=-1[/latex]

In Example 3.11.11, 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 [latex]x=5[/latex] that contains the point [latex](3,-2)[/latex]. The graph shows us the line [latex]x=5[/latex] and the point [latex](3,-2)[/latex].

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is x equals 5 intercepts the x-axis at (5, 0) and runs parallel to the y-axis. Elsewhere on the graph, the point (3, negative 2) is plotted.
Figure 3.11.8

We know every line perpendicular to a vertical line is horizontal, so we will sketch the horizontal line through [latex](3,-2)[/latex].

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 7 to 7. The line whose equation is x equals 5 intercepts the x-axis at (5, 0) and runs parallel to the y-axis. Elsewhere on the graph, the points (negative 2, negative 2), (0, negative 2), (3, negative 2), and (6, negative 2) are plotted. A line perpendicular to the previous line passes through those points and runs parallel to the x-axis.
Figure 3.11.9

Do the lines appear perpendicular?

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

Example 3.11.12

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

Solution

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

Try It

25) Find an equation of a line that is perpendicular to the line [latex]y=1[/latex] that contains the point [latex](-5,1)[/latex]. Write the equation in slope–intercept form.

Solution

[latex]x=-5[/latex]

26) Find an equation of a line that is perpendicular to the line [latex]y=-5[/latex] that contains the point [latex](-4,-5)[/latex].

Solution

[latex]x=-4[/latex]

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

Key Concepts

  • To Find an Equation of a Line Given the Slope and a Point
    1. Identify the slope.
    2. Identify the point.
    3. Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
    4. Write the equation in slope-intercept form.
  • To Find an Equation of a Line Given Two Points
    1. Find the slope using the given points.
    2. Choose one point.
    3. Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
    4. Write the equation in slope-intercept form.
  • To Write and Equation of a Line
    • If given slope and [latex]y[/latex]-intercept, use slope–intercept form [latex]y=mx+b[/latex].
    • If given slope and a point, use point–slope form [latex]y-y_1=m(x-x_1)[/latex].
    • If given two points, use point–slope form [latex]y-y_1=m(x-x_1)[/latex].
  • To Find an Equation of a Line Parallel to a Given Line
    1. Find the slope of the given line.
    2. Find the slope of the parallel line.
    3. Identify the point.
    4. Substitute the values into the point-slope form, [latex]y-y_1=m(x-x_1)[/latex].
    5. Write the equation in slope-intercept form.
  • To 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, [latex]y-y_1=m(x-x_1)[/latex].
    • Write the equation in slope-intercept form.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

On a scale of 1-10, how would you rate your mastery of this section in light of your responses on the checklist? How can you improve this?

Glossary

point–slope form
The point–slope form of an equation of a line with slope [latex]m[/latex] and containing the point [latex](x_1,y_1)[/latex] is [latex]y-y_1=m(x-x_1)[/latex].
definition

License

Icon for the Creative Commons Attribution-ShareAlike 4.0 International License

Fanshawe Pre-Health Sciences Mathematics 1 Copyright © 2022 by Domenic Spilotro, MSc is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book