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 modeled 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 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 2
Find the equation of the line shown.
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.
Solution
[latex]y=\frac{3}{5}x+1[/latex]
6) Find the equation of the line shown in the graph.
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 slope-intercept form.
How to
Find an equation of a line given the slope and a point.
- Identify the slope.
- 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.
Example 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] 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]
Example 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 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.
How to
Find an equation of a line given two points.
- Find the slope using the given points.
- Choose one 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.
Example 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.
Choose 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]
Example 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 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 pass through the point [latex](-2,1)[/latex].
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.
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 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.
- Find the slope of the given line.
- Find the slope of the parallel 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.
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 that 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].
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
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.
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 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.
- 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.
Example 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 differently.
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].
We know every line perpendicular to a vertical line is horizontal, so we will sketch the horizontal line through [latex](3,-2)[/latex].
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 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 horizontal. 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
-
- Identify the slope.
- 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.
- To Find an Equation of a Line Given Two Points
-
- Find the slope using the given points.
- Choose one 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.
- 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
-
- Find the slope of the given line.
- Find the slope of the parallel 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.
- 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.
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].
Exercises: Find an Equation of the Line Given the Slope and [latex]{\color{White}{y}}[/latex]-Intercept
Instructions: For questions 1-15, find the equation of a line with given slope and [latex]y[/latex]-intercept. Write the equation in slope–intercept form.
Solution
[latex]y=4x+1[/latex]
2. slope [latex]6[/latex] and [latex]y[/latex]-intercept [latex](0,-4)[/latex]
Solution
[latex]y=8x-6[/latex]
Solution
[latex]y=-x+7[/latex]
Solution
[latex]y=-3x-1[/latex]
Solution
[latex]y=\frac{1}{5}x-5[/latex]
Solution
[latex]y=-\frac{2}{3}x-3[/latex]
Solution
[latex]y=2[/latex]
14. slope [latex]-3[/latex] and [latex]y[/latex]-intercept [latex](0,0)[/latex]
15. slope [latex]-4[/latex] and [latex]y[/latex]-intercept [latex](0,0)[/latex]
Solution
[latex]y=-4x[/latex]
Exercises: Find the Equation of a Line Shown on a Graph
Instructions: For questions 16-23, find the equation of the line shown in each graph. Write the equation in slope–intercept form.
16.
17.
Solution
[latex]y=-2x+4[/latex]
18.
19.
Solution
[latex]y=\frac{3}{4}x+2[/latex]
20.
21.
Solution
[latex]y=-\frac{3}{2}x-1[/latex]
22.
23.
Solution
[latex]y=6[/latex]
Exercises: Find an Equation of the Line Given the Slope and a Point
Instructions: For questions 24-41, find the equation of a line with given slope and containing the given point. Write the equation in slope–intercept form.
Solution
[latex]y=\frac{3}{8}x-1[/latex]
Solution
[latex]y=\frac{5}{6}x+2[/latex]
Solution
[latex]y=-\frac{3}{5}x+1[/latex]
Solution
[latex]y=-\frac{1}{3}x-11[/latex]
Solution
[latex]y=4[/latex]
Solution
[latex]y=-7[/latex]
Solution
[latex]y=-\frac{5}{2}x-22[/latex]
39. [latex]m=-4[/latex], point [latex](-2,-3)[/latex]
Solution
[latex]y=-4x-11[/latex]
Solution
[latex]y=-8[/latex]
Exercises: Find an Equation of the Line Given Two Points
Instructions: For questions 42-67, find the equation of a line containing the given points. Write the equation in slope–intercept form.
Solution
[latex]y=-4x+13[/latex]
Solution
[latex]y=x+5[/latex]
Solution
[latex]y=-\frac{1}{3}x-\frac{14}{3}[/latex]
Solution
[latex]y=7x+22[/latex]
Solution
[latex]y=-\frac{6}{7}x+\frac{4}{7}[/latex]
Solution
[latex]y=\frac{1}{5}x-2[/latex]
Solution
[latex]x=4[/latex]
Solution
[latex]x=-2[/latex]
Solution
[latex]y=2[/latex]
Solution
[latex]y=-3[/latex]
Solution
[latex]y=4x[/latex]
Solution
[latex]y=\frac{1}{2}x+\frac{3}{2}[/latex]
Solution
[latex]y=5[/latex]
Exercises: Find an Equation of a Line Parallel to a Given Line
Instructions: For questions 68-83, find an equation of a line parallel to the given line and contains the given point. Write the equation in slope–intercept form.
Solution
[latex]y=3x-1[/latex]
Solution
[latex]y=-3x+3[/latex]
Solution
[latex]y=2x-6[/latex]
Solution
[latex]y=-\frac{2}{3}x+5[/latex]
Solution
[latex]x=-3[/latex]
79. line [latex]x-6=0[/latex], point [latex]\left(4,-3\right)[/latex]
Solution
[latex]x=4[/latex]
Solution
[latex]y=-4[/latex]
Solution
[latex]y=-1[/latex]
Exercises: Find an Equation of a Line Perpendicular to a Given Line
Instructions: For questions 84-95, find an equation of a line perpendicular to the given line and contains the given point. Write the equation in slope–intercept form.
Solution
[latex]y=x[/latex]
Solution
[latex]y=-\frac{3}{2}x-1[/latex]
Solution
[latex]y=-\frac{3}{4}x-\frac{1}{4}[/latex]
Solution
[latex]y=\frac{5}{4}x[/latex]
Solution
[latex]x=-5[/latex]
Solution
[latex]y=1[/latex]
Exercises: Mixed Practice
Instructions: For questions 96-113, find the equation of each line. Write the equation in slope–intercept form.
96. Containing the points [latex]\left(4,3\right)[/latex] and [latex]\left(8,1\right)[/latex]
Solution
[latex]y=x+5[/latex]
98. [latex]m=\frac{1}{6}[/latex], containing point [latex]\left(6,1\right)[/latex]
Solution
[latex]y=\frac{5}{6}x+2[/latex]
Solution
[latex]y=-\frac{2}{3}x+5[/latex]
Solution
[latex]y=-\frac{3}{5}x+1[/latex]
Solution
[latex]y=2[/latex]
106. Containing the points [latex]\left(4,3\right)[/latex] and [latex]\left(8,1\right)[/latex]
Solution
[latex]y=2x+4[/latex]
Solution
[latex]x=-3[/latex]
Solution
[latex]y=-\frac{1}{3}x-\frac{14}{3}[/latex]
Solution
[latex]y=\frac{3}{4}x[/latex]
Exercises: Everyday Math
Instructions: For questions 114-115, answer the given everyday math word problems.
Solution
[latex]y=1.2x+5.2[/latex]
Exercises: Writing Exercises
Instructions: For questions 116-117, answer the given writing exercises.
117. Explain in your own words why the slopes of two perpendicular lines must have opposite signs.
Solution
Answers will vary.
The point–slope form of an equation of a line with slope m and containing the point (x1,y1) is y-y1=m(x-x1)