6.6 Finding the Equation of a Line
Finding the Equation of a Line
Read the transcriptDownload the videoNarration credits and licences
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 y-Intercept
We can easily determine the slope and intercept of a line if the equation was written in slope–intercept form, 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.
Sometimes, the slope and intercept need to be determined from the graph.
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.
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 Table 6.17.
| To Write an Equation of a Line | ||
| If given: | Use: | Form: |
| Slope and y-intercept | slope–intercept | |
| Slope and a point | point–slope | |
| Two points | point–slope |
Practice Makes Perfect
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.
slope 3 and y-intercept
slope 4 and y-intercept
Show solution to exercise 2
slope 6 and y-intercept
slope 8 and y-intercept
Show solution to exercise 4
slope and y-intercept
slope and y-intercept
Show solution to exercise 6
slope and y-intercept
slope and y-intercept
Show solution to exercise 8
slope and y-intercept
slope and y-intercept
Show solution to exercise 10
slope and y-intercept
slope and y-intercept
Show solution to exercise 12
slope 0 and y-intercept
slope 0 and y-intercept
Show solution to exercise 14
slope and y-intercept
slope and y-intercept
Show solution to exercise 16
In the following exercises, find the equation of the line shown in each graph. Write the equation in slope–intercept form.
Show solution to exercise 18
Show solution to exercise 20
Show solution to exercise 22
Show solution to exercise 24
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 when possible. For a vertical line, give its equation in the form x = a and explain why slope–intercept form is not possible.
and
and
Show solution to exercise 26
and
and
Show solution to exercise 28
and
and
Show solution to exercise 30
and
and
Show solution to exercise 32
and
and
Show solution to exercise 34
and
and
Show solution to exercise 36
and
and
Show solution to exercise 38
and
and
Show solution to exercise 40
and
and
Show solution to exercise 42
and
and
Show solution to exercise 44
and
and
Show solution to exercise 46
and
and
Show solution to exercise 48
and
and
Show solution to exercise 50
Adapted from OpenStax, Rice University; access for free at openstax.org. Lessons 2.4 and 6.7 are written for this edition by XYZ Homework. License: CC BY-NC-SA 4.0. Copyright and sources.