Jacques is at the top of a hill in the Whistler Ski Resort. As he looks around he sees a flag with the coordinates

blowing in the wind. Jacques wonders if these coordinates have anything to do with the coordinates he saw on a flag on his way up on the lift. What could these coordinates be telling Jacques about the steepness of the hill?In this concept, you will learn to find the slope of a line.

### Slopes

The graph of a linear function is a straight line. Although the graphs are all straight lines, the slant or steepness of the lines vary from graph to graph. The slant or steepness of a straight line is referred to as the **slope** of the line. The slope of a line indicates the rate at which a change in \begin{align*}x\end{align*}

In mathematics, the slope of a line is represented by the letter \begin{align*}m\end{align*}

\begin{align*}m = \frac{\Delta y}{\Delta x} \rightarrow \frac{\text{change in }y}{\text{change in }x} \rightarrow \frac{\text{rise}}{\text{run}}\end{align*}

The slope of a graph can be found by counting as shown on the graph below.

\begin{align*}m=\frac{\text{rise}}{\text{run}}\end{align*}

First, find two exact points (points on the line that are on the corner of a box on the grid) on the graph.

Next, begin with a point to the left and count horizontally to the right until you are either directly above or directly below the second point.

Then, write the number that you have just moved horizontally in a positive direction as the denominator (run) of the slope.

Next, count the number vertically to the second point. If you move vertically upward then the number is positive. If you move vertically downward then the number is negative.

Then, write this value as the numerator (rise) of the slope.

For the following graph:

\begin{align*}m = \frac{\text{rise}}{\text{run}} \quad \ m = \frac{2}{1}\end{align*}

The slope of a line remains unchanged everywhere on the line. The slope of this line is positive as it moves upward from left to right. If the slope of the line were negative then the line would move downward from left to right.

If you are not given a graph, the slope of a line can be determined by using the coordinates of two points on the line.

Let’s look at another example.

The points \begin{align*}B(10, 7)\end{align*}

When two points on the straight line are known, the slope can be calculated using the formula \begin{align*}m=\frac{y_2-y_1}{x_2-x_1}\end{align*}

First, choose and label the points as the first point and the second point.

\begin{align*}\begin{pmatrix}
x_1, & y_1 \\
15, & 8
\end{pmatrix} \ \text{and} \ \begin{pmatrix}
x_2, & y_2 \\
10, & 7
\end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2 - y_1}{x_2 - x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl}
m &=& \frac{y_2-y_1}{x_2-x_1}\\
m &=& \frac{7-8}{10-15}
\end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}\begin{array}{rcl}
m &=& \frac{\text{-}1}{\text{-}5}\\
m &=& \frac{1}{5}
\end{array}\end{align*}

The slope of the straight line is \begin{align*}\frac{1}{5}\end{align*}.

Let’s look at the slopes of the two special straight lines.

Find the slope of the line having

as its equation.First, graph the straight line and determine the coordinates of two points that the line passes through.

The vertical line passes through the point \begin{align*}(-4, 0)\end{align*} and is parallel to the \begin{align*}y\end{align*}-axis. The line also passes through the point .

First, name the points as being the first point and the second point.

\begin{align*}\begin{pmatrix} x_1, & y_1 \\ -4, & 0 \end{pmatrix} \ \text{and} \ \begin{pmatrix} x_2, & y_2 \\ -4, & -1 \end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2-y_1}{x_2-x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl} m &=& \frac{y_2-y_1}{x_2-x_1}\\ m &=& \frac{\text{-}1-0}{\text{-}4-\text{-}4}\\ m &=& \frac{\text{-}1-0}{\text{-}4+4} \end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}\begin{array}{rcl} m &=& \frac{\text{-}1}{0}\\ m &=& \text{undefined} \end{array}\end{align*}

Remember division by zero is undefined.

The slope of the vertical line having the equation

is undefined.All vertical lines have a slope that is undefined.

Find the slope of the line having \begin{align*}y=5\end{align*} as its equation.

First, graph the straight line and determine the coordinates of two points that the line passes through.

The horizontal line passes through the point \begin{align*}x\end{align*}-axis. The line also passes through the point .

and is parallel to theFirst, name the points as being the first point and the second point.

\begin{align*}\begin{pmatrix} x_1, & y_1 \\ 0, & 5 \end{pmatrix} \ \text{and} \ \begin{pmatrix} x_2, & y_2 \\ 1, & 5 \end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2-y_1}{x_2-x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl} m &=& \frac{y_2-y_1}{x_2-x_1}\\ m &=& \frac{5-5}{1-0} \end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}\begin{array}{rcl} m &=& \frac{0}{1}\\ m &=& 0 \end{array}\end{align*}

Remember any number divided by zero equals zero.

The slope of the horizontal line having the equation

is zero.All horizontal lines have a slope of zero.

### Examples

#### Example 1

Earlier, you were given a problem about Jacques and the coordinates on the flags. He needs to figure out if the coordinates have anything to do with the steepness of the ski hill. How can Jacques figure this out?

He can use the formula to calculate the slope of the ski hill.

First, name the points as being the first point and the second point.

\begin{align*}\begin{pmatrix} x_1, & y_1 \\ 98, & 60 \end{pmatrix} \ \text{and} \ \begin{pmatrix} x_2, & y_2 \\ 82, & 124 \end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2-y_1}{x_2-x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl} m &=& \frac{y_2-y_1}{x_2-x_1}\\ m &=& \frac{124-60}{82-98} \end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}\begin{array}{rcl} m &=& \frac{64}{\text{-}16}\\ m &=& \frac{\text{-}4}{1} \end{array}\end{align*}

The slope of the line is \begin{align*}\frac{\text{-}4}{1}\end{align*}.

Remember, the slope of a line indicates the rate at which a change in \begin{align*}x\end{align*} creates a change in the value of \begin{align*}y\end{align*}. For the ski hill, a horizontal change of positive 1 changes the vertical value 4 units downward. The ski hill is very steep.

#### Example 2

What is the slope of the straight line shown on the following graph?

First, select two exact points on the line.

Next, begin with a point to the left and count horizontally to the right until you are either directly above or directly below the second point.

Then, write the number that you have just moved horizontally in a positive direction as the denominator (run) of the slope.

Next, count the number vertically to the second point. If you move vertically upward then the number is positive. If you move vertically downward then the number is negative.

Then, write this value as the numerator (rise) of the slope.

For the above graph:

\begin{align*}m = \frac{\text{rise}}{\text{run}} \quad m = \frac{{\color{blue}2}}{{\color{red}3}}\end{align*}

#### Example 3

What is the slope of the line passing through the points \begin{align*}B(-2, 7)\end{align*}?

andFirst, name the points as being the first point and the second point.

\begin{align*}\begin{pmatrix} x_1, & y_1 \\ -6, & 10 \end{pmatrix} \ \text{and} \ \begin{pmatrix} x_2, & y_2 \\ -2, & 7 \end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2-y_1}{x_2-x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl} m &=& \frac{y_2-y_1}{x_2-x_1}\\ m &=& \frac{7-10}{\text{-}2-\text{-}6}\\ m &=& \frac{7-10}{\text{-}2+6} \end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}m = \frac{\text{-}3}{4}\end{align*}

The slope of the line is \begin{align*}\frac{\text{-}3}{4}\end{align*}.

#### Example 4

Describe the graph of a line that has

as its equation and state the slope of the line.First, draw a graph to model the equation \begin{align*}y=-3\end{align*}.

The graph is a horizontal line parallel to the

-axis. The slope of a horizontal line is zero.\begin{align*}m=0\end{align*}

#### Example 5

Use the formula for slope to calculate the slope of the straight line passing through the points

and .First, name the points as being the first point and the second point.

\begin{align*}\begin{pmatrix} x_1, & y_1 \\ -8, & -5 \end{pmatrix} \ \text{and} \ \begin{pmatrix} x_2, & y_2 \\ 12, & -6 \end{pmatrix}\end{align*}

Next, write the formula for finding the slope.

\begin{align*}m = \frac{y_2-y_1}{x_2-x_1}\end{align*}

Next, fill in the values for the coordinates as they have been named.

\begin{align*}\begin{array}{rcl} m &=& \frac{y_2-y_1}{x_2-x_1}\\ m &=& \frac{\text{-}6-\text{-}5}{12-\text{-}8}\\ m &=& \frac{\text{-}6+5}{12+8} \end{array}\end{align*}

Next, simplify the numerator and the denominator of the formula.

\begin{align*}m = \frac{\text{-}1}{20}\end{align*}

The slope of the line is \begin{align*}\frac{\text{-}1}{20}\end{align*}.

### Review

Answer true or false for each of the following questions.

1. True or false. The equation of a line is always linear.

2. True or false. A linear equation will be shown as a straight line on a graph.

3. True or false. The \begin{align*}x\end{align*}-intercept is where the line crosses the \begin{align*}y\end{align*} axis.

4. True or false. The \begin{align*}y\end{align*}-intercept is where the line crosses the \begin{align*}y\end{align*} axis.

5. True or false. A vertical line has an undefined slope.

6. True or false. A horizontal line has a slope of 0.

7. True or false. Slope is the distance that the line travels on the coordinate graph.

8. True or false. Slope is found using a ratio.

9. True or false. You can figure out the slope of a line if you have been given one set of points.

10. True or false. You will need two sets of points that a line passes through to figure out the slope.

Figure out the slope of a line that passes through each of the following pairs of points.

11.

12.

13.

14. \begin{align*}(3, 1) (4, 3)\end{align*}

15.

16.

17. \begin{align*}(6, 4) (2, 7)\end{align*}

18.

19. \begin{align*}(6, 1) (1, 6)\end{align*}

20.