Use the Slope Formula to find the Slope of a Line Between Two Points

Manipulative Mathematics

Doing the Manipulative Mathematics activity "Slope of Lines Between Two Points" will help you develop a better understanding of how to find the slope of a line between two points.

Sometimes we'll need to find the slope of a line between two points when we don't have a graph to count out the rise and the run. We could plot the points on grid paper, then count out the rise and the run, but as we'll see, there is a way to find the slope without graphing. Before we get to it, we need to introduce some algebraic notation.

We have seen that an ordered pair \(( x,y)\) gives the coordinates of a point. But when we work with slopes, we use two points. How can the same symbol \(( x,y)\) be used to represent two different points? Mathematicians use subscripts to distinguish the points.

\(\begin{align} \begin{array}{ll} \left(x_{1}, y_{1}\right) & \text { read ' } x \operatorname{sub} 1, y \operatorname{sub} 1^{\prime} \\ \left(x_{2}, y_{2}\right) & \text { read ' } x \operatorname{sub} 2, y \operatorname{sub} 2 \end{array} \end{align}\)

The use of subscripts in math is very much like the use of last name initials in elementary school. Maybe you remember Laura C. and Laura M. in your third grade class?

We will use \(\left(x_{1}, y_{1}\right)\) to identify the first point and \(\left(x_{2}, y_{2}\right)\) to identify the second point.

If we had more than two points, we could use \(\left(x_{3}, y_{3}\right),\left(x_{4}, y_{4}\right)\), and so on.

Let's see how the rise and run relate to the coordinates of the two points by taking another look at the slope of the line between the points \((2, 3)\) and \(( 7,6)\).

 The graph shows the x y coordinate plane. The x and y-axes run from 0 to 7. A line passes through the points (2, 3) and (7,

Since we have two points, we will use subscript notation, \(\left(\begin{array}{c}x_{1}, y_{1} \\ 2,3\end{array}\right)\left(\begin{array}{c}x_{2}, y_{2} \\ 7,6\end{array}\right)\).

On the graph, we counted the rise of \(3\) and the run of \(5\).

Notice that the rise of 3 can be found by subtracting the y-coordinates \(6\) and \(3\).

\(3 =6 −3\)

And the run of 5 can be found by subtracting the x-coordinates 7 and 2.

\(5 =7 −2\)

We know \(m=\frac{\text { rise }}{\text { run }}\). So \(m=\frac{3}{5}\).

We rewrite the rise and run by putting in the coordinates \(m=\frac{6-3}{7-2}\).

But 6 is \(y_{2}\), the \(y\) -coordinate of the second point and 3 is \(y_{1}\), the \(y\) -coordinate of the first point.

So we can rewrite the slope using subscript notation. \(m=\frac{y_{2}-y_{1}}{7-2}\)

Also, 7 is \(x_{2}\), the \(x\) -coordinate of the second point and 2 is \(x_{1}\), the \(x\) -coordinate of the first point.

So, again, we rewrite the slope using subscript notation. \(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\)

We've shown that \(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\) is really another version of \(m=\frac{\text { rise }}{\text { run }}\). We can use this formula to find the slope of a line when we have two points on the line.

Slope Formula

The slope of the line between two points \(\left(x_{1}, y_{1}\right)\) and \(\left(x_{2}, y_{2}\right)\) is

\(m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\)

This is the slope formula.

The slope is:

\(\text {y of the second point minus } y \text { of the first point}\)

\(\text {over}\)

\(\text {x of the second point minus x of the first point.}\)

Example 4.33

Use the slope formula to find the slope of the line between the points (1,2) and (4,5).

Solution
We'll call \((1, 2)\) point #1 and \((4, 5)\) point #2. \( \left(\begin{array}{c} x_{1}, y_{1} \\ 1,2 \end{array}\right) \quad\left(\begin{array}{c} x_{2}, y_{2} \\ 4,5 \end{array}\right) \)
Use the slope formula. \(\boldsymbol{m}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\).
Substitute the values.
\(y\) of the second point minus y of the first point \(m=\frac{5-2}{x_{2}-x_{1}}\).
\(x\) of the second point minus \(x\) of the first point \(m=\frac{5-2}{4-1}\).
Simplify the numerator and the denominator. \(m=\frac{3}{3}\).
Simplify. \(m=1\).
Table 4.36


Let's confirm this by counting out the slope on a graph using \(m=\frac{\text { rise }}{\text { run }}\).

The graph shows the x y-coordinate plane. The x and y-axes of the plane run from 0 to 7. A line passes through the points (1,

It doesn't matter which point you call point #1 and which one you call point #2. The slope will be the same. Try the calculation yourself.

Try It 4.65

Use the slope formula to find the slope of the line through the points: \(( 8, 5)\) and \(( 6,3)\).

Try It 4.66

Use the slope formula to find the slope of the line through the points: \((1, 5)\) and \((5,9)\).

Example 4.34

Use the slope formula to find the slope of the line between the points (1,2) and (4,5).

Solution
We'll call \((−2 , −3)\) point #1 and \((−7, 4)\) point #2. \(\left(\begin{array}{c}x_{1}, y_{1} \\ -2,-3\end{array}\right) \quad\left(\begin{array}{c}x_{2}, y_{2} \\ -7,4\end{array}\right)\)
Use the slope formula. \(\boldsymbol{m}=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\).
Substitute the values.
y of the second point minus y of the first point \(m=\frac{4-(-3)}{x_{2}-x_{1}}\).
x of the second point minus x of the first point \(m=\frac{4-(-3)}{-7-(-2)}\).
Simplify. \(\begin{array}{l} m=\frac{7}{-5} \\ m=-\frac{7}{5} \end{array}\)
Table 4.37


Let's verify this slope on the graph shown.

The graph shows the x y-coordinate plane. The x-axis of the plane runs from negative 8 to 2 and the y-axis of the plane runs

\( \begin{array}{l} m=\frac{\text { rise }}{\operatorname{run}} \\ m=\frac{-7}{5} \\ m=-\frac{7}{5} \end{array} \)
Try It 4.67

Use the slope formula to find the slope of the line through the points: \((−3, 4)\) and \((2, −1)\).

Try It 4.68

Use the slope formula to find the slope of the line through the pair of points: \((−2, 6)\) and \((−3,−4)\).