Skip to main content

Section 7.3 Slope of a Line

The line with equation \(2x-3y=-6\) is shown in both FigureĀ 7.3.1 and FigureĀ 7.3.2. In FigureĀ 7.3.1, it's illustrated that if we start at a point on the line and move up \(2\) spaces and right \(3\) spaces, we end up at another point on the line. Similarly, in FigureĀ 7.3.2, it's illustrated that if we start at a point on the line and move down \(2\) spaces and left \(3\) spaces, we end up at another point on the line.

A graph of the line that passes through the points \((-6,-6)\text{,}\) \((-3,-4)\text{,}\) \((0,-2)\)/, \((3,0)\text{,}\) and \((6,2)\text{.}\) There is a series of four "steps" made up of arrows that point up followed by arrows that point right. Each step but the first picks up where the previous step stopped. The steps start at the point \((-6,6)\text{.}\)  The first step points up to \((-6,-4)\) and then right to \((-3,-4)\text{.}\)  The next step points up to \((-3,-2)\) and then right to \((0,-2)\text{.}\)  The next step points up to \((0,0)\) and the right to \((3,0)\text{.}\)  The final step points up to \((3,2)\) and then right to \((6,2)\text{.}\)
Figure 7.3.1. Walking up the steps
A graph of the line that passes through the points \((-6,-6)\text{,}\) \((-3,-4)\text{,}\) \((0,-2)\)/, \((3,0)\text{,}\) and \((6,2)\text{.}\) There is a series of four "steps" made up of arrows that point down followed by arrows that point left. Each step but the first picks up where the previous step stopped. The steps start at the point \((6,2)\text{.}\)  The first step points down to \((6,0)\) and then left to \((3,0)\text{.}\) The next step points down to \((3,-2)\) and then left to \((0,-2)\text{.}\)  The next step points down to \((0,-4)\) and then left to \((-3,-4)\text{.}\)  The final step points down to \((-3,-6)\) and then left to \((-6,-6)\text{.}\)
Figure 7.3.2. Walking down the steps

Similar step-like patterns exist for any line that is neither horizontal nor vertical. The up or down movement between two points on a line is called "the rise" between the two points. The right or left movement between the two points is called "the run" between the points. For any given line (that is not vertical), the ratio of the rise to the run between any two points on the line is the same, and this constant ratio is called "the slope of the line." For reasons nobody really knows, we use the variable \(m\) to symbolize slope. So:

\begin{equation*} \text{The slope of a line is }m=\frac{\text{rise}}{\text{run}}\text{.} \end{equation*}

Referring again to FigureĀ 7.3.1, we interpret the upward movement as "a rise of \(+2\)" and the rightward movement as "a run of \(+3\text{.}\)" This gives us:

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{+2}{+3}\\ \amp=\frac{2}{3} \end{align*}

Similarly, referring to FigureĀ 7.3.2, we interpret the downward movement as "a rise of \(-2\)" and the leftward movement as "a run of \(-3\text{.}\)" This gives us:

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{-2}{-3}\\ \amp=\frac{2}{3} \end{align*}

We are not limited to steps that have a rise of \(+2\) or \(-2\text{.}\) For example, in FigureĀ 7.3.3 the rise from the point \((-6,-6)\) to the point \((6,2)\) is \(+8\) while the run is \(+12\text{.}\) The slope of the line is thus calculated as follows.

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{+8}{+12}\\ \amp=\frac{2}{3} \end{align*}
A graph of the line that passes through the points \((-6,-6)\) and \((6,2)\text{.}\)  There is a slope triangle that starts at \((-6,-6)\text{,}\) points up to \((-6,2)\text{,}\) and the points right to \((6,2)\text{.}\)
Figure 7.3.3. rise\(=+8\) and run=\(+12\)

This last example illustrates one of the great things about slope: the ratio of the rise to the run from any point on the line to any other point on the line can be used to determine the slope of a given line.

For example, let's consider the line shown in FigureĀ 7.3.4.

A graph of the line that passes through the points \((-6,6)\text{,}\) \((-2,4)\text{,}\) and \((4,1)\text{.}\)  There is a slope triangle that starts at \((-6,6)\text{,}\) points down to \((-6,4)\text{,}\) and then right to \((-2,4)\text{.}\)  There is a second slope triangle that starts at the point \((4,1)\text{,}\) points up to \((4,6)\text{,}\) and then points left to \((-6,6)\text{.}\)
Figure 7.3.4. Two different rise-to-runs

When we move from the point \((-6,6)\) to the point \((-2,4)\text{,}\) there is a rise of \(-2\) (negative because the movement is downward) and a run of \(+4\) (positive because the movement is rightward). This gives us:

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{-2}{+4}\\ \amp=-\frac{1}{2} \end{align*}

However, when we move from the point \((4,1)\) to the point \((-6,6)\) the rise is \(+5\) (positive because the movement is upward)and the run is \(-10\) (negative because the movement is leftward). Despite this very different pair of rise and run, we get the same slope.

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{+5}{-10}\\ \amp=-\frac{1}{2} \end{align*}
Figure 7.3.5. Drag the point labeled A so that the line has the given slope. A message will appear when you are correct.

When looking at the graph of a line that passes through points which have integer coordinates, it's fairly easy to determine the rise and the run between two points on the line by counting. We just have to keep in mind that we count upward or rightward movement as positive whereas we count downward or leftward movement as negative. When dealing with points that are not presented graphically, it's useful to have a formula that alleviates the need for counting.

In FigureĀ 7.3.6 the slope triangle moving from the point \((-2,-4)\) to the point \((4,5)\) is shown. We can determine, by counting, that the run is \(6\) and the rise is \(9\text{.}\) The observation we want to make is that the run, \(6\text{,}\) is the difference between the \(x\)-coordinates of the points and the rise is the difference between the \(y\)-coordinates. Specifically:

\begin{equation*} \text{run}=4-(-2) \text{ and rise}=5-(-4)\text{.} \end{equation*}

If we give the points generic names for the coordinates we can generalize a slope formula. Let's label the points as stated below. Note that the names given to the coordinates are subscripted variables that are technically read as (for example) "\(x\) sub \(1\) \(y\) sub \(1\)" but in reality are generally read as "\(x\) \(1\) \(y\) \(1\text{.}\)"

\begin{equation*} (-2,-4) \text{ is } (x_1,y_1) \text{ and } (4,5) \text{ is } (x_2,y_2) \end{equation*}

This gives us the following slope formula.

\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{5-(-4)}{4-(-2)}\\ \amp=\frac{y_2-y_1}{x_2-x_1} \end{align*}
A graph of the line that passes through the points \((-2,-4)\) and \((4,5)\text{.}\)  The point \((-2,4)\) is also labeled as \((x_1,y_1)\text{.}\)  The point \((4,5)\) is also labeled as \((x_2,y_2)\text{.}\)  There is a slope triangle that starts at \((-2,-4)\) (which is also \((x_1,y_1)\)), points right to \((4,4)\text{,}\) and then points up to \((4,5)\) (which is also \((x_2,y_2)\)).
Figure 7.3.6. \(\text{rise}=y_2-y_1\text{ and run}=x_2-x_1\)
Example 7.3.7.

Determine the slope of the line that passes through the points \((9,3)\) and \((5,7)\text{.}\)

Solution

We begin by deciding which point we'll call \((x_1,y_1)\) and which point we'll call \((x_2,y_2)\text{.}\) As will be demonstrated, we can label the points either way. Let's first make the following designations.

\begin{equation*} (x_1,y_1) \text{ is } (9,3) \text{ and } (x_2,y_2) \text{ is } (5,7) \end{equation*}

This gives us the following.

\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{7-3}{5-9}\\ \amp=\frac{4}{-4}\\ \amp=-1 \end{align*}

Let's make sure that we get the same result if we designate the points in the other order.

\begin{equation*} (x_1,y_1) \text{ is } (5,7) \text{ and } (x_2,y_2) \text{ is } (9,3) \end{equation*}

This gives us the following.

\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{3-7}{9-5}\\ \amp\frac{-4}{4}\\ \amp=-1 \end{align*}
Figure 7.3.8. Determine the slope of a line given two points on the line.
Example 7.3.9.

Use the concept of slope to determine whether or not the points given in FigureĀ 7.3.10 all lie on the same line.

\(x\) \(y\)
\(6\) \(21\)
\(-2\) \(-11\)
\(0\) \(-3\)
Figure 7.3.10. Points from a line?
Solution

For any given line, the slope connecting any two points on the line is always the same. So to make the determination we need to check whether or not the slope is the same regardless of which two points we select.

Using the first two points in the table we get the following.

\begin{equation*} (x_1,y_1) \text{ is } (6,21) \text{ and } (x_2,y_2) \text{ is } (-2,-11) \end{equation*}
\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{-11-21}{-2-6}\\ \amp=\frac{-32}{-8}\\ \amp=4 \end{align*}

Using the last two points in the table we get the following.

\begin{equation*} (x_1,y_1) \text{ is } (-2,-11) \text{ and } (x_2,y_2) \text{ is } (0,-3) \end{equation*}
\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{-3-(-11)}{0-(-2)}\\ \amp=\frac{8}{2}\\ \amp=4 \end{align*}

Using the first and third points in the table we get the following.

\begin{equation*} (x_1,y_1) \text{ is } (6,21) \text{ and } (x_2,y_2) \text{ is } (0,-3) \end{equation*}
\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{-3-21}{0-6}\\ \amp=\frac{-24}{-6}\\ \amp=4 \end{align*}

Since the slope is the same regardless of which two points we use, we conclude that the three points do indeed lie on the same line.

Exercises Exercises

Determine the slope of each described line.

1.

Determine the slope of the line that is graphed in FigureĀ 7.3.11.

A graph of the line that passes through the points \((-3,3)\text{,}\) \((0,2)\text{,}\) \((3,1)\text{,}\) and \((6,0)\text{.}\)
Figure 7.3.11. Determine the slope
Solution
\begin{align*} m\amp=\frac{\text{rise}}{\text{run}}\\ \amp=\frac{-2}{6}\\ \amp=-\frac{1}{3} \end{align*}

The slope is \(-\frac{1}{3}\)

A graph of the line that passes through the points \((-3,3)\text{,}\) \((0,2)\text{,}\) \((3,1)\text{,}\) and \((6,0)\text{.}\)  There is a slop triangle that starts at \((-3,3)\text{,}\) points down to \((-3,1)\text{,}\) and then points right to \((3,1)\text{.}\)
Figure 7.3.12. rise=\(-2\) and run=\(6\)
2.

Determine the slope of the line that passes through the points \((11,-2)\) and \((-3,5)\text{.}\)

Solution

Let's designate the points as follows.

\begin{equation*} (x_1,y_1) \text{ is } (11,-2) \text{ and } (x_2,y_2) \text{ is } (-3,5) \end{equation*}

Then:

\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{5-(-2)}{-3-11}\\ \amp=\frac{7}{-14}\\ \amp=-\frac{1}{2} \end{align*}

The slope of the line is \(-\frac{1}{2}\text{.}\)

3.

Determine the slope of the line that passes through the points \(\left(\frac{3}{2},-\frac{3}{2}\right)\) and \(\left(-\frac{11}{5},17\right)\text{.}\)

Solution

Let's designate the points as follows.

\begin{equation*} (x_1,y_1) \text{ is } \left(\frac{3}{2},-\frac{3}{2}\right) \text{ and } (x_2,y_2) \text{ is } \left(-\frac{11}{5},17\right) \end{equation*}

Then:

\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{17-\left(-\frac{3}{2}\right)}{-\frac{11}{5}-\frac{3}{2}}\\ \amp=\frac{\frac{34}{2}+\frac{3}{2}}{-\frac{22}{10}-\frac{15}{10}}\\ \amp=\frac{\frac{37}{2}}{-\frac{37}{10}}\\ \amp=\frac{37}{2} \cdot -\frac{10}{37}\\ \amp=-5 \end{align*}

The slope of the line is \(-5\text{.}\)

Refer to ExampleĀ 7.3.9 if you need help getting started on the next problem.

4.

Determine whether or not the points listed in FigureĀ 7.3.13 all lie on the same line.

\(x\) \(y\)
\(-6\) \(8\)
\(-10\) \(10\)
\(20\) \(-6\)
Figure 7.3.13. Points from a line?
Solution

We begin by calculating the slope between the first two points in the table.

\begin{equation*} (x_1,y_1) \text{ is } (-6,8) \text{ and } (x_2,y_2) \text{ is } (-10,10) \end{equation*}
\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{10-8}{-10-(-6)}\\ \amp=\frac{2}{-4}\\ \amp=-\frac{1}{2} \end{align*}

Next, let's calculate the slope between the last two points in the table.

\begin{equation*} (x_1,y_1) \text{ is } (-10,10) \text{ and } (x_2,y_2) \text{ is } (20,-6) \end{equation*}
\begin{align*} m\amp=\frac{y_2-y_1}{x_2-x_1}\\ \amp=\frac{-6-10}{20-(-10)}\\ \amp=\frac{-16}{30}\\ \amp=-\frac{8}{15} \end{align*}

Since the slope is not the same between different pairs of points in the table, we conclude that the points do not all lie on the same line.