Elementary Algebra 2e — Original English

Find the Equation of a Line

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, 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.

Find an equation of a line with slope −7 and y-intercept (0,−1).

Solution

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.

Name the slope. A mathematical equation shows 'm = -7' written in black characters with the number 7 highlighted in red against a plain white background, indicating a variable assigned a negative integer value.
Name the y-intercept. The image displays the text 'y-intercept (0, -1)'.
Substitute the values into y=mx+b. The equation y = mx + b, which represents the slope-intercept form of a linear equation, is displayed. The variable 'm' is colored red, and 'b' is colored blue, highlighting their roles as slope and y-intercept.
A mathematical equation is displayed on a white background, reading 'y = -7x + (-1)'. The '-7x' is highlighted in red, and the '(-1)' is highlighted in blue.
A mathematical equation is displayed, reading 'y = -7x - 1' in a clear, sans-serif font against a plain white background.

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

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).
Solution

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.

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

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

Find the slope by counting the rise and run. The mathematical formula for slope, 'm = rise / run,' is displayed on a white background.
A mathematical equation is displayed against a white background, showing 'm = 2/3'. The variable 'm' is in black, and the fraction '2/3' is in red, with '2' above a horizontal line and '3' below.
Find the y-intercept. The image displays the text 'y-intercept (0, -4)' in black font, with the number -4 highlighted in light blue, indicating the point where a line or curve crosses the y-axis.
Substitute the values into y=mx+b. A close-up of the algebraic formula y=mx+b, commonly known as the slope-intercept form of a straight line, with 'm' representing the slope and 'b' the y-intercept.
The image displays the linear equation y = (2/3)x - 4. The fraction 2/3 is colored red, indicating the slope, while the number 4, part of the y-intercept, is colored blue, with a minus sign preceding it.

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) and some other point, which we will just call (x,y). We can write the slope of this line and then change it to a different form.

Illustrates the step-by-step derivation of the point-slope form of a linear equation from the slope formula.
m=yy1xx1
Multiply both sides of the equation by xx1. m(xx1)=(yy1xx1)(xx1)
Simplify. m(xx1)=yy1
Rewrite the equation with the y terms on the left. yy1=m(xx1)

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

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.

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

Find an equation of a line with slope m=25 that contains the point (10,3). Write the equation in slope–intercept form.

Solution

Solution

This figure is a table that has three columns and four rows. The first column is a header column, and it contains the names and numbers of each step. The second column contains further written instructions. The third column contains math. In the first row of the table, the first cell on the left reads: “Step 1. Identify the slope.” The text in the second cell reads: “The slope is given.” The third cell contains the slope of a line, defined as m equals 2 fifths. In the second row, the first cell reads: “Step 2. Identify the point.” The second cell reads: “The point is given.” The third cell contains the ordered pair (10, 3). A superscript x subscript 1 is written over 10, and a superscript y subscript 1 is written over 3. Step 3 substitutes values into point-slope form: y minus y sub one equals m times x minus x sub one. The equation becomes y minus 3 equals 2/5 times x minus 10. Simplify to get y minus 3 equals 2/5 x minus 4. In the fourth row, the first cell reads: “Write the equation in slope-intercept form.” The second cell is blank. In the third cell is y equals 2 fifths x minus 1.

Find an equation of a line with slope m=13 that contains the point (6,−4). Write the equation in slope–intercept form.

Solution

Solution

Since we are given a point and the slope of the line, we can substitute the needed values into the point–slope form, yy1=m(xx1).

Identify the slope. The equation m = -1/3, displaying a blue 'm' and an equal sign, followed by a negative sign and the fraction 1/3 in red, all on a white background.
Identify the point. A mathematical expression showing a point (x1, y1) with values (6, -4) stacked vertically within parentheses. It indicates that x1 = 6 and y1 = -4.
Substitute the values into yy1=m(xx1). The point-slope form of a linear equation, y - y_1 = m(x - x_1), where (x_1, y_1) is a point on the line and m is the slope, displayed with color-coded variables.
A mathematical equation in point-slope form: y - (-4) = -1/3(x - 6). The numbers -4 and -6 are highlighted in red, and the fraction 1/3 is highlighted in blue.
Simplify. The image displays the linear equation y + 4 = -1/3x + 2, written in an algebraic format. It shows variables 'y' and 'x' with coefficients and constants.
Write in slope–intercept form. A mathematical equation is displayed, reading 'y = -1/3x - 2'. The equation represents a linear function in slope-intercept form, with a negative slope of -1/3 and a y-intercept of -2.

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

Solution

Solution

Every horizontal line has slope 0. We can substitute the slope and points into the point–slope form, yy1=m(xx1).

Identify the slope. A white background shows the equation 'm = 0'. The 'm' is light blue and the '0' is reddish-orange, both slightly out of focus.
Identify the point. A mathematical notation displaying a coordinate point (x1, y1) directly above the specific coordinates (-1, 2), indicating that x1 = -1 and y1 = 2.
Substitute the values into yy1=m(xx1). The point-slope form of a linear equation, y - y_1 = m(x - x_1), is displayed with y_1 and x_1 highlighted in red, and the slope 'm' highlighted in blue.
The equation y - 2 = 0(x - (-1)) represents a horizontal line at y=2 with a slope of 0, passing through the point (-1, 2).
Simplify. The equation y - 2 = 0(x + 1) is displayed on a white background. This simplifies to y=2, representing a horizontal line.
The image displays a mathematical equation written in black text on a white background, which reads 'y - 2 = 0'.
The image displays the simple algebraic equation 'y=2' in black text against a plain white background, clearly indicating a constant value for the variable y.
Write in slope–intercept form. It is in y-form, but could be written y=0x+2.

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

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.

Find an Equation of a Line Given Two Points

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

Solution

Solution

Table showing steps to find the slope of a line. Step 1: Find the slope using the formula y two minus y one, divided by x two minus x one. Calculation shows the slope, m, as negative one. In the second row, the first cell reads: “Step 2. Choose one point.” The second cell reads: “Choose either point.” The third cell contains the ordered pair (5, 4) with a superscript x subscript 1 over 5 and a superscript y subscript 1 over 4. In the third row, the first cell reads: “Step 3. Substitute the values into the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses.” The top line of the second cell is left blank. The third cell contains the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses. Below this is the point-slope form with 5 substituted for x subscript 1, 4 substituted for y subscript 1, and negative 1 substituted for m: y minus 4 equals negative 1 times x minus 5 in parentheses. Below this is y minus 4 equals negative x plus 5. In the fourth row, the first cell reads: “Step 4. Write the equation in slope-intercept form.” The second cell is blank. The third cell contains y equals negative x plus 9.


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

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

Solution

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.

Find the slope of the line through (−3, −1) and (2, −2). The image displays the mathematical formula for calculating the slope (m) of a line, which is the change in y (rise) divided by the change in x (run): m = (y₂ - y₁)/(x₂ - x₁).
A mathematical formula for calculating the slope 'm' is shown, with the expression m = (-2 - (-1)) / (2 - (-3)).
A mathematical equation is displayed on a white background, showing 'm = -1/5'. The letter 'm' is followed by an equals sign, then a fraction where -1 is the numerator and 5 is the denominator.
A mathematical equation displays 'm = -1/5' in a clean, white background. The variable 'm' is shown in light blue, the equals sign and negative sign are black, and the fraction '1/5' is in red.
Choose either point. A coordinate pair (2, -2) with 'x1' labeled above 2 and 'y1' labeled above -2, enclosed in parentheses, against a white background.
Substitute the values into yy1=m(xx1). The image displays the point-slope form of a linear equation, y - y1 = m(x - x1), commonly used in algebra and geometry to represent a line given a point (x1, y1) and a slope 'm'.
The point-slope form equation y - (-2) = -1/5 (x - 2) is displayed, with the point (2, -2) indicated in red and the slope -1/5 shown in blue.
The image shows the equation y + 2 = -1/5 x + 2/5.
Write in slope–intercept form. A mathematical equation on a white background, reading y = -1/5x - 8/5.

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

Solution

Solution

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

Demonstration of finding the slope of a line between two points, illustrating a case where the slope is undefined.
Find the slope of the line through (−2,4)and(−2,−3). m=y2y1x2x1
m=−34−2(−2)
m=−70
The slope is undefined.

This tells us it is a vertical line. Both of our points have an x-coordinate of −2. So our equation of the line is x=−2. 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 the 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. This is summarized in Table 8.

To Write an Equation of a Line
If given: Use: Form:
Slope and y-intercept slope–intercept y=mx+b
Slope and a point point–slope yy1=m(xx1)
Two points point–slope yy1=m(xx1)

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 y=2x3. We want to graph a line parallel to this line and passing through the point (−2,1).

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.

We know that parallel lines have the same slope. So the second line will have the same slope asy=2x3. That slope ism=2. We’ll use the notation m 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) and have m=2. To graph the line, we start at(−2,1) and count out the rise and run. With m=2 (or m=21), we count out the rise 2 and the run 1. 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). The points (negative 2, 1) and (negative 1, 3) are plotted. A second line, parallel to the first, intercepts the x-axis at (negative 5 halves, 0), passes through the points (negative 2, 1) and (negative 1, 3), and intercepts the y-axis at (0, 5).

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

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.

How to Find an Equation of a Line Parallel to a Given Line

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

Solution

Solution

This figure is a table that has three columns and four rows. The first column is a header column, and it contains the names and numbers of each step. The second column contains further written instructions. The third column contains math. In the first row of the table, the first cell on the left reads: “Step 1. Find the slope of the given line.” The second cell reads: “The line is in slope-intercept form. y equals 2x minus 3.” The third cell contains the slope of a line, defined as m equals 2. In the second row, the first cell reads: “Step 2. Find the slope of the parallel line.” The second cell reads “Parallel lines have the same slope.” The third cell contains the slope of the parallel line, defined as m parallel equals 2. In the third row, the first cell reads “Step 3. Identify the point.” The second cell reads “The given point is (negative 2, 1).” The third cell contains the ordered pair (negative 2, 1) with a superscript x subscript 1 above negative 2 and a superscript y subscript 1 above 1. In the fourth row, the first cell reads “Step 4. Substitute the values into the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses.” The top of the second cell is blank. The third cell contains the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses. Below this is the form with negative 2 substituted for x subscript 1, 1 substituted for y subscript 1, and 2 substituted for m: y minus 1 equals 2 times x minus negative 2 in parentheses. One line down, the text in the second cell says “Simplify.” The right column contains y minus 1 equals 2 times x plus 2. Below this is y minus 1 equals 2x plus 4. In the fifth row, the first cell says “Step 5. Write the equation in slope-intercept form.” The second cell is blank. The third cell contains y equals 2x plus 5.


Does this equation make sense? What is the y-intercept of the line? What is the slope?

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 y=2x3. Now, we want to graph a line perpendicular to this line and passing through (−2,1).

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.

We know that perpendicular lines have slopes that are negative reciprocals. We’ll use the notation m 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.)

y=2x3perpendicular line m=2m=12

We now know the perpendicular line will pass through (−2,1) with m=12.

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

Graph of two lines in x y-plane. The first line, y equals 2x minus 3, intersects the y-axis at negative 3 and the x-axis at one and a half, zero. A second line passes through negative 2, 1, forming a right triangle with the first line.

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

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.

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

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

Solution

Solution

This figure is a table that has three columns and four rows. The first column is a header column, and it contains the names and numbers of each step. The second column contains further written instructions. The third column contains math. In the first row of the table, the first cell on the left reads: “Step 1. Find the slope of the given line.” The second cell reads: “The line is in slope-intercept form. y equals 2x minus 3.” The third cell contains the slope of a line, defined as m equals 2. In the second row, the first cell reads: “Step 2. Find the slope of the perpendicular line.” The second cell reads “The slopes of perpendicular lines are negative reciprocals.” The third cell contains the slope of the perpendicular line, defined as m perpendicular equals negative 1 half. In the third row, the first cell reads “Step 3. Identify the point.” The second cell reads “The given point is (negative 2, 1).” The third cell contains the ordered pair (negative 2, 1) with a superscript x subscript 1 above negative 2 and a superscript y subscript 1 above 1. In the fourth row, the first cell reads “Step 4. Substitute the values into the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses.” The top of the second cell is blank. The third cell contains the point-slope form, y minus y subscript 1 equals m times x minus x subscript 1 in parentheses. Below this is the form with negative 2 substituted for x subscript 1, 1 substituted for y subscript 1, and negative 1 half substituted for m: y minus 1 equals negative 1 half times x minus negative 2 in parentheses. One line down, the text in the second cell says “Simplify.” The right column contains y minus 1 equals negative 1 half times x plus 2. Below this is y minus 1 equals negative 1 half x plus minus 1. In the fifth row, the first cell says “Step 5. Write the equation in slope-intercept form.” The second cell is blank. The third cell contains y equals negative 1 half x.

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

Solution

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=0.

Step-by-step derivation of the equation of a perpendicular line given a point and its slope.
Identify the point. (3,−2)
Identify the slope of the perpendicular line. m=0
Substitute the values into yy1=m(xx1). yy1=m(xx1) y(−2)=0(x3) y+2=0
Simplify. y=−2

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

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

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.

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

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.

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.

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

Solution

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 (−4,2), 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?

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, yy1=m(xx1).
    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, yy1=m(xx1).
    4. Write the equation in slope-intercept form.



  • To Write and Equation of a Line
    • If given slope and y-intercept, use slope–intercept form y=mx+b.
    • If given slope and a point, use point–slope form yy1=m(xx1).
    • If given two points, use point–slope form yy1=m(xx1).



  • 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, yy1=m(xx1).
    5. Write the equation in slope-intercept form.



  • 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, yy1=m(xx1).
    5. Write the equation in slope-intercept form.

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 (0,5)

slope 4 and y-intercept (0,1)

Solution

y=4x+1

slope 6 and y-intercept (0,−4)

slope 8 and y-intercept (0,−6)

Solution

y=8x6

slope −1 and y-intercept (0,3)

slope −1 and y-intercept (0,7)

Solution

y=x+7

slope −2 and y-intercept (0,−3)

slope −3 and y-intercept (0,−1)

Solution

y=−3x1

slope 35 and y-intercept (0,−1)

slope 15 and y-intercept (0,−5)

Solution

y=15x5

slope 34 and y-intercept (0,−2)

slope 23 and y-intercept (0,−3)

Solution

y=23x3

slope 0 and y-intercept (0,−1)

slope 0 and y-intercept (0,2)

Solution

y=2

slope −3 and y-intercept (0,0)

slope −4 and y-intercept (0,0)

Solution

y=−4x

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

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

y=−2x+4

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 9 to 9. The point (6, 0) is plotted. A line intercepts the y-axis at (0, negative 3) and intercepts the x-axis at (6, 0).
The graph shows the x y-coordinate plane. The x and y-axes each run from negative 9 to 9. The point (4, 5) is plotted. A line intercepts the x-axis at (negative 8 thirds, 0), intercepts the y-axis at (0, 2), and passes through the point (4, 5).
Solution

y=34x+2

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

y=32x1

The graph shows the x y-coordinate plane. The x and y-axes each run from negative 9 to 9. The point (2, negative 2) is plotted. A line running parallel to the x-axis intercepts the y-axis at (0, negative 2) and passes through the point (2, negative 2).
The graph shows the x y-coordinate plane. The x and y-axes each run from negative 9 to 9. The point (negative 3, 6) is plotted. A line running parallel to the x-axis passes through (negative 3, 6) and intercepts the y-axis at (0, 6).
Solution

y=6

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.

m=58, point (8,3)

m=38, point (8,2)

Solution

y=38x1

m=16, point (6,1)

m=56, point (6,7)

Solution

y=56x+2

m=34, point (8,−5)

m=35, point (10,−5)

Solution

y=35x+1

m=14, point (−12,−6)

m=13, point (−9,−8)

Solution

y=13x11

Horizontal line containing (−2,5)

Horizontal line containing (−1,4)

Solution

y=4

Horizontal line containing (−2,−3)

Horizontal line containing (−1,−7)

Solution

y=−7

m=32, point (−4,−3)

m=52, point (−8,−2)

Solution

y=52x22

m=−7, point (−1,−3)

m=−4, point (−2,−3)

Solution

y=−4x11

Horizontal line containing (2,−3)

Horizontal line containing (4,−8)

Solution

y=−8

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.

(2,6) and (5,3)

(3,1) and (2,5)

Solution

y=−4x+13

(4,3) and (8,1)

(2,7) and (3,8)

Solution

y=x+5

(−3,−4) and (52)

(−5,−3) and (4,−6)

Solution

y=13x143

(−1,3) and (−6,−7)

(−2,8) and (−4,−6)

Solution

y=7x+22

(6,−4) and (−2,5)

(3,−2) and (−4,4)

Solution

y=67x+47

(0,4) and (2,−3)

(0,−2) and (−5,−3)

Solution

y=15x2

(7,2) and (7,−2)

(4,2) and (4,−3)

Solution

x=4

(−7,−1) and (−7,−4)

(−2,1) and (−2,−4)

Solution

x=−2

(6,1) and (0,1)

(6,2) and (−3,2)

Solution

y=2

(3,−4) and (5,−4)

(−6,−3) and (−1,−3)

Solution

y=−3

(4,3) and (8,0)

(0,0) and (1,4)

Solution

y=4x

(−2,−3) and (−5,−6)

(−3,0) and (−7,−2)

Solution

y=12x+32

(8,−1) and (8,−5)

(3,5) and (−7,5)

Solution

y=5

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.

line y=4x+2, point (1,2)

line y=3x+4, point (2,5)

Solution

y=3x1

line y=−2x3, point (−1,3)

line y=−3x1, point (2,−3)

Solution

y=−3x+3

line 3xy=4, point (3,1)

line 2xy=6, point (3,0)

Solution

y=2x6

line 4x+3y=6, point (0,−3)

line 2x+3y=6, point (0,5)

Solution

y=23x+5

line x=−3, point (−2,−1)

line x=−4, point (−3,−5)

Solution

x=−3

line x2=0, point (1,−2)

line x6=0, point (4,−3)

Solution

x=4

line y=5, point (2,−2)

line y=1, point (3,−4)

Solution

y=−4

line y+2=0, point (3,−3)

line y+7=0, point (1,−1)

Solution

y=−1

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.

line y=−2x+3, point (2,2)

line y=x+5, point (3,3)

Solution

y=x

line y=34x2, point (−3,4)

line y=23x4, point (2,−4)

Solution

y=32x1

line 2x3y=8, point (4,−1)

line 4x3y=5, point (−3,2)

Solution

y=34x14

line 2x+5y=6, point (0,0)

line 4x+5y=−3, point (0,0)

Solution

y=54x

line y3=0, point (−2,−4)

line y6=0, point (−5,−3)

Solution

x=−5

line y-axis, point (3,4)

line y-axis, point (2,1)

Solution

y=1

Mixed Practice

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

Containing the points (4,3) and (8,1)

Containing the points (2,7) and (3,8)

Solution

y=x+5

m=16, containing point (6,1)

m=56, containing point (6,7)

Solution

y=56x+2

Parallel to the line 4x+3y=6, containing point (0,−3)

Parallel to the line 2x+3y=6, containing point (0,5)

Solution

y=23x+5

m=34, containing point (8,−5)

m=35, containing point (10,−5)

Solution

y=35x+1

Perpendicular to the line y1=0, point (−2,6)

Perpendicular to the line y-axis, point (−6,2)

Solution

y=2

Containing the points (4,3) and (8,1)

Containing the points (−2,0) and (−3,−2)

Solution

y=2x+4

Parallel to the line x=−3, containing point (−2,−1)

Parallel to the line x=−4, containing point (−3,−5)

Solution

x=−3

Containing the points (−3,−4) and (2,−5)

Containing the points (−5,−3) and (4,−6)

Solution

y=13x143

Perpendicular to the line x2y=5, containing point (−2,2)

Perpendicular to the line 4x+3y=1, containing point (0,0)

Solution

y=34x

Everyday Math

Cholesterol. The age, x, and LDL cholesterol level, y, of two men are given by the points (18,68) and (27,122). Find a linear equation that models the relationship between age and LDL cholesterol level.

Fuel consumption. The city mpg, x, and highway mpg, y, of two cars are given by the points (29,40) and(19,28). Find a linear equation that models the relationship between city mpg and highway mpg.

Solution

y=1.2x+5.2

Writing Exercises

Why are all horizontal lines parallel?

Explain in your own words why the slopes of two perpendicular lines must have opposite signs.

Solution

Answers will vary.

Self Check

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

Table assessing student understanding of finding linear equations. Columns: "I can...", "confidently", "with some help", "no-I don’t get it!". Rows describe skills, including finding equations from slope/intercept, slope/point, two points, parallel lines, and perpendicular lines.

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?

point–slope form
The point–slope form of an equation of a line with slope m and containing the point (x1,y1) is yy1=m(xx1).