4.5: Use the Slope–Intercept Form of an Equation of a Line

Learning Objectives
Note

Before you get started, take this readiness quiz.

  1. Add: \(\frac+ \frac\).
    If you missed this problem, review Exercise 1.7.1.
  2. Find the reciprocal of \(\frac\).
    If you missed this problem, review Exercise 1.6.19.
  3. Solve \(2x−3y=12\) for \(y\).
    If you missed this problem, review Exercise 2.6.16.

Recognize the Relation Between the Graph and the Slope–Intercept Form of an Equation of a Line

We have graphed linear equations by plotting points, using intercepts, recognizing horizontal and vertical lines, and using the point–slope method. Once we see how an equation in slope–intercept form and its graph are related, we’ll have one more method we can use to graph lines.

In Graph Linear Equations in Two Variables, we graphed the line of the equation \(y=12x+3\) by plotting points. See Figure \(\PageIndex\). Let’s find the slope of this line.

This figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 8 to 8. The y-axis of the plane runs from negative 8 to 8. The line is labeled with the equation y equals one half x, plus 3. The points (0, 3), (2, 4) and (4, 5) are labeled also. A red vertical line begins at the point (2, 4) and ends one unit above the point. It is labeled “Rise equals 1”. A red horizontal line begins at the end of the vertical line and ends at the point (4, 5). It is labeled “Run equals 2. The red lines create a right triangle with the line y equals one half x, plus 3 as the hypotenuse.

The red lines show us the rise is \(1\) and the run is \(2\). Substituting into the slope formula:

What is the \(y\)-intercept of the line? The \(y\)-intercept is where the line crosses the \(y\)-axis, so \(y\)-intercept is \((0,3)\). The equation of this line is:

The figure shows the equation y equals one half x, plus 3. The fraction one half is colored red and the number 3 is colored blue.

Notice, the line has:

The figure shows the statement “slope m equals one half and y-intercept (0, 3). The slope, one half, is colored red and the number <a href=3 in the y-intercept is colored blue." />

When a linear equation is solved for \(y\), the coefficient of the \(x\)-term is the slope and the constant term is the \(y\)-coordinate of the \(y\)-intercept. We say that the equation \(y=\fracx+3\) is in slope–intercept form.

The figure shows the statement “m equals one half; y-intercept is (0, 3). The slope, one half, is colored red and the number <a href=3 in the y-intercept is colored blue. Below that statement is the equation y equals one half x, plus 3. The fraction one half is colored red and the number 3 is colored blue. Below the equation is another equation y equals m x, plus b. The variable m is colored red and the variable b is colored blue." />

SLOPE-INTERCEPT FORM OF AN EQUATION OF A LINE

The slope–intercept form of an equation of a line with slope \(m\) and \(y\)-intercept, \((0,b)\) is,

Sometimes the slope–intercept form is called the “y-form.”

Example \(\PageIndex\)

Use the graph to find the slope and \(y\)-intercept of the line, \(y=2x+1\).

Compare these values to the equation \(y=mx+b\).

Solution

To find the slope of the line, we need to choose two points on the line. We’ll use the points \((0,1)\) and \((1,3)\).

Example4.5.jpg
Find the rise and run. .
.
.
Find the \(y\)-intercept of the line. The \(y\)-intercept is the point \((0, 1)\).
. .

The slope is the same as the coefficient of \(x\) and the \(y\)-coordinate of the \(y\)-intercept is the same as the constant term.

Try It \(\PageIndex\)

Use the graph to find the slope and \(y\)-intercept of the line \(y=\fracx−1\). Compare these values to the equation \(y=mx+b\).

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 8 to 8. The y-axis of the plane runs from negative 8 to 8. The line goes through the points (0, negative 1) and (6, 3).

Answer

slope \(m = \frac\) and \(y\)-intercept \((0,−1)\)

Try It \(\PageIndex\)

Use the graph to find the slope and \(y\)-intercept of the line \(y=\fracx+3\). Compare these values to the equation \(y=mx+b\).

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 8 to 8. The y-axis of the plane runs from negative 8 to 8. The line goes through the points (0, 3) and (negative 6, 0).

Answer

slope \(m = \frac\) and \(y\)-intercept \((0,3)\)

Identify the Slope and \(y\)-Intercept From an Equation of a Line

In Understand Slope of a Line, we graphed a line using the slope and a point. When we are given an equation in slope–intercept form, we can use the \(y\)-intercept as the point, and then count out the slope from there. Let’s practice finding the values of the slope and \(y\)-intercept from the equation of a line.

Example \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line with equation \(y=−3x+5\).

Solution

We compare our equation to the slope–intercept form of the equation.

.
Write the equation of the line. .
Identify the slope. .
Identify the \(y\)-intercept. .
Try It \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line \(y=\fracx−1\).

Answer

Try It \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line \(y=−\fracx+1\).

Answer

When an equation of a line is not given in slope–intercept form, our first step will be to solve the equation for \(y\).

Example \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line with equation \(x+2y=6\).

Solution

This equation is not in slope–intercept form. In order to compare it to the slope–intercept form we must first solve the equation for \(y\).

Solve for \(y\). \(x+2y=6\)
Subtract x from each side. .
Divide both sides by \(2\). .
Simplify. .
(Remember: \(\frac = \frac + \frac\))
Simplify. .
Write the slope–intercept form of the equation of the line. .
Write the equation of the line. .
Identify the slope. .
Identify the \(y\)-intercept. .
Try It \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line \(x+4y=8\).

Answer

Try It \(\PageIndex\)

Identify the slope and \(y\)-intercept of the line \(3x+2y=12\).

Answer

Graph a Line Using its Slope and Intercept

Now that we know how to find the slope and \(y\)-intercept of a line from its equation, we can graph the line by plotting the \(y\)-intercept and then using the slope to find another point.

Example \(\PageIndex\): How to Graph a Line Using its Slope and Intercept

Graph the line of the equation \(y=4x−2\) using its slope and \(y\)-intercept.

Solution

The figure shows the steps to graph the equation y equals 4x minus 2. Step 1 is to find the slope intercept form of the equation. The equation is already in slope intercept form.Step 2 is to identify the slope and y-intercept. Use the equation y equals m x, plus b. The equation y equals m x, plus b is shown with the variable m colored red and the variable b colored blue. Below that is the equation y equals 4 x, plus -2. The number 4 is colored red and -2 is colored blue. From this equation we can see that m equals 4 and b equals -2 so the slope is 4 and the y-intercept is the point (0, negative 2).Step 3 is to plot the y-intercept. An x y-coordinate plane is shown with the x-axis of the plane running from negative 8 to 8. The y-axis of the plane runs from negative 8 to 8. The point (0, negative 2) is plotted.Step 4 is to use the slope formula m equals rise over run to identify the rise and the run. Since m equals 4, rise over run equals 4 over 1. From this we can determine that the rise is 4 and the run is 1.Step 5 is to start at they-intercept, count out the rise and run to mark the second point. So start at the point (0, negative 2) and count the rise and the run. The rise is up 4 and the run is right 1. On the x y-coordinate plane is a red vertical line starts at the point (0, negative 2) and rises 4 units at its end a red horizontal line runs 1 unit to end at the point (1, 2). The point (1, 2) is plotted.Step 6 is to connect the points with a line. On the x y-coordinate plane the points (0, negative 2) and (1, 2) are plotted and a line runs through the two points. The line is the graph of y equals 4 x, minus 2.

Try It \(\PageIndex\)

Graph the line of the equation \(y=4x+1\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, 1) and (1, 5) are plotted on the line.

Try It \(\PageIndex\)

Graph the line of the equation \(y=2x−3\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 3) and (1, negative 1) are plotted on the line.

GRAPH A LINE USING ITS SLOPE AND \(y\)-INTERCEPT.
  1. Find the slope-intercept form of the equation of the line.
  2. Identify the slope and \(y\)-intercept.
  3. Plot the \(y\)-intercept.
  4. Use the slope formula \(\frac>>\) to identify the rise and the run.
  5. Starting at the \(y\)-intercept, count out the rise and run to mark the second point.
  6. Connect the points with a line.
Example \(\PageIndex\)

Graph the line of the equation \(y=−x+4\) using its slope and \(y\)-intercept.

Solution

\(y=mx+b\)
The equation is in slope–intercept form. \(y=−x+4\)
Identify the slope and \(y\)-intercept. \(m=−1\)
\(y\)-intercept is \((0, 4)\)
Plot the \(y\)-intercept. See graph below.
Identify the rise and the run. \(m = \frac\)
Count out the rise and run to mark the second point. rise \(−1\), run \(1\)
Draw the line. .
To check your work, you can find another point on the line and make sure it is a solution of the equation. In the graph we see the line goes through \((4, 0)\).
Try It \(\PageIndex\)

Graph the line of the equation \(y=−x−3\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 3) and (1, negative 4) are plotted on the line.

Try It \(\PageIndex\)

Graph the line of the equation \(y=−x−1\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 1) and (1, negative 2) are plotted on the line.

Example \(\PageIndex\)

Graph the line of the equation \(y=−\fracx−3\) using its slope and \(y\)-intercept.

Solution

\(y=mx+b\)
The equation is in slope–intercept form. \(y=−\fracx−3\)
Identify the slope and \(y\)-intercept. \(m = -\frac\); \(y\)-intercept is \((0, −3)\)
Plot the \(y\)-intercept. See graph below.
Identify the rise and the run.
Count out the rise and run to mark the second point.
Draw the line. .
Try It \(\PageIndex\)

Graph the line of the equation \(y=−\fracx+1\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0,1) and (2, negative 4) are plotted on the line.

Try It \(\PageIndex\)

Graph the line of the equation \(y=−\fracx−2\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 2) and (4, negative 5) are plotted on the line.

Example \(\PageIndex\)

Graph the line of the equation \(4x−3y=12\) using its slope and \(y\)-intercept.

Solution

\(4x−3y=12\)
Find the slope–intercept form of the equation. \(−3y=−4x+12\)
\(−\frac=\frac\)
The equation is now in slope–intercept form. \(y=\fracx−4\)
Identify the slope and \(y\)-intercept. \(m=\frac\)
\(y\)-ntercept is \((0, −4)\)
Plot the \(y\)-intercept. See graph below.
Identify the rise and the run; count out the rise and run to mark the second point.
Draw the line. .
Try It \(\PageIndex\)

Graph the line of the equation \(2x−y=6\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 6) and (1, negative 4) are plotted on the line.

Try It \(\PageIndex\)

Graph the line of the equation \(3x−2y=8\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 10 to 10. The y-axis of the plane runs from negative 10 to 10. The points (0, negative 4) and (2, negative 1) are plotted on the line.

We have used a grid with \(x\) and \(y\) both going from about \(−10\) to \(10\) for all the equations we’ve graphed so far. Not all linear equations can be graphed on this small grid. Often, especially in applications with real-world data, we’ll need to extend the axes to bigger positive or smaller negative numbers.

Example \(\PageIndex\)

Graph the line of the equation \(y=0.2x+45\) using its slope and \(y\)-intercept.

Solution

We’ll use a grid with the axes going from about \(−80\) to \(80\).

\(y=mx+b\)
The equation is in slope–intercept form. \(y=0.2x+45\)
Identify the slope and \(y\)-intercept. \(m=0.2\)
The \(y\)-intercept is \((0, 45)\)
Plot the \(y\)-intercept. See graph below.
Count out the rise and run to mark the second point. The slope is \(m=0.2\); in fraction form this means \(m=\frac\). Given the scale of our graph, it would be easier to use the equivalent fraction \(m=\frac\).
Draw the line. .
Try It \(\PageIndex\)

Graph the line of the equation \(y=0.5x+25\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 70 to 30. The y-axis of the plane runs from negative 20 to 40. The points (0, 25) and (10, 30) are plotted on the line.

Try It \(\PageIndex\)

Graph the line of the equation \(y=0.1x−30\) using its slope and \(y\)-intercept.

Answer

The figure shows a line graphed on the x y-coordinate plane. The x-axis of the plane runs from negative 50 to 350. The y-axis of the plane runs from negative 40 to 40. The points (0, negative 30) and (100, negative 20) are plotted on the line.

Now that we have graphed lines by using the slope and \(y\)-intercept, let’s summarize all the methods we have used to graph lines. See Figure \(\PageIndex\).

The table has two rows and four columns. The first row spans all four columns and is a header row. The header is “Methods to Graph Lines”. The second row is made up of four columns. The first column is labeled “Plotting Points” and shows a smaller table with four rows and two columns. The first row is a header row with the first column labeled “x” and the second labeled “y”. The rest of the table is blank. Below the table it reads “Find three points. Plot the points, <a href=make sure they line up, then draw the line.” The Second column is labeled “Slope–Intercept” and shows the equation y equals m x, plus b. Below the equation it reads “Find the slope and y-intercept. Start at the y-intercept, then count the slope to get a second point.” The third column is labeled “Intercepts” and shows a smaller table with four rows and two columns. The first row is a header row with the first column labeled “x” and the second labeled “y”. The second row has a 0 in the “x” column and the “y” column is blank. The second row is blank in the “x” column and has a 0 in the “y” column. The third row is blank. Below the table it reads “Find the intercepts and a third point. Plot the points, make sure they line up, then draw the line.” The fourth column is labeled “Recognize Vertical and Horizontal Lines”. Below that it reads “The equation has only one variable.” The equation x equals a is a vertical line and the equation y equals b is a horizontal line." />

Choose the Most Convenient Method to Graph a Line

Now that we have seen several methods we can use to graph lines, how do we know which method to use for a given equation?

While we could plot points, use the slope–intercept form, or find the intercepts for any equation, if we recognize the most convenient way to graph a certain type of equation, our work will be easier. Generally, plotting points is not the most efficient way to graph a line. We saw better methods in sections 4.3, 4.4, and earlier in this section. Let’s look for some patterns to help determine the most convenient method to graph a line.

Here are six equations we graphed in this chapter, and the method we used to graph each of them.

Equations #1 and #2 each have just one variable. Remember, in equations of this form the value of that one variable is constant; it does not depend on the value of the other variable. Equations of this form have graphs that are vertical or horizontal lines.

In equations #3 and #4, both \(x\) and \(y\) are on the same side of the equation. These two equations are of the form \(Ax+By=C\). We substituted \(y=0\) to find the \(x\)-intercept and \(x=0\) to find the \(y\)-intercept, and then found a third point by choosing another value for \(x\) or \(y\).

Equations #5 and #6 are written in slope–intercept form. After identifying the slope and \(y\)-intercept from the equation we used them to graph the line.

This leads to the following strategy.

STRATEGY FOR CHOOSING THE MOST CONVENIENT METHOD TO GRAPH A LINE

Consider the form of the equation.