Intermediate Algebra 2e · free preview

3.3 Find the Equation of a Line

Learning objectives: Find an equation of the line given the slope and $y\mathrm{-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

1. Learning objectives

Learning objectives

Learning objectives

  • Find an equation of the line given the slope and y−intercepty\mathrm{-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

How do online companies 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.

The physical sciences, social sciences, and the business world are full of situations that can be modeled with linear equations relating two variables. 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.

2. Find an Equation of the Line Given the Slope and *y*-Intercept

Find an Equation of the Line Given the Slope and y-Intercept

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

3. Example 3.24

Example 3.24

Example 3.24

Find the equation of a line with slope −9-9 and y-intercept (0,−4).(0,-4).

Solution

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

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

4. Example 3.25

Example 3.25

Example 3.25

Find the equation of the line shown in the graph.

Solution

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

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

The y-intercept is (0,−4)(0,-4) and the graph passes through (3,−2).(3,-2).

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

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 y-intercept or when you read them off a graph. But what happens when you have another point instead of the y-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 m and that contains some specific point (x1,y1)({x}_{1},{y}_{1}) and some other point, which we will just call (x,y).(x,y). We can write the slope of this line and then change it to a different form.

 m=y−y1x−x1\,m=\frac{y-{y}_{1}}{x-{x}_{1}}

Multiply both sides of the equation by x−x1.x-{x}_{1}. · m(x−x1)=(y−y1x−x1)(x−x1)m(x-{x}_{1})=(\frac{y-{y}_{1}}{x-{x}_{1}})(x-{x}_{1}) Simplify. · m(x−x1)=y−y1m(x-{x}_{1})=y-{y}_{1} Rewrite the equation with the yy terms on the left. ·  y−y1=m(x−x1)\,y-{y}_{1}=m(x-{x}_{1})

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

The point-slope form of an equation of a line with slope m and containing the point (x1,y1)({x}_{1},{y}_{1}) is:

y−y1=m(x−x1)y-{y}_{1}=m(x-{x}_{1})

We can use the point-slope form of an equation to find an equation of a line when we know the slope and at least one point. Then, we will rewrite the equation in slope-intercept form. Most applications of linear equations use the the slope-intercept form.

6. Example 3.26

Example 3.26

Example 3.26

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

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

We list the steps for easy reference.

To find an equation of a line given the slope and a point.

  1. Step 1. Identify the slope.
  2. Step 2. Identify the point.
  3. Step 3. Substitute the values into the point-slope form, y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}).
  4. Step 4. Write the equation in slope-intercept form.

7. Example 3.27

Example 3.27

Example 3.27

Find an equation of a horizontal line that contains the point (−2,−6).(-2,-6). Write the equation in slope-intercept form.

Solution

Every horizontal line has slope 0. We can substitute the slope and points into the point-slope form, y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}).

Did we end up with the form of a horizontal line, y=b?y=b?

8. Find an Equation of the Line Given Two Points

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.

So far, we have two options for finding an equation of a line: slope-intercept or point-slope. When we start with two points, it makes 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.

9. Example 3.28

Example 3.28

Example 3.28

How to Find the Equation of a Line Given Two Points

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

The steps are summarized here.

To find an equation of a line given two points.

  1. Step 1. Find the slope using the given points. m=y2−y1x2−x1m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}
  2. Step 2. Choose one point.
  3. Step 3. Substitute the values into the point-slope form: y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}).
  4. Step 4. Write the equation in slope-intercept form.

10. Example 3.29

Example 3.29

Example 3.29

Find an equation of a line that contains the points (−3,5)(-3,5) and (−3,4).(-3,4). 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 (−3,5)(-3,5) and (−3,4).(-3,4). · m=y2−y1x2−x1m=\frac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}

m=4−5−3−(−3)m=\frac{4-5}{-3-(-3)}

m=−10m=\frac{-1}{0}

The slope is undefined.

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

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

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.

To Write an Equation of a Line If given: · Use: · Form: Slope and y-intercept · slope-intercept · y=mx+by=mx+b Slope and a point · point-slope · y−y1=m(x−x1)y-{y}_{1}=m(x-{x}_{1}) Two points · point-slope · y−y1=m(x−x1)y-{y}_{1}=m(x-{x}_{1})

11. Find an Equation of a Line Parallel to a Given Line

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.

This graph shows y=2x−3.y=2x-3. We want to graph a line parallel to this line and passing through the point (−2,1).(-2,1).

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

The second line will pass through (−2,1)(-2,1) and have m=2.m=2.

To graph the line, we start at(−2,1)(-2,1) and count out the rise and run.

With m=2m=2 (or m=21m=\frac{2}{1}), we count out the rise 2 and the run 1. We draw the line, as shown in the graph.

Do the lines appear parallel? Does the second line pass through(−2,1)?(-2,1)?

We were asked to graph the line, 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.

12. Example 3.30

Example 3.30

Example 3.30

How to Find the Equation of a Line Parallel to a Given Line and a Point

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

Solution

Look at graph with the parallel lines shown previously. Does this equation make sense? What is the y-intercept of the line? What is the slope?

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

  1. Step 1. Find the slope of the given line.
  2. Step 2. Find the slope of the parallel line.
  3. Step 3. Identify the point.
  4. Step 4. Substitute the values into the point-slope form: y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}).
  5. Step 5. Write the equation in slope-intercept form.

13. Find an Equation of a Line Perpendicular to a Given Line

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.

This graph shows y=2x−3.y=2x-3. Now, we want to graph a line perpendicular to this line and passing through (−2,1).(-2,1).

We know that perpendicular lines have slopes that are negative reciprocals.

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

y=2x−3perpendicularlinem=2m⊥=−12\begin{array}{lccl} y=2x-3 & & & \mathrm{perpendicular line} \\ m=2 & & & {m}_{\perp}=-\frac{1}{2} \\ \end{array}

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

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

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

We were asked to graph the line, 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.

14. Example 3.31

Example 3.31

Example 3.31

How to Find the Equation of a Line Perpendicular to a Given Line and a Point

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

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

  1. Step 1. Find the slope of the given line.
  2. Step 2. Find the slope of the perpendicular line.
  3. Step 3. Identify the point.
  4. Step 4. Substitute the values into the point-slope form, y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}).
  5. Step 5. Write the equation in slope-intercept form.

15. Example 3.32

Example 3.32

Example 3.32

Find an equation of a line perpendicular to x=5x=5 that contains the point (3,−2).(3,-2). 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.x=5. This line is vertical, so its perpendicular will be horizontal. This tells us the m⊥=0.{m}_{\perp}=0.

Identify the point. ·  (3,−2)\,(3,-2) Identify the slope of the perpendicular line. ·  m⊥=0\,{m}_{\perp}=0 Substitute the values into y−y1=m(x−x1).y-{y}_{1}=m(x-{x}_{1}). ·  y−y1=m(x−x1)\,y-{y}_{1}=m(x-{x}_{1})

 y−(−2)=0(x−3)\,y-(-2)=0(x-3)

Simplify. · y+2=0y+2=0

 y=−2\,y=-2

Sketch the graph of both lines. On your graph, do the lines appear to be perpendicular?

In Example 3.32, 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=5x=5 that contains the point (3,−2).(3,-2). This graph shows us the linex=5x=5 and the point (3,−2).(3,-2).

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

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.-2. So, the equation of the line perpendicular to the vertical line x=5x=5 is y=−2.y=-2.

16. Example 3.33

Example 3.33

Example 3.33

Find an equation of a line that is perpendicular to y=−3y=-3 that contains the point (−3,5).(-3,5). Write the equation in slope-intercept form.

Solution

The line y=−3y=-3 is a horizontal line. Any line perpendicular to it must be vertical, in the form x=a.x=a. Since the perpendicular line is vertical and passes through (−3,5),(-3,5), every point on it has an x-coordinate of −3.-3. The equation of the perpendicular line is x=−3x=-3

You may want to sketch the lines. Do they appear perpendicular?

17. Section 3.3 Exercises

Section 3.3 Exercises

Section 3.3 Exercises

Find an Equation of the Line Given the Slope and y-Intercept

In the following exercises, find the equation of a line with given slope and y-intercept. Write the equation in slope-intercept form.

In the following exercises, find the equation of the line shown in each graph. Write the equation in slope-intercept form.

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

In the following exercises, find the equation of a line with given slope and containing the given point. Write the equation in slope-intercept form.

Find an Equation of the Line Given Two Points

In the following exercises, find the equation of a line containing the given points. Write the equation in slope-intercept form.

Find an Equation of a Line Parallel to a Given Line

In the following exercises, find an equation of a line parallel to the given line and contains the given point. Write the equation in slope-intercept form.

Find an Equation of a Line Perpendicular to a Given Line

In the following exercises, find an equation of a line perpendicular to the given line and contains the given point. Write the equation in slope-intercept form.

Mixed Practice

In the following exercises, find the equation of each line. Write the equation in slope-intercept form.

Writing Exercises

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

ⓑ What does this checklist tell you about your mastery of this section? What steps will you take to improve?

18. Practice 1

  1. Find the equation of a line with slope 25\frac{2}{5} and y-intercept (0,4).(0,4).
  1. Find the equation of a line with slope −1-1 and y-intercept (0,−3).(0,-3).
  1. Find the equation of the line shown in the graph.
  1. Find the equation of the line shown in the graph.

19. Practice 2

  1. Find the equation of a line with slope m=−25m=-\frac{2}{5} and containing the point (10,−5).(10,-5).
  1. Find the equation of a line with slope m=−34,m=-\frac{3}{4}, and containing the point (4,−7).(4,-7).
  1. Find the equation of a horizontal line containing the point (−3,8).(-3,8).
  1. Find the equation of a horizontal line containing the point (−1,4).(-1,4).

20. Practice 3

  1. Find the equation of a line containing the points (−2,−4)(-2,-4) and (1,−3).(1,-3).
  1. Find the equation of a line containing the points (−4,−3)(-4,-3) and (1,−5).(1,-5).
  1. Find the equation of a line containing the points (5,1)(5,1) and (5,−4).(5,-4).
  1. Find the equation of a line containing the points (−4,4)(-4,4) and (−4,3).(-4,3).

21. Practice 4

  1. Find an equation of a line parallel to the line y=3x+1y=3x+1 that contains the point (4,2).(4,2). Write the equation in slope-intercept form.
  1. Find an equation of a line parallel to the line y=12x−3y=\frac{1}{2}x-3 that contains the point (6,4).(6,4).

Write the equation in slope-intercept form.

  1. Find an equation of a line perpendicular to the line y=3x+1y=3x+1 that contains the point (4,2).(4,2). Write the equation in slope-intercept form.
  1. Find an equation of a line perpendicular to the line y=12x−3y=\frac{1}{2}x-3 that contains the point (6,4).(6,4). Write the equation in slope-intercept form.

22. Practice 5

  1. Find an equation of a line that is perpendicular to the line x=4x=4 that contains the point (4,−5).(4,-5).. Write the equation in slope-intercept form.
  1. Find an equation of a line that is perpendicular to the line x=2x=2 that contains the point (2,−1).(2,-1). Write the equation in slope-intercept form.
  1. Find an equation of a line that is perpendicular to the line y=1y=1 that contains the point (−5,1).(-5,1). Write the equation in slope-intercept form.
  1. Find an equation of a line that is perpendicular to the line y=−5y=-5 that contains the point (−4,−5).(-4,-5). Write the equation in slope-intercept form.

23. Practice 6

  1. slope 3 andyy-intercept (0,5)(0,5)
  1. slope −3-3 andyy-intercept (0,−1)(0,-1)
  1. slope 15\frac{1}{5} andyy-intercept (0,−5)(0,-5)
  1. slope 0 andyy-intercept (0,−1)(0,-1)

24. Practice 7

  1. m=58,m=\frac{5}{8}, point (8,3)(8,3)
  1. m=−35,m=-\frac{3}{5}, point (10,−5)(10,-5)
  1. m=−32,m=-\frac{3}{2}, point (−4,−3)(-4,-3)
  1. m=−7,m=-7, point (−1,−3)(-1,-3)

25. Practice 8

  1. Horizontal line containing (−2,5)(-2,5)
  1. Horizontal line containing (−1,−7)(-1,-7)
  1. (2,6)(2,6) and (5,3)(5,3)
  1. (−3,−4)(-3,-4) and (5,−2)(5,-2)

26. Practice 9

  1. (−1,3)(-1,3) and (−6,−7)(-6,-7)
  1. (0,4)(0,4) and (2,−3)(2,-3)
  1. (7,2)(7,2) and (7,−2)(7,-2)
  1. (3,−4)(3,-4) and (5,−4)(5,-4)

27. Practice 10

  1. line y=4x+2,y=4x+2,point (1,2)(1,2)
  1. line 2x−y=6,2x-y=6,point (3,0).(3,0).
  1. line x=−4,x=-4,point (−3,−5).(-3,-5).
  1. line y=5,y=5,point (2,−2)(2,-2)

28. Practice 11

  1. line y=−2x+3,y=-2x+3,point (2,2)(2,2)
  1. line y=34x−2,y=\frac{3}{4}x-2,point (−3,4)(-3,4)
  1. line 2x−3y=8,2x-3y=8,point (4,−1)(4,-1)
  1. line 2x+5y=6,2x+5y=6,point (0,0)(0,0)

29. Practice 12

  1. line x=3,x=3,point (3,4)(3,4)
  1. line x=7,x=7,point (−3,−4)(-3,-4)
  1. line y−3=0,y-3=0,point (−2,−4)(-2,-4)
  1. line y-axis,point (3,4)(3,4)

30. Practice 13

  1. Containing the points (4,3)(4,3) and (8,1)(8,1)
  1. m=16,m=\frac{1}{6}, containing point (6,1)(6,1)
  1. Parallel to the line 4x+3y=6,4x+3y=6, containing point (0,−3)(0,-3)
  1. m=−34,m=-\frac{3}{4}, containing point (8,−5)(8,-5)

31. Practice 14

  1. Perpendicular to the line y−1=0,y-1=0, point (−2,6)(-2,6)
  1. Parallel to the line x=−3,x=-3, containing point (−2,−1)(-2,-1)
  1. Containing the points (−3,−4)(-3,-4) and (2,−5)(2,-5)
  1. Perpendicular to the line x−2y=5,x-2y=5, point (−2,2)(-2,2)

32. Practice 15

  1. Why are all horizontal lines parallel?

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free