
# 3.4: Graph Using the y-Intercept and Slope

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

Learning Objectives

• Identify and find the slope of a line.
• Graph a line using the slope and $$y$$-intercept.

## Slope

The steepness of any incline can be measured as the ratio of the vertical change to the horizontal change. For example, a $$5$$% incline can be written as $$\frac{5}{100}$$, which means that for every $$100$$ feet forward, the height increases $$5$$ feet.

Figure 3.4.1

In mathematics, we call the incline of a line the slope and use the letter $$m$$ to denote it. The vertical change is called the rise and the horizontal change is called the run.

$\color{Cerulean}{Slope}\quad\color{black}{m=\frac{\text{vertical change}}{\text{horizontal change}}=\frac{rise}{run}}$

The rise and the run can be positive or negative. A positive rise corresponds to a vertical change up and a negative rise corresponds to a vertical change down. A positive run denotes a horizontal change to the right and a negative run corresponds to a horizontal change to the left. Given the graph, we can calculate the slope by determining the vertical and horizontal changes between any two points.

Example $$\PageIndex{1}$$

Find the slope of the given line:

Figure 3.4.2

Solution:

From the given points on the graph, count $$3$$ units down and $$4$$ units right.

$$m=\frac{rise}{run}=\frac{-3\:\text{units}}{4\:\text{units}}=-\frac{3}{4}$$

$$m=-\frac{3}{4}$$

Here we have a negative slope, which means that for every $$4$$ units of movement to the right, the vertical change is $$3$$ units downward. There are four geometric cases for the value of the slope.

Figure 3.4.3

Reading the graph from left to right, we see that lines with an upward incline have positive slopes and lines with a downward incline have negative slopes.

Figure 3.4.4

If the line is horizontal, then the rise is $$0$$:

$$m=\frac{rise}{run}=\frac{0}{run}=0$$

The slope of a horizontal line is $$0$$. If the line is vertical, then the run is $$0$$:

$$m=\frac{rise}{run}=\frac{rise}{0}\quad\color{Cerulean}{Undefined}$$

The slope of a vertical line is undefined.

Exercise $$\PageIndex{1}$$

Find the slope of the given line:

Figure 3.4.5

$$m=\frac{2}{3}$$

Calculating the slope can be difficult if the graph does not have points with integer coordinates. Therefore, we next develop a formula that allows us to calculate the slope algebraically. Given any two points $$(x_{1}, y_{1})$$ and $$(x_{2}, y_{2})$$, we can obtain the rise and run by subtracting the corresponding coordinates.

Figure 3.4.6

This leads us to the slope formula. Given any two points $$(x_{1}, y_{1})$$ and $$(x_{2}, y_{2})$$, the slope is given by

$$m=\frac{rise}{run}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}$$

Example $$\PageIndex{2}$$

Find the slope of the line passing through $$(−3, −5)$$ and $$(2, 1)$$.

Solution:

Given $$(−3, −5)$$ and $$(2, 1)$$, calculate the difference of the $$y$$-values divided by the difference of the $$x$$-values. Since subtraction is not commutative, take care to be consistent when subtracting the coordinates.

$$\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-3,-5)}&{(2,1)}\end{array}$$

\begin{aligned} m&=\frac{y_{2}-y_{1}}{x_{2}-x_{1}} \\ &=\frac{1-(-5)}{2-(-3)} \\ &=\frac{1+5}{2+3} \\ &=\frac{6}{5} \end{aligned}

$$m=\frac{6}{5}$$

We can graph the line described in the previous example and verify that the slope is $$\frac{6}{5}$$.

Figure 3.4.7

Certainly the graph is optional; the beauty of the slope formula is that we can obtain the slope, given two points, using only algebra.

Example $$\PageIndex{3}$$

Find the slope of the line passing through $$(−4, 3)$$ and $$(−1, −7)$$.

Solution:

$$\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-4,3)}&{(-1,-7)} \end{array}$$

$$m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{-7-(3)}{-1-(-4)}=\frac{-7-3}{-1+4}=\frac{-10}{3}$$

$$m=-\frac{10}{3}$$

When using the slope formula, take care to be consistent since order does matter. You must subtract the coordinates of the first point from the coordinates of the second point for both the numerator and the denominator in the same order.

Example $$\PageIndex{4}$$

Find the slope of the line passing through $$(7, −2)$$ and $$(−5, −2)$$.

Solution:

$$\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(7,-2)}&{(-5,-2)} \end{array}$$

$$m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{-2-(-2)}{-5-(7)}=\frac{-2+2}{-5-7}=\frac{0}{-12}=0$$

$$m=0$$. As an exercise, plot the given two points and verify that they lie on a horizontal line.

Example $$\PageIndex{5}$$

Find the slope of the line passing through $$(−4, −3)$$ and $$(−4, 5)$$.

Solution:

$$\begin{array}{cc}{(x_{1},y_{1})}&{(x_{2},y_{2})}\\{(-4,-3)}&{(-4,5)} \end{array}$$

$$m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{5-(-3)}{-4-(-4)}=\frac{5+3}{-4+4}=\frac{8}{0}\quad\color{Cerulean}{Undefined}$$

The slope $$m$$ is undefined. As an exercise, plot the given two points and verify that they lie on a vertical line.

Exercise $$\PageIndex{2}$$

Calculate the slope of the line passing through $$(−2, 3)$$ and $$(5, −5)$$.

$$m=-\frac{8}{7}$$

When considering the slope as a rate of change it is important to include the correct units.

Example $$\PageIndex{6}$$

A Corvette Coupe was purchased new in 1970 for about $$$5,200$$ and depreciated in value over time until it was sold in 1985 for$$$1,300$$. At this point, the car was beginning to be considered a classic and started to increase in value. In the year 2000, when the car was 30 years old, it sold at auction for $$$10,450$$. The following line graph depicts the value of the car over time. Figure 3.4.8 1. Determine the rate at which the car depreciated in value from 1970 to 1985. 2. Determine the rate at which the car appreciated in value from 1985 to 2000. Solution: Notice that the value depends on the age of the car and that the slope measures the rate in dollars per year. a. The slope of the line segment depicting the value for the first 15 years is $$m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{1,300-5,200}{15\text{ years}-0\text{ years}}=\frac{-3,900}{15\text{ years}}=-260\text{ per year}$$ b. The slope of the line segment depicting the value for the next 15 years is $$m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}=\frac{10,450-1,300}{30\text{ years}-15\text{ years}}=\frac{9,150}{15\text{ years}}=610\text{ per year}$$ Answer: 1. The value of the car depreciated$$$260$$ per year from 1970 to 1985.
2. The value of the car appreciated $$610$$ per year from 1985 to 2000. ## Slope-Intercept Form of a Line To this point, we have learned how to graph lines by plotting points and by using the $$x$$- and $$y$$-intercepts. In addition, we have seen that we need only two points to graph a line. In this section, we outline a process to easily determine two points using the $$y$$-intercept and the slope. The equation of any nonvertical line can be written in slope-intercept form $$y=mx+b$$. In this form, we can identify the slope, $$m$$, and the $$y$$-intercept, $$(0, b)$$. Example $$\PageIndex{7}$$ Determine the slope and $$y$$-intercept: $$y=−\frac{4}{5}x+7$$. Solution: In this form, the coefficient of $$x$$ is the slope, and the constant is the $$y$$-value of the $$y$$-intercept. Therefore, by inspection, we have Figure 3.4.9 Answer: The $$y$$-intercept is $$(0, 7)$$, and the slope is $$m=−\frac{4}{5}$$. It is not always the case that the linear equation is given in slope-intercept form. When it is given in standard form, you have to first solve for $$y$$ to obtain slope-intercept form. Example $$\PageIndex{8}$$ Express $$3x+5y=30$$ in slope-intercept form and then identify the slope and $$y$$-intercept. Solution: Begin by solving for $$y$$. To do this, apply the properties of equality to first isolate $$5y$$ and then divide both sides by $$5$$. \begin{aligned} 3x+5y&=30 \\ 3x+5y\color{Cerulean}{-3x}&=30\color{Cerulean}{-3x} \\ 5y&=-3x+30 \\ \frac{5y}{\color{Cerulean}{5}}&=\frac{-3x+30}{\color{Cerulean}{5}} \\ y&=\frac{-3x}{5}+\frac{30}{5} \\ y&=-\frac{3}{5}x+6 \end{aligned} Answer: Slope-intercept form: $$y=−\frac{3}{5}x+6$$; $$y$$-intercept: $$(0, 6)$$; slope: $$m=−\frac{3}{5}$$ Once the equation is in slope-intercept form, we immediately have one point to plot, the $$y$$-intercept. From the intercept, you can mark off the slope to plot another point on the line. From the previous example we have $$y=-\frac{3}{5}x+6$$ $$y$$-intercept: $$(0,6)$$ slope: $$m=-\frac{3}{5}=\frac{-3}{5}=\frac{rise}{run}$$ Starting from the point $$(0, 6)$$, use the slope to mark another point $$3$$ units down and $$5$$ units to the right. Figure 3.4.10 It is not necessary to check that the second point, (5, 3), solves the original linear equation. However, we do it here for the sake of completeness. \begin{aligned} 3x+5y&=30 \\ 3(\color{OliveGreen}{5}\color{black}{)+5(}\color{OliveGreen}{3}\color{black}{)}&=30 \\ 15+15&=30 \\ 30&=30\quad\color{Cerulean}{\checkmark} \end{aligned} Marking off the slope in this fashion produces as many ordered pair solutions as we desire. Notice that if we mark off the slope again, from the point $$(5, 3)$$, then we obtain the $$x$$-intercept, $$(10, 0)$$. Example $$\PageIndex{9}$$ Graph: $$−x+2y=4$$. Solution: In this example, we outline the general steps for graphing a line using slope-intercept form. Step 1: Solve for $$y$$ to obtain slope-intercept form. \begin{aligned} -x+2y&=4 \\ -x+2y\color{Cerulean}{+x}&=4\color{Cerulean}{+x} \\ 2y&=x+4 \\ \frac{2y}{\color{Cerulean}{2}}&=\frac{x+4}{\color{Cerulean}{2}} \\ y&=\frac{1x}{2}+\frac{4}{2} \\ y&=\frac{1}{2}x+2 \end{aligned} Step 2: Identify the $$y$$-intercept and slope. $$y$$-intercept: $$(0,2)$$ slope: $$m=\frac{1}{2}=\frac{rise}{run}$$ Step 3: Plot the $$y$$-intercept and use the slope to find another ordered pair solution. Starting from the $$y$$-intercept, mark off the slope and identify a second point. In this case, mark a point after a rise of $$1$$ unit and a run of $$2$$ units. Figure 3.4.11 Step 4: Draw the line through the two points with a straightedge. Answer: Figure 3.4.12 In this example, we notice that we could get the $$x$$-intercept by marking off the slope in a different but equivalent manner. Consider the slope as the ratio of two negative numbers as follows: $$m=\frac{1}{2}=\frac{-1}{-2}=\frac{rise}{run}$$ We could obtain another point on the line by marking off the equivalent slope down $$1$$ unit and left $$2$$ units. We do this twice to obtain the $$x$$-intercept, $$(−4, 0)$$. Figure 3.4.13 Marking off the slope multiple times is not necessarily always going to give us the $$x$$-intercept, but when it does, we obtain a valuable point with little effort. In fact, it is a good practice to mark off the slope multiple times; doing so allows you to obtain more points on the line and produce a more accurate graph. Example $$\PageIndex{10}$$ Graph and find the $$x$$-intercept: $$y=\frac{3}{4}x−2$$. Solution: The equation is given in slope-intercept form. Therefore, by inspection, we have the $$y$$-intercept and slope. $$y$$-intercept: $$(0,-2)$$ slope: $$m=\frac{3}{4}=\frac{rise}{run}$$ Figure 3.4.14 We can see that the $$x$$-value of the $$x$$-intercept is a mixed number between $$2$$ and $$3$$. To algebraically find $$x$$-intercepts, recall that we must set $$y = 0$$ and solve for $$x$$. \begin{aligned} y&=\frac{3}{4}x-2 &\color{Cerulean}{To\:find\:x-intercepts,} \\ &&\color{Cerulean}{set\:y\:equal\:to\:0.} \\ 0&=\frac{3}{4}x-2 &\color{Cerulean}{Solve\:for\:x.} \\ -\frac{3}{4}x&=-2 \\ \color{Cerulean}{-\frac{4}{3}\cdot}\color{black}{\left( -\frac{3}{4}x \right)}&=\color{Cerulean}{-\frac{4}{3}\cdot}\color{black}{(-2)} \\ x&=\frac{8}{3}\:or\:2\frac{2}{3} \end{aligned} Answer: The $$x$$-intercept is $$(2\frac{2}{3}, 0)$$. Example $$\PageIndex{11}$$ Graph: $$x−y=0$$. Solution: Begin by solving for $$y$$. \begin{aligned} x-y&=0\\x-y\color{Cerulean}{-x}&=0\color{Cerulean}{-x} \\ -y&=-x \\ \color{Cerulean}{-1\cdot}\color{black}{(-y)}&=\color{Cerulean}{-1\cdot}\color{black}{(-x)} \\ y&=x \end{aligned} The equation $$y=x$$ can be written $$y=1x+0$$, and we have $$y$$-intercept: $$(0,0)$$ slope: $$m=1=\frac{1}{1}=\frac{rise}{run}$$ Answer: Figure 3.4.15 Exercise $$\PageIndex{3}$$ Graph $$−2x+5y=20$$ and label the $$x$$-intercept. Answer Figure 3.4.16 ## Key Takeaways • Slope measures the steepness of a line as rise over run. A positive rise denotes a vertical change up, and a negative rise denotes a vertical change down. A positive run denotes a horizontal change right, and a negative run denotes a horizontal change left. • Horizontal lines have a slope of zero, and vertical lines have undefined slopes. • Given any two points on a line, we can algebraically calculate the slope using the slope formula, $$m=\frac{rise}{run}=\frac{y_{2}−y_{1}}{x_{2}−x_{1}}$$. • Any nonvertical line can be written in slope-intercept form, $$y=mx+b$$, from which we can determine, by inspection, the slope $$m$$ and $$y$$-intercept $$(0, b)$$. • If we know the $$y$$-intercept and slope of a line, then we can easily graph it. First, plot the $$y$$-intercept, and from this point use the slope as rise over run to mark another point on the line. Finally, draw a line through these two points with a straightedge and add an arrow on either end to indicate that it extends indefinitely. • We can obtain as many points on the line as we wish by marking off the slope multiple times. Exercise $$\PageIndex{4}$$ Slope Determine the slope and the $$y$$-intercept of the given graph. 1. Figure 3.4.17 2. Figure 3.4.18 3. Figure 3.4.19 4. Figure 3.4.20 5. Figure 3.4.21 6. Figure 3.4.22 Answer 1. $$y$$-intercept: $$(0, 3)$$; slope: $$m = −\frac{3}{4}$$ 3. $$y$$-intercept: $$(0, 2)$$; slope: $$m = 0$$ 5. $$y$$-intercept: $$(0, 0)$$; slope: $$m = 2$$ Exercise $$\PageIndex{5}$$ Slope Determine the slope, given two points. 1. $$(3, 2)$$ and $$(5, 1)$$ 2. $$(7, 8)$$ and $$(−3, 5)$$ 3. $$(2, −3)$$ and $$(−3, 2)$$ 4. $$(−3, 5)$$ and $$(7, −5)$$ 5. $$(−1, −6)$$ and $$(3, 2)$$ 6. $$(5, 3)$$ and $$(4, 12)$$ 7. $$(−9, 3)$$ and $$(−6, −5)$$ 8. $$(−22, 4)$$ and $$(−8, −12)$$ 9. $$(\frac{1}{2}, −\frac{1}{3})$$ and $$(−\frac{1}{2}, \frac{2}{3})$$ 10. $$(−\frac{3}{4}, \frac{3}{2})$$ and $$(\frac{1}{4}, −\frac{1}{2})$$ 11. $$(−\frac{1}{3}, \frac{5}{8})$$ and $$(\frac{1}{2}, −\frac{3}{4})$$ 12. $$(−\frac{3}{5}, −\frac{3}{2})$$ and $$(\frac{1}{10}, \frac{4}{5})$$ 13. $$(3, −5)$$ and $$(5, −5)$$ 14. $$(−3, 1)$$ and $$(−14, 1)$$ 15. $$(−2, 3)$$ and $$(−2, −4)$$ 16. $$(−4, −4)$$ and $$(5, 5)$$ 17. A roof drops $$4$$ feet for every $$12$$ feet forward. Determine the slope of the roof. 18. A road drops $$300$$ feet for every $$5,280$$ feet forward. Determine the slope of the road. 19. The following graph gives the US population of persons 65 years old and over. At what rate did this population increase from 2000 to 2008? Figure 3.4.23: Source: US Census Bureau. 20. The following graph gives total consumer credit outstanding in the United States. At what rate did consumer credit increase from 2002 to 2008? Figure 3.4.24: Source: US Census Bureau. 21. A commercial van was purchased new for$$20,000$$ and is expected to be worth $$$4,000$$ in 8 years. Determine the rate at which the van depreciates in value. 22. A commercial-grade copy machine was purchased new for$$$4,800$$ and will be considered worthless in 6 years. Determine the rate at which the copy machine depreciates in value.

23. Find $$y$$ if the slope of the line passing through $$(−2, 3)$$ and $$(4, y)$$ is $$12$$.

24. Find $$y$$ if the slope of the line passing through $$(5, y)$$ and $$(6, −1)$$ is $$10$$.

25. Find $$y$$ if the slope of the line passing through $$(5, y)$$ and $$(−4, 2)$$ is $$0$$.

26. Find $$x$$ if the slope of the line passing through $$(−3, 2)$$ and $$(x, 5)$$ is undefined.

1. $$−\frac{1}{2}$$

3. $$−1$$

5. $$2$$

7. $$−\frac{8}{3}$$

9. $$−1$$

11. $$−\frac{33}{20}$$

13. $$0$$

15. Undefined

17. $$−\frac{1}{3}$$

19. $$\frac{1}{2}$$ million per year

21. \$$$2,000$$ per year

23. $$75$$

25. $$2$$

Exercise $$\PageIndex{6}$$ Slope-Intercept Form

Express the given linear equation in slope-intercept form and identify the slope and $$y$$-intercept.

1. $$6x−5y=30$$
2. $$−2x+7y=28$$
3. $$9x−y=17$$
4. $$x−3y=18$$
5. $$2x−3y=0$$
6. $$−6x+3y=0$$
7. $$\frac{2}{3}x−\frac{5}{4}y=10$$
8. $$−\frac{4}{3}x+\frac{1}{5}y=−5$$

1. $$y=\frac{6}{5}x−6$$; slope: $$\frac{6}{5}$$; $$y$$-intercept: $$(0, −6)$$

3. $$y=9x−17$$; slope: $$9$$; $$y$$-intercept: $$(0, −17)$$

5. $$y=\frac{2}{3}x$$; slope: $$\frac{2}{3}$$; $$y$$-intercept: $$(0, 0)$$

7. $$y=\frac{8}{15}x−8$$; slope: $$\frac{8}{15}$$; $$y$$-intercept: $$(0, −8)$$

Exercise $$\PageIndex{7}$$ Slope-Intercept Form

Graph the line given the slope and the $$y$$-intercept.

1. $$m=\frac{1}{3}$$ and $$(0, −2)$$
2. $$m=−\frac{2}{3}$$ and $$(0, 4)$$
3. $$m=3$$ and $$(0, 1)$$
4. $$m=−2$$ and $$(0, −1)$$
5. $$m=0$$ and $$(0, 5)$$
6. $$m$$ undefined and $$(0, 0)$$
7. $$m=1$$ and $$(0, 0)$$
8. $$m=−1$$ and $$(0, 0)$$
9. $$m=−\frac{15}{3}$$ and $$(0, 20)$$
10. $$m=−10$$ and $$(0, −5)$$

1.

Figure 3.4.25

3.

Figure 3.4.26

5.

Figure 3.4.27

7.

Figure 3.4.28

9.

Figure 3.4.29

Exercise $$\PageIndex{8}$$ Slope-Intercept Form

Graph using the slope and $$y$$-intercept.

1. $$y=\frac{2}{3}x−2$$
2. $$y=−\frac{1}{3}x+1$$
3. $$y=−3x+6$$
4. $$y=3x+1$$
5. $$y=\frac{3}{5}x$$
6. $$y=−\frac{3}{7}x$$
7. $$y=−8$$
8. $$y=7$$
9. $$y=−x+2$$
10. $$y=x+1$$
11. $$y=\frac{1}{2}x+\frac{3}{2}$$
12. $$y=−\frac{3}{4}x+\frac{5}{2}$$
13. $$4x+y=7$$
14. $$3x−y=5$$
15. $$5x−2y=10$$
16. $$−2x+3y=18$$
17. $$x−y=0$$
18. $$x+y=0$$
19. $$\frac{1}{2}x−\frac{1}{3}y=1$$
20. $$−\frac{2}{3}x+\frac{1}{2}y=2$$
21. $$3x+2y=1$$
22. $$5x+3y=1$$
23. On the same set of axes, graph the three lines, where $$y=\frac{3}{2}x+b$$ and $$b = \{−2, 0, 2\}$$.
24. On the same set of axes, graph the three lines, where $$y=mx+1$$ and $$m = \{−\frac{1}{2}, 0, \frac{1}{2}\}$$.

1.

Figure 3.4.30

3.

Figure 3.4.31

5.

Figure 3.4.32

7.

Figure 3.4.33

9.

Figure 3.4.34

11.

Figure 3.4.35

13.

Figure 3.4.36

15.

Figure 3.4.37

17.

Figure 3.4.38

19.

Figure 3.4.39

21.

Figure 3.4.40

23.

Figure 3.4.41

Exercise $$\PageIndex{9}$$ Discussion Board Topics

1. Name three methods for graphing lines. Discuss the pros and cons of each method.
2. Choose a linear equation and graph it three different ways. Scan the work and share it on the discussion board.
3. Why do we use the letter m for slope?
4. How are equivalent fractions useful when working with slopes?
5. Can we graph a line knowing only its slope?
6. Research and discuss the alternative notation for slope: $$m=\frac{Δy}{Δx}$$.
7. What strategies for graphing lines should be brought to an exam? Explain