Skip to main content

Section 7.1 Slope of a Line

The slope of a line tells us about which way it slants and by how much. In this section, we'll learn how the slope affects the graph of a line, and how to compute it explicitly.

Definition 7.1.

The slope of a line measures how slanted it is. If we know two points \((x_1, y_1)\) and \((x_2, y_2)\text{,}\) we can compute the slope as

\begin{equation*} \dfrac{y_2-y_1}{x_2-x_1} \end{equation*}

Notice that this is the same as \(\dfrac{y_1-y_2}{x_1-x_2}\text{,}\) but it is not the same as \(\dfrac{y_2-y_1}{x_1-x_2}\text{.}\) In other words, you can subtract in either order you want, as long as you either start with both 1's or both 2's.

Example 7.2.

Suppose we want to compute the slope of a line between the points \((2,7)\) and \((-3,1)\text{.}\) Then, we can compute

\begin{equation*} \dfrac{1-7}{-3-2} = \dfrac{-6}{-5} = \dfrac{6}{5} \end{equation*}

Let's check that if we subtract the other way around, we indeed get the same answer:

\begin{equation*} \dfrac{7-1}{2-(-3)} = \dfrac{6}{5} \end{equation*}

Checkpoint 7.3.

Compute the slope of the line between the points \((-5,5)\) and \((3,-1)\text{.}\)

Answer.

\(-\dfrac{3}{4}\)

Solution.

We can compute

\begin{equation*} \dfrac{-1-5}{3-(-5)} = \dfrac{-6}{8} = -\dfrac{3}{4} \end{equation*}

Let's check that if we subtract the other way around, we indeed get the same answer:

\begin{equation*} \dfrac{5-(-1)}{-5-3} = \dfrac{6}{-8} = -\dfrac{3}{4} \end{equation*}

So far, we have only talked about slope numerically. Here is what positive and negative sloped lines look like:

Figure 7.4. This line has a positive slope, because it goes up as you move from left-to-right
Figure 7.5. This line has a negative slope, because it goes down as you move from left-to-right

If we want to compute the slope of a line when we are given a graph, we can either pick two points on the line (any two points!) and compute slope using the formula we did before, or you can use another way of thinking about the slope formula:

\begin{equation*} \dfrac{\text{rise}}{\text{run}} \end{equation*}

where "rise" means how much we move up, and "run" means how much we move to the right.

Example 7.6.

Let's compute the slope of the line below

Let's pick the point \((0,-1)\) as our starting place, and then \((2,-4)\) as our ending point. Then, we rise \(-3\) (since we have to go down \(3\)) and run \(2\) (since we have to go to the right \(2\)). So, we can compute the slope as

\begin{equation*} \dfrac{\text{rise}}{\text{run}}=\dfrac{-3}{2} \end{equation*}

Checkpoint 7.7.

Compute the slope of the line below:

Answer.

\(4\)

Solution.

Let's pick the point \((-1,-3)\) as our starting place, and then \((0,1)\) as our ending point. Then, we rise \(4\) (since we have to go up \(4\)) and run \(1\) (since we have to go to the right \(1\)). So, we can compute the slope as

\begin{equation*} \dfrac{\text{rise}}{\text{run}}=\dfrac{4}{1}=4 \end{equation*}