Skip to main content

Section 2.2 Slope

Objective: Find the slope of a line given a graph or two points.

As we graph lines, we will want to be able to identify different properties of the lines we graph. One of the most important properties of a line is its slope. Slope is a measure of steepness. A line with a large slope, such as \(25\text{,}\) is very steep. A line with a small slope, such as \(\frac{1}{10}\text{,}\) is very flat. We will also use slope to describe the direction of the line. A line that goes up from left to right will have a positive slope and a line that goes down from left to right will have a negative slope.

As we measure steepness, we are interested in how fast the line rises compared to how far the line runs. For this reason, we will describe slope as the fraction \(\frac{\text{rise}}{\text{run}}\text{.}\) Rise would be a vertical change, or a change in the \(y\)-values. Run would be a horizontal change, or a change in the \(x\)-values. So, another way to describe slope would be the fraction \(\frac{\text{change in } y}{\text{change in } x}\text{.}\) It turns out that if we have a graph, we can draw vertical and horizontal lines from one point to another to make what is called a slope triangle. The sides of the slope triangle give us our slope. The following examples show graphs that we find the slope of using this idea.

Example 2.2.1.

To find the slope of this line, we will consider the rise, or vertical change, and the run or, horizontal change. Drawing these lines in makes a slope triangle that we can use to count from one point to the next. The graph goes down \(4\text{,}\) right \(6\text{.}\) This is rise \(-4\text{,}\) run \(6\text{.}\) As a fraction it would be \(\frac{-4}{6}\text{.}\) Reduce the fraction to get \(-\frac{2}{3}\text{.}\)

\begin{equation*} -\frac{2}{3} \quad \text{Our Solution} \end{equation*}

World View Note: When French mathematicians Rene Descartes and Pierre de Fermat first developed the coordinate plane and the idea of graphing lines (and other functions) the \(y\)-axis was not a vertical line!

Example 2.2.2.

To find the slope of this line, the rise is up \(6\text{,}\) and the run is right \(3\text{.}\) Our slope is then written as a fraction, \(\frac{\text{rise}}{\text{run}}\) or \(\frac{6}{3}\text{.}\) This fraction reduces to \(2\text{.}\) This will be our slope.

\begin{equation*} 2 \quad \text{Our Solution} \end{equation*}

There are two special lines that have unique slopes that we need to be aware of. They are illustrated in the following example.

Example 2.2.3.

In this graph there is no rise, but the run is \(3\) units. This slope becomes \(\frac{0}{3} = 0\text{.}\) This line, and all horizontal lines, have a zero slope.

This line has a rise of \(5\text{,}\) but no run. The slope becomes \(\frac{5}{0}=\) undefined. This line, and all vertical lines, have no slope.

As you can see there is a big difference between having a zero slope and having no slope or undefined slope. Remember, slope is a measure of steepness. The first slope is not steep at all, in fact it is flat. Therefore it has a zero slope. The second slope can’t get any steeper. It is so steep that there is no number large enough to express how steep it is. This is an undefined slope.

We can find the slope of a line through two points without seeing the points on a graph. We can do this using a slope formula. If the rise is the change in \(y\) values, we can calculate this by subtracting the \(y\) values of a point. Similarly, if run is a change in the \(x\) values, we can calculate this by subtracting the \(x\) values of a point. In this way we get the following equation for slope.

\begin{equation*} \textbf{The slope of a line through $\mathbf{ (x_1, y_1)}$ and $\mathbf{(x_2, y_2)}$ is } \mathbf{\frac{y_2 – y_1}{x_2 – x_1}} \end{equation*}

When mathematicians began working with slope, it was called the modular slope. For this reason, we often represent the slope with the variable \(m\text{.}\) Now, we have the following for slope.

\begin{equation*} \textbf{ Slope} \mathbf{= m = \frac{\text{ rise}}{\text{run}} = \frac{\text{change in } y }{\text{change in } x} = \frac{y_2 – y_1}{x_2 – x_1}} \end{equation*}

As we subtract the \(y\) values and the \(x\) values when calculating slope, it is important we subtract them in the same order. This process is shown in the following examples.

Example 2.2.4.

\begin{align*} \text{Find the slope between $(-4,3)$ and $(2,-9)$} \amp \quad \text{Identify $x_1$, $y_1$, $x_2$, $y_2$} \\ (x_1, y_1) \text{ and } (x_2, y_2) \amp \quad \text{Use the slope formula, $m=\frac{y_2 – y_1}{x_2 – x_1}$} \\ m=\frac{-9-3}{2-(-4)} \amp \quad \text{Simplify} \\ m=\frac{-12}{6} \amp \quad \text{Reduce} \\ m=-2 \amp \quad \text{Our Solution} \end{align*}

Example 2.2.5.

\begin{align*} \text{Find the slope between $(4,6)$ and $(2,-1)$} \amp \quad \text{Identify $x_1$, $y_1$, $x_2$, $y_2$} \\ (x_1, y_1) \text{ and } (x_2, y_2) \amp \quad \text{Use the slope formula, $m=\frac{y_2 – y_1}{x_2 – x_1}$} \\ m=\frac{-1-6}{2-4} \amp \quad \text{Simplify} \\ m=\frac{-7}{-2} \amp \quad \text{Reduce, dividing by -1} \\ m=\frac{7}{2} \amp \quad \text{Our Solution} \end{align*}

We may come up against a problem that has a zero slope (horizontal line) or no slope (vertical line) just as with using the graphs.

Example 2.2.6.

\begin{align*} \text{Find the slope between $(-4,-1)$ and $(-4,-5)$} \amp \quad \text{Identify $x_1$, $y_1$, $x_2$, $y_2$} \\ (x_1, y_1) \text{ and } (x_2, y_2) \amp \quad \text{Use the slope formula, $m=\frac{y_2 – y_1}{x_2 – x_1}$} \\ m=\frac{-5-(-1)}{-4-(-4)} \amp \quad \text{Simplify} \\ m=\frac{-4}{0} \amp \quad \text{Can't divide by zero, undefined} \\ m=\text{no slope} \amp \quad \text{Our Solution} \end{align*}

Example 2.2.7.

\begin{align*} \text{Find the slope between $(3,1)$ and $(-2,1)$} \amp \quad \text{Identify $x_1$, $y_1$, $x_2$, $y_2$} \\ (x_1, y_1) \text{ and } (x_2, y_2) \amp \quad \text{Use the slope formula, $m=\frac{y_2 – y_1}{x_2 – x_1}$} \\ m=\frac{1-1}{-2-3} \amp \quad \text{Simplify} \\ m=\frac{0}{-5} \amp \quad \text{Reduce} \\ m=0 \amp \quad \text{Our Solution} \end{align*}

Again, there is a big difference between no slope and a zero slope. Zero is an integer and it has a value, the slope of a flat horizontal line. No slope has no value, it is undefined, the slope of a vertical line.

Using the slope formula, we can also find missing points if we know what the slope is. This is shown in the following two examples.

Example 2.2.8.

Find the value of \(y\) between the points \((2, y) \) and \((5,-1) \) with slope \(-3\text{.}\)

\begin{align*} m=\frac{y_2-y_1}{x_2-x_1} \amp \quad \text{We will plug values into slope formula} \\ -3=\frac{-1-y}{5-2} \amp \quad \text{} \\ -3=\frac{-1-y}{3} \amp \quad \text{Simplify} \\ -3(3)=\frac{-1-y}{3}(3) \amp \quad \text{ Multiply both sides by 3} \\ -9=-1-y\amp \quad \text{Simplify} \\ -9+1=-1-y+1\amp \quad \text{Add $1$ to both sides} \\ -8=-y \amp \quad \text{Simplify} \\ \frac{-8}{-1} = \frac{-y}{-1} \amp \quad \text{Divide both sides by $-1$} \\ 8=y \amp \quad \text{Our Solution} \end{align*}

Example 2.2.9.

Find the value of \(x\) between the points \((-3, 2) \) and \((x, 6) \) with slope \(\frac{2}{5}\text{.}\)

\begin{align*} m=\frac{y_2-y_1}{x_2-x_1} \amp \quad \text{We will plug values into slope formula} \\ \frac{2}{5}=\frac{6-2}{x-(-3)} \amp \quad \text{} \\ \frac{2}{5}=\frac{4}{x+3} \amp \quad \text{Simplify} \\ \frac{2}{5}(x+3)=4 \amp \quad \text{Multiply both sides by $(x+3)$} \\ (5)\frac{2}{5}(x+3)=(5)4 \amp \quad \text{Multiply by $5$ to clear fraction} \\ 2(x+3)=20 \amp \quad \text{Simplify} \\ 2x+6=20 \amp \quad \text{Distribute} \\ 2x+6-6=20-6 \amp \quad \text{Subtract $6$ from both sides} \\ 2x=14 \amp \quad \text{Simplify} \\ \frac{2x}{2}=\frac{14}{2} \amp \quad \text{Divide each side by $2$} \\ x=7 \amp \quad \text{Our Solution} \end{align*}

Exercises Exercises - Graphing - Slope

Exercise Group.

Find the slope of each line.

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

Exercise Group.

Find the slope of the line through each pair of points.

11.

\((-2, 10), (-2,-15) \)

12.

\((1, 2), (-6,-14) \)

13.

\((-15, 10), (16,-7) \)

14.

\((13,-2), (7, 7)\)

15.

\((10, 18), (-11,-10) \)

16.

\((-3, 6), (-20, 13)\)

17.

\((-16,-14), (11,-14) \)

18.

\((13, 15), (2, 10)\)

19.

\((-4, 14), (-16, 8) \)

20.

\((9,-6), (-7,-7)\)

21.

\((12,-19), (6, 14) \)

22.

\((-16, 2), (15,-10)\)

23.

\((-5,-10), (-5, 20) \)

24.

\((8, 11), (-3,-13) \)

25.

\((-17, 19), (10,-7) \)

26.

\((11,-2), (1, 17)\)

27.

\((7,-14), (-8,-9) \)

28.

\((-18,-5), (14,-3) \)

29.

\((-5, 7), (-18, 14) \)

30.

\((19, 15), (5, 11) \)

Exercise Group.

Find the value of \(x\) or \(y\) so that the line through the points has the given slope.

31.

\((2,6) \text{ and } (x,2) \text{; slope: } \frac{4}{7} \)

32.

\((8,y) \text{ and } (-2,4) \text{; slope: } -\frac{1}{5} \)

33.

\((-3,-2) \text{ and } (x,6) \text{; slope: } -\frac{8}{5} \)

34.

\((-2,y) \text{ and } (2,4) \text{; slope: } \frac{1}{4} \)

35.

\((-8,y) \text{ and } (-1,1) \text{; slope: } \frac{6}{7} \)

36.

\((x,-1) \text{ and } (-4,6) \text{; slope: } -\frac{7}{10} \)

37.

\((x,-7) \text{ and } (-9,-9) \text{; slope: } \frac{2}{5} \)

38.

\((2,-5) \text{ and } (3,y) \text{; slope: } 6 \)

39.

\((x,5) \text{ and } (8,0) \text{; slope: } -\frac{5}{6} \)

40.

\((6,2) \text{ and } (x,6) \text{; slope: } -\frac{4}{5} \)